        @font-face { font-family: Helvetica; src: url('<?php echo APP_URL; ?>/font/Helvetica.ttf'); font-weight: normal; font-style: normal; }
        :root {
            --purple-1: #210156;
            --purple-2: #310282;
            --purple-3: #8c09b9;
            --teal: #00f5d4;
            --teal-dark: #0db39e;
            --teal-bg: #e6fcf7;
            --gold: #ffcc00;
            --gold-deep: #f5b800;
            --ink: #17171c;
            --ink-soft: #4a4a52;
            --muted: #5c5c64;
            --line: #e0ddd6;
            --line-soft: #f1f5f9;
            --surface: #ffffff;
            --bg: #f8f9fc;
            --green: #059669;
            --amber: #b45309;
            --red: #dc2626;
            --radius: 16px;
            --shadow-sm: 0 2px 10px rgba(23, 23, 28, .06);
            --shadow-md: 0 12px 32px rgba(23, 23, 28, .12);
            --shadow-lg: 0 24px 48px -24px rgba(33, 1, 86, .35);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { overflow-x: hidden; scroll-behavior: smooth; }
        body {
            font-family: Helvetica, Arial, sans-serif;
            background: var(--surface);
            color: var(--ink);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }
        body.no-scroll { overflow: hidden; }
        a { color: inherit; text-decoration: none; }
        button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
        img { max-width: 100%; display: block; }
        .container { width: 90vw; max-width: 1180px; margin: 0 auto; }

        /* ============================================================
           HERO + SEARCH
           ============================================================ */
        .shop-hero {
            background: linear-gradient(135deg, #210156 0%, #310282 40%, #8c09b9 100%);
            padding: 78px 0 116px; color: #fff; position: relative; overflow: hidden;
        }
        .shop-hero::before {
            content: ''; position: absolute; top: -30%; right: -8%; width: 520px; height: 520px;
            background: radial-gradient(circle, rgba(0,245,212,.14) 0%, transparent 70%);
        }
        .shop-hero::after {
            content: ''; position: absolute; bottom: -35%; left: -6%; width: 460px; height: 460px;
            background: radial-gradient(circle, rgba(140,9,185,.28) 0%, transparent 70%);
        }
        .hero-wave-bottom { position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0; }
        .hero-wave-bottom svg { display: block; width: 100%; height: 60px; }

        .hero-inner { position: relative; z-index: 2; text-align: center; }
        .hero-eyebrow {
            display: inline-flex; align-items: center; gap: 10px;
            text-transform: uppercase; letter-spacing: 3px; font-size: 12.5px; font-weight: 700;
            color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
            padding: 9px 20px; border-radius: 100px; margin-bottom: 22px;
        }
        .shop-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -1.4px; font-weight: 800; margin-bottom: 18px; }
        .shop-hero h1 span { color: var(--teal); }
        .hero-lead { font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,.72); max-width: 60ch; margin: 0 auto 34px; }

        /* Big search bar in the hero */
        .hero-search { max-width: 760px; margin: 0 auto; }
        .hero-search form {
            display: flex; align-items: stretch; gap: 0; background: #fff;
            border-radius: 100px; padding: 8px; box-shadow: 0 26px 60px -24px rgba(0,0,0,.6);
        }
        .hero-search .hs-field { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 20px; min-width: 0; }
        .hero-search .hs-field i { color: var(--muted); font-size: 16px; flex-shrink: 0; }
        .hero-search input[type="search"] {
            flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15.5px; padding: 14px 0;
        }
        .hero-search input[type="search"]::placeholder { color: #9a9aa2; }
        .hero-search input:focus { outline: 0; }
        .hero-search .hs-divider { width: 1px; background: var(--line); flex-shrink: 0; }
        .hero-search select {
            border: 0; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
            padding: 14px 40px 14px 20px; cursor: pointer; appearance: none; -webkit-appearance: none; min-width: 0;
        }
        .hero-search select:focus { outline: 0; }
        .hero-search .hs-select-wrap { position: relative; display: flex; align-items: center; }
        .hero-search .hs-select-wrap i { position: absolute; right: 18px; color: var(--muted); font-size: 12px; pointer-events: none; }
        .hero-search button[type="submit"] {
            border: 0; cursor: pointer; border-radius: 100px; padding: 15px 34px;
            background: linear-gradient(135deg, #ffd633, var(--gold-deep)); color: #180b38;
            font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px;
            transition: transform .25s ease, box-shadow .25s ease;
        }
        .hero-search button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(245,184,0,.9); }

        .hero-tags { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 22px; }
        .hero-tag {
            padding: 8px 16px; border-radius: 100px; font-size: 12.5px; font-weight: 600;
            background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.78);
            transition: background .25s ease, color .25s ease;
        }
        .hero-tag:hover, .hero-tag.active { background: var(--teal); color: #04121a; border-color: var(--teal); }
        .hero-tag i { margin-right: 6px; }

        /* ============================================================
           LAYOUT: products + right sidebar
           ============================================================ */
        .shop-body { padding: 52px 0 80px; background: var(--bg); }
        .shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 34px; align-items: start; }

        /* Toolbar above the grid */
        .grid-toolbar {
            display: flex; align-items: center; justify-content: space-between; gap: 16px;
            flex-wrap: wrap; margin-bottom: 22px;
        }
        .grid-toolbar .gt-count { font-size: 14px; color: var(--muted); }
        .grid-toolbar .gt-count b { color: var(--ink); font-weight: 700; }
        .grid-toolbar .gt-right { display: flex; align-items: center; gap: 12px; }
        .grid-toolbar .gt-label { font-size: 13px; color: var(--muted); font-weight: 600; }
        .sort-select { position: relative; }
        .sort-select select {
            appearance: none; -webkit-appearance: none;
            padding: 11px 38px 11px 16px; border-radius: 12px; border: 1px solid var(--line);
            background: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer;
            transition: border-color .25s ease, box-shadow .25s ease;
        }
        .sort-select select:focus { outline: 0; border-color: var(--purple-3); box-shadow: 0 0 0 3px rgba(140,9,185,.12); }
        .sort-select i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; pointer-events: none; }

        /* Active filter chips */
        .active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
        .active-filters:empty { display: none; }
        .chip {
            display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px;
            background: var(--teal-bg); border: 1px solid rgba(13,179,158,.28); color: #0a6b5e;
            font-size: 12.5px; font-weight: 600;
        }
        .chip a { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(13,179,158,.18); transition: background .2s ease; }
        .chip a:hover { background: var(--red); color: #fff; }
        .chip-clear { background: #fff; border-color: var(--line); color: var(--ink-soft); }
        .chip-clear:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

        /* ============================================================
           PRODUCT GRID - every card identical
           ============================================================ */
        .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
        .p-card {
            /* positioned so the stretched title link below can cover the card */
            position: relative;
            display: flex; flex-direction: column; background: #fff;
            border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
        }
        .p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d9d3ea; }
        .p-card:focus-within { border-color: var(--purple-3); }
        .p-card.soldout .p-media img { filter: grayscale(.85) opacity(.6); }
        .p-card.soldout .p-title a { color: var(--muted); }

        /* Whole card is the hit area for the product detail page. The title
           carries the real link (good for SEO, middle-click and "open in new
           tab") and its ::after stretches that link over the card; the card's own
           buttons are stacked above the overlay so they keep working. */
        .p-title a { color: inherit; transition: color .25s ease; }
        .p-title a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
        .p-card:hover .p-title a { color: var(--purple-3); }
        .cart-line .cl-title a:hover { color: var(--purple-3); }

        .p-media { position: relative; aspect-ratio: 1 / 1; background: var(--line-soft); overflow: hidden; }
        .p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
        .p-card:hover .p-media img { transform: scale(1.06); }

        .p-flag {
            position: absolute; top: 12px; left: 12px; z-index: 2;
            padding: 6px 13px; border-radius: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
            background: var(--purple-3); color: #fff;
        }
        .p-flag.sale { background: linear-gradient(135deg, #f43f5e, #e11d48); }
        .p-flag.out { background: var(--ink); }
        .p-flag.low { background: var(--gold); color: #3d2c00; }

        /* z-index 3 keeps the wishlist button clickable above the card-wide link
           overlay created by .p-title a::after. .p-media must not create a
           stacking context, or it would trap this button underneath. */
        .p-wish {
            position: absolute; top: 12px; right: 12px; z-index: 3;
            width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
            background: rgba(255,255,255,.94); color: var(--muted); font-size: 15px;
            display: grid; place-items: center; box-shadow: var(--shadow-sm);
            transition: color .25s ease, transform .25s ease;
        }
        .p-wish:hover { color: #e11d48; transform: scale(1.1); }
        .p-wish.on { color: #e11d48; }

        /* Quick view is a pill that slides up over the image on hover. Touch
           devices get no hover, so @media (hover: none) keeps it on screen. */
        .p-view {
            position: absolute; left: 50%; bottom: 14px; z-index: 3;
            display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
            padding: 9px 17px; border: 0; border-radius: 999px; cursor: pointer;
            background: rgba(255,255,255,.95); color: var(--ink);
            font-size: 12.5px; font-weight: 700;
            box-shadow: 0 12px 26px -14px rgba(24,16,48,.6);
            opacity: 0; pointer-events: none;
            transform: translateX(-50%) translateY(8px);
            transition: opacity .25s ease, transform .25s ease, background .25s ease;
        }
        .p-view i { color: var(--purple-3); }
        .p-view:hover { background: #fff; }
        .p-card:hover .p-view, .p-card:focus-within .p-view, .p-view:focus-visible {
            opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
        }
        @media (hover: none) {
            .p-view { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
        }

        .p-body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }
        .p-cat {
            align-self: flex-start;
            padding: 4px 10px; border-radius: 999px;
            background: rgba(140,9,185,.08);
            font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase;
            font-weight: 700; color: var(--purple-3);
        }
        /* clamp at 2 lines and reserve 2 lines of height, so the price block of
           every card in a row starts on the same line without wasted slack */
        .p-title {
            font-size: 15.5px; font-weight: 700; line-height: 1.38; margin: 11px 0 0;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
            min-height: 2.76em;
        }

        .p-foot { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line-soft); }
        .p-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 13px; }
        .p-price b { font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -.6px; transition: color .25s ease; }
        .p-price s { font-size: 13px; color: var(--muted); }
        .p-card:hover .p-price b { color: var(--purple-3); }
        .p-actions { display: flex; gap: 9px; }
        /* position + z-index 3 lifts the button above the card-wide link overlay
           so it stays clickable while the rest of the card navigates. */
        .p-add {
            position: relative; z-index: 3;
            flex: 1; padding: 13px; border-radius: 12px; cursor: pointer; border: 0;
            font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            background: linear-gradient(135deg, var(--purple-2), var(--purple-3)); color: #fff;
            transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
        }
        .p-add:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(140,9,185,.95); }
        .p-add:disabled { background: var(--line-soft); color: var(--muted); cursor: not-allowed; }
        .p-add.added { background: linear-gradient(135deg, #059669, #10b981); }

        /* ============================================================
           SIDEBAR
           ============================================================ */
        .sidebar { position: sticky; top: 24px; }
        .filter-panel {
            background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
            box-shadow: var(--shadow-sm); overflow: hidden;
        }
        .filter-head {
            display: flex; align-items: center; justify-content: space-between; gap: 12px;
            padding: 18px 20px; border-bottom: 1px solid var(--line-soft); background: var(--bg);
        }
        .filter-head h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
        .filter-head h3 i { color: var(--purple-3); }
        .filter-head a { font-size: 12px; font-weight: 700; color: var(--purple-3); }
        .filter-head a:hover { text-decoration: underline; }

        .filter-block { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
        .filter-block:last-of-type { border-bottom: 0; }
        .filter-block h4 { font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 13px; }

        .check-list { display: flex; flex-direction: column; gap: 11px; max-height: 232px; overflow-y: auto; padding-right: 4px; }
        .check-list::-webkit-scrollbar { width: 5px; }
        .check-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; }
        .check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink-soft); }
        .check input { position: absolute; opacity: 0; width: 0; height: 0; }
        .check .box {
            width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); background: #fff;
            display: grid; place-items: center; flex-shrink: 0; transition: all .2s ease;
        }
        .check .box::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; color: #fff; opacity: 0; transition: opacity .15s ease; }
        .check input:checked + .box { background: var(--purple-3); border-color: var(--purple-3); }
        .check input:checked + .box::after { opacity: 1; }
        .check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(140,9,185,.2); }
        .check:hover .box { border-color: var(--purple-3); }
        .check .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .check .cnt { font-size: 11.5px; color: var(--muted); font-weight: 600; }

        .price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; }
        .price-inputs .dash { color: var(--muted); font-size: 13px; }
        .price-inputs input {
            width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
            font-size: 13.5px; min-width: 0; transition: border-color .25s ease, box-shadow .25s ease;
        }
        .price-inputs input:focus { outline: 0; border-color: var(--purple-3); box-shadow: 0 0 0 3px rgba(140,9,185,.12); }
        .price-hint { font-size: 11.5px; color: var(--muted); margin-top: 9px; }

        .filter-apply { padding: 16px 20px 20px; background: var(--bg); border-top: 1px solid var(--line-soft); }
        .btn-apply {
            width: 100%; padding: 14px; border: 0; border-radius: 12px; cursor: pointer;
            background: linear-gradient(135deg, var(--purple-2), var(--purple-3)); color: #fff;
            font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
            transition: transform .25s ease, box-shadow .25s ease;
        }
        .btn-apply:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(140,9,185,.95); }

        .sidebar-promo {
            margin-top: 20px; border-radius: var(--radius); padding: 24px 22px; color: #fff;
            background: linear-gradient(135deg, var(--purple-1), var(--purple-3)); position: relative; overflow: hidden;
        }
        .sidebar-promo::after {
            content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
            background: var(--teal); opacity: .18; filter: blur(60px); top: -70px; right: -60px;
        }
        .sidebar-promo > * { position: relative; z-index: 1; }
        .sidebar-promo .sp-ico { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 19px; margin-bottom: 14px; }
        .sidebar-promo h4 { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
        .sidebar-promo p { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.6; margin-bottom: 16px; }
        .sidebar-promo a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--teal); }
        .sidebar-promo a:hover { gap: 12px; }

        /* Mobile filter toggle */
        .filter-toggle-btn {
            display: none; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 12px;
            border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13.5px; font-weight: 700;
        }
        .filter-toggle-btn i:first-child { color: var(--purple-3); }
        .filter-toggle-btn .ft-badge { background: var(--purple-3); color: #fff; border-radius: 100px; padding: 1px 8px; font-size: 11px; }

        /* ============================================================
           STATES / PAGINATION
           ============================================================ */
        .empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 24px; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); }
        .empty-state .es-ico { width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 22px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, var(--purple-2), var(--purple-3)); color: #fff; }
        .empty-state h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
        .empty-state p { color: var(--muted); font-size: 14.5px; max-width: 46ch; margin: 0 auto 22px; }
        .btn-solid { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--purple-2), var(--purple-3)); color: #fff; font-size: 14px; font-weight: 700; transition: transform .25s ease; }
        .btn-solid:hover { transform: translateY(-2px); }

        .pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 38px; flex-wrap: wrap; }
        .page-btn { min-width: 42px; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--muted); display: inline-grid; place-items: center; transition: all .25s ease; }
        .page-btn:hover:not(:disabled) { border-color: var(--purple-3); color: var(--purple-3); }
        .page-btn.active { background: linear-gradient(135deg, var(--purple-2), var(--purple-3)); color: #fff; border-color: transparent; }
        .page-btn:disabled { opacity: .4; cursor: not-allowed; }

        /* ============================================================
           TRUST STRIP
           ============================================================ */
        .trust-row { background: #fff; border-top: 1px solid var(--line-soft); padding: 40px 0; }
        .trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
        .trust-item { display: flex; gap: 14px; align-items: flex-start; }
        .trust-item .ti-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
        .trust-item:nth-child(1) .ti-ico { background: var(--teal-bg); color: var(--teal-dark); }
        .trust-item:nth-child(2) .ti-ico { background: #f3ecfb; color: var(--purple-3); }
        .trust-item:nth-child(3) .ti-ico { background: #fff6e0; color: #b45309; }
        .trust-item:nth-child(4) .ti-ico { background: #eaf7f2; color: var(--green); }
        .trust-item h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
        .trust-item p { font-size: 13px; color: var(--muted); line-height: 1.55; }

        /* ============================================================
           CART
           ============================================================ */
        .cart-fab {
            position: fixed; right: 26px; bottom: 26px; z-index: 90; height: 56px; padding: 0 22px;
            border-radius: 100px; border: 0; cursor: pointer; color: #fff; font-weight: 700; font-size: 14.5px;
            background: linear-gradient(135deg, var(--purple-1), var(--purple-3));
            box-shadow: 0 20px 40px -18px rgba(140,9,185,.95);
            display: inline-flex; align-items: center; gap: 12px; transition: transform .3s ease, box-shadow .3s ease;
        }
        .cart-fab:hover { transform: translateY(-4px); }
        .cart-fab .fab-ico { position: relative; font-size: 17px; }
        .cart-fab .fab-count { position: absolute; top: -9px; right: -12px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 100px; background: var(--teal); color: #04121a; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
        .cart-fab .fab-sum { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.25); }
        .cart-fab.bump { animation: bump .5s ease; }
        @keyframes bump { 0%,100% { transform: scale(1); } 35% { transform: scale(1.1) rotate(-2deg); } 70% { transform: scale(.97); } }

        .cart-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(23,23,28,.5); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; }
        .cart-overlay.on { opacity: 1; visibility: visible; }

        .cart-drawer {
            position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); z-index: 96; background: #fff;
            display: flex; flex-direction: column; transform: translateX(102%);
            transition: transform .4s ease; box-shadow: -24px 0 60px -30px rgba(23,23,28,.6);
        }
        .cart-drawer.on { transform: translateX(0); }
        .cart-head { padding: 20px 22px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--bg); }
        .cart-head h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
        .cart-head h3 i { color: var(--purple-3); }
        .cart-head .ch-count { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 100px; background: var(--purple-3); color: #fff; }
        .cart-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); transition: all .3s ease; }
        .cart-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(90deg); }

        .ship-meter { padding: 14px 22px; border-bottom: 1px solid var(--line-soft); }
        .ship-meter .sm-txt { font-size: 12.5px; margin-bottom: 8px; color: var(--muted); }
        .ship-meter .sm-txt b { color: var(--ink); }
        .ship-meter .sm-track { height: 6px; border-radius: 100px; background: var(--line-soft); overflow: hidden; }
        .ship-meter .sm-fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--teal-dark), var(--purple-3)); transition: width .5s ease; }

        .cart-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
        .cart-body::-webkit-scrollbar { width: 6px; }
        .cart-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; }
        .cart-line { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
        .cart-line .cl-media { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--line-soft); }
        .cart-line .cl-media img { width: 100%; height: 100%; object-fit: cover; }
        .cart-line .cl-info { flex: 1; min-width: 0; }
        .cart-line .cl-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .cart-line .cl-unit { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
        .cart-line .cl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
        .qty button { width: 29px; height: 29px; border: 0; background: #fff; cursor: pointer; color: var(--muted); font-size: 11px; transition: background .2s ease, color .2s ease; }
        .qty button:hover:not(:disabled) { background: var(--purple-3); color: #fff; }
        .qty button:disabled { opacity: .35; cursor: not-allowed; }
        .qty span { min-width: 28px; text-align: center; font-size: 13px; font-weight: 700; }
        .cart-line .cl-total { font-size: 14px; font-weight: 800; }
        .cl-remove { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 4px; transition: color .2s ease; }
        .cl-remove:hover { color: var(--red); }
        .cart-empty { text-align: center; padding: 60px 20px; }
        .cart-empty .ce-ico { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; font-size: 26px; background: var(--bg); color: var(--muted); }
        .cart-empty h4 { font-size: 17px; font-weight: 800; margin-bottom: 7px; }
        .cart-empty p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

        .cart-foot { padding: 18px 22px; border-top: 1px solid var(--line-soft); background: var(--bg); }
        .cart-totals { display: grid; gap: 8px; margin-bottom: 14px; }
        .cart-totals .ct-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
        .cart-totals .ct-row.grand { font-size: 17px; font-weight: 800; color: var(--ink); padding-top: 10px; border-top: 1px dashed var(--line); }
        .cart-totals .ct-row.grand b { font-size: 20px; }
        .checkout-btn { width: 100%; padding: 15px; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, #ffd633, var(--gold-deep)); color: #180b38; font-size: 15px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .25s ease, box-shadow .25s ease; }
        .checkout-btn:hover:not([aria-disabled="true"]) { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(245,184,0,.9); }
        /* the drawer Checkout button is a real link (it goes to its own page), so the
           empty-cart state is expressed with aria-disabled rather than :disabled */
        .checkout-btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; pointer-events: none; }
        .cart-foot .cf-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 12px; }
        .cart-foot .cf-note i { color: var(--green); }

        /* ============================================================
           MODALS
           ============================================================ */
        .modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(23,23,28,.6); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
        .modal.on { opacity: 1; visibility: visible; }
        .modal-panel { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 20px; position: relative; transform: translateY(22px); opacity: 0; transition: transform .35s ease, opacity .3s ease; }
        .modal.on .modal-panel { transform: translateY(0); opacity: 1; }
        .modal-panel--wide { width: min(860px, 100%); }
        .modal-close { position: absolute; top: 15px; right: 15px; z-index: 6; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(23,23,28,.65); color: #fff; transition: transform .3s ease, background .3s ease; }
        .modal-close:hover { transform: rotate(90deg); background: var(--red); }

        .qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { position: relative; background: var(--line-soft); }
.qv-media .qv-main { position: relative; }
.qv-media .qv-main img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.qv-media .qv-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; padding: 10px; border-top: 1px solid var(--line-soft); }
.qv-media .qv-thumb { display: block; border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; background: none; cursor: pointer; aspect-ratio: 1 / 1; }
.qv-media .qv-thumb.is-active { border-color: var(--purple-3); }
.qv-media .qv-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.qv-media .qv-off { position: absolute; top: 15px; left: 15px; padding: 6px 14px; border-radius: 8px; background: #e11d48; color: #fff; font-size: 12px; font-weight: 800; }
        .qv-body { padding: 28px 26px; }
        .qv-body .qv-cat { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 800; color: var(--purple-3); }
        .qv-body h3 { font-size: 21px; font-weight: 800; line-height: 1.3; margin: 9px 0 12px; }
        .qv-body .qv-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
        .qv-body .qv-price b { font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
        .qv-body .qv-price s { font-size: 14px; color: var(--muted); }
        .qv-body p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
        .qv-stock { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 700; margin-bottom: 18px; }
        .qv-actions { display: flex; gap: 11px; align-items: center; }
        .qv-actions .p-add { flex: 1; padding: 14px; }

        /* checkout now lives on its own page (/pages/store/checkout); it owns its
           own .co-* layout styles in pages/store/checkout.php */
        .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
        .field { display: flex; flex-direction: column; gap: 6px; }
        .field.full { grid-column: 1 / -1; }
        .field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
        .field label .req { color: var(--red); }
        .field input, .field textarea { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; transition: border-color .25s ease, box-shadow .25s ease; }
        .field textarea { resize: vertical; min-height: 80px; }
        .field input:focus, .field textarea:focus { outline: 0; border-color: var(--purple-3); box-shadow: 0 0 0 3px rgba(140,9,185,.12); }
        .form-error { margin-top: 16px; padding: 13px 16px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13px; }
        .form-error ul { margin: 6px 0 0 18px; }
        .alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
        .alert-warning { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
        .alert i { flex-shrink: 0; margin-top: 2px; }
        .co-submit { width: 100%; margin: 0; padding: 15px; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, var(--purple-2), var(--purple-3)); color: #fff; font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .25s ease, background .25s ease; }
        .co-submit:hover:not(:disabled) { transform: translateY(-2px); }
        .co-submit:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

        .success { padding: 44px 32px 36px; text-align: center; }
        .success .su-ring { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #059669, var(--teal-dark)); color: #fff; font-size: 36px; }
        .success h3 { font-size: 23px; font-weight: 800; margin-bottom: 8px; }
        .success > p { font-size: 14px; color: var(--muted); max-width: 44ch; margin: 0 auto 22px; }
        .order-ticket { border: 1px dashed var(--line); border-radius: 16px; padding: 17px; background: var(--bg); margin-bottom: 20px; text-align: left; }
        .order-ticket .ot-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; padding: 5px 0; }
        .order-ticket .ot-row span { color: var(--muted); }
        .order-ticket .ot-row b { font-weight: 800; }
        .success .su-actions { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }
        .success .pay-box { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 15px 16px; margin: 0 auto 18px; max-width: 340px; }
        .success .pay-box-lbl { font-size: 12.5px; color: var(--muted); margin: 0 0 9px; }
        .success .pay-box-lbl b { color: var(--ink); }
        .success .pay-acct { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
        .success .pay-acct span { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); width: 100%; }
        .success .pay-acct b { font-size: 18px; letter-spacing: .6px; font-weight: 800; }
        .success .copy-btn { margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
        .success .copy-btn:hover { border-color: var(--brand); color: var(--brand); }
        .success .su-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }

        /* ============================================================
           TOASTS
           ============================================================ */
        .toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; width: min(420px, calc(100vw - 32px)); }
        .toast { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-md); font-size: 13.5px; font-weight: 600; transform: translateY(20px); opacity: 0; transition: transform .35s ease, opacity .3s ease; pointer-events: auto; }
        .toast.in { transform: translateY(0); opacity: 1; }
        .toast .t-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
        .toast.ok .t-ico { background: rgba(16,185,129,.22); color: #34d399; }
        .toast.err .t-ico { background: rgba(239,68,68,.22); color: #fca5a5; }
        .toast.info .t-ico { background: rgba(140,9,185,.22); color: #e9d5ff; }
        .toast .t-txt b { display: block; }
        .toast .t-txt span { font-size: 12.5px; color: rgba(255,255,255,.6); }

        .whatsapp-chat { position: fixed; left: 22px; bottom: 22px; z-index: 88; }
        .whatsapp-chat a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: #25d366; color: #fff; box-shadow: 0 14px 30px -14px rgba(37,211,102,.95); transition: transform .3s ease; }
        .whatsapp-chat a:hover { transform: scale(1.08); }

        /* ============================================================
           RESPONSIVE
           ============================================================ */
        @media (max-width: 1024px) {
            .shop-layout { grid-template-columns: 1fr; }
            .sidebar { position: static; order: -1; }
            .sidebar-promo { display: none; }
            .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .filter-toggle-btn { display: inline-flex; }
            .sidebar { display: none; }
            .sidebar.open { display: block; }
        }
        @media (max-width: 900px) {
            .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .trust-grid { grid-template-columns: repeat(2, 1fr); }
            .qv { grid-template-columns: 1fr; }
            .qv-media img { min-height: 210px; }
        }
        @media (max-width: 620px) {
            .shop-hero { padding: 56px 0 100px; }
            .hero-search form { flex-wrap: wrap; border-radius: 22px; padding: 12px; gap: 10px; }
            .hero-search .hs-field { flex: 1 1 100%; padding: 0 12px; }
            .hero-search .hs-divider { display: none; }
            .hero-search .hs-select-wrap { flex: 1 1 100%; }
            .hero-search select { width: 100%; padding: 12px 36px 12px 14px; }
            .hero-search .hs-select-wrap i { right: 14px; }
            .hero-search button[type="submit"] { flex: 1 1 100%; justify-content: center; }
            .product-grid { grid-template-columns: 1fr; }
            .trust-grid { grid-template-columns: 1fr; gap: 20px; }
            .field-grid { grid-template-columns: 1fr; }
            .cart-fab { right: 16px; bottom: 16px; height: 52px; padding: 0 18px; }
            .whatsapp-chat { left: 16px; bottom: 82px; }
        }

        /* ============================================================
           PRODUCT DETAIL PAGE (/pages/store/product)
           ============================================================ */
        .pd-shell { background: var(--bg); padding: 26px 0 70px; }

        .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
        .crumbs a { color: var(--muted); transition: color .2s ease; }
        .crumbs a:hover { color: var(--purple-3); }
        .crumbs .sep { color: var(--line); }
        .crumbs .cur { color: var(--ink); font-weight: 600; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        .pd-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }

        /* --- Gallery --- */
        .pd-gallery { position: sticky; top: 24px; }
        .pd-stage {
            position: relative; background: #fff; border: 1px solid var(--line-soft);
            border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
            aspect-ratio: 1 / 1;
        }
        .pd-stage img { width: 100%; height: 100%; object-fit: cover; }
        .pd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
        .pd-thumb {
            width: 74px; height: 74px; padding: 0; cursor: pointer; overflow: hidden;
            border: 2px solid var(--line-soft); border-radius: 12px; background: #fff;
            transition: border-color .2s ease, transform .2s ease;
        }
        .pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .pd-thumb:hover { transform: translateY(-2px); }
        .pd-thumb.is-active { border-color: var(--purple-3); }

        /* --- Info --- */
        .pd-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
        .pd-tag { padding: 6px 12px; border-radius: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; background: var(--purple-3); color: #fff; }
        .pd-tag.sale { background: linear-gradient(135deg, #f43f5e, #e11d48); }
        .pd-tag.featured { background: var(--purple-1); }
        .pd-tag.out { background: var(--ink); }

        .pd-title { font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.6px; margin-bottom: 12px; }
        .pd-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 8px; }
        .pd-price { font-size: 30px; font-weight: 800; letter-spacing: -.8px; }
        .pd-was { font-size: 16px; color: var(--muted); }
        .pd-save { padding: 5px 11px; border-radius: 8px; background: #fef2f2; color: var(--red); font-size: 12px; font-weight: 800; }
        .pd-tax { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

        .pd-stock { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; margin-bottom: 22px; }
        .pd-stock i { font-size: 7px; }
        .pd-stock.ok { background: var(--teal-bg); color: var(--teal-dark); }
        .pd-stock.low { background: #fff6e0; color: var(--amber); }
        .pd-stock.out { background: #fef2f2; color: var(--red); }

        .pd-desc { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); white-space: pre-line; margin-bottom: 26px; }

        .pd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
        .pd-buy .qty { border-radius: 12px; }
        .pd-buy .qty button { width: 44px; height: 46px; }
        .pd-buy .qty span { min-width: 40px; font-size: 15px; }
        .pd-add-main {
            flex: 1 1 220px; padding: 15px 24px; border: 0; border-radius: 12px; cursor: pointer;
            background: linear-gradient(135deg, var(--purple-2), var(--purple-3)); color: #fff;
            font-size: 14.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
            transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
        }
        .pd-add-main:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(140,9,185,.95); }
        .pd-add-main:disabled { background: var(--line-soft); color: var(--muted); cursor: not-allowed; }
        .pd-add-main.added { background: linear-gradient(135deg, #059669, #10b981); }
        .pd-wish {
            flex: 0 0 50px; width: 50px; height: 50px; border-radius: 12px; cursor: pointer;
            border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 17px;
            display: grid; place-items: center; transition: color .25s ease, border-color .25s ease, transform .25s ease;
        }
        .pd-wish:hover { transform: translateY(-2px); }
        .pd-wish.on { color: #e11d48; border-color: #f9c2d0; }

        .pd-meta { border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; overflow: hidden; margin-bottom: 26px; }
        .pd-meta-row { display: flex; gap: 14px; padding: 13px 18px; font-size: 13.5px; }
        .pd-meta-row + .pd-meta-row { border-top: 1px solid var(--line-soft); }
        .pd-meta-row i { width: 18px; color: var(--purple-3); margin-top: 3px; }
        .pd-meta-row span { color: var(--muted); flex: 0 0 92px; }
        .pd-meta-row b { font-weight: 700; }

        .pd-actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
        .pd-ghost {
            display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 12px;
            border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer;
            transition: background .25s ease, transform .25s ease;
        }
        .pd-ghost:hover { background: var(--line-soft); transform: translateY(-2px); }

        /* --- Related --- */
        .pd-related { margin-top: 62px; }
        .pd-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
        .pd-related-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
        .pd-related-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
        .pd-related-head a { font-size: 13.5px; font-weight: 700; color: var(--purple-3); white-space: nowrap; }

        @media (max-width: 980px) {
            .pd-top { grid-template-columns: 1fr; gap: 28px; }
            .pd-gallery { position: static; }
            .pd-title { font-size: 25px; }
            .pd-price { font-size: 26px; }
        }
        @media (max-width: 620px) {
            .pd-shell { padding: 18px 0 52px; }
            .pd-buy .qty { width: 100%; justify-content: space-between; }
            .pd-meta-row { flex-direction: column; gap: 4px; }
            .pd-meta-row span { flex: none; }
            .pd-title { font-size: 22px; }
        }
