/* Modern E-commerce Design System */
:root {
    /* Primary Colors */
    --primary-600: #4f46e5;
    --primary-600-rgb: 79, 70, 229;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Success & Error */
    --red-50: #fee4e2;
    --red-100: #ffe1de;
    --red-200: #f3b8b3;
    --red-300: #ee9f99;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --green-500: #10b981;
    --green-600: #059669;
    --orange-500: #f59e0b;
    
    /* Focus Colors */
    --focus-color: #4f46e5;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: white;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
    overflow-x: hidden;
    /* Mobile device specific fixes */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Prevent zoom on input focus */
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Header - Clean and Professional */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
}

.nav-brand h1 {
    color: var(--primary-600);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-family: var(--font-display);
}

.nav-brand-link {
    color: var(--primary-600);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-family: var(--font-display);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.2;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
}

.nav-brand-link:hover {
    color: var(--primary-700);
}

.nav-brand-link:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: var(--space-2) 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-600);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.btn-cart {
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    padding: var(--space-3);
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cart:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-cart i {
    font-size: 1.25rem;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-600);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
}

/* Hero Section - High Converting Design */
.hero {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Button System - Modern and Accessible */
.btn-primary {
    background: white;
    color: var(--primary-600);
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
    min-height: 48px;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--gray-50);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: var(--space-4) var(--space-8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Featured Product Section - Conversion Optimized */
.featured {
    padding: var(--space-20) 0;
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-16);
    color: var(--gray-900);
    font-family: var(--font-display);
    letter-spacing: -0.025em;
}

.product-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
    padding-block: var(--space-4);
}

.product-images {
    padding: var(--space-8);
    background: var(--gray-50);
}

.main-image {
    margin-bottom: var(--space-4);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.thumbnail-images {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-600);
    opacity: 1;
    transform: scale(1.05);
}

.product-info {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
    line-height: 1.2;
    font-family: var(--font-display);
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-2);
}

.urgency-message {
    margin-top: var(--space-2);
    margin-bottom: var(--space-4);
    color: var(--red-600);
    background: var(--red-50);
    border: 1px solid var(--red-200);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    font-size: 0.95rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-600);
    font-family: var(--font-display);
}

.original-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--gray-400);
    font-weight: 500;
}

.discount {
    background: var(--green-500);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.product-description {
    margin-bottom: var(--space-6);
    line-height: 1.7;
    color: var(--gray-600);
    font-size: 1.1rem;
}


.product-features {
    margin-bottom: var(--space-8);
    display: grid;
    gap: var(--space-3);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--primary-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-600);
}

.feature i {
    color: var(--primary-600);
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.feature span {
    font-weight: 500;
    color: var(--gray-700);
}

.product-actions {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
}

.quantity-selector button {
    background: var(--gray-50);
    border: none;
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 60px;
    padding: var(--space-3);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    background: white;
}

.quantity-selector input:focus {
    outline: none;
}

.btn-add-cart {
    background: var(--primary-600);
    color: white;
    border: none;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    min-height: 48px;
}

.btn-add-cart:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Navigation Container */
.mobile-nav-container {
    display: none;
    align-items: center;
    gap: var(--space-4);
}

/* Mobile Menu - Clean Design */
.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    gap: 4px;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
}

/* Mobile Header Cart Button */
.btn-cart-mobile-header {
    display: none;
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    padding: var(--space-3);
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-radius: var(--radius-lg);
    justify-content: center;
    align-items: center;
}

.btn-cart-mobile-header:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-cart-mobile-header i {
    font-size: 1.25rem;
}

.btn-cart-mobile-header .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-600);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: 0.3s;
    border-radius: 1px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    /* backdrop-filter: blur(4px); */
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-2xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.mobile-menu-header h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 600;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.close-mobile-menu:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-4) var(--space-6);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.mobile-nav-actions {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    background: white;
    margin-top: auto;
}



/* Footer - Clean and Professional */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--space-4);
    color: white;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-6);
    text-align: center;
    color: var(--gray-500);
}

/* Modal System - Modern and Accessible */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

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

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 95vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: var(--gray-400);
    position: absolute;
    right: var(--space-4);
    top: var(--space-4);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.close:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

/* Cart Modal - Enhanced Design */
#cartModal .modal-content {
    padding: var(--space-8);
}

#cartModal h2 {
    margin-bottom: var(--space-6);
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 700;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--space-6);
    padding-right: var(--space-2);
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--gray-50);
    margin-bottom: var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.cart-item-info img {
    border-radius: var(--radius-md);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-1);
}

.cart-item-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.cart-item-controls button {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
}

.cart-item-controls button:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

.cart-item-controls .quantity {
    font-weight: 600;
    color: var(--gray-800);
    min-width: 24px;
    text-align: center;
    font-size: 0.95rem;
}

.cart-item-controls .remove-btn {
    background: var(--red-50);
    border-color: var(--red-200);
    color: var(--red-600);
}

.cart-item-controls .remove-btn:hover {
    background: var(--red-100);
    border-color: var(--red-300);
    color: var(--red-700);
}

.cart-total {
    text-align: right;
    margin: var(--space-6) 0;
    padding: var(--space-4);
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-200);
}

.cart-total h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900);
}

.cart-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

.cart-actions .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: var(--space-3) var(--space-5);
}

.cart-actions .btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.cart-actions .btn-primary {
    background: var(--primary-600);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-5);
}

.cart-actions .btn-primary:hover {
    background: var(--primary-700);
}

/* Checkout Modal - Professional Design */
.checkout-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-8);
}

.checkout-content h2 {
    margin-bottom: var(--space-6);
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 700;
}

.order-summary {
    background: var(--gray-50);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    border: 1px solid var(--gray-200);
}

.order-summary h3 {
    margin-bottom: var(--space-4);
    color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 600;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.checkout-item-info strong {
    color: var(--gray-800);
    font-weight: 600;
}

.checkout-item-info span {
    color: var(--gray-500);
    font-size: 0.875rem;
    display: block;
    margin-top: var(--space-1);
}

.checkout-item-price {
    font-weight: 600;
    color: var(--gray-800);
}

.checkout-total {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--primary-200);
}

.checkout-total strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.checkout-total span {
    color: var(--primary-600);
}

.form-section {
    margin-bottom: var(--space-8);
}

.form-section h3 {
    margin-bottom: var(--space-4);
    color: var(--gray-900);
    font-size: 1.125rem;
    font-weight: 600;
}

.checkout-form .form-group {
    margin-bottom: var(--space-5);
}

.checkout-form .form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.checkout-form .form-group input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.checkout-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.checkout-form .form-group small {
    display: block;
    margin-top: var(--space-1);
    color: var(--gray-500);
    font-size: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

/* Payment Info */
.payment-info {
    background: var(--gray-50);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.payment-info p {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-2) 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.payment-info p:first-child {
    margin-top: 0;
}

.payment-info p:last-child {
    margin-bottom: 0;
}

.payment-info i {
    color: var(--green-600);
    font-size: 1.1rem;
    min-width: 20px;
}

.secure-payment-message {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: 1.1rem;
    color: var(--gray-800);
}

.secure-payment-message i {
    color: var(--green-500);
}

.secure-payment-description {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: var(--space-2) 0;
}

.payment-methods {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.payment-method {
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-method:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-method:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

.payment-method[aria-checked="true"],
.payment-method.is-selected {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-900);
    box-shadow: 0 0 0 3px rgba(var(--primary-600-rgb), 0.1);
}

.payment-method[aria-disabled="true"],
.payment-method.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
#submit-button {
    width: 100%;
    background: var(--primary-600);
    color: white;
    border: none;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 52px;
}

#submit-button:hover:not(:disabled) {
    background: var(--primary-700);
    transform: translateY(-1px);
}

#submit-button:focus-visible:not(:disabled) {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--primary-600-rgb), 0.2);
}

#submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* New payment UI structure */
.payment-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.payment-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.payment-field.card-number {
    grid-column: 1 / -1;
}

.payment-field input {
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.payment-field input:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(var(--primary-600-rgb), 0.1);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contact Page Styles */
.contact-header,
.catalog-header {
    background: var(--primary-600);
    color: white;
    text-align: center;
    padding: var(--space-16) 0;
}

.contact-header h1,
.catalog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
}

.contact-content {
    padding: var(--space-16) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.contact-method:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.contact-method i {
    font-size: 1.25rem;
    color: var(--primary-600);
    margin-top: var(--space-1);
    width: 24px;
    flex-shrink: 0;
}

.contact-method h3 {
    margin-bottom: var(--space-2);
    color: var(--gray-900);
    font-weight: 600;
}

.contact-method p {
    color: var(--gray-600);
    margin-bottom: var(--space-1);
    font-size: 0.95rem;
}

.contact-form-container {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-form-container h2 {
    margin-bottom: var(--space-6);
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: auto;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Notification System */
.notification {
    position: fixed;
    top: var(--space-4);
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    z-index: 3000;
    max-width: 450px;
    min-width: 300px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-success {
    background: color-mix(in srgb, var(--green-600) 85%, transparent);
}

.notification-error {
    background: color-mix(in srgb, var(--red-600) 85%, transparent);
}

.notification-info {
    background: color-mix(in srgb, var(--primary-600) 85%, transparent);
}

.notification-warning {
    background: color-mix(in srgb, var(--orange-500) 85%, transparent);
}

.notification-icon {
    font-size: 1.25rem;
    font-weight: bold;
    min-width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    opacity: 0.8;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.notification-close:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Responsive Design */
@media (min-width: 769px) {
    /* Hide mobile menu completely on desktop */
    .mobile-menu-overlay,
    .mobile-menu {
        display: none !important;
    }
}

/* Device-specific mobile fixes */
@media screen and (max-width: 768px) {
    /* Ensure proper mobile rendering */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Prevent horizontal scroll on mobile devices */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .mobile-nav-container {
        display: flex;
    }
    
    .btn-cart-mobile-header {
        display: flex;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    /* Mobile menu elements are present but hidden by default */
    .mobile-menu-overlay {
        display: none; /* Hidden by default */
    }
    
    .mobile-menu {
        display: flex;
        right: -320px; /* Keep it off-screen by default */
    }
    
    /* Only show overlay when mobile menu is active */
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .hero {
        padding: var(--space-16) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: var(--space-4);
        /* Mobile device specific */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .product-images {
        order: 2;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .product-info {
        order: 1;
        padding: var(--space-6);
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* Mobile-specific fixes for product card elements */
    .container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding-left: max(var(--space-4), env(safe-area-inset-left));
        padding-right: max(var(--space-4), env(safe-area-inset-right));
        overflow-x: hidden;
    }
    
    .urgency-message {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .product-features {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .feature {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        gap: var(--space-3);
    }
    
    .quantity-selector {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
    
    .btn-add-cart {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
        font-size: 0.95rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Legacy payment-row selector - still used in checkout forms for expiry/CVC layout */
    .payment-row {
        grid-template-columns: 1fr;
    }
    

    
    .notification {
        inset-inline-start: var(--space-4);
        inset-inline-end: var(--space-4);
        padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
        transform: translateX(var(--notification-x, 0)) translateY(var(--notification-y, -100%));
        min-width: auto;
        max-width: none;
    }
    
    .checkout-content {
        padding: var(--space-6);
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .nav {
        padding: var(--space-3) var(--space-4);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .featured {
        padding: var(--space-12) 0;
    }
    
    .contact-content {
        padding: var(--space-12) 0;
    }
    
    .contact-form-container,
    .product-images,
    .product-info {
        padding: var(--space-6);
    }
    
    /* Enhanced mobile fixes for very small screens */
    .container {
        padding-left: max(var(--space-3), env(safe-area-inset-left));
        padding-right: max(var(--space-3), env(safe-area-inset-right));
    }
    
    .product-card {
        padding: var(--space-3);
    }
    
    .urgency-message {
        font-size: 0.85rem;
        padding: var(--space-2) var(--space-3);
        width: 100%;
        max-width: 100%;
    }
    
    .feature {
        font-size: 1rem;
        padding: var(--space-2);
        width: 100%;
        max-width: 100%;
    }
    
    .product-actions {
        gap: var(--space-2);
        width: 100%;
        max-width: 100%;
    }
    
    .btn-add-cart {
        font-size: 0.9rem;
        padding: var(--space-3) var(--space-4);
        width: 100%;
        max-width: 100%;
    }
    
    .product-info {
        padding: var(--space-4);
        width: 100%;
        max-width: 100%;
    }
}

/* Success/Cancel Pages */
.success-content,
.cancel-content {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon,
.cancel-icon {
    font-size: 4rem;
    margin-bottom: var(--space-6);
}

.success-details,
.cancel-details {
    background: var(--gray-50);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin: var(--space-6) 0;
    text-align: left;
    border: 1px solid var(--gray-200);
}

.success-details h3,
.cancel-details h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

.success-details ul,
.cancel-details ul {
    color: var(--gray-600);
    line-height: 1.8;
    list-style: none;
    padding: 0;
}

.success-details li,
.cancel-details li {
    margin-bottom: var(--space-2);
    padding-left: var(--space-6);
    position: relative;
}

.success-actions,
.cancel-actions {
    margin: var(--space-6) 0;
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions--centered {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.success-note,
.cancel-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn-cart,
    .mobile-menu,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .product-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --gray-100: #f0f0f0;
        --gray-200: #e0e0e0;
        --gray-300: #c0c0c0;
        --gray-400: #a0a0a0;
        --gray-500: #808080;
        --gray-600: #606060;
        --gray-700: #404040;
        --gray-800: #202020;
        --gray-900: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: var(--space-16) 0;
    min-height: calc(100vh - 200px);
}

.legal-header {
    text-align: center;
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 2px solid var(--gray-200);
}

.legal-header h1 {
    font-size: 3rem;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    font-weight: 800;
}

.legal-date {
    color: var(--gray-600);
    font-size: 1.1rem;
    font-style: italic;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: var(--space-8);
}

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    font-weight: 700;
    padding-top: var(--space-4);
}

.legal-section p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
}

.legal-section ul,
.legal-section ol {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.legal-section li {
    margin-bottom: var(--space-2);
    font-size: 1.1rem;
}

.legal-section ol li {
    margin-bottom: var(--space-3);
}

.contact-info {
    background: var(--gray-50);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
    border-left: 4px solid var(--primary-500);
}

.contact-info p {
    margin-bottom: var(--space-2);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: var(--space-12) 0;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-body {
        padding: 0 var(--space-4);
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
    }
    
    .contact-info {
        padding: var(--space-4);
    }
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-links a:hover i {
    color: var(--primary-500);
}

.social-links .fa-youtube:hover {
    color: #FF0000 !important;
}

.social-links .fa-tiktok:hover {
    color: #000000 !important;
}

.social-links .fa-instagram:hover {
    color: #E4405F !important;
}



.social-links i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

/* Mobile Social Links */
.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-4);
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-links a:hover {
    transform: scale(1.1);
}

.mobile-social-links a:hover i {
    color: var(--primary-500);
}

.mobile-social-links .fa-youtube:hover {
    color: #FF0000 !important;
}

.mobile-social-links .fa-tiktok:hover {
    color: #000000 !important;
}

.mobile-social-links .fa-instagram:hover {
    color: #E4405F !important;
}



.mobile-social-links i {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

