/* =====================================================================
   IT Parts Store - storefront styles
   Light theme, lightweight, sharp rectangular corners everywhere.
   Change the colours in :root to re-brand the whole site.
   ===================================================================== */
:root {
    --brand: #3b5bdb;          /* soft blue - menu bar, buttons, links */
    --brand-dark: #2f49b0;
    --brand-soft: #e3e9ff;
    --panel: #f3f6ff;          /* light blue tint for boxes, cards and tables (page stays white) */
    --panel-head: #e6ecfd;     /* table group headings, filter header */
    --accent: #f59f00;         /* amber - search, buy now, checkout */
    --accent-dark: #e67700;
    --price: #0f7b4b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #d9e1f5;
    --bg: #ffffff;
    --surface: #ffffff;
    --danger: #e03131;
    --ok: #2b8a3e;
    --shadow: 0 6px 18px -8px rgba(40, 60, 140, .22);

    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--bg);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 59, 91, 219;
    --bs-link-hover-color: var(--brand-dark);
    --bs-link-hover-color-rgb: 47, 73, 176;
    --bs-border-color: var(--line);
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-border-radius-xl: 0;
    --bs-border-radius-pill: 0;
}

/* Sharp rectangles: no rounded corners anywhere (buttons, inputs, cards, badges, menus) */
*, *::before, *::after { border-radius: 0 !important; }

body { font-size: .95rem; font-weight: 400; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; }
.skip-link { position: absolute; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Page width (same as PhonePro) ---------- */
.site-wrap { width: 100%; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 1200px) { .site-wrap { max-width: 83.3333%; } }
@media (min-width: 1400px) { .site-wrap { max-width: 75%; } }

/* ---------- Buttons ---------- */
.btn { font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.btn-primary-store { background: var(--brand); color: #fff; border: 1px solid var(--brand); padding: .5rem 1.1rem; }
.btn-primary-store:hover, .btn-primary-store:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-cart { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.btn-cart:hover, .btn-cart:focus-visible { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.btn-buy, .btn-checkout { background: var(--accent); color: #1f2937; border: 1px solid var(--accent); font-weight: 600; }
.btn-buy:hover, .btn-checkout:hover, .btn-buy:focus-visible, .btn-checkout:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); color: #111; }
.btn-checkout { padding: .75rem 1rem; font-size: 1.02rem; }
.btn-line { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-ask { background: #fff; border: 1px solid #25d366; color: #128c4a; }
.btn-ask:hover { background: #25d366; color: #fff; }
.btn-wa { background: #25d366; border: 1px solid #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; color: #fff; }
.btn-lg-store { padding: .65rem 1.4rem; font-size: 1rem; }
.btn-icon { border: 0; background: transparent; font-size: 1.6rem; padding: .1rem .4rem; color: var(--ink); }
.btn-filter { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-remove { background: transparent; border: 1px solid transparent; color: var(--muted); }
.btn-remove:hover { color: var(--danger); border-color: var(--line); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(59, 91, 219, .15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); padding: .35rem 0; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--brand); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.25rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); flex-shrink: 0; }
.brand-mark { background: var(--brand); color: #fff; font-weight: 800; font-size: .95rem; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: var(--brand); }

/* Search box (PhonePro style: icon left, button inside on the right) */
.search-form { position: relative; display: flex; align-items: center; flex: 1 1 auto; max-width: 680px; margin-inline: auto; }
.search-form .search-icon { position: absolute; left: 13px; color: #94a3b8; pointer-events: none; z-index: 1; }
.search-form .form-control { height: 44px; padding: .5rem 6.4rem .5rem 2.4rem; border: 1.5px solid var(--brand); background: #fff; font-size: .92rem; }
.search-form .form-control::-webkit-search-cancel-button { display: none; }
.search-form .form-control::placeholder { color: #8a94a3; }
.btn-search { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 1.2rem; background: var(--accent); color: #1f2937; border: 0; font-weight: 600; font-size: .9rem; }
.btn-search:hover, .btn-search:focus-visible { background: var(--accent-dark); color: #111; }
.search-suggest { position: absolute; top: calc(100% + 2px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 1060; max-height: 70vh; overflow-y: auto; }
.sg-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5rem .8rem .2rem; font-weight: 600; }
.sg-item { display: flex; align-items: center; gap: .7rem; padding: .45rem .8rem; color: var(--ink); }
.sg-item img { width: 46px; height: 38px; object-fit: contain; background: #ffffff; border: 1px solid var(--line); flex-shrink: 0; }
.sg-item .sg-name { flex: 1; font-size: .86rem; line-height: 1.3; }
.sg-item .sg-price { font-size: .82rem; color: var(--price); font-weight: 600; white-space: nowrap; }
.sg-item:hover, .sg-item.active { background: var(--brand-soft); color: var(--ink); }
.sg-cat { display: block; padding: .35rem .8rem; font-size: .86rem; color: var(--brand); }
.sg-cat:hover, .sg-cat.active { background: var(--brand-soft); }
.sg-all { display: block; padding: .55rem .8rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.sg-empty { padding: .7rem .8rem; font-size: .86rem; color: var(--muted); }

.header-icons { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.hicon { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--ink); font-size: .72rem; line-height: 1.1; }
.hicon i { font-size: 1.35rem; margin-bottom: 2px; }
.hicon:hover { color: var(--brand); }
.badge-count { position: absolute; top: -6px; right: -8px; background: var(--accent); color: #1f2937; font-size: .66rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; }
.badge-count[hidden] { display: none; }

@media (max-width: 991.98px) {
    .header-row { flex-wrap: wrap; gap: .6rem; padding-block: .6rem; }
    .brand { margin-right: auto; }
    .brand-name { font-size: 1.02rem; }
    .search-form { order: 3; flex-basis: 100%; max-width: none; }
    .header-icons { gap: .9rem; }
    .hicon-label { display: none; }
}

/* ---------- Mega menu (horizontal, centred, fixed width) ---------- */
.mega-nav { background: var(--brand); position: relative; z-index: 1030; }
.mega-list { display: flex; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.mega-link { display: block; color: #fff; font-size: .88rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; padding: .8rem 1.15rem; }
.mega-item:hover > .mega-link, .mega-item.open > .mega-link, .mega-item:focus-within > .mega-link { background: #fff; color: var(--brand); }
.mega-item.current > .mega-link { box-shadow: inset 0 -3px 0 var(--accent); }
.mega-offers::before { content: "\F5B3"; font-family: bootstrap-icons; margin-right: .35rem; font-size: .8rem; vertical-align: -1px; }
.mega-panel { position: absolute; left: 16px; right: 16px; top: 100%; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand);
    box-shadow: 0 16px 32px -12px rgba(40, 60, 140, .28); padding: 1.4rem 1.8rem 1rem; visibility: hidden; opacity: 0; transition: opacity .12s ease, visibility 0s linear .12s; }
.mega-item:hover > .mega-panel, .mega-item.open > .mega-panel, .mega-item:focus-within > .mega-panel { visibility: visible; opacity: 1; transition-delay: .08s, 0s; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem 1.8rem; }
.mega-head { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: .45rem; }
a.mega-head:hover { color: var(--brand); }
.mega-sub { display: block; color: #4b5563; font-size: .88rem; padding: .22rem 0; }
.mega-sub:hover { color: var(--brand); }
.mega-foot { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .7rem; text-align: right; font-size: .86rem; font-weight: 600; }

.mobile-menu { width: 300px !important; }
.mobile-menu .accordion-button { font-weight: 500; }
.mobile-menu .accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
.mm-all { display: block; font-weight: 600; padding: .25rem 0 .5rem; }
.mm-head { display: block; font-weight: 600; color: var(--ink); padding: .45rem 0 .15rem; font-size: .9rem; }
.mm-sub { display: block; color: #4b5563; padding: .2rem 0 .2rem .8rem; font-size: .88rem; }
.mm-link { display: block; padding: .8rem 1.25rem; border-top: 1px solid var(--line); color: var(--ink); }

/* ---------- Home ---------- */
.usp-bar { background: var(--panel); border-bottom: 1px solid var(--line); }
.usp-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: .8rem; }
.usp { display: flex; align-items: center; gap: .7rem; }
.usp i { font-size: 1.6rem; color: var(--brand); }
.usp strong { display: block; font-size: .88rem; font-weight: 600; }
.usp span { display: block; font-size: .76rem; color: var(--muted); }
@media (max-width: 767.98px) { .usp-row { grid-template-columns: repeat(2, 1fr); } }

.home-section { background: var(--panel); border: 1px solid var(--line); padding: 1rem 1rem 1.1rem; margin-bottom: 1.2rem; }
.hs-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .9rem; }
.hs-title { font-size: 1.12rem; margin: 0; }
.hs-title i { color: var(--brand); margin-right: .2rem; }
.hs-subs { display: flex; flex-wrap: wrap; gap: .35rem; }
.hs-subs a, .subcat-chips a { border: 1px solid var(--line); padding: .18rem .6rem; font-size: .78rem; color: #4b5563; background: #fff; }
.hs-subs a:hover, .subcat-chips a:hover { border-color: var(--brand); color: var(--brand); }
.hs-all { margin-left: auto; font-size: .88rem; font-weight: 600; white-space: nowrap; }

/* 5 small cards per row on desktop, 2 rows = 10 products */
.home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 576px) { .home-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .home-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .home-grid { grid-template-columns: repeat(5, 1fr); } }
/* keep sections to 2 rows on smaller screens */
@media (max-width: 767.98px) { .home-grid > .pcard:nth-child(n+7) { display: none; } }
@media (min-width: 768px) and (max-width: 991.98px) { .home-grid > .pcard:nth-child(n+9) { display: none; } }

/* ---------- Product card ---------- */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.pcard:hover { border-color: #b4c3f5; box-shadow: var(--shadow); }
.pcard-img { display: block; height: 150px; padding: .7rem; background: #ffffff; border-bottom: 1px solid var(--line); }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-badges { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; z-index: 2; }
.pbadge { font-size: .64rem; font-weight: 700; padding: .14rem .42rem; letter-spacing: .02em; text-transform: uppercase; background: #e9ecef; color: #343a40; display: inline-block; }
.pbadge-refurbished { background: #fff3bf; color: #7c5a00; }
.pbadge-used { background: #ffe8cc; color: #8a4b08; }
.pbadge-compatible { background: #e7f5ff; color: #1864ab; }
.pbadge-original { background: #d3f9d8; color: #2b8a3e; }
.pbadge-off { background: var(--danger); color: #fff; }
.pcard-fav { position: absolute; top: 5px; right: 5px; z-index: 3; margin: 0; }
.btn-fav { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(255,255,255,.95); color: #6b7280; font-size: .95rem; padding: 0; cursor: pointer; }
.btn-fav:hover, .btn-fav:focus-visible { color: var(--danger); border-color: #ffa8a8; }
.btn-fav.saved { color: var(--danger); border-color: #ffa8a8; }
.btn-fav:active i { transform: scale(1.25); }
.pcard-body { padding: .55rem .65rem .4rem; flex: 1; display: flex; flex-direction: column; }
.pcard-name { color: var(--ink); font-size: .82rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; height: 4.05em; } /* always 4 lines tall, '...' after line 4 */
.pcard-name:hover { color: var(--brand); }
.pcard-price { margin-top: auto; padding-top: .3rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; }
.price { color: var(--price); font-weight: 700; font-size: .95rem; }
.old-price { color: #9aa3ae; font-size: .74rem; }
.pcard-stock { font-size: .7rem; margin-top: .1rem; }
.stock-in { color: var(--ok); }
.stock-low { color: #e67700; }
.stock-out { color: var(--danger); }
.pcard-actions { display: flex; gap: .35rem; padding: 0 .65rem .65rem; }
.pcard-actions form:first-child, .pcard-actions > a:first-child { flex: 1; }
.pcard-actions .btn-cart, .pcard-actions .btn-ask { width: 100%; font-size: .78rem; padding: .38rem .3rem; white-space: nowrap; }
.btn-compare-sm { width: 34px; height: 100%; min-height: 32px; padding: 0; background: #fff; border: 1px solid var(--line); color: #6b7280; display: inline-flex; align-items: center; justify-content: center; }
.btn-compare-sm:hover { color: var(--brand); border-color: var(--brand); }
.btn-compare-sm.active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.secondary-actions .btn-compare-sm { width: auto; padding: .375rem .75rem; }

/* ---------- Listing / facets ---------- */
.site-crumbs { font-size: .8rem; margin-bottom: .8rem; }
.site-crumbs a { color: var(--muted); }
.site-crumbs a:hover { color: var(--brand); }
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: .6rem; }
.listing-title { font-size: 1.35rem; margin: 0; }
.listing-count { font-size: .82rem; color: var(--muted); }
.sort-form .form-select { min-width: 180px; }
.listing-intro { color: #4b5563; font-size: .9rem; margin-bottom: .8rem; max-width: 900px; }
.subcat-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .8rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .2rem; background: var(--brand-soft); border: 1px solid #b4c3f5; color: var(--brand-dark); font-size: .8rem; padding: .2rem .55rem; }
.filter-chip:hover { border-color: var(--brand); }
.filter-clear { font-size: .8rem; margin-left: .3rem; }
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .listing-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .listing-grid-5 { grid-template-columns: repeat(5, 1fr); } }
.listing-grid .pcard-img { height: 170px; }
.pagination .page-link { color: var(--brand); }
.pagination .active > .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }

.facet-panel { background: var(--panel); border: 1px solid var(--line); }
.facet-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; background: var(--panel-head); color: var(--brand-dark); border-bottom: 1px solid var(--line); }
.facet-section { border-bottom: 1px solid var(--line); padding: .65rem .65rem .7rem; }
.facet-section:last-child { border-bottom: 0; }
.facet-title { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 .35rem .35rem; }
.facet-link { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .26rem .5rem; font-size: .87rem; color: #334155; line-height: 1.3; transition: background .12s; }
.facet-link:hover { background: #f1f5f9; color: var(--ink); }
.facet-link.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.facet-link .bi-x-lg { font-size: .68rem; }
.facet-back { color: var(--muted); font-size: .82rem; }
.facet-back .bi-chevron-left { font-size: .7rem; }
.facet-link.lvl-1 { padding-left: 1rem; }
.facet-link.lvl-2 { padding-left: 1.5rem; }
.facet-link.lvl-3 { padding-left: 2rem; }
.facet-link.lvl-4 { padding-left: 2.5rem; }
.facet-child { padding-left: 1.4rem; font-size: .83rem; border-left: 2px solid var(--brand-soft); margin-left: .5rem; }
.facet-count { color: #94a3b8; font-size: .76rem; font-weight: 400; }
.facet-scroll { max-height: 240px; overflow-y: auto; }
.filter-mode { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; color: var(--brand-dark); white-space: nowrap; }
.filter-mode:hover { color: var(--brand); }
.filter-mode .fm-track { position: relative; width: 26px; height: 14px; background: #cbd5e1; transition: background .15s; }
.filter-mode .fm-knob { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; background: #fff; transition: left .15s; }
.filter-mode.on .fm-track { background: var(--brand); }
.filter-mode.on .fm-knob { left: 14px; }
.facet-offcanvas { --bs-offcanvas-width: 300px; }
@media (max-width: 991.98px) {
    .facet-offcanvas .offcanvas-body { overflow-y: auto; padding: 0 12px 16px !important; background: var(--bg); }
    .facet-offcanvas .facet-header strong { visibility: hidden; }
    .listing-head { flex-wrap: wrap; align-items: flex-start; }
}

.empty-box { background: var(--panel); border: 1px solid var(--line); text-align: center; padding: 2.5rem 1.5rem; }
.empty-box > i { font-size: 2.4rem; color: #adb5bd; display: block; margin-bottom: .6rem; }
.part-request { background: var(--brand-soft); border: 1px dashed #9fb2ee; padding: 1rem 1.1rem; margin-top: 1.4rem; }
.part-request p { font-size: .86rem; color: #4b5563; margin-bottom: .6rem; }
.part-request h2 i { color: var(--brand); }

/* ---------- Product page ---------- */
.product-top { background: var(--panel); border: 1px solid var(--line); padding: 1.25rem; }
.gallery { position: relative; border: 1px solid var(--line); background: #ffffff; height: 380px; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.gallery img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-badge { position: absolute; top: 10px; left: 10px; }
.thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.thumb { border: 1px solid var(--line); background: #fff; padding: 2px; }
.thumb:hover, .thumb.active { border-color: var(--brand); }
.product-title { font-size: 1.4rem; line-height: 1.3; margin-bottom: .5rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .84rem; color: var(--muted); }
.product-meta strong { color: var(--ink); font-weight: 600; }
.part-numbers { font-size: .84rem; color: var(--muted); margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.part-numbers code { background: #f1f3f5; color: #343a40; padding: .1rem .4rem; font-size: .82rem; }
.product-price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin: 1rem 0 .2rem; }
.product-price .price { font-size: 1.75rem; }
.product-price .old-price { font-size: 1rem; }
.product-stock { font-size: .9rem; font-weight: 500; margin-bottom: .9rem; }
.key-specs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.key-specs li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .45rem .65rem; font-size: .84rem; }
.key-specs span { display: block; color: var(--muted); font-size: .72rem; }
.buy-box { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; margin-bottom: .8rem; }
.qty-box { display: inline-flex; border: 1px solid var(--line); background: #fff; }
.qty-box input { width: 52px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 38px; border: 0; background: #f8f9fa; font-size: 1.1rem; color: var(--ink); }
.qty-btn:hover { background: var(--brand-soft); color: var(--brand); }
.qty-sm input { width: 40px; font-size: .9rem; }
.qty-sm .qty-btn { width: 30px; }
.secondary-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.secondary-actions form { margin: 0; }
.secondary-actions .btn { font-size: .86rem; display: inline-flex; align-items: center; gap: .4rem; }
.secondary-actions .btn-fav { width: auto; height: auto; padding: .375rem .75rem; background: #fff; }
.trust-list { list-style: none; padding: 0; margin: 0; font-size: .86rem; color: #4b5563; }
.trust-list li { padding: .2rem 0; }
.trust-list i { color: var(--brand); margin-right: .45rem; }
.info-box { background: var(--panel); border: 1px solid var(--line); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.info-title { font-size: 1.05rem; margin-bottom: .8rem; }
.info-title i { color: var(--brand); margin-right: .3rem; }
.spec-table { margin: 0; font-size: .88rem; }
.spec-table th { font-weight: 500; color: var(--muted); width: 40%; }
.spec-table .spec-group th { background: var(--panel-head); color: var(--ink); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.compat-group { margin-bottom: .6rem; }
.compat-head { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .3rem; }
.compat-model { display: inline-block; border: 1px solid var(--line); padding: .2rem .55rem; font-size: .82rem; margin: 0 .3rem .35rem 0; background: #fff; }
.compat-model.hit { background: #d3f9d8; border-color: #8ce99a; color: #1b5e2a; font-weight: 600; }
.compat-model.dim { opacity: .35; }
.product-desc { font-size: .92rem; color: #374151; line-height: 1.6; }
.help-box p { font-size: .88rem; color: #4b5563; }

/* ---------- Cart / checkout ---------- */
.page-title { font-size: 1.5rem; margin-bottom: 1rem; }
.cart-table { background: var(--panel); border: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto 110px 40px; align-items: center; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-img img { width: 96px; height: 80px; object-fit: contain; background: #ffffff; border: 1px solid var(--line); }
.cart-name { color: var(--ink); font-weight: 500; font-size: .92rem; }
.cart-name:hover { color: var(--brand); }
.cart-total { font-weight: 700; text-align: right; color: var(--price); }
@media (max-width: 767.98px) {
    .cart-line { grid-template-columns: 72px 1fr 36px; grid-template-areas: "img info rm" "img qty total"; gap: .5rem .8rem; }
    .cart-img { grid-area: img; } .cart-img img { width: 72px; height: 60px; }
    .cart-info { grid-area: info; } .qty-box { grid-area: qty; justify-self: start; } .cart-total { grid-area: total; } .btn-remove { grid-area: rm; }
}
.summary-box { background: var(--panel); border: 1px solid var(--line); padding: 1.1rem 1.2rem; }
.summary-box.sticky-lg-top { top: 1rem; }
.summary-title { font-size: 1.05rem; margin-bottom: .8rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .92rem; }
.sum-total { border-top: 1px solid var(--line); margin: .5rem 0 1rem; padding-top: .7rem; font-weight: 700; font-size: 1.12rem; }
.sum-item { display: grid; grid-template-columns: 56px 1fr auto; gap: .6rem; align-items: center; font-size: .85rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.sum-item img { width: 56px; height: 46px; object-fit: contain; border: 1px solid var(--line); background: #ffffff; }
.free-note { background: #fff9db; border: 1px solid #ffe066; font-size: .82rem; padding: .35rem .6rem; margin: .3rem 0; }
.form-box { background: var(--panel); border: 1px solid var(--line); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.form-box-title { font-size: 1.05rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.step { background: var(--brand); color: #fff; width: 24px; height: 24px; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.form-label { font-size: .86rem; font-weight: 500; margin-bottom: .25rem; }
.delivery-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.opt-card { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line); padding: .75rem .9rem; cursor: pointer; background: #fff; margin: 0; }
.opt-card input { margin-top: .25rem; accent-color: var(--brand); }
.opt-card strong { display: block; font-weight: 600; font-size: .92rem; }
.opt-card small { display: block; color: var(--muted); font-size: .8rem; }
.opt-card:has(input:checked), .opt-card.selected { border-color: var(--brand); background: var(--brand-soft); }
.done-box { max-width: 680px; margin: 0 auto; text-align: center; }
.done-icon { font-size: 3.2rem; color: var(--ok); }

/* ---------- Compare ---------- */
.compare-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); }
.compare-table { width: 100%; border-collapse: collapse; min-width: calc(190px + var(--cols) * 210px); font-size: .88rem; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: .55rem .75rem; vertical-align: top; }
.compare-table td { width: calc((100% - 190px) / var(--cols)); }
.cmp-label { width: 190px; min-width: 190px; position: sticky; left: 0; background: var(--panel); color: var(--muted); font-weight: 500; z-index: 1; }
.cmp-product { text-align: center; font-weight: 400; position: relative; padding-top: 1.6rem !important; }
.cmp-product img { width: 100%; max-width: 170px; height: 130px; object-fit: contain; display: block; margin: 0 auto .5rem; }
.cmp-name { display: block; color: var(--ink); font-size: .86rem; font-weight: 500; line-height: 1.35; margin-bottom: .3rem; }
.cmp-product .price { display: block; margin-bottom: .5rem; }
.cmp-product .btn-cart { font-size: .82rem; }
.cmp-remove { position: absolute; top: 4px; right: 4px; }
.btn-x { border: 1px solid var(--line); background: #fff; width: 26px; height: 26px; padding: 0; font-size: .75rem; color: var(--muted); }
.btn-x:hover { color: var(--danger); border-color: #ffa8a8; }
.cmp-add { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .86rem; border: 1px dashed var(--brand); padding: .6rem .8rem; }
.cmp-group th { background: var(--panel-head); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--ink); }
.cmp-group th { position: sticky; left: 0; }
.compare-table td { background: #fff; }
.compare-table tr.is-diff td { background: #fffdf3; }
.diff-only tr.is-same { display: none; }

/* ---------- Info pages ---------- */
.info-page { background: var(--panel); border: 1px solid var(--line); padding: 1.5rem 1.6rem; max-width: 900px; }
.info-page h2 { margin-top: 1.2rem; }
.contact-list li { padding: .35rem 0; }
.contact-list i { color: var(--brand); margin-right: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 2.2rem; color: #374151; font-size: .9rem; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ink); margin-bottom: .8rem; }
.footer-links li { padding: .2rem 0; }
.footer-links a, .footer-contact a { color: #4b5563; }
.footer-links a:hover, .footer-contact a:hover { color: var(--brand); }
.footer-about { color: #4b5563; margin: .8rem 0; font-size: .88rem; }
.footer-contact li { padding: .18rem 0; }
.footer-contact i { color: var(--brand); margin-right: .45rem; }
.brand-footer .brand-name { font-size: 1.05rem; }
.social-buttons { display: flex; flex-wrap: wrap; gap: .45rem; }
.social-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); font-size: 1.1rem; transition: background .15s, color .15s; }
.social-facebook { color: #1877f2; } .social-instagram { color: #d6249f; } .social-youtube { color: #ff0000; }
.social-tiktok { color: #111; } .social-x { color: #111; } .social-linkedin { color: #0a66c2; } .social-whatsapp { color: #25d366; }
.social-btn:hover { color: #fff; }
.social-facebook:hover { background: #1877f2; border-color: #1877f2; } .social-instagram:hover { background: #d6249f; border-color: #d6249f; }
.social-youtube:hover { background: #ff0000; border-color: #ff0000; } .social-tiktok:hover, .social-x:hover { background: #111; border-color: #111; }
.social-linkedin:hover { background: #0a66c2; border-color: #0a66c2; } .social-whatsapp:hover { background: #25d366; border-color: #25d366; }
.footer-bottom { background: var(--panel-head); margin-top: 2rem; padding: .8rem 0; font-size: .8rem; color: #4b5563; }
.footer-bottom i { color: var(--brand); }

/* ---------- Floating WhatsApp + toasts ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 50px; height: 50px; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 6px 16px rgba(0,0,0,.2); z-index: 1040; }
.wa-float:hover { background: #1ebe5b; color: #fff; }
#toasts { bottom: 74px !important; z-index: 1090; }
.store-toast { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); box-shadow: var(--shadow); min-width: 280px; max-width: 360px; }
.store-toast.toast-warn { border-left-color: var(--accent); }
.store-toast.toast-err { border-left-color: var(--danger); }
.store-toast .toast-body { font-size: .9rem; }
.store-toast .toast-actions { display: flex; gap: .4rem; margin-top: .55rem; }
.store-toast .toast-actions .btn { font-size: .8rem; padding: .3rem .7rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Buyer accounts: login / register ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.2rem; max-width: 980px; margin: 0 auto; }
.auth-wrap.auth-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.auth-box, .auth-side { background: var(--panel); border: 1px solid var(--line); padding: 1.5rem 1.6rem; }
.auth-side { align-self: start; }
.auth-side p { color: #4b5563; font-size: .92rem; }
.auth-note { background: #fff9db; border: 1px solid #ffe066; padding: .5rem .75rem; font-size: .88rem; }
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 2.6rem; }
.pw-toggle { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 2.4rem; border: 0; background: transparent; color: var(--muted); }
.pw-toggle:hover { color: var(--brand); }
@media (max-width: 767.98px) { .auth-wrap { grid-template-columns: 1fr; } }

/* ---------- Account area ---------- */
.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.account-nav { background: var(--panel); border: 1px solid var(--line); }
.account-hello { display: flex; gap: .7rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); }
.account-hello strong { display: block; font-size: .92rem; }
.account-hello span { display: block; font-size: .76rem; color: var(--muted); word-break: break-all; }
.avatar { width: 40px; height: 40px; flex-shrink: 0; background: var(--brand); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.account-nav nav a, .account-nav nav button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .6rem 1rem; color: var(--ink); font-size: .9rem; border: 0; border-left: 3px solid transparent; background: transparent; text-align: left; }
.account-nav nav a:hover, .account-nav nav button:hover { background: var(--panel-head); color: var(--brand); }
.account-nav nav a.active { border-left-color: var(--brand); background: #fff; color: var(--brand); font-weight: 600; }
.account-nav nav form { margin: 0; border-top: 1px solid var(--line); }
.account-nav nav i { color: var(--brand); }
@media (max-width: 991.98px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-nav nav { display: flex; overflow-x: auto; }
    .account-nav nav a, .account-nav nav button { white-space: nowrap; width: auto; border-left: 0; border-bottom: 3px solid transparent; }
    .account-nav nav a.active { border-bottom-color: var(--brand); }
    .account-nav nav form { border-top: 0; }
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); padding: .8rem 1rem; }
.stat span { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat strong { font-size: 1.25rem; }
.panel-box { background: var(--panel); border: 1px solid var(--line); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: var(--panel-head); border-bottom: 1px solid var(--line); }
.order-table { --bs-table-bg: transparent; font-size: .88rem; }
.order-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.order-table td { vertical-align: middle; white-space: nowrap; }
.status-tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: .18rem .5rem; border: 1px solid transparent; white-space: nowrap; }
.st-new { background: #e7f5ff; color: #1864ab; border-color: #a5d8ff; }
.st-confirmed, .st-packed { background: #f3f0ff; color: #5f3dc4; border-color: #d0bfff; }
.st-shipped { background: #fff4e6; color: #d9480f; border-color: #ffd8a8; }
.st-delivered { background: #ebfbee; color: #2b8a3e; border-color: #b2f2bb; }
.st-returned, .st-cancelled { background: #f1f3f5; color: #495057; border-color: #dee2e6; }
.pay-due { background: #fff9db; color: #8a6d00; border-color: #ffe066; }
.pay-paid { background: #ebfbee; color: #2b8a3e; border-color: #b2f2bb; }
.pay-refunded { background: #f1f3f5; color: #495057; border-color: #dee2e6; }
.progress-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 0 0 1.2rem; counter-reset: s; }
.progress-steps li { position: relative; text-align: center; font-size: .8rem; color: var(--muted); padding-top: 1.9rem; }
.progress-steps li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.4rem; height: 1.4rem; background: #fff; border: 2px solid var(--line); z-index: 1; }
.progress-steps li::before { content: ""; position: absolute; top: .65rem; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.done { color: var(--ink); font-weight: 600; }
.progress-steps li.done span { background: var(--brand); border-color: var(--brand); }
.progress-steps li.done::before { background: var(--brand); }
.progress-steps li.current span { box-shadow: 0 0 0 4px var(--brand-soft); }
.order-item { display: flex; gap: .8rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.order-item img { width: 64px; height: 54px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: .8rem 1rem .4rem 1.8rem; }
.timeline li { position: relative; padding-bottom: .8rem; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -1rem; top: .45rem; width: 8px; height: 8px; background: var(--brand); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; font-size: .88rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 400; }
.kv dd { margin: 0; }
.form-narrow { max-width: 480px; }
.account-menu { font-size: .9rem; min-width: 200px; }
.account-menu i { color: var(--brand); margin-right: .4rem; }
.order-item > strong { white-space: nowrap; }
.verify-bar { background: #fff9db; border-bottom: 1px solid #ffe066; padding: .45rem 0; font-size: .88rem; }
.verify-bar i { color: #e67700; font-size: 1.1rem; }
.opt-card.disabled { opacity: .55; cursor: not-allowed; background: #f8f9fa; }
.pay-check { background: #e7f5ff; color: #1864ab; border-color: #a5d8ff; }
.pay-box { background: #fff9db; border: 1px solid #ffe066; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.bank-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.bank-item { background: #fff; border: 1px solid #ffe066; padding: .6rem .75rem; font-size: .86rem; }
.bank-item strong, .bank-item span { display: block; }
.bank-item code { color: var(--ink); background: #f1f3f5; padding: 0 .3rem; }
