        :root {
            /* Layout */
            --max-width: 1120px;
            --header-h: 64px;
            --radius: 12px;
            --radius-sm: 8px;
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
            --space-12: 48px;

            /* Light theme (default) */
            --bg: #fafafa;
            --bg-elevated: #ffffff;
            --bg-muted: #f4f4f5;
            --border: #e4e4e7;
            --border-strong: #d4d4d8;
            --fg: #18181b;
            --fg-muted: #71717a;
            --fg-subtle: #a1a1aa;
            --primary: #0000ff;
            --primary-hover: #0607be;
            --primary-light: #ccdbff;
            --accent: #0000ff;
            --accent-hover: #0607be;
            --accent-light: #ededff;
            --danger: #dc2626;
            --focus: #0000ff;

            /* Type scale */
            --font-display: 'Roboto', Arial, sans-serif;
            --font-body: 'Roboto', Arial, sans-serif;
            --font-mono: ui-monospace, SFMono-Regular, monospace;
            --text-xs: 0.75rem;
            --text-sm: 0.875rem;
            --text-base: 1rem;
            --text-lg: 1.125rem;
            --text-xl: 1.5rem;
            --text-2xl: 2rem;
            --text-3xl: 3rem;
            --leading-tight: 1.1;
            --leading-snug: 1.375;
            --leading-normal: 1.5;

            /* Shadows */
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

            /* Touch */
            --touch-target: 44px;
        }

        /* Dark theme - explicit */
        :root[data-theme="dark"] {
            --bg: #09090b;
            --bg-elevated: #18181b;
            --bg-muted: #27272a;
            --border: #3f3f46;
            --border-strong: #52525b;
            --fg: #fafafa;
            --fg-muted: #a1a1aa;
            --fg-subtle: #71717a;
            --primary: #3d4bff;
            --primary-hover: #2630c8;
            --primary-light: #1e2a7a;
            --accent: #3d4bff;
            --accent-hover: #2630c8;
            --accent-light: #232c6e;
            --danger: #ef4444;
            --focus: #3d4bff;
            color-scheme: dark;
        }

        /* Light theme - explicit */
        :root[data-theme="light"] {
            --bg: #fafafa;
            --bg-elevated: #ffffff;
            --bg-muted: #f4f4f5;
            --border: #e4e4e7;
            --border-strong: #d4d4d8;
            --fg: #18181b;
            --fg-muted: #71717a;
            --fg-subtle: #a1a1aa;
            --primary: #0000ff;
            --primary-hover: #0607be;
            --primary-light: #ccdbff;
            --accent: #0000ff;
            --accent-hover: #0607be;
            --accent-light: #ededff;
            --danger: #dc2626;
            --focus: #0000ff;
            color-scheme: light;
        }

        /* System mode (no data-theme) - follows OS preference */
        @media (prefers-color-scheme: dark) {
            :root:not([data-theme]) {
                --bg: #09090b;
                --bg-elevated: #18181b;
                --bg-muted: #27272a;
                --border: #3f3f46;
                --border-strong: #52525b;
                --fg: #fafafa;
                --fg-muted: #a1a1aa;
                --fg-subtle: #71717a;
                --primary: #3d4bff;
                --primary-hover: #2630c8;
                --primary-light: #1e2a7a;
                --accent: #3d4bff;
                --accent-hover: #2630c8;
                --accent-light: #232c6e;
                --danger: #ef4444;
                --focus: #3d4bff;
                color-scheme: dark;
            }
        }

        @media (prefers-color-scheme: light) {
            :root:not([data-theme]) {
                --bg: #fafafa;
                --bg-elevated: #ffffff;
                --bg-muted: #f4f4f5;
                --border: #e4e4e7;
                --border-strong: #d4d4d8;
                --fg: #18181b;
                --fg-muted: #71717a;
                --fg-subtle: #a1a1aa;
                --primary: #0000ff;
                --primary-hover: #0607be;
                --primary-light: #ccdbff;
                --accent: #0000ff;
                --accent-hover: #0607be;
                --accent-light: #ededff;
                --danger: #dc2626;
                --focus: #0000ff;
                color-scheme: light;
            }
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
        }

        body {
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--fg);
            line-height: var(--leading-normal);
            min-height: 100vh;
            font-size: var(--text-base);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            padding-left: max(16px, env(safe-area-inset-left, 0px));
            padding-right: max(16px, env(safe-area-inset-right, 0px));
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0 0 auto;
            height: env(safe-area-inset-top, 0px);
            z-index: 10;
            background: var(--bg);
        }

        a { color: inherit; text-decoration: none; }
        button { font-family: inherit; cursor: pointer; border: none; background: none; }
        select { font-family: inherit; }
        img { max-width: 100%; height: auto; display: block; }

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

        @media (max-width: 480px) {
            .container { padding: 0 var(--space-3); }
            main { padding: 32px 0 48px; }
            .hero { padding: 16px 0 24px; }
            .hero h1 { font-size: clamp(var(--text-xl), 7vw, var(--text-2xl)); }
            .hero p { font-size: var(--text-base); }
            .filter-bar { gap: 6px; margin-bottom: 24px; padding: 4px 4px 8px; }
            .filter-btn { padding: 8px 14px; font-size: var(--text-xs); }
            .products-grid { gap: 12px; }
            .product-content { padding: 12px; }
            .product-title { font-size: var(--text-base); }
            .product-price { font-size: var(--text-xl); }
            .btn { padding: 12px 16px; font-size: var(--text-xs); }
            .btn-icon { width: 40px; height: 40px; }
            .pagination { gap: 6px; }
            .page-btn { min-width: 40px; height: 40px; font-size: var(--text-xs); }
            footer { padding: 32px 0; }
        }

        @media (min-width: 481px) and (max-width: 768px) {
            .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
        }

        /* Skip link */
        .skip-link {
            position: absolute;
            left: -9999px;
            top: 0;
            background: var(--primary);
            color: white;
            padding: 12px 20px;
            z-index: 100;
            font-weight: 500;
            border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        }
        .skip-link:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

        /* Focus styles */
        :focus-visible {
            outline: 2px solid var(--focus);
            outline-offset: 2px;
            border-radius: var(--radius-sm);
            background: var(--primary-light);
        }

        /* Skip link focus */
        .skip-link:focus {
            left: max(16px, env(safe-area-inset-left, 0px));
            padding: 8px 12px;
            background: var(--primary);
            color: white;
            z-index: 100;
        }

        /* Touch action for interactive elements */
        a, button, select, [role="button"], [tabindex] {
            touch-action: manipulation;
        }

        /* Performance hints for animated elements */
        .product-card, .btn, .btn-icon, .page-btn, .filter-btn {
            will-change: transform, border-color, background, color, box-shadow, opacity;
        }

        /* Reduced motion preferences */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            .product-image img {
                transition: none !important;
            }
            .product-card:hover .product-image img {
                transform: none !important;
            }
            .product-card:hover .product-image::after {
                opacity: 0 !important;
            }
            .ptr-spinner svg {
                animation: none !important;
            }
            .toast {
                animation: none !important;
            }
        }

        /* Contrast enhancement for dark mode text on light backgrounds */
        @media (prefers-contrast: more) {
            :root[data-theme="light"] {
                --fg: #000;
                --fg-muted: #333;
                --fg-subtle: #555;
            }
            :root[data-theme="dark"] {
                --fg: #fff;
                --fg-muted: #ccc;
                --fg-subtle: #999;
            }
        }

        /* Header */
        header {
            position: sticky;
            top: 0;
            z-index: 50;
            height: var(--header-h);
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            backdrop-filter: saturate(180%) blur(20px);
            box-shadow: var(--shadow-sm);
        }

        header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 100%;
            gap: 12px;
            padding: 0 var(--space-1);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: var(--font-display);
            font-weight: 700;
            font-size: var(--text-xl);
            color: var(--fg);
            flex-shrink: 0;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            border-radius: 0;
            object-fit: cover;
            box-shadow: var(--shadow-sm);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .currency-select {
            appearance: none;
            background: var(--bg-elevated);
            color: var(--fg);
            border: 1px solid var(--border);
            padding: 10px 36px 10px 12px;
            border-radius: var(--radius-sm);
            font-size: var(--text-sm);
            font-weight: 500;
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 10px center;
            transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
            min-height: var(--touch-target);
        }

        @media (hover: hover) and (pointer: fine) {
            .currency-select:hover { border-color: var(--border-strong); }
        }
        .currency-select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
        .currency-select:disabled { opacity: 0.5; cursor: not-allowed; }

        .cart-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            color: var(--fg);
            font-weight: 500;
            font-size: var(--text-sm);
            transition: background 0.15s ease, box-shadow 0.15s ease;
            min-height: var(--touch-target);
            position: relative;
        }

        .cart-btn:hover { background: var(--bg-muted); }
        .cart-btn:active { background: var(--bg); }
        .cart-btn:focus-visible { outline-offset: 4px; }

        .cart-count {
            background: var(--primary);
            color: white;
            font-size: var(--text-xs);
            font-weight: 600;
            padding: 2px 7px;
            border-radius: 999px;
            min-width: 20px;
            text-align: center;
            position: absolute;
            top: -6px;
            right: -6px;
            box-shadow: 0 0 0 2px var(--bg);
        }

        .theme-toggle {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            color: var(--fg-muted);
            transition: background 0.15s ease, color 0.15s ease;
            position: relative;
        }

        .theme-toggle:hover { background: var(--bg-muted); color: var(--fg); }
        .theme-toggle:active { transform: scale(0.95); }
        .theme-toggle svg { width: 22px; height: 22px; position: absolute; opacity: 0; transform: scale(0.8) rotate(-15deg); transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; }

        /* System mode (default, no data-theme) */
        :root:not([data-theme]) .theme-toggle .icon-system { opacity: 1; transform: scale(1) rotate(0); }
        /* Light mode */
        :root[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: scale(1) rotate(0); }
        /* Dark mode */
        :root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0); }

        /* Mobile header adjustments */
        @media (max-width: 480px) {
            .logo-text { display: none; }
            .logo-icon { width: 28px; height: 28px; }
            .logo { font-size: var(--text-lg); }
            .cart-btn span { display: none; }
            .cart-btn { padding: 10px; }
            .currency-select { padding: 10px 32px 10px 10px; font-size: var(--text-xs); }
        }

        /* Header height adjustments */
        @media (max-width: 640px) {
            header { height: 56px; }
            .logo-icon { width: 32px; height: 32px; }
            .logo { font-size: var(--text-lg); }
        }

        @media (max-width: 480px) {
            header { height: 48px; }
            .logo-icon { width: 24px; height: 24px; }
            .logo { font-size: var(--text-base); }
            .theme-toggle { width: 36px; height: 36px; }
            .theme-toggle svg { width: 18px; height: 18px; }
            .currency-select { padding: 8px 28px 8px 8px; }
            .cart-btn { padding: 8px; }
        }

        /* Main */
        main { padding: 48px 0 64px; }

        /* Hero */
        .hero {
            text-align: center;
            padding: 24px 0 32px;
            max-width: 720px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, var(--primary-light) 0%, transparent 50%);
            opacity: 0.1;
            pointer-events: none;
            z-index: -1;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--primary-light);
            color: var(--primary);
            padding: 6px 14px;
            border-radius: 999px;
            font-size: var(--text-sm);
            font-weight: 600;
            margin-bottom: 20px;
            border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
            position: relative;
            z-index: 1;
        }

        :root[data-theme="dark"] .hero-badge,
        @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) .hero-badge {
                background: var(--primary-light);
                border-color: color-mix(in srgb, var(--primary) 40%, transparent);
            }
        }

        .hero h1 {
            font-family: var(--font-display);
            font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
            font-weight: 700;
            line-height: var(--leading-tight);
            letter-spacing: -0.02em;
            color: var(--fg);
            margin-bottom: 16px;
            position: relative;
            z-index: 1;
        }

        .hero p {
            font-size: var(--text-lg);
            color: var(--fg-muted);
            line-height: var(--leading-snug);
            max-width: 560px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        /* Hero responsive */
        @media (max-width: 480px) {
            .hero { padding: 16px 0 24px; }
            .hero h1 { font-size: clamp(var(--text-xl), 7vw, var(--text-2xl)); }
            .hero p { font-size: var(--text-base); }
            .hero-badge { padding: 4px 12px; font-size: var(--text-xs); margin-bottom: 16px; }
        }

        /* Filter categories */
        .filter-bar {
            display: flex;
            gap: 6px;
            margin-bottom: 24px;
            overflow-x: auto;
            padding: 4px 4px 8px;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .filter-bar::-webkit-scrollbar { display: none; }

        .filter-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: var(--radius);
            font-size: var(--text-sm);
            font-weight: 500;
            color: var(--fg-muted);
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
            white-space: nowrap;
            min-height: var(--touch-target);
            scroll-snap-align: start;
            flex-shrink: 0;
        }

        @media (hover: hover) and (pointer: fine) {
            .filter-btn:hover {
                border-color: var(--primary);
                color: var(--primary);
            }
        }
        .filter-btn:active { transform: scale(0.97); }

        .filter-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .filter-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }

        .filter-count {
            background: var(--bg-muted);
            color: var(--fg-muted);
            font-size: var(--text-xs);
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 999px;
            margin-left: 4px;
        }

        .filter-btn.active .filter-count {
            background: rgba(255,255,255,0.2);
            color: white;
        }

        /* Filter responsive */
        @media (max-width: 480px) {
            .filter-bar { gap: 4px; margin-bottom: 16px; padding: 4px 4px 6px; }
            .filter-btn { padding: 6px 10px; font-size: var(--text-xs); }
            .filter-count { font-size: var(--text-xs); padding: 2px 6px; }
        }

        /* Products grid */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        @media (max-width: 640px) {
            .products-grid { grid-template-columns: 1fr; }
        }

        .product-card {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Enhanced hover states - non-touch only */
        @media (hover: hover) and (pointer: fine) {
            .product-card:hover {
                border-color: var(--primary);
                box-shadow: var(--shadow-lg);
                transform: translateY(-2px);
            }
            .product-card:hover .product-image img { transform: scale(1.05); }
            .product-card:hover .product-image::after { opacity: 1; }
        }

        /* Touch active state */
        .product-card:active {
            transform: scale(0.99);
            border-color: var(--primary);
        }

        .product-card:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }

        /* Focus-visible state for keyboard navigation */
        @media (hover: hover) and (pointer: fine) {
            .product-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
        }

        /* Product card elevation on mobile */
        @media (max-width: 480px) {
            .product-card {
                border-radius: var(--radius-sm);
                margin-bottom: 4px;
            }
        }

        /* Hover effects only on non-touch devices */
        @media (hover: hover) and (pointer: fine) {
            .product-card:hover {
                border-color: var(--primary);
                box-shadow: var(--shadow-lg);
                transform: translateY(-2px);
            }
        }

        /* Touch active state */
        .product-card:active {
            transform: scale(0.99);
            border-color: var(--primary);
        }

        .product-card:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }

        /* Focus-visible state for keyboard navigation */
        @media (hover: hover) and (pointer: fine) {
            .product-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
        }

        /* Touch active state */
        .product-card:active {
            transform: scale(0.99);
            border-color: var(--primary);
        }

        .product-image {
            aspect-ratio: 16/10;
            background: var(--bg-muted);
            position: relative;
            overflow: hidden;
            display: block;
        }

        .product-image img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-image::before,
        .product-image::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: space-between;
            z-index: 2;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: var(--text-xs);
            font-weight: 600;
            white-space: nowrap;
            box-shadow: var(--shadow-sm);
        }

        .badge-new { background: var(--accent-light); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
        .badge-hot { background: #fef2f2; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
        .badge-sale { background: var(--primary-light); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
        :root[data-theme="dark"] .badge-hot { background: #450a0a; color: #fca5a5; border-color: #7f1d1d; }
        :root[data-theme="dark"] .badge-new { background: var(--accent-light); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
        :root[data-theme="dark"] .badge-sale { background: var(--primary-light); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }

        .category-icon {
            width: 28px;
            height: 28px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg);
            border: 1px solid var(--border);
            flex-shrink: 0;
        }
        .category-icon svg { width: 16px; height: 16px; color: var(--primary); }

        .product-content {
            padding: 16px;
            display: flex;
            flex-direction: column;
            flex: 1;
            gap: 12px;
        }

        .product-header {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 10px;
        }

        .product-category {
            font-size: var(--text-xs);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--fg-subtle);
            flex-shrink: 0;
            padding-top: 2px;
        }

        .product-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }

        .product-logo {
            width: 20px;
            height: 20px;
            object-fit: contain;
            border-radius: 4px;
        }

        .product-main-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--radius);
        }

        .product-title {
            font-family: var(--font-display);
            font-size: var(--text-lg);
            font-weight: 600;
            line-height: var(--leading-snug);
            color: var(--fg);
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
            min-width: 0;
        }

        .product-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .product-rating {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: var(--bg-muted);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
        }

        .stars {
            display: inline-flex;
            gap: 2px;
        }
        .star { width: 14px; height: 14px; color: var(--fg-subtle); flex-shrink: 0; }
        .star.filled { color: #fbbf24; }
        .rating-value { font-size: var(--text-sm); font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
        .rating-count { font-size: var(--text-xs); color: var(--fg-subtle); }

        .product-delivery {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: var(--text-xs);
            font-weight: 500;
            color: var(--primary);
            background: var(--primary-light);
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
        }

        :root[data-theme="dark"] .product-delivery { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }

        .product-guarantee {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: var(--text-xs);
            font-weight: 500;
            color: var(--fg-muted);
            padding: 4px 10px;
            background: var(--bg-muted);
            border-radius: 999px;
            border: 1px solid var(--border);
        }
        .product-guarantee svg { width: 13px; height: 13px; color: var(--primary); flex-shrink: 0; }

        .product-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 14px;
            border-top: 1px solid var(--border);
            margin-top: auto;
            gap: 12px;
            flex-wrap: wrap;
        }

        .product-price {
            font-family: var(--font-display);
            font-size: var(--text-2xl);
            font-weight: 700;
            color: var(--fg);
            line-height: 1;
        }

        .product-price .currency { font-size: var(--text-xl); font-weight: 500; color: var(--fg-muted); }

        .product-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .btn-icon {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            background: var(--bg-muted);
            border: 1px solid var(--border);
            color: var(--fg-muted);
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
            min-height: var(--touch-target);
        }
        @media (hover: hover) and (pointer: fine) {
            .btn-icon:hover { background: var(--bg); border-color: var(--border-strong); color: var(--fg); }
        }
        .btn-icon:active { transform: scale(0.95); }
        .btn-icon:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
        .btn-icon svg { width: 20px; height: 20px; }

        .btn-icon.wishlist.active { background: #fef2f2; border-color: var(--danger); color: var(--danger); }
        :root[data-theme="dark"] .btn-icon.wishlist.active { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            border-radius: var(--radius-sm);
            font-size: var(--text-sm);
            font-weight: 600;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
            white-space: nowrap;
            min-height: var(--touch-target);
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            border: 1px solid var(--primary);
        }

        @media (hover: hover) and (pointer: fine) {
            .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
        }
        .btn-primary:active { transform: scale(0.98); }
        .btn-primary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }

        /* Product card responsive improvements */
        @media (max-width: 480px) {
            .product-content { padding: 12px; gap: 10px; }
            .product-header { gap: 8px; margin-bottom: 8px; }
            .product-logo { width: 16px; height: 16px; }
            .product-main-image { border-radius: var(--radius-sm); }
            .product-title { font-size: var(--text-base); margin-bottom: 8px; }
            .product-meta { gap: 8px; margin-bottom: 10px; }
            .product-rating { padding: 3px 8px; }
            .stars { gap: 1px; }
            .star { width: 12px; height: 12px; }
            .rating-value { font-size: var(--text-xs); }
            .rating-count { font-size: var(--text-xs); }
            .product-delivery { font-size: var(--text-xs); padding: 3px 8px; }
            .product-guarantee { font-size: var(--text-xs); padding: 3px 8px; }
            .product-footer { padding-top: 10px; gap: 8px; }
            .product-price { font-size: var(--text-xl); }
            .product-price .currency { font-size: var(--text-base); }
            .btn-icon { width: 40px; height: 40px; }
            .btn { padding: 10px 16px; font-size: var(--text-xs); }
        }

        /* Product card animation delay for staggered entry */
        .product-card:nth-child(1) { animation-delay: 0s; }
        .product-card:nth-child(2) { animation-delay: 50ms; }
        .product-card:nth-child(3) { animation-delay: 100ms; }
        .product-card:nth-child(4) { animation-delay: 150ms; }
        .product-card:nth-child(5) { animation-delay: 200ms; }
        .product-card:nth-child(6) { animation-delay: 250ms; }
        .product-card:nth-child(7) { animation-delay: 300ms; }
        .product-card:nth-child(8) { animation-delay: 350ms; }
        .product-card:nth-child(9) { animation-delay: 400ms; }
        .product-card:nth-child(10) { animation-delay: 450ms; }
        .product-card:nth-child(11) { animation-delay: 500ms; }
        .product-card:nth-child(12) { animation-delay: 550ms; }

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

        .product-card {
            animation: fadeInUp 0.3s ease-out forwards;
        }

        .btn-secondary {
            background: var(--bg-elevated);
            color: var(--fg);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover { background: var(--bg-muted); border-color: var(--border-strong); }

        .btn-accent {
            background: var(--accent);
            color: white;
            border: 1px solid var(--accent);
        }

        .btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

        .btn-ghost {
            background: transparent;
            color: var(--fg-muted);
            border: 1px solid transparent;
        }

        .btn-ghost:hover { background: var(--bg-muted); color: var(--fg); }

        .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

        .btn-sm { padding: 8px 14px; font-size: var(--text-xs); }
        .btn-lg { padding: 14px 24px; font-size: var(--text-base); }

        /* Empty state */
        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 64px 24px;
            color: var(--fg-muted);
        }

        .empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: 0.5; }
        .empty-state h3 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: 8px; color: var(--fg); }

        /* Pagination */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 40px;
            flex-wrap: wrap;
            padding: 8px 0;
        }

        .page-btn {
            min-width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: var(--fg);
            font-weight: 500;
            font-size: var(--text-sm);
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
            min-height: var(--touch-target);
        }

        @media (hover: hover) and (pointer: fine) {
            .page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
        }
        .page-btn:active { transform: scale(0.95); }
        .page-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
        .page-btn svg { width: 20px; height: 20px; }

        /* Pagination responsive */
        @media (max-width: 480px) {
            .pagination { gap: 6px; margin-top: 32px; }
            .page-btn { min-width: 40px; height: 40px; font-size: var(--text-xs); }
            .page-btn:active { transform: scale(0.95); }
        }

        .page-ellipsis { color: var(--fg-subtle); padding: 0 4px; }

        /* Footer */
        footer {
            padding: 40px 0;
            border-top: 1px solid var(--border);
            background: var(--bg-elevated);
            margin-top: auto;
            position: relative;
            z-index: 1;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr minmax(0, 1fr);
            gap: 40px;
            margin-bottom: 32px;
            align-items: start;
        }

        @media (max-width: 768px) {
            .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
        }

        @media (max-width: 480px) {
            .footer-grid { grid-template-columns: 1fr; }
        }

        .footer-brand { max-width: 280px; }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: var(--font-display);
            font-weight: 700;
            font-size: var(--text-lg);
            color: var(--fg);
            margin-bottom: 12px;
        }

        .footer-brand p { font-size: var(--text-sm); color: var(--fg-muted); line-height: var(--leading-snug); }

        .footer-col h4 {
            font-family: var(--font-display);
            font-size: var(--text-sm);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--fg-subtle);
            margin-bottom: 16px;
        }

        .footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

        .footer-links a {
            font-size: var(--text-sm);
            color: var(--fg-muted);
            transition: color 0.15s ease;
            position: relative;
        }

        .footer-links a:hover { color: var(--primary); }
        .footer-links a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

        .footer-bottom {
            padding-top: 24px;
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
        }

        .footer-bottom p { font-size: var(--text-sm); color: var(--fg-subtle); }

        .footer-social { display: flex; gap: 12px; }

        .footer-social a {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            background: var(--bg-muted);
            color: var(--fg-muted);
            transition: background 0.15s ease, color 0.15s ease;
            min-height: var(--touch-target);
        }
        @media (hover: hover) and (pointer: fine) {
            .footer-social a:hover { background: var(--primary); color: white; }
        }
        .footer-social a:active { transform: scale(0.95); }
        .footer-social a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

        .footer-social svg { width: 18px; height: 18px; }

        /* Footer responsive */
        @media (max-width: 480px) {
            footer { padding: 32px 0; }
            .footer-brand { text-align: center; margin-bottom: 24px; }
            .footer-logo { justify-content: center; }
            .footer-col h4 { margin-top: 24px; margin-bottom: 12px; }
            .footer-bottom { justify-content: center; gap: 8px; }
            .footer-bottom p { font-size: var(--text-xs); }
            .footer-social { margin-top: 16px; }
        }

        /* Toast notifications */
        .toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .toast {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 18px;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            animation: slideIn 0.3s ease;
            min-width: 280px;
            max-width: calc(100vw - 32px);
        }

        @media (max-width: 480px) {
            .toast-container { left: 12px; right: 12px; bottom: 12px; }
            .toast { min-width: 0; max-width: 100%; }
        }

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

        /* Cart Modal */
        .cart-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 300;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }
        .cart-modal[aria-hidden="false"] {
            opacity: 1;
            pointer-events: auto;
        }

        .cart-modal-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1;
        }

        .cart-modal-content {
            position: relative;
            background: var(--bg-elevated);
            border-radius: var(--radius);
            max-width: 400px;
            width: 90%;
            max-height: 80%;
            display: flex;
            flex-direction: column;
            z-index: 2;
            box-shadow: var(--shadow-lg);
            overflow: hidden;
        }

        .cart-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            border-bottom: 1px solid var(--border);
        }

        .cart-modal-header h2 {
            font-family: var(--font-display);
            font-size: var(--text-xl);
            font-weight: 600;
            margin: 0;
        }

        .cart-modal-close {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            background: var(--bg-muted);
            color: var(--fg-muted);
            cursor: pointer;
        }
        .cart-modal-close:hover { background: var(--bg); color: var(--fg); }
        .cart-modal-close svg { width: 20px; height: 20px; }

        .cart-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
        }

        .cart-empty {
            text-align: center;
            padding: 48px 24px;
            color: var(--fg-muted);
        }
        .cart-empty svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.5; }
        .cart-empty p { margin: 0; font-size: var(--text-base); }

        .cart-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-bottom: 1px solid var(--border);
        }
        .cart-item:last-child { border-bottom: none; }

        .cart-item-image {
            display: none;
        }

        .cart-item-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .cart-item-name {
            font-family: var(--font-display);
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--fg);
        }

        .cart-item-price {
            font-size: var(--text-sm);
            color: var(--fg-muted);
        }

        .cart-item-quantity {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 4px;
        }
        .cart-item-quantity button {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            background: var(--bg-muted);
            color: var(--fg-muted);
            cursor: pointer;
        }
        .cart-item-quantity button:hover { background: var(--bg); color: var(--fg); }
        .cart-item-quantity span {
            font-size: var(--text-xs);
            color: var(--fg);
        }

        .cart-modal-footer {
            padding: 16px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-total {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: var(--text-lg);
        }
        .cart-total span:first-child {
            color: var(--fg-muted);
        }
        .cart-total-price {
            font-family: var(--font-display);
            font-weight: 600;
            color: var(--fg);
        }

        @media (max-width: 480px) {
            .cart-modal-content { width: calc(100% - 32px); }
            .cart-item { flex-direction: column; align-items: flex-start; }
        }

        .toast.success { border-left: 4px solid var(--primary); }
        .toast.error { border-left: 4px solid var(--danger); }

        .toast-icon { flex-shrink: 0; }
        .toast-message { flex: 1; font-size: var(--text-sm); color: var(--fg); }
        .toast-close { color: var(--fg-subtle); padding: 4px; }

        /* Loading skeleton */
        .skeleton { background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-elevated) 50%, var(--bg-muted) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
        @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        /* Pull to refresh */
        .ptr-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            pointer-events: none;
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: transform 0.2s ease;
            opacity: 0;
        }
        .ptr-container.ptr-visible { opacity: 1; transform: translateY(-60px); }
        .ptr-container.ptr-visible .ptr-content { transition: transform 0.15s ease; }

        .ptr-content {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 0 16px;
            height: 100%;
            pointer-events: none;
        }

        .ptr-spinner {
            width: 32px;
            height: 32px;
        }
        .ptr-spinner svg {
            transform: rotate(-90deg);
            animation: spin 1s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        .ptr-text {
            text-align: center;
            color: var(--fg-muted);
            font-size: var(--text-xs);
            transition: color 0.2s ease;
        }
        .ptr-text .ptr-instruction { font-weight: 500; }
        .ptr-text .ptr-release { opacity: 0; }
        .ptr-text .ptr-loading { color: var(--primary); font-weight: 600; }

        .ptr-container.ptr-pulled .ptr-text .ptr-instruction { opacity: 0; }
        .ptr-container.ptr-pulled .ptr-text .ptr-release { opacity: 1; }
        .ptr-container.ptr-loading .ptr-text .ptr-instruction { opacity: 0; }
        .ptr-container.ptr-loading .ptr-text .ptr-loading { opacity: 1; }
        .ptr-container.ptr-loading .ptr-text .ptr-release { opacity: 0; }

        .product-card.skeleton .product-image { aspect-ratio: 16/10; }
        .product-card.skeleton .product-header { height: 16px; width: 30%; margin-bottom: 10px; }
        .product-card.skeleton .product-title { height: 28px; width: 85%; margin-bottom: 10px; }
        .product-card.skeleton .product-meta { height: 28px; width: 70%; margin-bottom: 12px; }
        .product-card.skeleton .product-footer { padding-top: 14px; border-top: 1px solid var(--border); }
        .product-card.skeleton .product-price { height: 36px; width: 45%; }
        .product-card.skeleton .product-actions { height: 40px; width: 100px; }

        /* ============ AGENTCARD LAYER (light + dark) — signature components ============ */
        .hero h1 {
            font-weight: 900;
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            line-height: 1.05;
            letter-spacing: -0.02em;
            text-transform: uppercase;
            text-shadow: none;
        }
        .hero p { font-weight: 400; letter-spacing: -0.015em; }
        .logo { font-weight: 500; letter-spacing: -0.01em; }

        .btn-primary {
            background: var(--primary);
            border: 1px solid var(--primary-hover);
            box-shadow: rgba(255,255,255,0.34) 0 1px 0 0 inset, rgba(23,24,24,0.16) 0 -2px 0 0 inset, rgba(23,24,24,0.24) 0 1px 2px, rgba(0,0,255,0.18) 0 3px 8px;
        }
        .btn-primary:active { transform: none; box-shadow: rgba(255,255,255,0.34) 0 1px 0 0 inset, rgba(23,24,24,0.16) 0 -1px 0 0 inset, rgba(0,0,255,0.18) 0 1px 4px; }

        .product-card, .checkout-card, .cart-modal-content {
            background: var(--bg-elevated);
            border: 1px solid rgba(25,25,25,0.16);
            border-radius: 12px;
            box-shadow: rgba(255,255,255,0.9) 0 1px 0 0 inset, rgba(23,24,24,0.06) 0 -2px 0 0 inset, rgba(23,24,24,0.1) 7px 7px 0 0;
        }
        .cart-modal-content { border-radius: 20px; }
        @media (hover: hover) and (pointer: fine) {
            .product-card:hover { border-color: var(--primary); box-shadow: rgba(255,255,255,0.9) 0 1px 0 0 inset, rgba(23,24,24,0.06) 0 -2px 0 0 inset, rgba(23,24,24,0.1) 7px 7px 0 0, 0 0 0 1px var(--primary); }
        }

        .cart-modal-header {
            background: var(--primary-light);
            color: var(--primary);
            border-radius: 20px 20px 0 0;
            padding: 10px 16px;
            font-family: var(--font-mono);
            font-size: 10px;
            letter-spacing: 0.05em;
        }
        .cart-modal-header h2 { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.05em; }
        .cart-modal-close { color: var(--primary); }
        .cart-modal-close:hover { background: transparent; color: var(--primary-hover); }

        .filter-btn { background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: rgba(255,255,255,0.9) 0 1px 0 0 inset, rgba(23,24,24,0.06) 0 -1px 0 0 inset, rgba(23,24,24,0.1) 2px 2px 0 0; }
        .filter-btn.active { background: var(--primary); border-color: var(--primary-hover); color: white; box-shadow: rgba(255,255,255,0.34) 0 1px 0 0 inset, rgba(23,24,24,0.16) 0 -2px 0 0 inset, rgba(0,0,255,0.18) 0 3px 8px; }
        .filter-btn:active { transform: none; }

        footer {
            background: var(--primary);
            color: white;
            border-top: none;
        }
        footer .footer-brand p, footer .footer-col h4, footer .footer-logo { color: rgba(255,255,255,0.85); }
        footer .footer-col h4 { letter-spacing: 0.08em; font-weight: 500; }
        footer .footer-logo { font-weight: 500; font-size: var(--text-xl); }
        footer .footer-links a { color: rgba(255,255,255,0.75); }
        footer .footer-links a:hover { color: white; text-decoration: underline; }
        footer .footer-ctas {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 4px;
            margin-bottom: 24px;
        }
        footer .footer-btn {
            min-height: var(--touch-target);
            min-width: var(--touch-target);
            padding: 0 12px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: 1px solid rgba(255,255,255,0.5);
            border-radius: 8px;
            background: transparent;
            color: white;
            font-size: var(--text-sm);
            font-weight: 500;
            transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
            box-shadow: rgba(255,255,255,0.18) 0 1px 0 0 inset, rgba(0,0,0,0.15) 0 2px 6px;
        }
        footer .footer-btn:hover { background: rgba(255,255,255,0.14); border-color: white; }
        footer .footer-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
        footer .footer-btn:active { background: rgba(255,255,255,0.22); box-shadow: none; }
        footer .footer-btn:focus-visible { outline: 2px solid white; outline-offset: 2px; }
        footer .footer-bottom { color: rgba(255,255,255,0.6); border-top: 1px solid rgba(255,255,255,0.25); }

        :root[data-theme="dark"] .product-card, :root[data-theme="dark"] .checkout-card, :root[data-theme="dark"] .cart-modal-content { border-color: rgba(255,255,255,0.14); }
