/* =========================================================================
   Perfume Store — Design System (v2.0)
   Dark Luxury | Gold/Dark palette | RTL first | Vazirmatn
   Single shared stylesheet referenced by all pages (page-specific CSS stays inline).
   ========================================================================= */

:root {
  /* Backgrounds */
  --bg: #07090d;
  --bg-2: #0b0f16;
  --bg-card: #0f1623;
  --bg-hover: #131e2e;

  /* Borders */
  --border: rgba(255, 255, 255, 0.065);
  --border-2: rgba(255, 255, 255, 0.11);

  /* Gold */
  --gold: #c9a84c;
  --gold-lt: #e2c36a;
  --gold-dk: #a8863c;
  --gold-dim: rgba(201, 168, 76, 0.12);
  --gold-glow: rgba(201, 168, 76, 0.06);

  /* Text */
  --t1: #ede9e0;
  --t2: #7a7468;
  --t3: #3d3a32;

  /* Status */
  --green: #34d399;
  --red: #f87171;
  --blue: #60a5fa;
  --orange: #fb923c;
  --purple: #a78bfa;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.26s;

  /* Layout */
  --topbar-h: 56px;
  --navbar-h: 48px;
  --sidebar-w: 270px;

  /* Aliases shared with the home page (single source of look, dark + light) */
  --radius: 10px;
  --shadow-card: 0 16px 45px rgba(0, 0, 0, 0.5);
  --shadow-topbar: 0 4px 40px rgba(0, 0, 0, 0.5);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-toast: 0 10px 40px rgba(0, 0, 0, 0.5);
}
body.light-mode {
  --bg: #f7f5f0;
  --bg-2: #edeae4;
  --bg-card: #ffffff;
  --bg-hover: #f3f0ea;
  --border: rgba(0, 0, 0, 0.06);
  --border-2: rgba(0, 0, 0, 0.11);
  --t1: #1e1b16;
  --t2: #6b6560;
  --t3: #b5afa8;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --gold-glow: rgba(201, 168, 76, 0.05);

  /* Light shadows exactly like the home page, so cards/toasts are not dark-heavy */
  --shadow-card: 0 8px 30px rgba(201, 168, 76, 0.1);
  --shadow-topbar: 0 4px 30px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-toast: 0 10px 30px rgba(0, 0, 0, 0.08);

  background: var(--bg);
  color: var(--t1);
}

/* ----------------------------- Reset / Base ----------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: "Vazirmatn", sans-serif;
  background: var(--bg);
  color: var(--t1);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
}
.gold-text {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--t2); }
.hairline { border-color: var(--border); }

/* ----------------------------- Typography ------------------------------ */
h1, h2, h3, h4 { color: var(--t1); margin: 0 0 .5em; line-height: 1.3; }
h1 { font-size: clamp(28px, 5vw, 56px); font-weight: 800; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
.eyebrow {
  font-size: 12px; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; font-weight: 600;
}

/* ============================== BUTTON ================================== */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--bh); padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: 14px; font-weight: 700;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative; white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn.btn-sm { --bh: 32px; padding: 0 14px; font-size: 12px; }
.btn.btn-lg { --bh: 52px; padding: 0 32px; font-size: 16px; }
.btn.btn-xl { --bh: 60px; padding: 0 40px; font-size: 18px; }

.btn-primary, .btn-gold { background: var(--gold); color: var(--bg); }
.btn-primary:hover, .btn-gold:hover { opacity: .85; transform: translateY(-1px); }
.btn-secondary { background: var(--bg-hover); color: var(--t1); border-color: var(--border-2); }
.btn-secondary:hover { opacity: .85; }
.btn-outline { background: transparent; color: var(--t1); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn-ghost { background: transparent; color: var(--t2); }
.btn-ghost:hover { color: var(--t1); background: var(--bg-hover); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(248,113,113,.4); }
.btn-danger:hover { background: rgba(248,113,113,.12); }

.btn.is-loading { color: transparent !important; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.35); border-top-color: #000; border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
.btn-primary.is-loading::after, .btn-gold.is-loading::after { border-color: rgba(0,0,0,.3); border-top-color:#000; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* =========================== PRODUCT CARD =============================== */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,.3);
  box-shadow: var(--shadow-card);
}
.product-card .pc-media { aspect-ratio: 16/10; background: var(--bg-2); position: relative; overflow: hidden; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-body { padding: 14px; }
.product-card .pc-brand { font-size: 11px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.product-card .pc-name { font-weight: 700; color: var(--t1); margin: 2px 0 8px; font-size: 15px; }
.product-card .pc-price { color: var(--gold-lt); font-weight: 900; font-size: 15px; }
.product-card .pc-price .old { color: var(--t2); font-weight: 400; text-decoration: line-through; font-size: 12px; margin-inline-start: 6px; }
.product-card.out-of-stock { opacity: .85; }
.product-card.out-of-stock .pc-media::after {
  content: "ناموجود"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(7,9,13,.55); color: var(--red); font-weight: 700;
}
.product-card.is-wishlisted .pc-wishlist { color: var(--gold); }
.product-card.in-compare { border-color: var(--blue); }
.pc-wishlist, .pc-compare {
  position: absolute; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,9,13,.6); border: 1px solid var(--border); color: var(--t1); z-index: 2;
  transition: color var(--dur), border-color var(--dur);
}
.pc-wishlist { left: 10px; }
.pc-compare { left: 52px; font-size: 12px; }
.pc-wishlist:hover, .pc-compare:hover { border-color: var(--gold); color: var(--gold-lt); }

/* ============================== BADGE ================================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700;
}
.badge-new { background: rgba(52,211,153,.12); color: var(--green); }
.badge-best { background: rgba(251,146,60,.12); color: var(--orange); }
.badge-discount { background: rgba(248,113,113,.12); color: var(--red); }
.badge-original { background: rgba(201,168,76,.12); color: var(--gold); }
.badge-oos { background: rgba(127,127,127,.15); color: var(--t2); }
.badge-preorder { background: rgba(96,165,250,.12); color: var(--blue); }

/* ============================== TOAST ================================= */
.toast-wrap {
  position: fixed; bottom: 20px; right: 20px; z-index: 9000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  min-width: 240px; max-width: 360px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--bg-card); border: 1px solid var(--border-2);
  display: flex; align-items: center; gap: 10px;
  animation: toast-in .3s var(--ease);
  box-shadow: var(--shadow-toast);
}
.toast.leaving { animation: toast-out .3s var(--ease) forwards; }
.toast .t-icon { font-size: 18px; }
.toast.success { border-inline-start: 3px solid var(--green); }
.toast.success .t-icon { color: var(--green); }
.toast.error { border-inline-start: 3px solid var(--red); }
.toast.error .t-icon { color: var(--red); }
.toast.warning { border-inline-start: 3px solid var(--orange); }
.toast.warning .t-icon { color: var(--orange); }
.toast.info { border-inline-start: 3px solid var(--blue); }
.toast.info .t-icon { color: var(--blue); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* =========================== EMPTY STATE =============================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--t2); }
.empty-state .es-icon { font-size: 56px; opacity: .3; margin-bottom: 12px; }
.empty-state .es-title { color: var(--t2); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.empty-state .es-sub { font-size: 13px; margin-bottom: 16px; }

/* ============================= SKELETON =============================== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.03) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-card .sk-media { aspect-ratio: 16/10; border-radius: var(--r-md); }
.sk-card .sk-line { height: 10px; margin-top: 10px; }
.sk-card .sk-line.short { width: 60%; }
.sk-line { height: 12px; margin: 8px 0; }

/* ============================== MODAL ================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 8000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl);
  width: min(92vw, 480px); padding: 26px; transform: scale(.94); transition: transform var(--dur) var(--ease);
  box-shadow: var(--shadow-modal);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal .modal-close { position: absolute; top: 14px; left: 14px; background: none; border: none; color: var(--t2); font-size: 20px; }

/* ============================ BREADCRUMB =============================== */
.breadcrumb { font-size: 12px; color: var(--t2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--t3); }

/* ============================ PAGINATION ============================== */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 30px 0; }
.pagination a, .pagination span {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--t1); font-size: 13px;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-lt); }
.pagination .active { background: var(--gold); color: var(--bg); font-weight: 700; border-color: var(--gold); }
.pagination .disabled { opacity: .4; pointer-events: none; }
.pagination .dots { border: none; }

/* ============================== INPUT ================================= */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--t2); margin-bottom: 6px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; font-size: 14px; color: var(--t1);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--dur), box-shadow var(--dur);
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(248,113,113,.12); }
.input.success { border-color: var(--green); }
.input:disabled { opacity: .5; cursor: not-allowed; background: rgba(255,255,255,.02); }
.field .error-msg { font-size: 11px; color: var(--red); margin-top: 4px; min-height: 14px; }
.input.loading { pointer-events: none; }

/* ====================== GLOBAL OFFLINE / ERROR ======================= */
.offline-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9500;
  background: var(--orange); color: #1a1206; font-size: 13px; text-align: center; padding: 8px;
  transform: translateY(100%); transition: transform var(--dur) var(--ease);
}
.offline-bar.show { transform: translateY(0); }

/* ============================== HEADER ================================ */
/* Values below are the canonical header look taken from the home page (home.html),
   so every template that loads this stylesheet renders the exact same header. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 500;
  display: flex; align-items: center;
  padding: 0 28px; background: rgba(9, 12, 16, 0.9);
  backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.topbar.scrolled { box-shadow: var(--shadow-topbar); }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; }
.topbar > .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: none; margin-inline: 0; padding-inline: 0; position: relative;
}
.topbar .brand-logo { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.topbar .brand-logo .mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; color: var(--gold);
  background: var(--gold-dim); border: 1px solid var(--gold); border-radius: var(--radius);
}
.topbar .brand-logo .name {
  font-size: 19px; font-weight: 900; white-space: nowrap;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.topbar .search-box, .topbar .search {
  position: absolute; top: 50%; left: 50%; z-index: 10;
  width: 420px; max-width: 40vw; transform: translate(-50%, -50%);
}
/* The magnifier is decorative (the field submits with Enter), exactly like the
   inline copies on the legacy pages: no pointer target and no hover state. */
.topbar .search-box .search-icon {
  position: absolute; inset-inline-start: 14px; top: 50%; display: flex;
  align-items: center; justify-content: center; padding: 0; color: var(--t2);
  background: transparent; border: 0; transform: translateY(-50%);
  pointer-events: none;
}
/* The header partial renders either `search-box` (base.html) or `search-box search`
   (legacy pages), so the field styles must cover both. */
.topbar .search-box input, .topbar .search input {
  width: 100%; height: 40px; border-radius: var(--radius); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); color: var(--t1); padding: 0 40px 0 14px; font-size: 13px;
  caret-color: var(--gold); transition: all var(--dur) var(--ease); outline: none;
}
.topbar .search-box input::placeholder, .topbar .search input::placeholder { color: var(--t2); }
.topbar .search-box input:focus, .topbar .search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.topbar .actions { display: flex; align-items: center; gap: 14px; }
.topbar .topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; position: relative; z-index: 11; }
.topbar .cart-wrap { position: relative; display: inline-flex; }
.topbar .v-sep { width: 1px; height: 24px; background: var(--border); }
.topbar .theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-inline-start: 4px; padding: 0;
  color: var(--t2); background: transparent; border: 1px solid var(--border);
  border-radius: 50%; font-size: 18px; transition: all var(--dur) var(--ease);
}
.topbar .theme-toggle:hover { color: var(--gold); background: var(--gold-dim); border-color: var(--gold); }
.topbar .theme-toggle .material-symbols-outlined { font-size: 22px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); background: none; border: none; font-size: 20px;
  transition: all var(--dur) var(--ease); cursor: pointer;
}
.icon-btn:hover { color: var(--gold); background: rgba(255,255,255,.04); }
body.light-mode .icon-btn:hover { color: var(--gold); background: rgba(0,0,0,.02); }
.icon-btn .count {
  position: absolute; top: -2px; left: -2px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 8px; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn.wishlist .count { background: var(--red); color: #fff; }
.icon-btn.cart .count { background: var(--gold); color: var(--bg); }
.topbar .auth-btns { display: flex; gap: 8px; }
.navbar {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 499; height: var(--navbar-h);
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 12, 16, 0.7); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.navbar .nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.navbar .nav-item { position: relative; }
.navbar .nav-link {
  display: flex; align-items: center; gap: 5px; height: var(--navbar-h); padding-inline: 16px;
  color: var(--t2); font-size: 13px; white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.navbar .nav-link:hover, .navbar .nav-item.active .nav-link { color: var(--t1); }
.navbar .nav-item.active .nav-link::after {
  position: absolute; inset-inline: 16px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt)); content: "";
}
.navbar a { color: var(--t2); font-size: 14px; transition: color var(--dur); }
body.light-mode .topbar { background: rgba(247,245,240,.92); }
body.light-mode .navbar { background: rgba(247,245,240,.75); }
body.light-mode .topbar .search-box input { background: rgba(0,0,0,.02); }
body.light-mode .topbar .brand-logo .name {
  background: linear-gradient(135deg, #d9b85c, #b8963a);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
body.light-mode ::-webkit-scrollbar-track { background: var(--bg); }
body.light-mode ::-webkit-scrollbar-thumb { background: var(--gold-dim); }
body.light-mode ::-webkit-scrollbar-thumb:hover { background: var(--gold); }
body.light-mode .skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,.04) 25%, rgba(0,0,0,.07) 50%, rgba(0,0,0,.04) 75%);
  background-size: 200% 100%;
}
body.light-mode .search-empty { color: var(--t2); }
body.light-mode .topbar .search input,
body.light-mode .topbar .search-box input { border-color: var(--border); color: var(--t1); }
body.light-mode .topbar .search input:focus,
body.light-mode .topbar .search-box input:focus { box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12); }
.nav-dropdown { position: relative; }
.nav-dropdown .menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 220px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-modal); padding: 8px; opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity var(--dur), transform var(--dur); z-index: 10;
}
.nav-dropdown:hover .menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-dropdown .menu a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--t1); }
.nav-dropdown .menu a:hover { background: var(--bg-hover); color: var(--gold-lt); }

/* search dropdown */
.search-dropdown {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; width: 100%; z-index: 600;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-modal); overflow: hidden; display: none;
}
.search-dropdown.open { display: block; }
.search-empty { padding: 20px; text-align: center; color: var(--t2); font-size: 12px; }
.search-dropdown .sd-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.search-dropdown .sd-item:hover { background: var(--bg-hover); }
.search-dropdown .sd-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--r-sm); }
.search-dropdown .sd-section { padding: 6px 12px; font-size: 11px; color: var(--t3); }

body { padding-top: calc(var(--topbar-h) + var(--navbar-h)); }

/* ========================= FLOATING CHAT ============================== */
.chat-fab {
  position: fixed; bottom: 26px; left: 26px; z-index: 1000; width: 54px; height: 54px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--gold); color: var(--gold-lt); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  animation: fab-pulse 2.5s infinite; transition: transform var(--dur) var(--ease);
}
.chat-fab:hover { transform: scale(1.06) translateY(-2px); }
@keyframes fab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,168,76,.5); }
  70% { box-shadow: 0 0 0 14px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

/* ====================== Compare sticky bar ============================= */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 950; display: none;
  background: var(--bg-card); border-top: 1px solid var(--gold); padding: 10px 24px;
  align-items: center; gap: 14px;
}
.compare-bar.open { display: flex; }
.compare-bar .cb-thumbs { display: flex; gap: 8px; }
.compare-bar .cb-thumb { width: 46px; height: 46px; border-radius: var(--r-sm); overflow: hidden; position: relative; border: 1px solid var(--border); }
.compare-bar .cb-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================== MISC ================================== */
.section { padding: 48px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.divider { height: 1px; background: var(--border); margin: 10px 0; }
.glass { backdrop-filter: blur(22px) saturate(1.6); }
.price { color: var(--gold-lt); font-weight: 900; }
.stars { color: var(--gold); letter-spacing: 2px; }
.stars .off { color: var(--t3); }
.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

/* ============================ RESPONSIVE ============================== */
@media (max-width: 1024px) {
  /* Same breakpoint as the home page: the header search box hides on tablets. */
  .topbar .search, .topbar .search-box { display: none; }
}
@media (max-width: 768px) {
  .navbar { display: none; }
  .topbar .search, .topbar .search-box { width: 40vw; }
  .container { padding-inline: 16px; }
  body { padding-top: var(--topbar-h); }

  .topbar {
    gap: 8px;
    padding-inline: 12px;
  }
  .topbar .brand {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.2;
  }
  .topbar .search {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .topbar .search-box { display: none; }
  .topbar .search input {
    min-width: 0;
  }
  .topbar .actions {
    flex: 0 0 auto;
    min-width: 0;
    gap: 4px;
  }
  .topbar .topbar-actions { gap: 4px; }
  .topbar .v-sep { display: none; }
}
