/* ==========================================================================
   Ampere Electronics — Template stylesheet
   Designed & built by EdinStack

   1. Tokens          6. Product card       11. Compare
   2. Base            7. Home               12. Cart
   3. Buttons & forms 8. Shop               13. Checkout
   4. Header          9. Product detail     14. Toasts & tray
   5. Footer         10. Reviews            15. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #121317;
  --ink-2: #2a2d33;
  --body: #3d414a;
  --muted: #6c717b;
  --line: #e6e4de;
  --line-2: #d6d3ca;
  --paper: #f5f4f0;
  --surface: #ffffff;
  --tint: #efeee9;

  --accent: #ff5a1f;
  --accent-hover: #e8480f;
  --accent-soft: #fff0e8;
  --ok: #1a7f4b;
  --ok-soft: #e8f5ee;
  --warn: #b45309;
  --danger: #c0392b;
  --star: #f5a524;

  --radius: 10px;
  --radius-sm: 6px;

  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: .9375rem;
  --bs-body-color: var(--body);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 18, 19, 23;
  --bs-link-hover-color: var(--accent);
  --bs-link-hover-color-rgb: 255, 90, 31;
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-border-radius: var(--radius-sm);
  --bs-focus-ring-color: rgba(255, 90, 31, .25);
}

/* 2. Base ------------------------------------------------------------------ */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.01em; }
a { text-decoration: none; transition: color .15s; }
.mono { font-family: var(--font-mono); }
.container { max-width: 1280px; }
::selection { background: var(--accent); color: #fff; }

.section { padding: 3rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.section-link { font-weight: 600; font-size: .875rem; display: inline-flex; align-items: center; gap: .25rem; }
.section-link i { font-size: 1.15rem; transition: transform .15s; }
.section-link:hover i { transform: translateX(3px); }

.eyebrow { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.eyebrow.light { color: #ffb08f; }

.stars { display: inline-flex; color: var(--star); font-size: .95rem; line-height: 1; }

/* media placeholder behind every product photo */
.media-ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(145deg, #f1f0ec, #e5e3dc); color: #b8b4aa; }
.media-ph i { font-size: clamp(2.5rem, 28%, 5rem); }
.p-img img, .gallery-main img, .gallery-thumbs img, .cmp-img img, .cart-thumb img, .tray-slot img,
.summary-items .thumb img, .deal-media img, .hero-media img, .promo-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.breadcrumb { --bs-breadcrumb-divider: '/'; font-size: .8125rem; margin-bottom: .5rem; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--ink); }

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.75rem 0 1.5rem; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 .25rem; }
.page-head p { color: var(--muted); margin: 0; }
.page-head-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }

.steps { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: .45rem; }
.steps li:not(:last-child)::after { content: ''; width: 28px; height: 1px; background: var(--line-2); margin: 0 .35rem; }
.steps span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: .75rem; }
.steps .active { color: var(--ink); }
.steps .active span { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps .done span { background: var(--accent); border-color: var(--accent); color: #fff; }

.empty-state { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; padding: 3.5rem 1.5rem; }
.empty-state > i { font-size: 3rem; color: var(--accent); margin-bottom: .75rem; display: inline-block; }
.empty-state h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.25rem; }
.small-empty { padding: 2rem 1rem; }
.small-empty p { margin: 0; }

/* 3. Buttons & forms -------------------------------------------------------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: var(--radius-sm); --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: .55rem; --bs-btn-font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn i { font-size: 1.15em; }
.btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: .95rem; }
.btn-sm { --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .75rem; --bs-btn-font-size: .8125rem; }
.btn-ink { --bs-btn-bg: var(--ink); --bs-btn-color: #fff; --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: var(--ink-2); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--ink-2); --bs-btn-active-bg: #000; --bs-btn-active-color: #fff; --bs-btn-disabled-bg: #9a9da3; --bs-btn-disabled-border-color: #9a9da3; --bs-btn-disabled-color: #fff; }
.btn-accent { --bs-btn-bg: var(--accent); --bs-btn-color: #fff; --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--accent-hover); --bs-btn-active-bg: #d63f08; --bs-btn-active-color: #fff; --bs-btn-disabled-bg: #f3a586; --bs-btn-disabled-border-color: #f3a586; --bs-btn-disabled-color: #fff; }
.btn-line { --bs-btn-bg: var(--surface); --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line-2); --bs-btn-hover-bg: var(--surface); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-active-bg: var(--tint); --bs-btn-active-border-color: var(--ink); }
.btn-ghost-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.35); --bs-btn-hover-bg: rgba(255,255,255,.08); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.btn-link { --bs-btn-color: var(--muted); --bs-btn-hover-color: var(--ink); text-decoration: none; }

.link-btn { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .875rem; color: var(--ink); }
.link-btn i { font-size: 1.15rem; }
.link-btn:hover, .link-btn.is-active { color: var(--accent); }
.link-inline { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; }

.form-control, .form-select { border-color: var(--line-2); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .9rem; background-color: var(--surface); }
.form-select-sm { padding: .35rem 2rem .35rem .65rem; font-size: .8125rem; }
.form-control:focus, .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 19, 23, .08); }
.form-label { font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); border-color: var(--accent); }

.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); height: 48px; }
.qty button { width: 40px; border: 0; background: none; color: var(--ink); font-size: 1.1rem; display: grid; place-items: center; }
.qty button:hover:not(:disabled) { color: var(--accent); }
.qty button:disabled { color: #c4c1b8; }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 600; color: var(--ink); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: none; }
.qty-sm { height: 38px; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 34px; font-size: .875rem; }

/* tags & stock */
.tag { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .03em; padding: .25rem .5rem; border-radius: 4px; text-transform: uppercase; line-height: 1.2; }
.tag-sale { background: var(--accent); color: #fff; }
.tag-new { background: var(--ink); color: #fff; }
.tag-hot { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.tag-muted { background: #e9e7e1; color: var(--muted); }
.stock { font-size: .75rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--muted); }

/* 4. Header ---------------------------------------------------------------- */
.topbar { background: var(--ink); color: #c9cad0; font-size: .75rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar i { color: var(--accent); vertical-align: -2px; margin-right: .2rem; }
.topbar-links { display: none; gap: 1.5rem; align-items: center; }
.topbar a { color: #c9cad0; }
.topbar a:hover { color: #fff; }

.mainbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.mainbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-mono); font-weight: 500; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: #8d9099; }

.search-box { flex: 1; max-width: 640px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; align-items: stretch; height: 46px; display: flex; }
.search-box select { border: 0; border-right: 1px solid var(--line); background: var(--tint); font-size: .8125rem; font-weight: 600; color: var(--ink); padding: 0 .75rem; max-width: 130px; cursor: pointer; }
.search-box input { flex: 1; border: 0; padding: 0 .9rem; font-size: .9rem; min-width: 0; }
.search-box input:focus, .search-box select:focus { outline: none; }
.search-box button { border: 0; background: var(--accent); color: #fff; width: 52px; font-size: 1.35rem; display: grid; place-items: center; transition: background .15s; }
.search-box button:hover { background: var(--accent-hover); }
.mobile-search { margin: 0 0 .85rem; height: 42px; max-width: none; }

.hdr-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.hdr-action { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem .65rem; border-radius: var(--radius-sm); color: var(--ink); min-width: 64px; }
.hdr-action:hover, .hdr-action.active { color: var(--accent); background: var(--accent-soft); }
.hdr-action .ico { position: relative; font-size: 1.5rem; line-height: 1; }
.hdr-action .lbl { font-size: .6875rem; font-weight: 600; white-space: nowrap; }
.count { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .625rem; font-weight: 700; font-family: var(--font-body); display: grid; place-items: center; border: 2px solid var(--surface); }
.count[hidden] { display: none; }
.icon-btn { border: 1px solid var(--line-2); background: var(--surface); width: 42px; height: 42px; border-radius: var(--radius-sm); font-size: 1.5rem; display: grid; place-items: center; color: var(--ink); }

.catbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.catbar ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.catbar a { display: flex; align-items: center; gap: .4rem; padding: .7rem .7rem; font-size: .8125rem; font-weight: 600; color: var(--body); white-space: nowrap; border-bottom: 2px solid transparent; }
.catbar a i { font-size: 1.1rem; color: var(--muted); }
.catbar a:hover, .catbar a.active { color: var(--ink); border-bottom-color: var(--ink); }
.catbar a:hover i, .catbar a.active i { color: var(--accent); }
.catbar a.all { color: var(--ink); }
.catbar a.deals, .catbar a.deals i { color: var(--accent); }

.mobile-nav { --bs-offcanvas-width: 320px; }
.nav-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: .5rem 0 .5rem; }
.mobile-links { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.mobile-links a { display: flex; align-items: center; gap: .75rem; padding: .7rem .25rem; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.mobile-links a i { font-size: 1.25rem; color: var(--muted); }
.mobile-links a.deals, .mobile-links a.deals i { color: var(--accent); }

/* 5. Footer ---------------------------------------------------------------- */
.service-strip { background: var(--surface); border-top: 1px solid var(--line); }
.service { display: flex; align-items: center; gap: .85rem; padding: 1.5rem 1rem; border-right: 1px solid var(--line); height: 100%; }
.service i { font-size: 1.85rem; color: var(--accent); flex-shrink: 0; }
.service strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: .95rem; }
.service span { font-size: .8125rem; color: var(--muted); }
.service-strip .col-lg-3:last-child .service { border-right: 0; }

.site-footer { background: var(--ink); color: #a7aab2; font-size: .875rem; padding-top: 3.5rem; }
.footer-main { padding-bottom: 2.5rem; }
.site-footer h6 { color: #fff; font-family: var(--font-display); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #a7aab2; }
.site-footer a:hover { color: #fff; }
.footer-about { margin: 1rem 0 1.25rem; max-width: 340px; line-height: 1.6; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); font-size: 1.1rem; margin-top: 1px; }
.newsletter { display: flex; border: 1px solid #3a3d45; border-radius: var(--radius-sm); overflow: hidden; }
.newsletter input { flex: 1; background: transparent; border: 0; padding: .65rem .85rem; color: #fff; min-width: 0; }
.newsletter input::placeholder { color: #6f727b; }
.newsletter input:focus { outline: none; }
.newsletter button { background: var(--accent); color: #fff; border: 0; padding: 0 1rem; font-weight: 600; font-size: .8125rem; }
.newsletter button:hover { background: var(--accent-hover); }
.pay-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay-chips span { border: 1px solid #3a3d45; border-radius: 4px; padding: .2rem .55rem; font-size: .75rem; font-weight: 600; color: #d4d5da; }
.footer-bottom { border-top: 1px solid #2a2c33; padding: 1.25rem 0 6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .8125rem; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 34px; height: 34px; border: 1px solid #3a3d45; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.credit { color: #d4d5da; font-weight: 500; }

/* 6. Product card ----------------------------------------------------------- */
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); height: 100%; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.p-card:hover { border-color: var(--line-2); box-shadow: 0 10px 30px -18px rgba(18, 19, 23, .35); }
.p-media { position: relative; }
.p-img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint); }
.p-img img { transition: transform .4s ease; }
.p-card:hover .p-img img { transform: scale(1.04); }
.p-tags { position: absolute; top: .65rem; left: .65rem; display: flex; gap: .35rem; z-index: 2; }
.p-cmp { position: absolute; top: .55rem; right: .55rem; z-index: 2; height: 32px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: .3rem; padding: 0 .55rem; font-size: .75rem; font-weight: 600; color: var(--ink); transition: all .15s; }
.p-cmp i { font-size: 1rem; }
.p-cmp span { display: none; }
.p-card:hover .p-cmp span, .p-cmp.is-active span { display: inline; }
.p-cmp:hover { border-color: var(--ink); }
.p-cmp.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.p-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.p-meta { display: flex; gap: .5rem; font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.p-meta span + span::before { content: '·'; margin-right: .5rem; }
.p-title { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1.35; margin: 0 0 .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-title a { color: var(--ink); }
.p-title a:hover { color: var(--accent); }
.p-rating { display: flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.p-rating .stars { font-size: .8rem; }
.p-rating em { font-style: normal; color: var(--muted); font-weight: 500; }
.p-specs { display: none; }
.p-foot { display: flex; align-items: end; justify-content: space-between; gap: .5rem; margin-top: auto; }
.p-price strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.p-price s { font-size: .8rem; color: var(--muted); }
.p-add { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 1.3rem; display: grid; place-items: center; flex-shrink: 0; transition: all .15s; }
.p-add:hover:not(:disabled) { background: var(--ink); color: #fff; }
.p-add:disabled { border-color: var(--line-2); color: #c4c1b8; }
.p-stock { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.is-out .p-img img { filter: grayscale(.8); opacity: .7; }

/* list view */
.is-list .p-card { flex-direction: row; }
.is-list .p-media { width: 240px; flex-shrink: 0; }
.is-list .p-img { height: 100%; aspect-ratio: auto; min-height: 220px; }
.is-list .p-body { padding: 1.1rem 1.25rem; }
.is-list .p-title { font-size: 1.05rem; min-height: 0; }
.is-list .p-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .8125rem; color: var(--body); }
.is-list .p-specs li { position: relative; padding-left: .9rem; }
.is-list .p-specs li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; background: var(--accent); border-radius: 1px; }
.is-list .p-cmp span { display: inline; }

/* 7. Home ------------------------------------------------------------------ */
.hero { padding: 1.5rem 0 0; }
.hero-main { position: relative; background: var(--ink); color: #c9cad0; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: grid; grid-template-columns: 1.1fr .9fr; }
.hero-copy { padding: 2.75rem 2.5rem; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: .85rem 0 1rem; }
.hero-copy h1 span { color: var(--accent); }
.hero-copy p { max-width: 420px; margin-bottom: 1.5rem; line-height: 1.6; }
.hero-cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid #2c2f36; }
.hero-stats dt { font-family: var(--font-display); color: #fff; font-size: 1.15rem; font-weight: 700; }
.hero-stats dd { margin: 0; font-size: .75rem; color: #8d9099; }
.hero-media { position: relative; overflow: hidden; }
.hero-media .media-ph { background: linear-gradient(145deg, #23252b, #1a1b20); color: #3b3e46; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(18,19,23,0) 35%); }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; height: 100%; }
.promo-tile { position: relative; border-radius: var(--radius); padding: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; overflow: hidden; color: var(--ink); min-height: 200px; border: 1px solid var(--line); }
.promo-tile h3 { font-size: 1.35rem; font-weight: 800; margin: .4rem 0 .3rem; }
.promo-tile p { font-size: .875rem; color: var(--body); margin-bottom: 1rem; max-width: 200px; }
.promo-link { font-weight: 700; font-size: .8125rem; display: inline-flex; align-items: center; gap: .2rem; }
.promo-tile:hover .promo-link { color: var(--accent); }
.promo-audio { background: var(--surface); }
.promo-media { position: relative; width: 44%; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.promo-appliance { background: #e3ece6; border-color: #cfdcd3; }
.promo-appliance .eyebrow { color: #2f6f4f; }
.promo-icon { position: absolute; right: -10px; bottom: -20px; font-size: 9rem; color: rgba(47, 111, 79, .14); }

.cat-tile { position: relative; display: flex; flex-direction: column; gap: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; height: 100%; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-tile > i:first-child { font-size: 2rem; color: var(--ink); margin-bottom: .6rem; transition: color .15s; }
.cat-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.cat-count { font-size: .75rem; color: var(--muted); }
.cat-arrow { position: absolute; top: 1.1rem; right: 1.1rem; font-size: 1.25rem; color: var(--line-2); transition: all .15s; }
.cat-tile:hover { border-color: var(--ink); color: var(--ink); }
.cat-tile:hover > i:first-child { color: var(--accent); }
.cat-tile:hover .cat-arrow { color: var(--ink); transform: translateX(3px); }

.deal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: grid; grid-template-columns: 1fr 1.1fr; }
.deal-media { position: relative; min-height: 320px; }
.deal-media .tag { position: absolute; top: 1rem; left: 1rem; font-size: .8125rem; }
.deal-info { padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.deal-info h3 { font-size: 1.35rem; font-weight: 800; margin: 0; line-height: 1.2; }
.deal-info h3 a { color: var(--ink); }
.deal-info p { font-size: .875rem; margin: 0; color: var(--body); }
.deal-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.deal-price strong { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--ink); }
.deal-price s { color: var(--muted); }
.save { background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; font-size: .75rem; padding: .2rem .5rem; border-radius: 4px; }
.deal-progress .bar, .ship-meter .bar { height: 6px; background: var(--tint); border-radius: 3px; overflow: hidden; margin-top: .35rem; }
.deal-progress .bar span, .ship-meter .bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.deal-progress { color: var(--muted); }
.countdown { display: flex; gap: .5rem; }
.countdown div { background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: .45rem .3rem; min-width: 60px; text-align: center; }
.countdown b { display: block; font-family: var(--font-mono); font-size: 1.25rem; line-height: 1.1; }
.countdown span { font-size: .625rem; text-transform: uppercase; letter-spacing: .08em; color: #8d9099; }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; }
.seg button { border: 0; background: none; padding: .4rem .85rem; font-size: .8125rem; font-weight: 600; color: var(--muted); border-radius: 4px; }
.seg button.active { background: var(--ink); color: #fff; }
.seg button:not(.active):hover { color: var(--ink); }

.feature-banner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; }
.fb-copy { padding: 2.5rem; }
.fb-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: .6rem 0 .75rem; letter-spacing: -.02em; }
.fb-copy p { max-width: 460px; margin-bottom: 1.25rem; }
.fb-visual { background: var(--tint); display: flex; gap: .85rem; align-items: center; justify-content: center; padding: 2rem; border-left: 1px solid var(--line); }
.fb-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem; display: flex; flex-direction: column; gap: .5rem; width: 110px; }
.fb-col::before { content: ''; height: 64px; background: linear-gradient(145deg, #ecebe6, #dedcd4); border-radius: 4px; margin-bottom: .2rem; }
.fb-col span { height: 8px; border-radius: 4px; background: var(--tint); }
.fb-col span.hi { background: var(--accent); width: 70%; }

.brand-row { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.brand-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem .5rem; border-right: 1px solid var(--line); color: var(--ink); transition: background .15s; }
.brand-chip:last-child { border-right: 0; }
.brand-chip span { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-transform: uppercase; }
.brand-chip small { font-size: .6875rem; color: var(--muted); }
.brand-chip:hover { background: var(--tint); color: var(--accent); }

/* 8. Shop ------------------------------------------------------------------ */
.filters .offcanvas-header { border-bottom: 1px solid var(--line); }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.15rem 1.15rem; }
.filter-block { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.filter-block:last-of-type { border-bottom: 0; margin-bottom: .5rem; }
.filter-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--ink); margin-bottom: .65rem; }
.filter-search { position: relative; }
.filter-search i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-search input { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .5rem .7rem .5rem 2.1rem; font-size: .8125rem; }
.filter-search input:focus { outline: none; border-color: var(--ink); }
.check-row { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .8125rem; cursor: pointer; color: var(--body); }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.check-row span { flex: 1; display: inline-flex; align-items: center; gap: .3rem; }
.check-row em { font-style: normal; font-size: .6875rem; color: var(--muted); background: var(--tint); border-radius: 10px; padding: 0 .45rem; }
.check-row:hover { color: var(--ink); }
.check-row .stars { font-size: .8rem; }
.price-inputs { display: flex; align-items: center; gap: .4rem; }
.price-inputs > div { position: relative; flex: 1; }
.price-inputs span { position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); font-size: .8125rem; color: var(--muted); }
.price-inputs input { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .4rem .4rem .4rem 1.3rem; font-size: .8125rem; -moz-appearance: textfield; }
.price-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; }
.price-inputs input:focus { outline: none; border-color: var(--ink); }
.price-inputs i { color: var(--muted); font-style: normal; }
.price-inputs .btn { --bs-btn-padding-x: .5rem; height: 32px; }
.price-presets { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.price-presets button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: .2rem .6rem; font-size: .75rem; color: var(--body); }
.price-presets button:hover { border-color: var(--ink); color: var(--ink); }
.price-presets button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.shop-toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .75rem; margin-bottom: 1rem; scroll-margin-top: 90px; }
.result-count { font-size: .8125rem; color: var(--muted); }
.result-count b { color: var(--ink); }
.toolbar-right { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.toolbar-right .form-select { width: auto; height: 34px; }
.view-toggle { display: flex; flex-shrink: 0; height: 34px; padding: 2px; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.view-toggle button { flex: 0 0 30px; width: 30px; height: 100%; padding: 0; border: 0; border-radius: 4px; background: transparent; font-size: 1.15rem; line-height: 1; color: var(--muted); display: grid; place-items: center; transition: background .15s, color .15s; }
.view-toggle button:hover:not(.active) { background: var(--tint); color: var(--ink); }
.view-toggle button.active { background: var(--ink); color: #fff; }
.active-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid var(--line-2); background: var(--surface); border-radius: 16px; padding: .25rem .4rem .25rem .7rem; font-size: .75rem; font-weight: 600; color: var(--ink); }
.chip i { font-size: 1rem; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip:hover i { color: var(--accent); }
.chip-clear { border: 0; background: none; text-decoration: underline; padding-left: .3rem; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; }
.pager:empty { display: none; }
.pager button { min-width: 38px; height: 38px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; color: var(--ink); display: grid; place-items: center; }
.pager button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:hover:not(:disabled):not(.active) { border-color: var(--ink); }
.pager button:disabled { opacity: .4; }

/* 9. Product detail -------------------------------------------------------- */
.gallery { position: sticky; top: 92px; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.gallery-main .media-ph i { font-size: 7rem; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .6rem; }
.gallery-thumbs button { position: relative; aspect-ratio: 1 / 1; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; padding: 0; background: var(--tint); }
.gallery-thumbs button.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface) inset; }
.gallery-thumbs .media-ph i { font-size: 1.75rem; }

.pd-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.pd-brand { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sku { font-family: var(--font-mono); font-size: .6875rem; color: var(--muted); }
.pd-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; margin-bottom: .6rem; }
.pd-rating { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--ink); }
.pd-rating span { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pd-rating:hover span { color: var(--accent); }
.pd-price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: 1.25rem 0 .25rem; }
.pd-price strong { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.pd-price s { color: var(--muted); font-size: 1rem; }
.pd-installment { font-size: .8125rem; color: var(--body); display: flex; align-items: center; gap: .35rem; }
.pd-installment i { color: var(--accent); font-size: 1.1rem; }
.pd-installment b { color: var(--ink); }
.pd-summary { margin: 1rem 0; line-height: 1.6; }
.pd-highlights { list-style: none; padding: 1rem 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; font-size: .875rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-highlights li { display: flex; gap: .4rem; align-items: flex-start; color: var(--ink); }
.pd-highlights i { color: var(--ok); font-size: 1.15rem; }
.pd-option { margin-bottom: 1.15rem; }
.opt-label { font-size: .8125rem; color: var(--muted); margin-bottom: .5rem; }
.opt-label b { color: var(--ink); }
.swatches { display: flex; gap: .5rem; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--sw); box-shadow: inset 0 0 0 3px var(--surface); padding: 0; }
.swatch.active { border: 2px solid var(--ink); }
.opt-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-pill { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--radius-sm); padding: .5rem .85rem; text-align: left; display: flex; flex-direction: column; min-width: 110px; }
.opt-pill span { font-weight: 600; font-size: .875rem; color: var(--ink); }
.opt-pill small { font-size: .75rem; color: var(--muted); }
.opt-pill:hover { border-color: var(--ink-2); }
.opt-pill.active { border-color: var(--ink); background: var(--tint); }
.pd-stock { margin-bottom: 1rem; }
.pd-buy { display: flex; gap: .6rem; flex-wrap: wrap; }
.pd-buy .btn-lg { height: 48px; }
.pd-secondary { display: flex; gap: 1.5rem; margin: 1.1rem 0 1.5rem; }
.pd-assure { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pd-assure li { display: flex; gap: .85rem; align-items: center; padding: .85rem 1rem; }
.pd-assure li + li { border-top: 1px solid var(--line); }
.pd-assure i { font-size: 1.5rem; color: var(--ink); }
.pd-assure b { display: block; font-size: .8125rem; color: var(--ink); }
.pd-assure span { font-size: .8125rem; color: var(--muted); }

.pd-tabs { border-bottom: 1px solid var(--line-2); gap: 1.75rem; }
.pd-tabs .nav-link { padding: .85rem 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 1rem; background: none; border-radius: 0; }
.pd-tabs .nav-link:hover { color: var(--ink); }
.pd-tabs .nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-count { font-family: var(--font-body); font-size: .6875rem; background: var(--tint); color: var(--ink); padding: .1rem .45rem; border-radius: 10px; vertical-align: 2px; }
.pd-tab-content { padding-top: 1.75rem; }
.tab-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.tab-sub { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.feature { display: flex; gap: .55rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .85rem; font-size: .875rem; font-weight: 500; color: var(--ink); }
.feature i { color: var(--accent); font-size: 1.25rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.plain-list { padding-left: 1.1rem; margin: 0; font-size: .875rem; }
.plain-list li { margin-bottom: .3rem; }

.spec-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); margin: 0; }
.spec-row:last-child { border-bottom: 0; }
.spec-row:nth-child(even) { background: #fbfaf8; }
.spec-row dt { padding: .8rem 1.1rem; font-weight: 600; font-size: .8125rem; color: var(--muted); border-right: 1px solid var(--line); }
.spec-row dd { padding: .8rem 1.1rem; margin: 0; font-size: .875rem; color: var(--ink); }

/* 10. Reviews -------------------------------------------------------------- */
.review-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; position: sticky; top: 92px; }
.review-summary .avg { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.15rem; }
.review-summary .avg strong { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.review-summary .avg .stars { font-size: 1.1rem; display: flex; }
.review-summary .avg span:not(.stars) { font-size: .75rem; color: var(--muted); }
.bar-row { display: grid; grid-template-columns: 36px 1fr 48px; align-items: center; gap: .6rem; width: 100%; border: 0; background: none; padding: .3rem .35rem; border-radius: 4px; font-size: .8125rem; color: var(--ink); }
.bar-row > span:first-child { display: flex; align-items: center; gap: 2px; font-weight: 600; }
.bar-row i { color: var(--star); font-size: .8rem; }
.bar-row .bar { height: 8px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.bar-row .bar span { display: block; height: 100%; background: var(--star); border-radius: 4px; }
.bar-row em { font-style: normal; color: var(--muted); text-align: right; font-size: .75rem; }
.bar-row:hover, .bar-row.active { background: var(--tint); }
.review-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1.25rem; }
.star-input { display: flex; gap: .15rem; }
.star-input button { border: 0; background: none; padding: 0 .1rem; font-size: 1.75rem; color: #d9d6ce; transition: color .1s, transform .1s; }
.star-input button.on { color: var(--star); }
.star-input button:hover { transform: scale(1.1); }
.review-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; font-size: .875rem; font-weight: 600; color: var(--ink); }
.review-toolbar .form-select { width: auto; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; margin-bottom: .75rem; }
.review header { display: flex; align-items: center; gap: .7rem; margin-bottom: .65rem; flex-wrap: wrap; }
.review header b { display: block; font-size: .875rem; color: var(--ink); }
.review header span:not(.avatar):not(.verified) { font-size: .75rem; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.verified { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--ok); display: inline-flex; align-items: center; gap: .25rem; }
.review-stars { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.review-stars b { color: var(--ink); font-size: .9375rem; }
.review p { font-size: .875rem; margin-bottom: .65rem; line-height: 1.6; }
.helpful { border: 1px solid var(--line); background: none; border-radius: 14px; padding: .15rem .65rem; font-size: .75rem; color: var(--muted); display: inline-flex; align-items: center; gap: .25rem; }
.helpful:hover { border-color: var(--ink); color: var(--ink); }
.helpful.done { border-color: var(--ok); color: var(--ok); }

/* 11. Compare -------------------------------------------------------------- */
.compare-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .875rem; }
.compare-toolbar b { color: var(--ink); }
.compare-toolbar .form-check-label { font-weight: 500; color: var(--ink); }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare-table th, .compare-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; font-size: .875rem; }
.compare-table tr > *:last-child { border-right: 0; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table .label-col { width: 190px; position: sticky; left: 0; background: var(--surface); z-index: 2; font-weight: 600; color: var(--muted); font-size: .8125rem; }
.compare-table thead th { background: var(--surface); }
.compare-table thead .label-col { vertical-align: bottom; }
.compare-hint { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.compare-table tbody td { color: var(--ink); }
.compare-table tbody tr.diff .label-col { color: var(--ink); }
.compare-table tbody tr.diff td { background: #fffaf6; }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover .label-col { background: var(--tint); }
.compare-table td.empty { background: repeating-linear-gradient(-45deg, transparent 0 8px, #f7f6f3 8px 16px) !important; }
.compare-table .best { color: var(--ok); font-weight: 700; }
.compare-table .best::after { content: 'Best'; margin-left: .35rem; font-size: .625rem; text-transform: uppercase; letter-spacing: .05em; background: var(--ok-soft); color: var(--ok); padding: .1rem .35rem; border-radius: 3px; vertical-align: 2px; }
.compare-table .na { color: #b8b4aa; }
.cmp-card { position: relative; display: flex; flex-direction: column; gap: .6rem; }
.cmp-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); }
.cmp-name { font-weight: 600; color: var(--ink); line-height: 1.3; min-height: 2.6em; font-size: .875rem; }
.cmp-remove { position: absolute; top: .4rem; right: .4rem; z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.1rem; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cmp-remove:hover { background: var(--danger); color: #fff; }
.cmp-add-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; aspect-ratio: 1 / 1; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--muted); font-size: .8125rem; font-weight: 600; }
.cmp-add-slot i { font-size: 1.75rem; }
.cmp-add-slot:hover { border-color: var(--ink); color: var(--ink); }

/* 12. Cart ----------------------------------------------------------------- */
.cart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-head, .cart-line { display: grid; grid-template-columns: 88px 1fr 120px 120px 40px; gap: 1rem; align-items: center; padding: 1rem 1.25rem; }
.cart-head { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-top: .75rem; padding-bottom: .75rem; }
.cart-head span:nth-child(3) { text-align: right; }
.cart-line { border-bottom: 1px solid var(--line); }
.cart-head span:first-child { grid-column: span 2; }
.cart-thumb { position: relative; width: 88px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); display: block; }
.cart-thumb .media-ph i { font-size: 2rem; }
.cart-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cart-info .p-meta { margin: 0; }
.cart-name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.cart-variant { font-size: .8125rem; color: var(--body); }
.cart-unit { font-size: .75rem; color: var(--muted); }
.cart-total { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-align: right; }
.cart-remove { border: 0; background: none; color: var(--muted); font-size: 1.25rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.cart-remove:hover { background: #fbeceb; color: var(--danger); }
.cart-actions { display: flex; justify-content: space-between; padding: 1rem 1.25rem; }

.sticky-lg { position: sticky; top: 92px; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.summary-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.ship-meter { background: var(--tint); border-radius: var(--radius-sm); padding: .7rem .85rem; font-size: .8125rem; margin-bottom: 1rem; color: var(--body); }
.ship-meter b { color: var(--ink); }
.ship-meter .bar { background: #fff; }
.ship-meter.ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.summary-rows { margin: 0; }
.summary-rows > div { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .875rem; }
.summary-rows dt { font-weight: 500; color: var(--body); }
.summary-rows dd { margin: 0; color: var(--ink); font-weight: 600; }
.summary-rows .discount dd, .summary-rows .discount dt { color: var(--ok); }
.summary-rows .total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .85rem; }
.summary-rows .total dt { font-weight: 700; color: var(--ink); font-size: 1rem; }
.summary-rows .total dd { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.free { color: var(--ok); }
.vat-note { font-size: .75rem; color: var(--muted); text-align: right; margin: 0 0 1rem; }
.coupon-form { display: flex; gap: .4rem; }
.coupon-form .form-control { text-transform: uppercase; }
.coupon-hint { font-size: .75rem; color: var(--muted); margin: .45rem 0 1rem; }
.coupon-hint code { color: var(--ink); background: var(--tint); padding: .05rem .3rem; border-radius: 3px; font-family: var(--font-mono); font-size: .6875rem; }
.coupon-applied { display: flex; align-items: center; gap: .6rem; border: 1px dashed var(--ok); background: var(--ok-soft); border-radius: var(--radius-sm); padding: .6rem .75rem; margin-bottom: 1rem; }
.coupon-applied > i { color: var(--ok); font-size: 1.35rem; }
.coupon-applied b { display: block; font-family: var(--font-mono); font-size: .8125rem; color: var(--ink); }
.coupon-applied span { font-size: .75rem; color: var(--ok); }
.coupon-applied .btn { margin-left: auto; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: .75rem; color: var(--muted); margin-top: .85rem; }

/* 13. Checkout ------------------------------------------------------------- */
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.5rem 1.5rem; margin-bottom: 1rem; }
.co-card legend { float: none; display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-bottom: 1.1rem; }
.co-card .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8125rem; }
.pickup-note { display: none; background: var(--tint); border-radius: var(--radius-sm); padding: .75rem .9rem; font-size: .8125rem; margin-bottom: 1rem; }
.pickup-note i { color: var(--accent); font-size: 1.1rem; vertical-align: -3px; }
.is-pickup .pickup-note { display: block; }
.is-pickup .addr { display: none; }
.choice-list { display: grid; gap: .5rem; }
.choice { display: flex; align-items: center; gap: .85rem; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: .85rem 1rem; cursor: pointer; transition: border-color .15s, background .15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; position: relative; }
.choice-body { flex: 1; display: flex; flex-direction: column; }
.choice-body b { font-size: .9rem; color: var(--ink); }
.choice-body small { font-size: .75rem; color: var(--muted); }
.choice-price { font-weight: 700; color: var(--ink); font-size: .875rem; }
.choice-ico { font-size: 1.5rem; color: var(--muted); }
.choice:hover { border-color: var(--ink-2); }
.choice.active { border-color: var(--ink); background: #fbfaf8; }
.choice.active .choice-dot { border-color: var(--accent); }
.choice.active .choice-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.choice.active .choice-ico { color: var(--ink); }
.choice input:focus-visible ~ .choice-dot { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.pay-extra { margin-top: .85rem; font-size: .8125rem; background: var(--tint); border-radius: var(--radius-sm); padding: .7rem .85rem; display: flex; gap: .4rem; align-items: flex-start; }
.pay-extra i { color: var(--accent); font-size: 1.05rem; margin-top: 1px; }
.pay-extra[hidden] { display: none; }
.card-fields { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.summary-items { list-style: none; padding: 0; margin: 0 0 1rem; border-bottom: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.summary-items li { display: flex; gap: .75rem; align-items: center; padding: .65rem 0; }
.summary-items li + li { border-top: 1px solid var(--line); }
.summary-items .thumb { position: relative; width: 54px; height: 54px; border-radius: var(--radius-sm); background: var(--tint); flex-shrink: 0; }
.summary-items .thumb .media-ph { border-radius: var(--radius-sm); }
.summary-items .thumb .media-ph i { font-size: 1.4rem; }
.summary-items .thumb img { border-radius: var(--radius-sm); }
.summary-items .thumb b { position: absolute; top: -6px; right: -6px; z-index: 2; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .6875rem; display: grid; place-items: center; padding: 0 4px; }
.summary-items .info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .8125rem; color: var(--ink); font-weight: 500; line-height: 1.3; }
.summary-items .info small { color: var(--muted); font-weight: 400; }
.summary-items .amt { font-weight: 600; font-size: .875rem; color: var(--ink); }
.installment-note { background: var(--accent-soft); color: var(--ink); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .8125rem; margin-bottom: .75rem; display: flex; gap: .4rem; align-items: center; }
.installment-note i { color: var(--accent); font-size: 1.1rem; }
.terms-note { font-size: .6875rem; color: var(--muted); text-align: center; margin: .75rem 0 0; }

.success-modal { border: 0; border-radius: var(--radius); padding: 2.25rem 2rem 2rem; text-align: center; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 2.25rem; display: grid; place-items: center; margin: 0 auto 1rem; }
.success-modal h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }
.success-modal p { color: var(--body); font-size: .9rem; }
.success-rows { text-align: left; background: var(--paper); border-radius: var(--radius-sm); padding: .5rem 1rem; margin: 1.25rem 0 1.5rem; }
.success-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .8125rem; }
.success-rows div + div { border-top: 1px solid var(--line); }
.success-rows dt { color: var(--muted); font-weight: 500; }
.success-rows dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* 14. Toasts & compare tray ------------------------------------------------- */
.toast-container { z-index: 1090; }
.app-toast { background: var(--ink); color: #fff; border: 0; border-radius: var(--radius-sm); box-shadow: 0 12px 32px -12px rgba(0,0,0,.45); width: 340px; }
.app-toast .toast-body { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; font-size: .8125rem; }
.app-toast .toast-body > i { font-size: 1.35rem; color: #5ad19a; flex-shrink: 0; }
.app-toast.tone-warn .toast-body > i { color: #ffb36b; }
.app-toast.tone-muted .toast-body > i { color: #a7aab2; }
.app-toast .toast-body > span { flex: 1; }
.toast-link { color: var(--accent) !important; font-weight: 700; white-space: nowrap; }
.app-toast .btn-close { font-size: .65rem; }

.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: var(--surface); border-top: 1px solid var(--line-2); box-shadow: 0 -10px 30px -18px rgba(18,19,23,.4); transform: translateY(110%); transition: transform .25s ease; }
.compare-tray.show { transform: none; }
.compare-tray .container { display: flex; align-items: center; gap: 1.25rem; padding-top: .7rem; padding-bottom: .7rem; }
.tray-label strong { display: block; font-family: var(--font-display); color: var(--ink); }
.tray-label span { font-size: .75rem; color: var(--muted); }
.tray-slots { display: flex; gap: .5rem; }
.tray-slot { position: relative; width: 52px; height: 52px; border-radius: var(--radius-sm); border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--line-2); font-size: 1.25rem; }
.tray-slot.filled { border: 1px solid var(--line); background: var(--tint); }
.tray-slot .media-ph { border-radius: var(--radius-sm); }
.tray-slot .media-ph i { font-size: 1.25rem; }
.tray-slot img { border-radius: var(--radius-sm); }
.tray-slot button { position: absolute; top: -7px; right: -7px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: .9rem; display: grid; place-items: center; padding: 0; }
.tray-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }

/* 15. Responsive ----------------------------------------------------------- */
@media (min-width: 992px) {
  .topbar-links { display: flex; }
  .filters .offcanvas-header { display: none; }
  .filters .offcanvas-body { padding: 0; }
}

@media (max-width: 1199.98px) {
  .brand-row { grid-template-columns: repeat(4, 1fr); }
  .brand-chip:nth-child(4n) { border-right: 0; }
  .brand-chip:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .deal-card { grid-template-columns: 1fr; }
  .deal-media { min-height: 260px; }
}

@media (max-width: 991.98px) {
  .mainbar-inner { min-height: 64px; gap: .75rem; }
  .hero-main { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 240px; order: -1; }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(18,19,23,0) 45%); }
  .hero-copy { padding: 1.75rem 1.5rem 2rem; }
  .hero-side { grid-template-rows: auto; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-strip .col-6:nth-child(odd) .service { border-right: 1px solid var(--line); }
  .feature-banner { grid-template-columns: 1fr; }
  .fb-visual { border-left: 0; border-top: 1px solid var(--line); }
  .gallery, .review-summary, .sticky-lg { position: static; }
  .filters { --bs-offcanvas-width: 320px; }
  .filters .filter-panel { border: 0; padding: 0; }
}

@media (max-width: 767.98px) {
  .section { padding: 2.25rem 0; }
  .hdr-action { min-width: 0; padding: .35rem .45rem; }
  .hdr-action .lbl { display: none; }
  .brand-text { font-size: 1.2rem; }
  .hero-stats { gap: 1.25rem; }
  .p-body { padding: .75rem .8rem .85rem; }
  .p-price strong { font-size: 1rem; }
  .p-add { width: 36px; height: 36px; font-size: 1.15rem; }
  .p-cmp span { display: none !important; }
  .is-list .p-card { flex-direction: column; }
  .is-list .p-media { width: 100%; }
  .is-list .p-img { aspect-ratio: 16 / 10; min-height: 0; }
  .is-list .p-specs { grid-template-columns: 1fr; }
  .toolbar-right { margin-left: 0; width: 100%; }
  .toolbar-right .form-select { flex: 1; width: auto; }
  .pd-highlights, .feature-grid { grid-template-columns: 1fr; }
  .pd-buy .qty { width: 100%; justify-content: space-between; }
  .pd-buy .qty input { flex: 1; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-row dt { border-right: 0; padding-bottom: 0; }
  .spec-row dd { padding-top: .2rem; }
  .cart-head { display: none; }
  .cart-line { grid-template-columns: 72px 1fr 36px; grid-template-areas: 'thumb info remove' 'thumb qty total'; row-gap: .6rem; padding: 1rem; }
  .cart-thumb { grid-area: thumb; width: 72px; height: 72px; align-self: start; }
  .cart-info { grid-area: info; }
  .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-total { grid-area: total; align-self: center; }
  .cart-remove { grid-area: remove; align-self: start; }
  .compare-tray .container { gap: .75rem; }
  .tray-label span { display: none; }
  .tray-slot { width: 42px; height: 42px; }
  .co-card { padding: 1.15rem; }
  .steps { display: none; }
  .brand-row { grid-template-columns: repeat(2, 1fr); }
  .brand-chip { border-bottom: 1px solid var(--line); }
  .brand-chip:nth-child(2n) { border-right: 0; }
}

@media (max-width: 575.98px) {
  .tray-slots { display: none; }
  .countdown div { min-width: 52px; }
  .promo-media { width: 38%; }
}
