/* CSS Variables */
        :root {
            --bg: #fafafa;
            --text: #1a1a1a;
            --text-muted: #666666;
            --border: #e5e5e5;
            --card-bg: #ffffff;
            --nav-bg: rgba(250, 250, 250, 0.85);
            --primary: #111111;
            --primary-text: #ffffff;
            --hover-bg: #f3f4f6;
            --danger: #ef4444;
            --badge-new-bg: #000000;
            --badge-new-text: #ffffff;
            --badge-sale-bg: #ef4444;
            --badge-sale-text: #ffffff;
            --badge-hot-bg: #f59e0b;
            --badge-hot-text: #ffffff;
            --font-heading: 'Playfair Display', serif;
            --font-body: 'Outfit', sans-serif;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
            --modal-overlay: rgba(0,0,0,0.5);
        }

        [data-theme="dark"] {
            --bg: #0a0a0a;
            --text: #f5f5f5;
            --text-muted: #a3a3a3;
            --border: #2a2a2a;
            --card-bg: #141414;
            --nav-bg: rgba(10, 10, 10, 0.85);
            --primary: #ffffff;
            --primary-text: #000000;
            --hover-bg: #1f2937;
            --badge-new-bg: #ffffff;
            --badge-new-text: #000000;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.6);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.7);
            --modal-overlay: rgba(0,0,0,0.8);
        }

        /* Resets & Base */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
body { 
            font-family: var(--font-body); background: var(--bg); color: var(--text); 
            overflow-x: hidden; transition: background var(--transition), color var(--transition); 
            line-height: 1.5; 
        }
        a { color: inherit; text-decoration: none; }
        button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
        ul { list-style: none; }
        input, select { font-family: inherit; }

        /* Background Effects */
        .bg-mesh {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
            background: radial-gradient(circle at 15% 50%, rgba(120, 120, 120, 0.05), transparent 25%),
                        radial-gradient(circle at 85% 30%, rgba(120, 120, 120, 0.05), transparent 25%);
        }
        [data-theme="dark"] .bg-mesh {
            background: radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.03), transparent 25%),
                        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.03), transparent 25%);
        }

        /* Typography */
        h1, h2, h3, h4, .font-serif { font-family: var(--font-heading); font-weight: 600; }
        .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

        /* Navbar */
        .navbar {
            position: sticky; top: 0; z-index: 50; width: 100%;
            background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border); transition: background var(--transition), border var(--transition);
        }
        .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
        .logo { font-size: 1.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-heading); }
        
        .desktop-nav { display: none; align-items: center; gap: 2rem; }
        @media (min-width: 768px) { .desktop-nav { display: flex; } }
        .nav-link { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); transition: color var(--transition); }
        .nav-link:hover, .nav-link.active { color: var(--text); }

        .nav-actions { display: flex; align-items: center; gap: 0.5rem; }
        .icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--text); transition: background var(--transition); }
        .icon-btn:hover { background: var(--hover-bg); }
        
        .search-bar { display: none; position: relative; align-items: center; margin-right: 0.5rem; }
        @media (min-width: 1024px) { .search-bar { display: flex; } }
        .search-input { 
            background: var(--hover-bg); border: 1px solid transparent; border-radius: 2rem;
            padding: 0.5rem 1rem 0.5rem 2.5rem; width: 220px; color: var(--text);
            font-size: 0.9rem; transition: all var(--transition); 
        }
        .search-input:focus { outline: none; border-color: var(--border); background: transparent; width: 260px; }
        .search-icon { position: absolute; left: 0.8rem; width: 1rem; height: 1rem; color: var(--text-muted); pointer-events: none; }

        .cart-badge {
            position: absolute; top: 0; right: 0; font-size: 0.65rem; font-weight: 700; 
            min-width: 1.25rem; height: 1.25rem; border-radius: 1rem;
            display: flex; align-items: center; justify-content: center; transform: translate(20%, -20%);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            background: var(--primary); color: var(--primary-text);
        }
        .cart-badge.pop { transform: translate(20%, -20%) scale(1.3); }

        .mobile-menu-btn { display: flex; }
        @media (min-width: 768px) { .mobile-menu-btn { display: none; } }

        /* Mobile Menu */
        .mobile-menu {
            position: fixed; top: 4.5rem; left: 0; width: 100vw; height: calc(100vh - 4.5rem);
            background: var(--card-bg); z-index: 40; transform: translateY(-100%);
            transition: transform 0.4s ease; padding: 2rem; border-bottom: 1px solid var(--border);
            opacity: 0; pointer-events: none;
        }
        .mobile-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
        .mobile-search { position: relative; margin-bottom: 2rem; }
        .mobile-search input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.5rem; border: 1px solid var(--border); border-radius: 2rem; background: transparent; color: var(--text); font-size: 1rem; }
        .mobile-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 1.2rem; height: 1.2rem; }
        .mobile-nav-links { display: flex; flex-direction: column; gap: 1.5rem; }
        .mobile-nav-links a { font-size: 1.5rem; font-family: var(--font-heading); }

        /* Filter Bar */
        .filter-bar { border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; background: var(--bg); transition: background var(--transition), border var(--transition); }
        .filter-bar::-webkit-scrollbar { display: none; }
        .filter-inner { display: flex; gap: 0.5rem; padding: 1rem 0; min-width: max-content; }
        .filter-pill {
            padding: 0.4rem 1.25rem; border-radius: 2rem; font-size: 0.9rem; font-weight: 500;
            background: transparent; color: var(--text-muted); border: 1px solid var(--border);
            transition: all var(--transition);
        }
        .filter-pill:hover { border-color: var(--text); color: var(--text); }
        .filter-pill.active { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }

        /* Main Grid */
        main { padding: 3rem 0 5rem; min-height: 80vh; }
        .product-grid {
            display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem;
            opacity: 1; transition: opacity 0.4s ease;
        }
        @media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
        @media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; } }
        .product-grid.fading { opacity: 0; }

        /* Product Card */
        .product-card { display: flex; flex-direction: column; cursor: pointer; transition: transform var(--transition); }
        .product-card:hover { transform: translateY(-4px); }
        .product-image-wrap {
            position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 0.5rem;
            background: var(--hover-bg); margin-bottom: 1rem; box-shadow: var(--shadow-sm);
            transition: box-shadow var(--transition);
        }
        .product-card:hover .product-image-wrap { box-shadow: var(--shadow-md); }
        .product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
        .product-card:hover .product-image { transform: scale(1.05); }
        
        .product-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 10; }
        .badge { padding: 0.25rem 0.75rem; border-radius: 2rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        .badge.new { background: var(--badge-new-bg); color: var(--badge-new-text); }
        .badge.sale { background: var(--badge-sale-bg); color: var(--badge-sale-text); }
        .badge.hot { background: var(--badge-hot-bg); color: var(--badge-hot-text); }

        .btn-add-quick {
            position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%) translateY(120%); opacity: 0;
            width: calc(100% - 1.5rem); background: var(--nav-bg); color: var(--text); backdrop-filter: blur(4px);
            padding: 0.75rem; border-radius: 2rem; font-weight: 600; font-size: 0.9rem;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); border: 1px solid var(--border);
        }
        .btn-add-quick:hover { background: var(--primary); color: var(--primary-text); }
        @media (hover: hover) { .product-card:hover .btn-add-quick { transform: translateX(-50%) translateY(0); opacity: 1; } }

        .product-category { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
        .product-title { font-size: 1.1rem; font-family: var(--font-heading); margin-bottom: 0.25rem; color: var(--text); line-height: 1.3; }
        .product-rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; color: #fbbf24; margin-bottom: 0.5rem; }
        .product-rating .stars { display: flex; }
        .product-rating .stars svg { width: 14px; height: 14px; }
        .product-rating span { color: var(--text-muted); margin-left: 0.25rem; }
        .product-price { font-size: 1.1rem; font-weight: 500; color: var(--text); }

        /* Overlays & Drawers */
        .overlay {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--modal-overlay);
            z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; backdrop-filter: blur(4px);
        }
        .overlay.active { opacity: 1; pointer-events: auto; }

        /* Cart Drawer */
        .cart-drawer {
            position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100vh;
            background: var(--card-bg); z-index: 1010; transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
        }
        .cart-drawer.active { transform: translateX(0); }
        .cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--border); }
        .cart-header h2 { font-size: 1.25rem; }
        .cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
        
        .cart-empty { text-align: center; color: var(--text-muted); padding: 3rem 0; display: none; }
        .cart-empty svg { margin: 0 auto 1rem; width: 48px; height: 48px; opacity: 0.2; }
        
        .cart-item { display: flex; gap: 1rem; }
        .cart-item-img { width: 5rem; height: 6.5rem; border-radius: 0.5rem; object-fit: cover; background: var(--hover-bg); }
        .cart-item-info { flex: 1; display: flex; flex-direction: column; }
        .cart-item-title { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.25rem; font-family: var(--font-heading); }
        .cart-item-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
        .cart-item-price { font-weight: 500; font-size: 0.95rem; }
        
        .cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
        .qty-controls { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 0.25rem; }
        .qty-btn { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: color var(--transition); }
        .qty-btn:hover { color: var(--text); }
        .qty-input { width: 2rem; text-align: center; border: none; background: transparent; color: var(--text); font-size: 0.9rem; pointer-events: none;}
        .remove-btn { color: var(--text-muted); text-decoration: underline; font-size: 0.8rem; transition: color var(--transition); }
        .remove-btn:hover { color: var(--danger); }

        .cart-footer { padding: 1.5rem; border-top: 1px solid var(--border); background: var(--card-bg); }
        .cart-summary-line { display: flex; justify-content: space-between; margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }
        .cart-total-line { display: flex; justify-content: space-between; margin: 1rem 0 1.5rem; font-weight: 600; font-size: 1.25rem; color: var(--text); font-family: var(--font-heading); }
        .btn-checkout {
            width: 100%; padding: 1rem; background: var(--primary); color: var(--primary-text);
            border-radius: 0.5rem; font-weight: 600; font-size: 1rem; transition: opacity var(--transition);
        }
        .btn-checkout:hover { opacity: 0.9; }

        /* Product Modal */
        .product-modal {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%);
            width: 95%; max-width: 60rem; max-height: 90vh; background: var(--card-bg);
            z-index: 1010; border-radius: 1rem; opacity: 0; pointer-events: none;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            display: flex; flex-direction: column; overflow: hidden;
            box-shadow: var(--shadow-lg);
        }
        @media (min-width: 768px) {
            .product-modal { flex-direction: row; }
            .product-modal.active { transform: translate(-50%, -50%); }
        }
        .product-modal.active { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
        .modal-close { position: absolute; top: 1rem; right: 1rem; z-index: 10; background: var(--card-bg); color: var(--text); border-radius: 50%; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: transform var(--transition); }
        .modal-close:hover { transform: scale(1.1); }
        
        .pm-image-wrap { flex: 1; background: var(--hover-bg); min-height: 350px; display: flex; align-items: center; justify-content: center; }
        .pm-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
        .pm-info { flex: 1; padding: 2.5rem; overflow-y: auto; display: flex; flex-direction: column; }
        
        .pm-category { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
        .pm-title { font-size: 2rem; font-family: var(--font-heading); margin-bottom: 0.5rem; line-height: 1.2; }
        .pm-rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.9rem; color: #fbbf24; margin-bottom: 1rem; }
        .pm-rating .stars { display: flex; }
        .pm-rating .stars svg { width: 16px; height: 16px; }
        .pm-rating span { color: var(--text-muted); margin-left: 0.5rem; }
        .pm-price { font-size: 1.5rem; font-weight: 500; margin-bottom: 1.5rem; }
        .pm-desc { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.6; }
        
        .pm-options { margin-bottom: 2rem; }
        .pm-option-group { margin-bottom: 1.5rem; }
        .pm-option-label { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 0.75rem; font-size: 0.9rem; }
        .pm-option-value { color: var(--text-muted); font-weight: 400; }
        .pm-color-opts, .pm-size-opts { display: flex; gap: 0.75rem; flex-wrap: wrap; }
        
        .color-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border); transition: all var(--transition); cursor: pointer; }
        .color-btn.active { box-shadow: 0 0 0 2px var(--text); border-color: var(--card-bg); }
        
        .size-btn { padding: 0.6rem 1.2rem; border: 1px solid var(--border); border-radius: 0.25rem; font-size: 0.9rem; transition: all var(--transition); cursor: pointer; background: transparent; color: var(--text); }
        .size-btn:hover { border-color: var(--text); }
        .size-btn.active { border-color: var(--text); background: var(--text); color: var(--bg); }

        .pm-action-row { display: flex; gap: 1rem; margin-top: auto; }
        .pm-qty { border: 1px solid var(--border); border-radius: 0.5rem; display: flex; align-items: center; height: 3.5rem; }
        .pm-qty button { width: 3rem; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
        .pm-qty button:hover { color: var(--text); }
        .pm-qty input { width: 2.5rem; text-align: center; border: none; background: transparent; font-size: 1.1rem; color: var(--text); pointer-events: none; }
        .pm-add-btn { flex: 1; background: var(--primary); color: var(--primary-text); border-radius: 0.5rem; font-weight: 600; font-size: 1rem; transition: background var(--transition), transform 0.1s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
        .pm-add-btn:hover { background: var(--text); }
        .pm-add-btn:active { transform: scale(0.98); }

        /* Toast */
        .toast {
            position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100%);
            background: var(--text); color: var(--bg); padding: 1rem 2rem; border-radius: 2rem;
            font-weight: 500; font-size: 0.9rem; box-shadow: var(--shadow-lg); z-index: 2000;
            opacity: 0; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            display: flex; align-items: center; gap: 0.75rem;
        }
        .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

        /* Footer */
        footer { border-top: 1px solid var(--border); background: var(--card-bg); padding: 4rem 0 2rem; transition: background var(--transition), border var(--transition); }
        .footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
        @media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
        .footer-brand h3 { font-size: 1.5rem; font-family: var(--font-heading); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
        .footer-brand p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 300px; font-size: 0.9rem; }
        .newsletter-form { display: flex; gap: 0.5rem; max-width: 400px; }
        .newsletter-form input { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 0.25rem; background: transparent; color: var(--text); font-family: inherit; }
        .newsletter-form input:focus { outline: none; border-color: var(--text); }
        .newsletter-form button { padding: 0.75rem 1.5rem; background: var(--primary); color: var(--primary-text); border-radius: 0.25rem; font-weight: 500; transition: opacity var(--transition); }
        .newsletter-form button:hover { opacity: 0.9; }
        
        .footer-links h4 { font-size: 1.1rem; margin-bottom: 1.5rem; font-family: var(--font-heading); }
        .footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; }
        .footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
        .footer-links a:hover { color: var(--text); }
        
        .footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; color: var(--text-muted); font-size: 0.85rem; }
        @media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
        .social-links { display: flex; gap: 1rem; }
        .social-links a { color: var(--text-muted); padding: 0.5rem; transition: color var(--transition); }
        .social-links a:hover { color: var(--text); }