/* ============================================================
   Dhabang — Design system on top of Bootstrap 5.3
   Brand: deep navy (structure) + orange (action). Font: Inter.
   Logo palette: navy #17203b, orange #f5811f.
   ============================================================ */

:root {
  /* brand — navy: headers, links, nav, structure */
  --jp: #17203b;
  --jp-dark: #0d1428;
  --jp-soft: #eef1f8;

  /* brand — orange: CTA, price, highlights */
  --accent: #f5811f;
  --accent-dark: #d96a0c;
  --accent-soft: #fff2e5;
  --accent-line: #ffd9b3;

  --ink: #14181f;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --muted: #6b7280;
  --muted-2: #99a1af;
  --line: #ebedf2;
  --line-2: #dfe3ea;
  --danger: #d0342c;
  --gold: #b4740a;
  --ok: #0a7d4f;
  --dark-1: #101828;

  /* Bootstrap overrides */
  --bs-primary: var(--jp);
  --bs-primary-rgb: 23, 32, 59;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-radius: .75rem;
  --bs-link-color: var(--jp);
  --bs-link-hover-color: var(--jp-dark);
  --bs-link-color-rgb: 23, 32, 59;
}

@media (min-width: 1400px) { .container-xxl { max-width: 1280px; } }

html { scroll-behavior: smooth; }
body {
  font-family: var(--bs-body-font-family);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ---- Focus visibility for a11y ---- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--jp);
  outline-offset: 2px;
}

.text-brand { color: var(--jp) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted-2 { color: var(--muted-2) !important; }
.bg-brand { background: var(--jp) !important; }
.bg-brand-soft { background: var(--jp-soft) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-accent-soft { background: var(--accent-soft) !important; }
.bg-ink { background: var(--ink) !important; }
.bg-darkgreen { background: var(--dark-1) !important; }

/* ============ BUTTONS ============ */
/* .btn-brand = primary CTA, orange (logo swoosh). Navy is structural. */
.btn { --bs-btn-border-radius: .75rem; font-weight: 700; border-radius: .75rem; }
.btn-brand {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-brand:hover, .btn-brand:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-brand.shadow-cta { box-shadow: 0 10px 24px -10px rgba(245,129,31,.6); }
.btn-brand.shadow-cta:hover { transform: translateY(-1px); }

.btn-outline-brand {
  background: #fff; border: 1px solid var(--accent); color: var(--accent-dark);
  transition: all .2s;
}
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--accent); border-color: var(--accent); color: #fff; }

/* navy secondary CTA */
.btn-navy { background: var(--jp); border-color: var(--jp); color: #fff; transition: background .2s; }
.btn-navy:hover, .btn-navy:focus { background: var(--jp-dark); border-color: var(--jp-dark); color: #fff; }
.btn-outline-navy { background: #fff; border: 1px solid var(--jp); color: var(--jp); transition: all .2s; }
.btn-outline-navy:hover, .btn-outline-navy:focus { background: var(--jp); color: #fff; }

.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover, .btn-ink:focus { background: #2a3145; border-color: #2a3145; color: #fff; }

/* ============ ANNOUNCEMENT BAR ============ */
.announce { background: var(--jp); color: #e8ecf6; font-size: 13px; letter-spacing: .02em; }
.announce a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(251,251,253,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid #ebedf2;
}
.brand-logo { height: 46px; width: auto; border-radius: 10px; transition: height .18s ease; }

/* single-row header: logo | search | actions */
.header-main { flex-wrap: nowrap; transition: padding .18s ease; }
.header-main .search-pill { flex: 1 1 auto; min-width: 0; max-width: 560px; }

/* compact mode once the page is scrolled (saves ~40px of sticky height) */
.site-header.is-compact .brand-logo { height: 34px; }
.site-header.is-compact .header-main { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.site-header.is-compact .mega-nav a,
.site-header.is-compact .mega-nav button { padding-top: 7px; padding-bottom: 7px; }

.search-pill {
  background: #f2f4f8; border: 1px solid #e4e7ee; border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.search-pill:focus-within { background: #fff; border-color: var(--accent); }
.search-pill input { border: 0; background: transparent; outline: none; color: var(--ink); min-width: 0; }
/* native × would double up with our .search-clear */
.search-pill input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-pill .btn { border-radius: 999px; margin: 3px; flex-shrink: 0; }

/* clear (×) button inside the search pill */
.search-clear {
  border: 0; background: transparent; color: var(--muted-2); cursor: pointer;
  padding: 0 4px; font-size: 18px; line-height: 1; display: none; flex-shrink: 0;
}
.search-clear:hover { color: var(--ink); }
.search-pill.has-value .search-clear { display: inline-flex; align-items: center; }

/* typeahead dropdown rows */
.jp-sug {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  text-decoration: none; color: var(--ink); font-size: 14px; cursor: pointer;
}
.jp-sug + .jp-sug { border-top: 1px solid var(--line); }
.jp-sug img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.jp-sug:hover, .jp-sug.is-active { background: #f7f8fb; color: var(--ink); }
.jp-sug-note { padding: 12px 14px; font-size: 13.5px; color: var(--muted); }

.icon-link {
  position: relative; border: 0; background: transparent; border-radius: 12px;
  padding: 9px 11px; font-size: 13px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px; transition: background .2s; text-decoration: none;
}
.icon-link:hover { background: #f1f3f8; color: var(--ink); }
.icon-badge {
  position: absolute; top: 2px; right: 2px; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; min-width: 16px; height: 16px; display: flex; align-items: center;
  justify-content: center; padding: 0 4px;
}
.icon-badge.cart { background: var(--danger); }
.icon-badge.wish { background: var(--accent); }

/* mega nav */
.mega-nav { border-top: 1px solid #ebedf2; background: #f7f8fb; }
.mega-nav a, .mega-nav button {
  padding: 12px 14px; font-size: 13.5px; font-weight: 500; color: #4b5261;
  white-space: nowrap; text-decoration: none; background: none; border: 0; transition: color .15s;
}
.mega-nav a:hover, .mega-nav button:hover { color: var(--jp); }
.mega-nav a.active { color: var(--ink); border-bottom: 2px solid var(--accent); }
.mega-nav .all-cats { color: var(--accent-dark); font-weight: 700; cursor: pointer; }

/* horizontal category rail: no native scrollbar, fade + arrows instead */
.mega-wrap { position: relative; }
.mega-scroll {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.mega-scroll::-webkit-scrollbar { display: none; }

.mega-wrap::before, .mega-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 44px;
  pointer-events: none; opacity: 0; transition: opacity .18s; z-index: 2;
}
.mega-wrap::before { left: 0;  background: linear-gradient(90deg, #f7f8fb 30%, rgba(247,248,251,0)); }
.mega-wrap::after  { right: 0; background: linear-gradient(270deg, #f7f8fb 30%, rgba(247,248,251,0)); }
.mega-wrap.can-left::before  { opacity: 1; }
.mega-wrap.can-right::after  { opacity: 1; }

.mega-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-2); color: var(--jp);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer;
}
.mega-arrow:hover { background: var(--jp-soft); }
.mega-arrow.prev { left: 2px; }
.mega-arrow.next { right: 2px; }
.mega-wrap.can-left  .mega-arrow.prev,
.mega-wrap.can-right .mega-arrow.next { display: flex; }
/* touch devices swipe — arrows only clutter there */
@media (hover: none) { .mega-arrow { display: none !important; } }

/* mobile: search drops to its own row, actions stay next to the logo */
@media (max-width: 767.98px) {
  .header-main { flex-wrap: wrap; }
  .header-main .search-pill { order: 3; flex-basis: 100%; max-width: none; }
  .brand-logo { height: 38px; }
}

/* ============ HERO ============ */
.hero { border-radius: 16px; overflow: hidden; background: var(--dark-1); }
.hero .carousel-item { min-height: 460px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,15,30,.82) 0%, rgba(10,15,30,.55) 45%, rgba(10,15,30,.05) 75%);
}
.hero-content { position: relative; max-width: 640px; padding: 56px 24px 72px 56px; }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; font-weight: 800; color: #fbfbfd; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero p { font-size: 16px; line-height: 1.6; color: #d9dfeb; max-width: 440px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
@media (max-width: 575px) { .hero-content { padding: 40px 20px 56px; } }

/* ============ SECTION HEADINGS ============ */
.section { max-width: 1280px; }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.viewall { font-size: 13.5px; font-weight: 600; text-decoration: none; }

/* ============ CATEGORY CARDS + MARQUEE ============ */
.marquee-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee { display: flex; gap: 14px; width: max-content; }
.marquee.left { animation: marqueeL 32s linear infinite; }
.marquee.right { animation: marqueeR 32s linear infinite; }
.marquee-mask:hover .marquee { animation-play-state: paused; }
@keyframes marqueeL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none !important; } }

.cat-card {
  flex: 0 0 auto; width: 180px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 14px; text-align: center; color: var(--ink);
  transition: all .25s; text-decoration: none; display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -14px rgba(16,24,40,.16); border-color: #d6dceb; color: var(--ink); }
.cat-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--jp-soft); color: var(--jp); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.cat-name { font-size: 13.5px; font-weight: 600; }
.cat-count { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ============ PRODUCT CARD ============ */
.product-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column; height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(16,24,40,.18); border-color: #d6dceb; }
.product-media {
  position: relative; aspect-ratio: 1/1;
  background: repeating-linear-gradient(45deg,#eef0f4,#eef0f4 13px,#e2e6ee 13px,#e2e6ee 26px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-label { font-family: monospace; font-size: 11px; color: #8b93a3; text-align: center; padding: 0 12px; }
.stretched-cover { position: absolute; inset: 0; }
.badge-disc { position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-flash { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-rank { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

.card-action {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid #e3e6ed;
  background: #fff; cursor: pointer; font-size: 15px; color: #4b5261; transition: all .2s;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-action:hover { border-color: var(--jp); color: var(--jp); transform: scale(1.08); }
.card-action.wish:hover { border-color: var(--danger); color: var(--danger); }
.card-action.is-wished { color: var(--danger); }

.product-body { padding: 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-brand { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-rating { font-size: 12px; font-weight: 600; color: var(--gold); }
.product-name { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.product-name a { color: var(--ink); transition: color .15s; text-decoration: none; }
.product-name a:hover { color: var(--jp); }
.price-now { font-size: 18px; font-weight: 800; color: var(--accent-dark); }
.price-old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.stock { font-size: 11.5px; font-weight: 600; }
.stock.in { color: var(--ok); }
.stock.low { color: var(--gold); }
.stock.out { color: var(--danger); }

/* ============ FLASH SALE ============ */
.flash-section { background: var(--dark-1); }
.flash-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.count-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 0; min-width: 62px; font-size: 24px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; text-align: center; }
.count-label { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #97a1b8; }
.flash-card { flex: 0 0 auto; width: 250px; background: #fff; border-radius: 16px; overflow: hidden; }
.flash-progress { height: 6px; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.flash-progress > span { display: block; height: 100%; background: linear-gradient(90deg,#d0342c,var(--accent)); border-radius: 999px; }

/* ============ PROMO ============ */
.promo-card { border-radius: 16px; overflow: hidden; padding: 40px; min-height: 200px; display: flex; flex-direction: column; justify-content: center; transition: transform .25s; text-decoration: none; }
.promo-card:hover { transform: translateY(-3px); }
.promo-green { background: linear-gradient(120deg,#17203b,#0d1428); }
.promo-accent { background: linear-gradient(120deg,var(--accent),var(--accent-dark)); }
.promo-light { background: #f2f4f8; border: 1px solid #e6e9f0; }

/* ============ FEATURES / REVIEWS ============ */
.feature-card { background: #fff; border-radius: 16px; padding: 28px 24px; text-align: center; transition: all .25s; height: 100%; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -14px rgba(16,24,40,.14); }
.feature-ico { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: box-shadow .25s; height: 100%; margin: 0; }
.review-card:hover { box-shadow: 0 16px 32px -14px rgba(16,24,40,.14); }
.review-stars { color: var(--gold); letter-spacing: 2px; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--jp); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* ============ FOOTER ============ */
.site-footer { background: var(--dark-1); color: #c5cbd9; }
.site-footer a { color: #c5cbd9; text-decoration: none; font-size: 13.5px; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.social { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: background .2s; }
.social:hover { background: var(--accent); color: #fff; }
.pay-chip { background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.pay-chip.soft { background: #f2f4f8; }

/* ============ DRAWERS / OFFCANVAS ============ */
.offcanvas .cart-item { display: flex; gap: 12px; align-items: center; background: #fafbfd; border: 1px solid #edeff4; border-radius: 14px; padding: 10px; }
.cart-thumb { width: 58px; height: 58px; border-radius: 10px; background: repeating-linear-gradient(45deg,#eef0f4,#eef0f4 9px,#e2e6ee 9px,#e2e6ee 18px); flex-shrink: 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
.qty-stepper button { border: 0; background: transparent; width: 30px; height: 30px; font-size: 14px; cursor: pointer; color: var(--ink); }
.qty-stepper span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 700; }
.drawer-cat { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; transition: background .15s; color: var(--ink); text-decoration: none; }
.drawer-cat:hover { background: #f1f4fa; color: var(--ink); }
.drawer-cat .cat-ico { width: 38px; height: 38px; margin: 0; border-radius: 10px; font-size: 16px; }

/* ============ TOAST ============ */
.jp-toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 1090;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; padding: 12px 22px;
  border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.jp-toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* ============ FLOATING BUTTONS ============ */
.fab { position: fixed; right: 20px; z-index: 1020; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.3); transition: transform .2s, bottom .2s; }
.fab-wa { bottom: 20px; width: 52px; height: 52px; border-radius: 999px; background: #25d366; color: #fff; font-size: 22px; }
.fab-wa:hover { transform: scale(1.1); color: #fff; }
.fab-top { bottom: 82px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; opacity: 0; visibility: hidden; }
.fab-top.show { opacity: 1; visibility: visible; }
.fab-top:hover { border-color: var(--jp); color: var(--jp); }

/* ============ FORMS ============ */
.form-control, .form-select { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--jp); box-shadow: 0 0 0 .2rem rgba(23,32,59,.12); }
.form-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.auth-panel { background: linear-gradient(150deg,#17203b,#101828); color: #fff; }
.auth-check { width: 26px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -24px rgba(16,24,40,.16); }

/* password field + eye toggle */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 44px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer; padding: 0; }
.pw-toggle:hover { color: var(--jp); background: rgba(23,32,59,.07); }
.pw-toggle .eye-off { display: none; }
.pw-toggle.is-on .eye-on { display: none; }
.pw-toggle.is-on .eye-off { display: block; }

/* live validation */
.pw-wrap .form-control.is-invalid,
.pw-wrap .form-control.is-valid { background-image: none; padding-right: 44px; }
.form-control.is-valid, .form-control.is-valid:focus { border-color: var(--jp); box-shadow: none; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(220,53,69,.12); }
.invalid-feedback { font-size: 12px; }

/* strength meter */
.str-seg { flex: 1; height: 4px; border-radius: 999px; background: var(--line); transition: background .2s; }

/* ============ FILTER SIDEBAR (Category) ============ */
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.filter-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
input[type=range] { accent-color: var(--jp); width: 100%; }
.chip { border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--danger); color: var(--danger); background: #fdeeec; }

/* ============ PRODUCT DETAILS ============ */
.gallery-main { position: relative; aspect-ratio: 1/1; border-radius: 16px; border: 1px solid var(--line); background: repeating-linear-gradient(45deg,#eef0f4,#eef0f4 16px,#e2e6ee 16px,#e2e6ee 32px); overflow: hidden; }
.thumb { flex: 1; aspect-ratio: 1/1; border-radius: 12px; border: 2px solid var(--line); background: repeating-linear-gradient(45deg,#eef0f4,#eef0f4 9px,#e2e6ee 9px,#e2e6ee 18px); cursor: pointer; }
.thumb.active { border-color: var(--jp); }
.pill-info { background: #f2f4f8; border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.4; }
.detail-tab { border: 0; background: transparent; padding: 13px 20px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.detail-tab.active { font-weight: 700; color: var(--ink); border-bottom-color: var(--accent); }
.spec-row:nth-child(odd) { background: #f7f8fb; }

/* ============ CHECKOUT ============ */
.step-dot { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--line-2); background: #fff; color: var(--muted-2); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; transition: all .3s; }
.step.active .step-dot, .step.done .step-dot { background: var(--jp); border-color: var(--jp); color: #fff; }
.step-line { width: 52px; height: 2px; background: var(--line-2); margin: 0 12px; }
.step.done + .step .step-line, .step.done .step-line { background: var(--jp); }
.pay-method { display: flex; align-items: center; gap: 14px; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 15px 16px; cursor: pointer; text-align: left; width: 100%; transition: all .15s; }
.pay-method:hover { border-color: var(--jp); }
.pay-method.active { border-color: var(--jp); background: var(--jp-soft); }
.pay-radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid #c7ccd8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pay-method.active .pay-radio { border-color: var(--jp); }
.pay-radio > span { width: 10px; height: 10px; border-radius: 999px; background: transparent; }
.co-pane { display: flex; flex-direction: column; gap: 1rem; }
.pay-method.active .pay-radio > span { background: var(--jp); }

/* ============ TRACKING TIMELINE ============ */
.tl-dot { width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; border: 2px solid var(--line-2); background: #fff; color: var(--muted-2); }
.tl-step.done .tl-dot, .tl-step.active .tl-dot { background: var(--jp); border-color: var(--jp); color: #fff; }
.tl-step.active .tl-dot { animation: pulse 1.6s infinite; }
.tl-line { width: 2px; flex: 1; min-height: 34px; background: var(--line-2); }
.tl-step.done .tl-line { background: var(--jp); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(23,32,59,.35); } 50% { box-shadow: 0 0 0 8px rgba(23,32,59,0); } }

/* ============ 404 ============ */
.big-404 { font-size: clamp(80px,14vw,130px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #eef0f4; position: relative; }
.float-cart { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ UTIL ============ */
.divider { height: 1px; background: var(--line); }
.rounded-16 { border-radius: 16px; }
.fade-up { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fade-up, .float-cart { animation: none; } }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.min-h-name { min-height: 39px; }

/* ============ SERVER CART DRAWER INTEGRATION ============ */
.jp-free-bar { background: var(--jp-soft); border: 1px solid #d6dceb; color: var(--jp-dark); font-size: 12px; font-weight: 600; padding: 9px 12px; border-radius: 12px; display: flex; align-items: center; gap: 8px; }
.jp-free-bar.ok { background: #e7f6ef; border-color: #b6e3cb; color: var(--ok); }
.jp-drawer-thumb { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #f1f3f8; }
.cart-item .remove-x { border: 0; background: transparent; color: var(--muted-2); cursor: pointer; line-height: 1; padding: 2px; }
.cart-item .remove-x:hover { color: var(--danger); }
.min-w-0 { min-width: 0; }
/* real product image inside media wipes the placeholder label */
.product-media img { z-index: 1; }
.product-media .ph-label { z-index: 0; }

/* ============ MOBILE BOTTOM NAV ============ */
.jp-botnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: none; align-items: flex-end; justify-content: space-around;
  height: 62px; padding: 0 6px calc(env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line-2); box-shadow: 0 -6px 24px -14px rgba(0,0,0,.28);
}
.jp-botnav .bn-item {
  position: relative; flex: 1 1 0; min-width: 0; height: 62px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; text-decoration: none;
  color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  transition: color .15s;
}
.jp-botnav .bn-item svg { width: 22px; height: 22px; stroke-width: 1.7; }
.jp-botnav .bn-item span { line-height: 1; }
.jp-botnav .bn-item:hover,
.jp-botnav .bn-item.active { color: var(--jp); }
.jp-botnav .bn-item.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent);
}
/* center raised action */
.jp-botnav .bn-center { flex: 0 0 auto; }
.jp-botnav .bn-center .bn-fab {
  width: 54px; height: 54px; margin-top: -22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: 4px solid var(--bg);
  box-shadow: 0 8px 20px -6px rgba(245,129,31,.55);
}
.jp-botnav .bn-center .bn-fab svg { width: 24px; height: 24px; stroke: #fff; }
.jp-botnav .bn-center .bn-label { margin-top: 2px; font-size: 10.5px; font-weight: 700; color: var(--accent-dark); }
/* badge on nav items */
.jp-botnav .bn-badge {
  position: absolute; top: 6px; left: 50%; margin-left: 6px; color: #fff;
  font-size: 9.5px; font-weight: 700; border-radius: 999px; min-width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1;
}
.jp-botnav .bn-center .bn-badge { top: -20px; margin-left: 14px; }
.jp-botnav .bn-badge.cart { background: var(--danger); }
.jp-botnav .bn-badge.wish { background: var(--accent); }
@media (max-width: 991.98px) {
  .jp-botnav { display: flex; }
  body { padding-bottom: 62px; }
  .fab { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
