
        /* ═══════════════════════════════════════════
   CSS VARIABLES & RESET
═══════════════════════════════════════════ */
        :root {
            --bg: #f5f7fa;
            --surface: #ffffff;
            --surface2: #f0f4f8;
            --border: #dde4ed;
            --border2: #eaeff6;
            --text: #0f1923;
            --text2: #4a5e72;
            --text3: #94a3b8;
            --accent: #0051cc;
            --accent-l: #e8f0fb;
            --accent-d: #003d99;
            --green: #00875a;
            --green-l: #e3f9ed;
            --orange: #b54708;
            --orange-l: #fef3c7;
            --red: #be123c;
            --red-l: #ffe4e6;
            --gold: #d97706;
            --shadow: 0 2px 10px rgba(15, 25, 35, .07);
            --shadow-lg: 0 12px 40px rgba(15, 25, 35, .12);
            --radius: 14px;
            --mono: 'DM Mono', monospace;
            --sans: 'Sarabun', sans-serif;
            --display: 'Sarabun', sans-serif;
            --topbar-h: 64px;
            --cart-w: 360px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0
        }

        html {
            font-size: 16px;
            scroll-behavior: smooth
        }

        body {
            background: var(--bg);
            font-family: var(--sans);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden
        }

        ::-webkit-scrollbar {
            width: 5px;
            height: 5px
        }

        ::-webkit-scrollbar-track {
            background: var(--border2)
        }

        ::-webkit-scrollbar-thumb {
            background: #b0c4d8;
            border-radius: 4px
        }

        /* ═══ REPORT TOGGLE ═══ */
        .report-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
            padding: 10px 12px;
            background: var(--surface2);
            border: 1.5px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            transition: all .15s;
        }

        .report-toggle:hover {
            border-color: var(--accent);
            background: var(--accent-l)
        }

        .report-toggle input {
            accent-color: var(--accent);
            width: 15px;
            height: 15px;
            cursor: pointer
        }

        .report-toggle label {
            font-size: .82rem;
            font-weight: 700;
            color: var(--text);
            cursor: pointer;
            user-select: none
        }

        .report-toggle .rt-sub {
            font-size: .7rem;
            color: var(--text2);
            font-family: var(--mono)
        }

        /* ═══ CARD THUMB PREVIEW ═══ */
        .pcard-thumb-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: .85;
            transition: opacity .2s;
        }

        .pcard:hover .pcard-thumb-img {
            opacity: 1
        }

        /* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
        .topbar {
            position: sticky;
            top: 0;
            z-index: 200;
            height: var(--topbar-h);
            background: var(--accent);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 28px;
            box-shadow: 0 3px 16px rgba(0, 81, 204, .25);
        }

        .topbar-brand {
            display: flex;
            align-items: center;
            gap: 14px
        }

        .topbar-logo {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(255, 255, 255, .15);
            border: 1px solid rgba(255, 255, 255, .25);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .topbar-title {
            color: #fff;
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: .3px
        }

        .topbar-sub {
            color: rgba(255, 255, 255, .65);
            font-size: .72rem;
            margin-top: 1px;
            letter-spacing: .5px
        }

        .topbar-right {
            display: flex;
            align-items: center;
            gap: 12px
        }

        .btn-back {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .25);
            color: #fff;
            border-radius: 8px;
            padding: 7px 14px;
            font-size: .82rem;
            font-weight: 600;
            cursor: pointer;
            font-family: var(--sans);
            text-decoration: none;
            transition: all .15s;
        }

        .btn-back:hover {
            background: rgba(255, 255, 255, .22)
        }

        .cart-badge-btn {
            position: relative;
            background: #fff;
            color: var(--accent);
            border: none;
            border-radius: 10px;
            padding: 8px 16px;
            font-size: .88rem;
            font-weight: 800;
            cursor: pointer;
            font-family: var(--sans);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all .15s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
        }

        .cart-badge-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 0, 0, .18)
        }

        .cart-badge {
            position: absolute;
            top: -7px;
            right: -7px;
            background: var(--red);
            color: #fff;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            font-size: .65rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff;
            transition: transform .2s;
        }

        .cart-badge.bump {
            animation: bump .3s ease
        }

        @keyframes bump {

            0%,
            100% {
                transform: scale(1)
            }

            50% {
                transform: scale(1.35)
            }
        }

        /* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
        .hero {
            background: linear-gradient(135deg, var(--accent) 0%, #0040a8 60%, #003380 100%);
            padding: 20px 28px 24px;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }

        .hero-content {
            position: relative;
            max-width: 700px
        }

        .hero-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .2);
            color: rgba(255, 255, 255, .85);
            border-radius: 20px;
            padding: 3px 10px;
            font-size: .68rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .hero h1 {
            font-size: 1.4rem;
            font-weight: 800;
            color: #fff;
            line-height: 1.25;
            margin-bottom: 6px;
        }

        .hero h1 span {
            color: #7eb8ff
        }

        .hero p {
            font-size: .82rem;
            color: rgba(255, 255, 255, .7);
            line-height: 1.6;
            max-width: 560px;
            display: none
        }

        .hero-stats {
            display: flex;
            gap: 22px;
            margin-top: 12px;
            flex-wrap: wrap
        }

        .hstat {
            color: #fff
        }

        .hstat-num {
            font-size: 1.3rem;
            font-weight: 800;
            font-family: var(--mono);
            line-height: 1
        }

        .hstat-lbl {
            font-size: .7rem;
            color: rgba(255, 255, 255, .65);
            margin-top: 3px;
            text-transform: uppercase;
            letter-spacing: .8px
        }

        /* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
        .page-body {
            display: grid;
            grid-template-columns: 1fr var(--cart-w);
            gap: 0;
            min-height: calc(100vh - var(--topbar-h));
            align-items: start;
        }

        /* ═══════════════════════════════════════════
   LEFT PANEL (Products)
═══════════════════════════════════════════ */
        .products-panel {
            padding: 24px 28px;
            overflow-x: hidden
        }

        /* FILTER BAR */
        .filter-bar {
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: var(--radius);
            padding: 18px 20px;
            margin-bottom: 20px;
            box-shadow: var(--shadow);
        }

        .filter-bar-title {
            font-size: .72rem;
            font-weight: 800;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .filter-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: flex-end
        }

        .fg2 {
            display: flex;
            flex-direction: column;
            gap: 4px
        }

        .fg2 label {
            font-size: .7rem;
            font-weight: 700;
            color: var(--text2);
            text-transform: uppercase;
            letter-spacing: .5px
        }

        .fg2 input,
        .fg2 select {
            background: var(--surface2);
            border: 1.5px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: var(--sans);
            font-size: .85rem;
            padding: 8px 11px;
            outline: none;
            transition: border-color .15s;
            min-width: 130px;
        }

        .fg2 input:focus,
        .fg2 select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(0, 81, 204, .08)
        }

        .fg2 select option {
            background: #fff
        }

        .filter-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px
        }

        .chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 11px;
            border-radius: 20px;
            font-size: .72rem;
            font-weight: 700;
            cursor: pointer;
            border: 1.5px solid;
            transition: all .12s;
        }

        .chip.active-chip,
        .chip:hover {
            color: #fff
        }

        .chip-gsd {
            border-color: #7c3aed;
            color: #7c3aed
        }

        .chip-gsd.active-chip,
        .chip-gsd:hover {
            background: #7c3aed;
            border-color: #7c3aed
        }

        .chip-alt {
            border-color: var(--green);
            color: var(--green)
        }

        .chip-alt.active-chip,
        .chip-alt:hover {
            background: var(--green)
        }

        .filter-actions {
            display: flex;
            gap: 8px;
            align-items: flex-end;
            margin-left: auto
        }

        .btn-filter {
            padding: 8px 16px;
            border-radius: 8px;
            font-size: .82rem;
            font-weight: 700;
            cursor: pointer;
            border: none;
            font-family: var(--sans);
            transition: all .15s;
        }

        .btn-do-filter {
            background: var(--accent);
            color: #fff
        }

        .btn-do-filter:hover {
            background: var(--accent-d);
            box-shadow: 0 4px 12px rgba(0, 81, 204, .25)
        }

        .btn-clear-filter {
            background: var(--surface2);
            color: var(--text2);
            border: 1.5px solid var(--border)
        }

        .btn-clear-filter:hover {
            background: var(--border2);
            color: var(--text)
        }

        /* RESULT BAR */
        .result-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .result-count {
            font-size: .88rem;
            font-weight: 700;
            color: var(--text2)
        }

        .result-count span {
            color: var(--accent);
            font-family: var(--mono);
            font-size: 1rem
        }

        .sort-select {
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: var(--sans);
            font-size: .82rem;
            padding: 6px 10px;
            outline: none;
            cursor: pointer;
        }

        /* PRODUCT GRID */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 16px;
        }

        /* PRODUCT CARD */
        .pcard {
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all .2s;
            display: flex;
            flex-direction: column;
            animation: cardIn .3s ease both;
        }

        @keyframes cardIn {
            from {
                opacity: 0;
                transform: translateY(10px)
            }

            to {
                opacity: 1;
                transform: none
            }
        }

        .pcard:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
            border-color: #c0d4f5
        }

        .pcard.in-cart {
            border-color: var(--green);
            border-width: 2px
        }

        /* card thumbnail / map preview */
        .pcard-thumb {
            height: 130px;
            background: linear-gradient(135deg, #dbe7f8, #e8f4ea);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pcard-thumb-bg {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #1057b822, #0d7a4e18),
                repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(0, 81, 204, .05) 8px, rgba(0, 81, 204, .05) 9px);
        }

        .pcard-thumb-icon {
            font-size: 2.8rem;
            z-index: 1;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .1))
        }

        .pcard-thumb-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
            background: var(--green);
            color: #fff;
            border-radius: 6px;
            padding: 3px 9px;
            font-size: .65rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .5px;
        }

        .pcard-sensor-tag {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 2;
            background: rgba(255, 255, 255, .9);
            color: var(--accent);
            border-radius: 6px;
            padding: 2px 8px;
            font-size: .65rem;
            font-weight: 800;
            border: 1px solid #c0d4f5;
        }

        .pcard-body {
            padding: 14px 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0
        }

        .pcard-area {
            font-size: .92rem;
            font-weight: 800;
            color: var(--text);
            line-height: 1.3;
            margin-bottom: 5px
        }

        .pcard-ato {
            font-family: var(--mono);
            font-size: .68rem;
            color: var(--accent);
            margin-bottom: 10px;
            opacity: .85
        }

        /* specs grid */
        .pcard-specs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 5px 10px;
            margin-bottom: 12px;
        }

        .spec-item {
            display: flex;
            flex-direction: column;
            gap: 1px
        }

        .spec-lbl {
            font-size: .62rem;
            font-weight: 700;
            color: var(--text3);
            text-transform: uppercase;
            letter-spacing: .4px
        }

        .spec-val {
            font-size: .8rem;
            font-weight: 700;
            color: var(--text);
            font-family: var(--mono)
        }

        .spec-val.highlight {
            color: var(--accent)
        }

        .spec-val.green {
            color: var(--green)
        }

        /* progress bar in card */
        .pcard-progress {
            margin-bottom: 12px
        }

        .pcprog-head {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: .72rem
        }

        .pcprog-lbl {
            font-weight: 700;
            color: var(--text2)
        }

        .pcprog-val {
            font-family: var(--mono);
            font-weight: 700;
            color: var(--green)
        }

        .pcprog-bg {
            height: 6px;
            background: var(--border2);
            border-radius: 3px;
            overflow: hidden
        }

        .pcprog-fill {
            height: 6px;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--green), #34d399);
            transition: width .5s
        }

        .pcard-footer {
            margin-top: auto;
            padding-top: 12px;
            border-top: 1px solid var(--border2);
            display: flex;
            gap: 8px
        }

        .btn-add-cart {
            flex: 1;
            padding: 9px;
            border-radius: 8px;
            font-size: .82rem;
            font-weight: 700;
            cursor: pointer;
            border: none;
            font-family: var(--sans);
            transition: all .15s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-add-cart.add {
            background: var(--accent);
            color: #fff
        }

        .btn-add-cart.add:hover {
            background: var(--accent-d);
            box-shadow: 0 4px 12px rgba(0, 81, 204, .25)
        }

        .btn-add-cart.remove {
            background: var(--red-l);
            color: var(--red);
            border: 1.5px solid #f5aba3
        }

        .btn-add-cart.remove:hover {
            background: var(--red);
            color: #fff
        }

        .btn-detail {
            padding: 9px 12px;
            border-radius: 8px;
            font-size: .82rem;
            font-weight: 600;
            cursor: pointer;
            border: 1.5px solid var(--border);
            background: var(--surface2);
            color: var(--text2);
            font-family: var(--sans);
            transition: all .15s;
        }

        .btn-detail:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-l)
        }

        /* EMPTY STATE */
        .empty-state {
            grid-column: 1/-1;
            text-align: center;
            padding: 60px 20px;
            color: var(--text3);
        }

        .empty-state .ei {
            font-size: 3rem;
            margin-bottom: 12px;
            opacity: .5
        }

        .empty-state .et {
            font-size: .9rem;
            font-weight: 700
        }

        /* ═══════════════════════════════════════════
   CART PANEL (RIGHT)
═══════════════════════════════════════════ */
        .cart-panel {
            width: var(--cart-w);
            position: sticky;
            top: var(--topbar-h);
            height: calc(100vh - var(--topbar-h));
            background: var(--surface);
            border-left: 1.5px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .cart-head {
            padding: 18px 20px;
            border-bottom: 1.5px solid var(--border);
            background: var(--surface2);
            flex-shrink: 0;
        }

        .cart-head-title {
            font-size: .92rem;
            font-weight: 800;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 8px
        }

        .cart-head-sub {
            font-size: .72rem;
            color: var(--text2);
            margin-top: 3px
        }

        .cart-total-size {
            margin-top: 10px;
            background: var(--accent-l);
            border: 1.5px solid #c0d4f5;
            border-radius: 8px;
            padding: 8px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-total-lbl {
            font-size: .72rem;
            font-weight: 700;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: .5px
        }

        .cart-total-val {
            font-family: var(--mono);
            font-size: .92rem;
            font-weight: 800;
            color: var(--accent)
        }

        /* cart items */
        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 10px 0
        }

        .cart-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 200px;
            color: var(--text3);
            gap: 10px;
        }

        .cart-empty .ce-icon {
            font-size: 2.5rem;
            opacity: .4
        }

        .cart-empty .ce-txt {
            font-size: .82rem;
            font-weight: 600
        }

        .cart-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 16px;
            border-bottom: 1px solid var(--border2);
            transition: background .1s;
            animation: slideIn .2s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(10px)
            }

            to {
                opacity: 1;
                transform: none
            }
        }

        .cart-item:hover {
            background: var(--surface2)
        }

        .ci-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--accent-l);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .ci-info {
            flex: 1;
            min-width: 0
        }

        .ci-name {
            font-size: .78rem;
            font-weight: 700;
            color: var(--text);
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis
        }

        .ci-meta {
            font-size: .68rem;
            color: var(--text2);
            margin-top: 2px;
            font-family: var(--mono)
        }

        .ci-size {
            font-size: .7rem;
            font-weight: 700;
            color: var(--green);
            margin-top: 2px
        }

        .ci-remove {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text3);
            font-size: 1rem;
            padding: 2px;
            transition: color .12s;
            flex-shrink: 0;
        }

        .ci-remove:hover {
            color: var(--red)
        }

        /* cart footer */
        .cart-footer {
            flex-shrink: 0;
            padding: 16px;
            border-top: 1.5px solid var(--border);
            background: var(--surface2)
        }

        .btn-download {
            width: 100%;
            padding: 13px;
            border-radius: 10px;
            border: none;
            background: linear-gradient(135deg, var(--green), #00a86b);
            color: #fff;
            font-size: .95rem;
            font-weight: 800;
            cursor: pointer;
            font-family: var(--sans);
            transition: all .15s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 14px rgba(0, 135, 90, .3);
        }

        .btn-download:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(0, 135, 90, .4);
            filter: brightness(1.05)
        }

        .btn-download:disabled {
            opacity: .5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none
        }

        .btn-clear-cart {
            width: 100%;
            margin-top: 8px;
            padding: 8px;
            border-radius: 8px;
            border: 1.5px solid var(--border);
            background: transparent;
            color: var(--text2);
            font-size: .8rem;
            font-weight: 600;
            cursor: pointer;
            font-family: var(--sans);
            transition: all .15s;
        }

        .btn-clear-cart:hover {
            border-color: var(--red);
            color: var(--red);
            background: var(--red-l)
        }

        /* ═══════════════════════════════════════════
   DOWNLOAD PROGRESS MODAL
═══════════════════════════════════════════ */
        .dl-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: rgba(15, 25, 35, .65);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity .25s;
        }

        .dl-overlay.open {
            opacity: 1;
            pointer-events: all
        }

        .dl-box {
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: 20px;
            padding: 36px;
            width: 100%;
            max-width: 520px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, .2);
            transform: translateY(20px) scale(.97);
            transition: transform .25s;
        }

        .dl-overlay.open .dl-box {
            transform: none
        }

        .dl-box-title {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 6px
        }

        .dl-box-sub {
            font-size: .82rem;
            color: var(--text2);
            margin-bottom: 24px;
            line-height: 1.6
        }

        .dl-file-list {
            margin-bottom: 22px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 180px;
            overflow-y: auto
        }

        .dl-file-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--surface2);
            border: 1px solid var(--border2);
            border-radius: 8px;
            padding: 8px 12px;
        }

        .dl-file-icon {
            font-size: 1rem;
            flex-shrink: 0
        }

        .dl-file-name {
            font-size: .78rem;
            font-weight: 700;
            color: var(--text);
            flex: 1;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis
        }

        .dl-file-size {
            font-family: var(--mono);
            font-size: .7rem;
            color: var(--text2);
            flex-shrink: 0
        }

        .dl-file-tick {
            font-size: .9rem;
            flex-shrink: 0;
            transition: all .2s
        }

        /* main progress */
        .dl-prog-wrap {
            margin-bottom: 16px
        }

        .dl-prog-head {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px
        }

        .dl-prog-lbl {
            font-size: .8rem;
            font-weight: 700;
            color: var(--text)
        }

        .dl-prog-pct {
            font-family: var(--mono);
            font-size: .8rem;
            font-weight: 800;
            color: var(--accent)
        }

        .dl-prog-bg {
            height: 14px;
            background: var(--border2);
            border-radius: 7px;
            overflow: hidden;
            position: relative;
        }

        .dl-prog-fill {
            height: 14px;
            border-radius: 7px;
            background: linear-gradient(90deg, var(--accent), #4facfe);
            transition: width .4s ease;
            position: relative;
            overflow: hidden;
        }

        .dl-prog-fill::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
            animation: shimmer 1.5s ease infinite;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%)
            }

            100% {
                transform: translateX(100%)
            }
        }

        /* stats row */
        .dl-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 20px
        }

        .dl-stat {
            background: var(--surface2);
            border: 1px solid var(--border2);
            border-radius: 8px;
            padding: 10px;
            text-align: center
        }

        .dl-stat-lbl {
            font-size: .62rem;
            color: var(--text3);
            text-transform: uppercase;
            letter-spacing: .5px;
            margin-bottom: 3px
        }

        .dl-stat-val {
            font-family: var(--mono);
            font-size: .85rem;
            font-weight: 800;
            color: var(--text)
        }

        .dl-status-msg {
            font-size: .82rem;
            color: var(--text2);
            text-align: center;
            margin-bottom: 16px;
            min-height: 20px
        }

        .dl-done-msg {
            text-align: center;
            display: none
        }

        .dl-done-msg .done-icon {
            font-size: 2.5rem;
            margin-bottom: 10px
        }

        .dl-done-msg .done-txt {
            font-size: 1rem;
            font-weight: 800;
            color: var(--green);
            margin-bottom: 4px
        }

        .dl-done-msg .done-sub {
            font-size: .82rem;
            color: var(--text2)
        }

        .btn-dl-close {
            width: 100%;
            padding: 12px;
            border-radius: 10px;
            border: none;
            background: var(--accent);
            color: #fff;
            font-size: .9rem;
            font-weight: 700;
            cursor: pointer;
            font-family: var(--sans);
            margin-top: 16px;
            display: none;
            transition: all .15s;
        }

        .btn-dl-close:hover {
            background: var(--accent-d)
        }

        /* ═══════════════════════════════════════════
   DETAIL MODAL
═══════════════════════════════════════════ */
        .det-overlay {
            position: fixed;
            inset: 0;
            z-index: 900;
            background: rgba(15, 25, 35, .55);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity .2s;
        }

        .det-overlay.open {
            opacity: 1;
            pointer-events: all
        }

        .det-box {
            background: var(--surface);
            border-radius: 18px;
            width: 100%;
            max-width: 680px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-lg);
            transform: translateY(14px);
            transition: transform .2s;
        }

        .det-overlay.open .det-box {
            transform: none
        }

        .det-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1.5px solid var(--border);
            background: var(--surface2);
            border-radius: 16px 16px 0 0;
            position: sticky;
            top: 0;
            z-index: 5;
        }

        .det-head-title {
            font-size: 1rem;
            font-weight: 800;
            color: var(--text)
        }

        .det-close {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1.5px solid var(--border);
            background: var(--surface);
            color: var(--text2);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .9rem;
            transition: all .12s;
        }

        .det-close:hover {
            background: var(--red-l);
            color: var(--red);
            border-color: #f5aba3
        }

        .det-body {
            padding: 22px
        }

        .det-section {
            margin-bottom: 20px
        }

        .det-section-title {
            font-size: .72rem;
            font-weight: 800;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 2px solid var(--border2);
            padding-bottom: 8px;
            margin-bottom: 12px;
        }

        .det-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 8px
        }

        .det-item {
            background: var(--surface2);
            border: 1.5px solid var(--border2);
            border-radius: 8px;
            padding: 10px 12px
        }

        .det-lbl {
            font-size: .62rem;
            font-weight: 700;
            color: var(--text3);
            text-transform: uppercase;
            letter-spacing: .4px;
            margin-bottom: 4px
        }

        .det-val {
            font-size: .88rem;
            font-weight: 700;
            color: var(--text)
        }

        .det-val.mono {
            font-family: var(--mono);
            color: var(--accent)
        }

        .det-val.green {
            color: var(--green)
        }

        .det-footer {
            padding: 16px 24px;
            border-top: 1.5px solid var(--border);
            display: flex;
            gap: 10px
        }

        /* ═══════════════════════════════════════════
   LIGHTBOX CSS (reuse from system)
═══════════════════════════════════════════ */
        .lightbox-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(0, 0, 0, .88);
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: zoom-out;
            animation: fadeIn .2s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0
            }

            to {
                opacity: 1
            }
        }

        .lightbox-overlay img {
            max-width: 90vw;
            max-height: 90vh;
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
            object-fit: contain;
            cursor: default;
        }

        .lightbox-close {
            position: fixed;
            top: 20px;
            right: 24px;
            z-index: 10000;
            color: #fff;
            font-size: 2rem;
            font-weight: 300;
            cursor: pointer;
            line-height: 1;
            opacity: .8;
            transition: opacity .15s;
        }

        .lightbox-close:hover {
            opacity: 1
        }

        /* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
        .toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(12px);
            z-index: 9998;
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: 12px;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: var(--shadow-lg);
            opacity: 0;
            transition: all .25s;
            white-space: nowrap;
            min-width: 200px;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0)
        }

        .toast-msg {
            font-size: .88rem;
            font-weight: 600;
            color: var(--text)
        }

        @media(max-width:900px) {
            .page-body {
                grid-template-columns: 1fr
            }

            .cart-panel {
                width: 100%;
                position: static;
                height: auto;
                border-left: none;
                border-top: 1.5px solid var(--border)
            }
        }

        @media(max-width:600px) {
            .product-grid {
                grid-template-columns: 1fr
            }

            .hero h1 {
                font-size: 1.5rem
            }

            .topbar {
                padding: 0 14px
            }

            .products-panel {
                padding: 14px
            }
        }