/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.8;
    text-decoration: underline;
}

.cart-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: white;
    color: #f59e0b;
}

/* Main content */
.main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.hero-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    height: 240px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a16207;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

/* Products grid */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: flex-start;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 450px;
    width: 300px;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-media {
    position: relative;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.media-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Category sections */
.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
}

.category-section .products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

/* Category filter */
.category-filter {
    margin: 2rem 0;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.cart-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.cart-item-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-item-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.cart-item-price {
    color: #6b7280;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    min-width: 60px;
}

.delete-btn:hover {
    background: #dc2626;
}

.quantity-btn {
    background: #f3f4f6;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #e5e7eb;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #dc2626;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: calc(1.2rem * 1.4 * 3);
    max-height: calc(1.2rem * 1.4 * 3);
}


.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
}

.close-btn:hover {
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #6b7280;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    min-width: 60px;
}

.delete-btn:hover {
    background: #dc2626;
}

.quantity-btn {
    background: #f3f4f6;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-btn:hover {
    background: #e5e7eb;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
    text-align: right;
    font-size: 1.2rem;
    color: #1f2937;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

/* Checkout page */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 3rem;
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.checkout-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #f59e0b;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #f59e0b;
}

.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #f59e0b;
}

/* Custom Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    background-color: white;
    flex-shrink: 0;
    display: block;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.checkbox-label:hover .checkmark {
    border-color: #f59e0b;
}

/* Billing form initially hidden */
#billingForm {
    display: none;
}

#billingForm.show {
    display: block;
}

.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

/* Contact Page Styles */
.contact-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-info h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.contact-form-section h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.contact-form textarea:focus {
    outline: none;
    border-color: #f59e0b;
}

.submit-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #d97706;
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Message animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design for contact page */
@media (max-width: 768px) {
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
        max-width: 100%;
    }
}

/* Footer Social Media Styles */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.social-link:hover {
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
}

/* Facebook specific styling */
.social-link[href*="facebook"] {
    color: #1877f2;
}

.social-link[href*="facebook"]:hover {
    color: #166fe5;
    background-color: rgba(24, 119, 242, 0.1);
}

/* Instagram specific styling */
.social-link[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-color: rgba(188, 24, 136, 0.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: fill 0.3s ease;
}

/* Facebook SVG styling */
.social-link[href*="facebook"] svg {
    fill: #1877f2;
}

.social-link[href*="facebook"]:hover svg {
    fill: #166fe5;
}

/* Instagram SVG styling */
.social-link[href*="instagram"] svg {
    fill: url(#instagram-gradient);
}

.social-link[href*="instagram"]:hover svg {
    fill: url(#instagram-gradient);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}


.add-product-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-product-btn:hover {
    background: #d97706;
}

.products-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th,
.products-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.products-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

.products-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.edit-btn {
    background-color: #3b82f6;
    color: white;
}

.edit-btn:hover {
    background-color: #2563eb;
}

.delete-btn {
    background-color: #ef4444;
    color: white;
}

.delete-btn:hover {
    background-color: #dc2626;
}

.duplicate-btn {
    background-color: #10b981;
    color: white;
}

.duplicate-btn:hover {
    background-color: #059669;
}

/* Bulk Actions Styles */
.bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bulk-actions-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-actions-right .filter-select {
    margin-right: 0.5rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

/* Checkbox styles */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Status dropdown styles */
.status-dropdown {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.status-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Admin Orders & Accounts Styles */
.order-filters, .account-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select, .filter-input {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 120px;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #f59e0b;
}

#clearFilters {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.tracking-container {
    display: flex;
    align-items: center;
    min-width: 200px;
    max-width: 250px;
}

.tracking-input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.2s ease;
}

.tracking-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.tracking-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.tracking-number {
    font-weight: 500;
    color: #1f2937;
    margin-right: 0.5rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

#emailMessage {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

#emailMessage:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.filter-group:last-child {
    align-items: flex-end;
    justify-content: flex-end;
}

.filter-group:last-child button {
    margin-top: 1.5rem;
}

/* Statistics Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 12px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive stats */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

.orders-table-container, .accounts-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 1rem;
    width: 100%;
}

.orders-table, .accounts-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.orders-table th, .orders-table td,
.accounts-table th, .accounts-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

/* Specific column widths for orders table */
.orders-table th:nth-child(1), .orders-table td:nth-child(1) { width: 60px; } /* Checkbox */
.orders-table th:nth-child(2), .orders-table td:nth-child(2) { width: 100px; } /* Order ID */
.orders-table th:nth-child(3), .orders-table td:nth-child(3) { width: 140px; } /* Customer */
.orders-table th:nth-child(4), .orders-table td:nth-child(4) { width: 180px; } /* Email */
.orders-table th:nth-child(5), .orders-table td:nth-child(5) { width: 100px; } /* Items */
.orders-table th:nth-child(6), .orders-table td:nth-child(6) { width: 100px; } /* Total */
.orders-table th:nth-child(7), .orders-table td:nth-child(7) { width: 120px; } /* Status */
.orders-table th:nth-child(8), .orders-table td:nth-child(8) { width: 200px; } /* Tracking */
.orders-table th:nth-child(9), .orders-table td:nth-child(9) { width: 120px; } /* Date */
.orders-table th:nth-child(10), .orders-table td:nth-child(10) { width: 180px; } /* Actions */

.orders-table th, .accounts-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background-color: #d1fae5;
    color: #065f46;
}

.status-delivered {
    background-color: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.export-btn {
    background-color: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.export-btn:hover {
    background-color: #059669;
}

.accounts-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.summary-card h3 {
    margin: 0 0 0.5rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.order-details {
    max-height: 70vh;
    overflow-y: auto;
}

.order-details h4 {
    margin: 1.5rem 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.order-details h4:first-child {
    margin-top: 0;
}

.order-info, .customer-info, .shipping-info, .billing-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 6px;
}

.order-totals {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f0f9ff;
    border-radius: 6px;
}

.order-totals p {
    margin: 0.25rem 0;
    display: flex;
    justify-content: space-between;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.items-table th, .items-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.items-table th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* Modal styles for admin pages */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Logout button styling */
.logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #dc2626;
}

/* Responsive tables */
@media (max-width: 768px) {
    .orders-table, .accounts-table {
        font-size: 0.8rem;
    }
    
    .orders-table th, .orders-table td,
    .accounts-table th, .accounts-table td {
        padding: 0.5rem;
    }
    
    .accounts-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-filters, .account-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.order-summary h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item.total-row {
    border-top: 2px solid #3b82f6;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
    background: #f8fafc;
    margin-top: 0.5rem;
    padding: 1rem 0;
}

.order-item-name {
    font-weight: 500;
    color: #1f2937;
}

.order-item-price {
    color: #6b7280;
}

.order-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
    text-align: right;
    font-size: 1.2rem;
    color: #1f2937;
}

.payment-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.payment-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

.payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* VIP Signup Section */
.vip-signup {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.vip-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.vip-content h3 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.vip-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.vip-form {
    max-width: 400px;
    margin: 0 auto;
}

.vip-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vip-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.2s;
}

.vip-input-group input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.vip-btn {
    background: white;
    color: #f59e0b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.vip-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vip-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.vip-message {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 1rem;
}

.vip-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.vip-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.vip-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Responsive VIP signup */
@media (max-width: 768px) {
    .vip-content {
        padding: 0 1rem;
        margin: 0 auto;
    }
    
    .vip-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .vip-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .vip-form {
        padding: 0 0.5rem;
    }
    
    .vip-input-group {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .vip-input-group input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .vip-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .vip-message {
        margin-top: 0.75rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 0.9rem;
    }
}

/* VIP Popup Modal */
.vip-popup {
    z-index: 10000;
}

.vip-popup-content {
    max-width: 500px;
    width: 90%;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: vipPopupSlideIn 0.4s ease-out;
}

@keyframes vipPopupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vip-popup-header {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.vip-popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}


.vip-popup-body {
    padding: 2rem;
}

.vip-popup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vip-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.vip-popup-body h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.vip-popup-body p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.vip-popup-form {
    margin-bottom: 1.5rem;
}

.vip-popup-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vip-popup-input-group input {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.vip-popup-input-group input:focus {
    border-color: #f59e0b;
}

.vip-popup-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.vip-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.vip-popup-message {
    margin-top: 1rem;
    font-weight: 500;
    min-height: 1.2rem;
}

.vip-popup-message.success {
    color: #4caf50;
}

.vip-popup-message.error {
    color: #f44336;
}

.vip-popup-skip {
    background: none;
    border: 2px solid #e1e5e9;
    color: #666;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vip-popup-skip:hover {
    border-color: #ccc;
    color: #333;
    background: #f8f9fa;
}

/* Responsive VIP Popup */
@media (max-width: 768px) {
    .vip-popup-content {
        width: 95%;
        margin: 1rem;
    }
    
    .vip-popup-body {
        padding: 1.5rem;
    }
    
    .vip-popup-input-group {
        flex-direction: column;
    }
    
    .vip-popup-btn {
        width: 100%;
    }
}

/* VIP Emails Admin Page */
.vip-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.summary-card h3 {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-number {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.vip-emails-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 1rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.table-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.vip-emails-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.vip-emails-table th,
.vip-emails-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.vip-emails-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vip-emails-table td {
    font-size: 0.9rem;
}

.email-cell {
    font-weight: 500;
    color: #1f2937;
}

.date-cell {
    color: #6b7280;
    font-size: 0.85rem;
}

.promo-code-cell .promo-code {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
}

.promo-code-cell .no-code {
    color: #9ca3af;
    font-style: italic;
}

.status-cell .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-used {
    background: #fef2f2;
    color: #991b1b;
}

.status-badge.status-expired {
    background: #f3f4f6;
    color: #6b7280;
}

.used-date-cell {
    color: #6b7280;
    font-size: 0.85rem;
}

.actions-cell {
    white-space: nowrap;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.loading-indicator {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading-indicator .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.vip-email-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #e5e7eb;
}

.warning-text {
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Responsive VIP emails table */
@media (max-width: 768px) {
    .vip-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-number {
        font-size: 1.5rem;
    }
    
    .vip-emails-table-container {
        overflow-x: auto;
    }
    
    .vip-emails-table {
        min-width: 500px;
    }
    
    .vip-emails-table th,
    .vip-emails-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Admin Mobile Responsive Design */
@media (max-width: 768px) {
    /* Admin Header Mobile */
    .nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .logo-img {
        height: 40px;
        width: auto;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        text-decoration: none;
    }
    
    .logout-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    /* Admin Container Mobile */
    .admin-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .admin-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .add-product-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Admin Tables Mobile */
    .products-table-container,
    .orders-table-container,
    .accounts-table-container,
    .promo-codes-table-container,
    .vip-emails-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin: 1rem 0;
    }
    
    .products-table,
    .orders-table,
    .accounts-table,
    .promo-codes-table,
    .vip-emails-table {
        min-width: 600px !important;
        font-size: 0.8rem;
    }
    
    .products-table th,
    .products-table td,
    .orders-table th,
    .orders-table td,
    .accounts-table th,
    .accounts-table td,
    .promo-codes-table th,
    .promo-codes-table td,
    .vip-emails-table th,
    .vip-emails-table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    .product-image {
        width: 40px;
        height: 40px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        min-height: 32px;
    }
    
    /* Admin Forms Mobile */
    .add-product-form {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .add-product-form h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 6px;
    }
    
    .form-group textarea {
        min-height: 80px;
        resize: vertical;
    }
    
    .submit-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions .btn {
        width: 100%;
        padding: 0.75rem;
        min-height: 44px;
    }
    
    /* Admin Modals Mobile */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        padding: 0.25rem;
        min-width: 32px;
        min-height: 32px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        padding: 0.75rem;
        min-height: 44px;
    }
    
    /* Admin Statistics Mobile */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .stat-content {
        flex: 1;
        margin-left: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Admin Summary Cards Mobile */
    .accounts-summary,
    .vip-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .summary-card {
        padding: 1rem;
        text-align: center;
    }
    
    .summary-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-value,
    .summary-number {
        font-size: 1.5rem;
    }
    
    /* Admin Filters Mobile */
    .order-filters,
    .account-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .filter-select,
    .filter-input {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .export-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Bulk Actions Mobile */
    .bulk-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .bulk-actions-left,
    .bulk-actions-right {
        width: 100%;
        justify-content: center;
    }
    
    .bulk-actions-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bulk-actions-right .filter-select {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .bulk-actions-right .btn {
        width: 100%;
        padding: 0.75rem;
        min-height: 44px;
    }
    
    /* Status Badges Mobile */
    .status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Tracking Container Mobile */
    .tracking-container {
        min-width: 150px;
        max-width: 200px;
    }
    
    .tracking-input {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .tracking-number {
        font-size: 0.8rem;
        max-width: 100px;
    }
    
    /* No Data States Mobile */
    .no-data {
        padding: 2rem 1rem;
        font-size: 0.9rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.2rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
    
    /* Loading Indicator Mobile */
    .loading-indicator {
        padding: 2rem 1rem;
    }
    
    .loading-indicator .spinner {
        width: 30px;
        height: 30px;
    }
    
    .loading-indicator p {
        font-size: 0.9rem;
    }
}

/* Very Small Mobile Screens (320px - 480px) */
@media (max-width: 480px) {
    /* Admin Header Very Small Mobile */
    .nav {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .logout-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Admin Container Very Small Mobile */
    .admin-container {
        padding: 0.75rem;
    }
    
    .admin-header h2 {
        font-size: 1.3rem;
    }
    
    .add-product-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    /* Admin Tables Very Small Mobile */
    .products-table-container,
    .orders-table-container,
    .accounts-table-container,
    .promo-codes-table-container,
    .vip-emails-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .products-table,
    .orders-table,
    .accounts-table,
    .promo-codes-table,
    .vip-emails-table {
        min-width: 500px !important;
        font-size: 0.7rem;
    }
    
    .products-table th,
    .products-table td,
    .orders-table th,
    .orders-table td,
    .accounts-table th,
    .accounts-table td,
    .promo-codes-table th,
    .promo-codes-table td,
    .vip-emails-table th,
    .vip-emails-table td {
        padding: 0.4rem 0.2rem;
    }
    
    .product-image {
        width: 32px;
        height: 32px;
    }
    
    .action-buttons .btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        min-height: 28px;
    }
    
    /* Admin Forms Very Small Mobile */
    .add-product-form {
        padding: 0.75rem;
    }
    
    .add-product-form h3 {
        font-size: 1.1rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .form-group textarea {
        min-height: 70px;
    }
    
    .submit-btn {
        font-size: 0.8rem;
        padding: 0.6rem;
        min-height: 40px;
    }
    
    .form-actions .btn {
        font-size: 0.8rem;
        padding: 0.6rem;
        min-height: 40px;
    }
    
    /* Admin Modals Very Small Mobile */
    .modal-content {
        width: 98%;
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .close-btn {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1.3rem;
        min-width: 28px;
        min-height: 28px;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-footer {
        padding: 0.75rem;
    }
    
    .modal-footer .btn {
        font-size: 0.8rem;
        padding: 0.6rem;
        min-height: 40px;
    }
    
    /* Admin Statistics Very Small Mobile */
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    
    .stat-content {
        margin-left: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Admin Summary Cards Very Small Mobile */
    .summary-card {
        padding: 0.75rem;
    }
    
    .summary-card h3 {
        font-size: 0.8rem;
    }
    
    .summary-value,
    .summary-number {
        font-size: 1.3rem;
    }
    
    /* Admin Filters Very Small Mobile */
    .filter-group label {
        font-size: 0.7rem;
    }
    
    .filter-select,
    .filter-input {
        padding: 0.6rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .export-btn {
        font-size: 0.8rem;
        padding: 0.6rem;
        min-height: 40px;
    }
    
    /* Bulk Actions Very Small Mobile */
    .bulk-actions {
        padding: 0.75rem;
    }
    
    .bulk-actions-right .btn {
        font-size: 0.8rem;
        padding: 0.6rem;
        min-height: 40px;
    }
    
    /* Status Badges Very Small Mobile */
    .status-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    /* Tracking Container Very Small Mobile */
    .tracking-container {
        min-width: 120px;
        max-width: 150px;
    }
    
    .tracking-input {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    
    .tracking-number {
        font-size: 0.7rem;
        max-width: 80px;
    }
    
    /* No Data States Very Small Mobile */
    .no-data {
        padding: 1.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .empty-state {
        padding: 1.5rem 0.75rem;
    }
    
    .empty-icon {
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.1rem;
    }
    
    .empty-state p {
        font-size: 0.8rem;
    }
    
    /* Loading Indicator Very Small Mobile */
    .loading-indicator {
        padding: 1.5rem 0.75rem;
    }
    
    .loading-indicator .spinner {
        width: 25px;
        height: 25px;
    }
    
    .loading-indicator p {
        font-size: 0.8rem;
    }
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    /* Improve touch targets for mobile */
    .btn,
    .nav-link,
    .action-btn,
    .filter-btn,
    .quantity-btn,
    .add-to-cart-btn,
    .submit-btn,
    .export-btn,
    .logout-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better touch feedback */
    .btn:active,
    .nav-link:active,
    .action-btn:active,
    .filter-btn:active,
    .quantity-btn:active,
    .add-to-cart-btn:active,
    .submit-btn:active,
    .export-btn:active,
    .logout-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Improve form inputs for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Better checkbox and radio styling for mobile */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
        margin-right: 0.5rem;
    }
    
    /* Improve table scrolling on mobile */
    .products-table-container,
    .orders-table-container,
    .accounts-table-container,
    .promo-codes-table-container,
    .vip-emails-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    /* Custom scrollbar for webkit browsers */
    .products-table-container::-webkit-scrollbar,
    .orders-table-container::-webkit-scrollbar,
    .accounts-table-container::-webkit-scrollbar,
    .promo-codes-table-container::-webkit-scrollbar,
    .vip-emails-table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .products-table-container::-webkit-scrollbar-track,
    .orders-table-container::-webkit-scrollbar-track,
    .accounts-table-container::-webkit-scrollbar-track,
    .promo-codes-table-container::-webkit-scrollbar-track,
    .vip-emails-table-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .products-table-container::-webkit-scrollbar-thumb,
    .orders-table-container::-webkit-scrollbar-thumb,
    .accounts-table-container::-webkit-scrollbar-thumb,
    .promo-codes-table-container::-webkit-scrollbar-thumb,
    .vip-emails-table-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .products-table-container::-webkit-scrollbar-thumb:hover,
    .orders-table-container::-webkit-scrollbar-thumb:hover,
    .accounts-table-container::-webkit-scrollbar-thumb:hover,
    .promo-codes-table-container::-webkit-scrollbar-thumb:hover,
    .vip-emails-table-container::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    /* Improve modal touch interaction */
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better spacing for mobile admin pages */
    .admin-container > * + * {
        margin-top: 1rem;
    }
    
    /* Improve status badges for mobile */
    .status-badge {
        display: inline-block;
        text-align: center;
        min-width: 60px;
        white-space: nowrap;
    }
    
    /* Better action button layout for mobile */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        min-width: 80px;
    }
    
    /* Improve tracking input for mobile */
    .tracking-container {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tracking-input {
        width: 100%;
        min-width: 120px;
    }
    
    /* Better bulk actions layout for mobile */
    .bulk-actions {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin: 1rem 0;
    }
    
    .bulk-actions-left {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .bulk-actions-right {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Improve filter layout for mobile */
    .order-filters,
    .account-filters {
        background: #f8fafc;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        margin: 1rem 0;
    }
    
    .filter-group {
        margin-bottom: 0.75rem;
    }
    
    .filter-group:last-child {
        margin-bottom: 0;
    }
    
    /* Better table cell content for mobile */
    .product-name,
    .product-price,
    .product-description {
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Improve empty states for mobile */
    .empty-state,
    .no-data {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .empty-state h3,
    .no-data h3 {
        margin-bottom: 0.5rem;
    }
    
    .empty-state p,
    .no-data p {
        line-height: 1.5;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

/* Stripe Elements styling */
#payment-element {
    margin-bottom: 2rem;
}

.StripeElement {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.StripeElement--focus {
    border-color: #f59e0b;
}

/* Promo code styles */
.promo-code-container {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Promo code section in order summary */
.promo-code-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.promo-code-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.promo-code-section .promo-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.promo-code-section .promo-input-group input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.promo-code-section .promo-input-group .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.promo-code-section .promo-message {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.promo-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.promo-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.promo-input-group .btn {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.promo-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.promo-message.success {
    color: #059669;
}

.promo-message.error {
    color: #dc2626;
}

.promo-message.info {
    color: #3b82f6;
}

/* Admin promo codes table styles */
.promo-codes-table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.promo-codes-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.promo-codes-table th,
.promo-codes-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.promo-codes-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.promo-codes-table tr:hover {
    background: #f9fafb;
}

.promo-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #3b82f6;
    background: #eff6ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.discount-percentage {
    color: #059669;
    font-weight: bold;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-used {
    background: #fee2e2;
    color: #991b1b;
}

.description-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Promo code modal improvements */
#promoCodeModal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

#promoCodeModal .modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

#promoCodeModal .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

#promoCodeModal form {
    padding: 2rem;
}

#promoCodeModal .form-group {
    margin-bottom: 1.5rem;
}

#promoCodeModal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

#promoCodeModal .form-group input,
#promoCodeModal .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

#promoCodeModal .form-group input:focus,
#promoCodeModal .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#promoCodeModal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#promoCodeModal .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
}

#promoCodeModal .checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    transform: scale(1.2);
}

#promoCodeModal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

#promoCodeModal .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

#promoCodeModal .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

#promoCodeModal .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
}

#promoCodeModal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

#promoCodeModal .btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Delete modal improvements */
#deletePromoCodeModal .modal-content {
    max-width: 500px;
    width: 90%;
}

#deletePromoCodeModal .modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

#deletePromoCodeModal .modal-body {
    padding: 2rem;
}

#deletePromoCodeModal .modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.promo-code-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.promo-code-info strong {
    color: #1f2937;
}

#deletePromoCodeModal .btn-danger {
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#deletePromoCodeModal .btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* ===========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   =========================================== */

/* Mobile-first approach - Base styles for mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav {
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
    }
    
    .logo-img {
        height: 44px;
        width: auto;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .cart-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-logo {
        margin-bottom: 1rem;
    }
    
    .hero-logo-img {
        height: 120px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .products-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .product-card {
        width: 100%;
        max-width: 300px;
        height: 420px;
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1.1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        min-height: calc(1.1rem * 1.4 * 3);
        max-height: calc(1.1rem * 1.4 * 3);
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Cart Modal Mobile */
    .cart-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-controls {
        gap: 0.5rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .quantity-input {
        width: 50px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Checkout Page Mobile */
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkout-section {
        padding: 1.5rem;
    }
    
    .checkout-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
    
    .order-summary h3 {
        font-size: 1.2rem;
    }
    
    .order-item {
        padding: 0.75rem 0;
    }
    
    .order-item-name {
        font-size: 0.9rem;
    }
    
    .order-item-price {
        font-size: 0.9rem;
    }
    
    .order-totals {
        font-size: 0.9rem;
    }
    
    .total {
        font-size: 1.1rem;
    }
    
    /* Product Detail Page Mobile */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-media {
        height: 300px;
    }
    
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.4rem;
    }
    
    .product-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .add-to-cart-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Admin Pages Mobile */
    .admin-container {
        padding: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .admin-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Tables Mobile */
    .orders-table-container,
    .accounts-table-container,
    .vip-emails-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .orders-table,
    .accounts-table,
    .vip-emails-table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    .orders-table th,
    .orders-table td,
    .accounts-table th,
    .accounts-table td,
    .vip-emails-table th,
    .vip-emails-table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Modals Mobile */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* VIP Popup Mobile */
    .vip-popup-content {
        width: 95%;
        margin: 1rem;
    }
    
    .vip-popup-body {
        padding: 1.5rem;
    }
    
    .vip-popup h3 {
        font-size: 1.3rem;
    }
    
    .vip-popup p {
        font-size: 0.95rem;
    }
    
    .vip-popup-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vip-popup-btn {
        width: 100%;
        padding: 0.75rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Contact Page Mobile */
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .contact-form p {
        font-size: 0.95rem;
    }
    
    /* Success Page Mobile */
    .success-container {
        padding: 1rem;
    }
    
    .success-header h1 {
        font-size: 1.8rem;
    }
    
    .success-header p {
        font-size: 1rem;
    }
    
    .order-details {
        padding: 1.5rem;
    }
    
    .order-details h2 {
        font-size: 1.3rem;
    }
    
    .order-item {
        padding: 0.75rem 0;
    }
    
    .order-totals {
        font-size: 0.9rem;
    }
    
    .total {
        font-size: 1.1rem;
    }
}

/* Tablet styles */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
    }
    
    .logo-img {
        height: 52px;
        width: auto;
    }
    
    .nav-links {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-logo {
        margin-bottom: 1.25rem;
    }
    
    .hero-logo-img {
        height: 140px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .products-grid {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .product-card {
        width: calc(50% - 0.75rem);
        max-width: 300px;
        height: 440px;
        padding: 1.25rem;
    }
    
    .product-name {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        min-height: calc(1.2rem * 1.4 * 3);
        max-height: calc(1.2rem * 1.4 * 3);
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-media {
        height: 400px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-container {
        padding: 1.5rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .orders-table,
    .accounts-table,
    .vip-emails-table {
        font-size: 0.85rem;
    }
    
    .orders-table th,
    .orders-table td,
    .accounts-table th,
    .accounts-table td,
    .vip-emails-table th,
    .vip-emails-table td {
        padding: 0.6rem 0.4rem;
    }
}

/* Large mobile and small tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .product-card {
        width: calc(33.333% - 1.33rem);
        max-width: 300px;
        height: 450px;
    }
    
    .product-name {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        min-height: calc(1.2rem * 1.4 * 3);
        max-height: calc(1.2rem * 1.4 * 3);
    }
    
    .checkout-container {
        grid-template-columns: 2fr 1fr;
    }
    
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .admin-header {
        flex-direction: row;
        align-items: center;
    }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .cart-btn,
    .nav-link,
    .filter-btn,
    .quantity-btn,
    .add-to-cart-btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
        min-width: 44px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
    }
    
    .quantity-input {
        min-height: 44px;
        min-width: 60px;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .products-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-card {
        width: calc(50% - 1rem);
        max-width: 300px;
        height: 430px;
    }
    
    .product-name {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        min-height: calc(1.2rem * 1.4 * 3);
        max-height: calc(1.2rem * 1.4 * 3);
    }
    
    .modal-content {
        max-height: 80vh;
    }
    
    .vip-popup-content {
        max-height: 80vh;
    }
}

/* Mobile-specific classes */
.mobile-device {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-device .product-card,
.mobile-device .btn,
.mobile-device .cart-btn,
.mobile-device .filter-btn,
.mobile-device .quantity-btn {
    transition: transform 0.1s ease;
}

.mobile-device .product-card:active,
.mobile-device .btn:active,
.mobile-device .cart-btn:active,
.mobile-device .filter-btn:active,
.mobile-device .quantity-btn:active {
    transform: scale(0.95);
}

.mobile-container {
    padding-left: 10px;
    padding-right: 10px;
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
    
    /* Prevent zooming out on mobile */
    body {
        touch-action: pan-x pan-y;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Lock viewport to prevent zoom */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
        touch-action: manipulation;
    }
}

/* Mobile-specific improvements for better UX */
@media (max-width: 480px) {
    /* Improve touch targets */
    .nav-link {
        padding: 0.5rem;
        margin: 0.25rem;
    }
    
    /* Better spacing for mobile */
    .hero {
        margin: 1rem 0;
    }
    
    .products-grid {
        margin-top: 1rem;
    }
    
    /* Improve modal experience on mobile */
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    /* Better form experience */
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-radius: 8px;
        border: 2px solid #e5e7eb;
        transition: border-color 0.2s ease;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #f59e0b;
        outline: none;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    }
    
    /* VIP Widget Mobile Enhancements */
    .vip-content {
        padding: 0 1.5rem;
    }
    
    .vip-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .vip-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
    
    .vip-form {
        padding: 0;
    }
    
    .vip-input-group {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .vip-input-group input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 48px;
    }
    
    .vip-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 48px;
        font-weight: 700;
    }
    
    .vip-message {
        margin-top: 1rem;
        padding: 0.875rem 1rem;
        border-radius: 10px;
        font-size: 0.9rem;
        line-height: 1.4;
    }
}
