/* Listing / detail page — AESTHETE haute-parfumerie restyle.
   Monochrome luxe: near-black ink, cream surfaces, Libre Caslon display,
   Hanken Grotesk body, sharp 1px outlines, uppercase micro-labels.
   Class names are UNCHANGED so listing.js keeps working — only the look moves. */

:root {
  --ink: #1a1c1c;            /* on-surface / primary */
  --ink-soft: #44474d;       /* on-surface-variant */
  --line: #c5c6cd;           /* outline-variant */
  --line-strong: #75777e;    /* outline */
  --surface: #f9f9f9;
  --surface-low: #f4f3f3;    /* surface-container-low */
  --surface-container: #eeeeee;
  --pink: #1a1c1c;           /* accent collapses to ink for the luxe monochrome */
  --bg-soft: #f4f3f3;
  --in: #2f6b46;
  --out: #b3261e;
  --amber: #c98a16;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--surface); }
body { font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); }
a { color: inherit; }

/* ---- topbar (matches search.html) ---- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 18px 64px;
  background: rgba(249, 249, 249, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.topbar a.home { flex: none; display: flex; align-items: center; text-decoration: none; }
.topbar .brand-logo { width: 40px; height: 40px; object-fit: contain; display: block; }
form.search { flex: 1; max-width: 620px; display: flex; }
.search-bar {
  flex: 1; display: flex; align-items: center; width: 100%;
  background: #ffffff; border: 1px solid var(--line);
  border-radius: 0; padding: 4px 6px 4px 18px;
  transition: border-color .2s ease;
}
.search-bar:focus-within { border-color: var(--ink); }
.scx-input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 15px; color: var(--ink); padding: 11px 6px;
}
.scx-input::placeholder { color: var(--line-strong); }
.submit {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: var(--ink); border: none; border-radius: 0;
  color: #fff; cursor: pointer; transition: background .2s ease;
}
.submit:hover { background: #000; }
.submit svg { stroke: currentColor; }
.topbar .back a {
  color: var(--ink-soft); text-decoration: none; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}
.topbar .back a:hover { color: var(--ink); }

/* ---- layout ---- */
.detail { max-width: 1200px; margin: 0 auto; padding: 44px 64px 88px; }
.detail > section { animation: cardIn .4s var(--ease) both; }
.sec-title {
  font-family: 'Libre Caslon Text', Georgia, serif; font-size: 23px; font-weight: 400;
  letter-spacing: -0.01em; margin: 36px 0 14px;
}

/* ---- loading / error ---- */
.detail-loading { padding: 0; color: var(--ink-soft); animation: fadeIn .3s var(--ease) both; }
.spinner {
  width: 38px; height: 38px; margin: 0 auto 20px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* skeleton loading (mirrors hero + first size block) */
.sk-box { background: linear-gradient(90deg,#f0f0f0 25%,#e6e6e6 37%,#f0f0f0 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; }
.sk-hero { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.sk-img { width: 100%; aspect-ratio: 4 / 5; }
.sk-line { height: 14px; margin-bottom: 12px; }
.sk-line.lg { height: 46px; width: 70%; margin: 14px 0 20px; }
.sk-line.sm { height: 11px; width: 40%; }
.sk-line.price { height: 34px; width: 50%; margin-top: 22px; }
.sk-rows { margin-top: 28px; border: 1px solid var(--line); }
.sk-row { height: 52px; border-bottom: 1px solid var(--line); }
.sk-row:last-child { border-bottom: none; }
@media (max-width: 640px) { .sk-hero { grid-template-columns: 1fr; gap: 24px; } .sk-img { max-width: 320px; } }
.detail-error { text-align: center; padding: 80px 20px; }
.detail-error h2 { font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400; }
.detail-error code { background: var(--surface-container); padding: 2px 7px; border-radius: 0; }
.detail-error a { color: var(--ink); }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start;
  padding: 0; border: none; border-radius: 0; background: transparent; box-shadow: none;
}
.hero-img {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 0; overflow: hidden;
  background: var(--surface-low); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.hero-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-img.placeholder { font-size: 64px; color: var(--line-strong); }
.hero-info { padding-top: 8px; }
.hero-brand { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.hero-name { font-family: 'Libre Caslon Text', Georgia, serif; font-size: 48px; font-weight: 400; margin: 12px 0 18px; line-height: 1.05; letter-spacing: -0.02em; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
/* Plain inline labels — no border/background so they don't read as buttons. */
.badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0; border: 0; background: transparent; color: var(--ink-soft);
}
.badge.conc { color: var(--ink); }
.badge.gender { color: var(--ink-soft); }

.hero-best {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-best-label { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.14em; width: 100%; }
.hero-best-price { font-size: 38px; font-weight: 700; color: var(--ink); }
.hero-best-store { font-size: 14px; color: var(--ink-soft); }
.hero-best-store b { color: var(--ink); font-weight: 600; }
.hero-best.none { color: var(--out); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
/* Clickable size tabs under the price — switch the hero price + comparison. */
.hero-sizes {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em;
}
.hero-sizes-label {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.hero-size-tabs { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.hero-size-tab {
  border: 1px solid var(--line); background: #fff; border-radius: 0; padding: 6px 14px;
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); cursor: pointer; transition: all .2s ease;
}
.hero-size-tab:hover { border-color: var(--ink); }
.hero-size-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero-size-tab.oos { color: var(--ink-soft); text-decoration: line-through; }
.hero-size-tab.oos.active { background: var(--ink); color: #fff; }
.hero-size-tab.solo { cursor: default; }
.hero-meta { margin-top: 18px; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- size blocks (compact) ---- */
.size-block { border: 1px solid var(--line); border-radius: 0; overflow: hidden; margin-bottom: 12px; }
.size-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px; background: var(--surface-low); border-bottom: 1px solid var(--line);
}
.size-label { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.size-stock { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 0; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid transparent; }
.size-stock.in { background: transparent; color: var(--in); border-color: var(--in); }
.size-stock.out { background: transparent; color: var(--out); border-color: var(--out); }

.offer-table { width: 100%; border-collapse: collapse; }
.orow { border-bottom: 1px solid var(--line); transition: background .25s var(--ease); }
.orow:last-child { border-bottom: none; }
.orow:hover { background: var(--surface-low); }
.orow.best { background: var(--surface-low); }
.orow.oos { opacity: .55; }
.offer-table td { padding: 9px 14px; vertical-align: middle; font-size: 13.5px; }
.c-store { width: 130px; }
.ologo { max-width: 104px; max-height: 26px; object-fit: contain; display: block; filter: none; }
.oname { font-weight: 600; }
.c-stock { width: 150px; }
.c-price .op { font-weight: 700; font-size: 14px; }
.owas { text-decoration: line-through; color: var(--line-strong); font-size: 12px; margin-left: 6px; }
.opill { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 0; margin-left: 6px; letter-spacing: 0.04em; }
.oship { display: block; color: var(--line-strong); font-size: 11px; margin-top: 2px; letter-spacing: 0.02em; }
.c-total { text-align: right; width: 110px; }
.c-total .ot { font-weight: 700; color: var(--ink); display: block; }
.c-total small { color: var(--line-strong); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.orow.oos .c-total .ot { color: var(--line-strong); }
.c-cta { text-align: right; width: 118px; }
.offer-cta {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 0; background: var(--ink); color: #fff;
  white-space: nowrap; border: 1px solid var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), transform .18s var(--ease);
}
.offer-cta:hover { background: #000; }
.offer-cta:active { transform: scale(0.97); }
.offer-cta.dim { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.offer-cta.dim:hover { background: var(--line-strong); color: #fff; border-color: var(--line-strong); }

/* ---- stock badge ---- */
.stock { display: inline-flex; flex-direction: column; font-size: 12.5px; font-weight: 600; }
.stock .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.stock.in { color: var(--in); }
.stock.in .dot { background: var(--in); }
.stock.out { color: var(--out); }
.stock.out .dot { background: var(--out); }
.stock.unk { color: var(--ink-soft); }
.stock.unk .dot { background: var(--ink-soft); }
.stock.stale { color: var(--amber); }
.stock.stale .dot { background: var(--amber); }
.stock-note { display: block; font-weight: 400; color: var(--line-strong); font-size: 10.5px; margin-top: 2px; letter-spacing: 0.02em; }

/* ---- coupons placeholder ---- */
.coupons-soon {
  border: 1px dashed var(--line); border-radius: 0; padding: 22px 24px;
  background: var(--surface-low); color: var(--ink-soft); font-size: 14px; line-height: 1.6;
}

/* ---- discounters (compact, full-colour logos) ---- */
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.disc-card { border: 1px solid var(--line); border-radius: 0; padding: 16px; background: var(--surface); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.disc-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(26,28,28,0.05); }
.disc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dlogo { max-height: 34px; max-width: 140px; object-fit: contain; filter: none; }
.dname { font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400; font-size: 19px; }
.dhome { font-size: 10px; color: var(--ink-soft); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; transition: color .25s var(--ease); }
.dhome:hover { color: var(--ink); }
.drating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.stars { letter-spacing: 2px; }
.star { color: var(--line); font-size: 14px; }
.star.on { color: var(--ink); }
.dscore { font-weight: 700; }
.dcount { color: var(--ink-soft); font-size: 11.5px; }
.dverify { display: block; width: 100%; font-size: 10.5px; color: var(--ink-soft); text-decoration: none; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; transition: color .25s var(--ease); }
.dverify:hover { color: var(--ink); }
.drating.none a { font-size: 12px; color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; }
.dblurb { font-size: 12.5px; color: var(--ink); line-height: 1.5; margin: 0 0 8px; }
.dfacts { margin: 0; padding-left: 16px; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.dfacts b { color: var(--ink); font-weight: 600; }

.empty { color: var(--ink-soft); }

@media (max-width: 900px) {
  .topbar { gap: 14px; padding: 14px 24px; }
  .detail { padding: 32px 24px 80px; }
}
@media (max-width: 640px) {
  .topbar { gap: 10px; padding: 12px 16px; }
  .topbar .brand-logo { width: 34px; height: 34px; }
  .topbar .back { display: none; }
  .search-bar { padding-left: 14px; }
  /* 16px keeps iOS Safari from zooming the page in when the field is focused. */
  .scx-input { font-size: 16px; padding: 10px 6px; }
  .detail { padding: 24px 16px 72px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-img { max-width: 320px; margin: 0 auto; }
  .hero-name { font-size: 34px; }
  .offer-table, .offer-table tbody, .orow, .offer-table td { display: block; width: auto; }
  .orow { padding: 14px 16px; position: relative; }
  .offer-table td { padding: 5px 0; }
  .c-cta { text-align: left; margin-top: 8px; }
  .c-total { text-align: left; }
}

/* ---- coupons (compact) ---- */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.coupon-card {
  border: 1px solid var(--line); border-radius: 0; padding: 16px;
  background: var(--surface-low);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.coupon-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(26,28,28,0.05); }
.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cbadge { font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 0; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid transparent; }
.cbadge.k-verified { background: transparent; color: var(--in); border-color: var(--in); }
.cbadge.k-official { background: transparent; color: var(--ink); border-color: var(--ink); }
.cbadge.k-recent  { background: transparent; color: var(--amber); border-color: var(--amber); }
.cbadge.k-unverified { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.cbadge.k-expired { background: transparent; color: var(--out); border-color: var(--out); }
.cverify { font-size: 10.5px; color: var(--ink-soft); text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; }
.cverify:hover { color: var(--ink); }
.cc-disc { font-family: 'Libre Caslon Text', Georgia, serif; font-size: 20px; font-weight: 400; }
.cc-title { font-size: 12.5px; color: var(--ink-soft); margin-top: -4px; }
.ccode {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px dashed var(--line-strong); background: var(--surface); border-radius: 0;
  padding: 10px 12px; cursor: pointer; font: inherit; width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .18s var(--ease);
}
.ccode:hover { border-color: var(--ink); background: #fff; }
.ccode:active { transform: scale(0.98); }
.ccode-val { font-weight: 700; letter-spacing: 0.08em; color: var(--ink); font-size: 15px; }
.ccode-act { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.cauto { font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; }
.cc-meta { font-size: 11.5px; color: var(--ink-soft); letter-spacing: 0.02em; }
.cc-conf { display: flex; align-items: center; gap: 10px; }
.cc-conf-bar { flex: 1; height: 4px; border-radius: 0; background: var(--surface-container); overflow: hidden; }
.cc-conf-bar span { display: block; height: 100%; background: var(--ink); }
.cc-conf small { font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; }
.cc-fb { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.cc-fb-q { font-size: 10.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 2px; white-space: nowrap; }
.cc-yes, .cc-no { font: inherit; font-size: 11.5px; border: 1px solid var(--line); background: #fff; border-radius: 0; padding: 4px 9px; cursor: pointer; white-space: nowrap; transition: border-color .25s var(--ease), color .25s var(--ease), transform .18s var(--ease); }
.cc-yes:hover { border-color: var(--in); color: var(--in); }
.cc-no:hover { border-color: var(--out); color: var(--out); }
.cc-yes:active, .cc-no:active { transform: scale(0.95); }
.cc-fb-thanks { font-size: 12px; color: var(--in); font-weight: 600; }

/* coupon-adjusted offer total */
.c-total .ot.was { text-decoration: line-through; color: var(--line-strong); font-weight: 500; font-size: 12px; display: block; }
.c-total .ot.final { color: var(--ink); font-weight: 700; display: block; }
.c-total .withcode { color: var(--ink-soft); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* =====================================================================
   Enhancements: best-deal card, price history, comparison table,
   freshness, notify modal. Same monochrome-luxe language (sharp 1px
   outlines, serif display, uppercase micro-labels, green/red/amber).
   ===================================================================== */

/* ---- hero actions + watchers ---- */
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-notify {
  border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0;
  padding: 9px 16px; font: inherit; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
  transition: background .2s ease, transform .18s var(--ease);
}
.hero-notify:hover { background: #000; }
.hero-notify:active { transform: scale(0.98); }
.hero-watchers { color: var(--ink-soft); font-weight: 600; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }

/* ---- best deal (signature) ---- */
.best-deal {
  border: 1.5px solid var(--ink); border-radius: 0; margin-top: 34px;
  background: linear-gradient(180deg, #fbfaf7 0%, #f6f5f1 100%);
  position: relative;
}
.best-deal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ink); }
.bd-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.bd-kicker { font-family: 'Libre Caslon Text', Georgia, serif; font-size: 17px; letter-spacing: 0.01em; }
.bd-flag {
  margin-left: auto; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--in); border: 1px solid var(--in); padding: 4px 10px;
}
.bd-body { display: grid; grid-template-columns: 1fr 300px; gap: 0; }
.bd-left { padding: 22px 24px; }
.bd-store { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bd-logo { max-height: 30px; max-width: 130px; object-fit: contain; }
.bd-store-name { font-family: 'Libre Caslon Text', Georgia, serif; font-size: 20px; }
.bd-size { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); padding-left: 14px; border-left: 1px solid var(--line); }
.bd-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bd-reasons li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.bd-check { color: var(--in); font-weight: 700; flex: none; }
.bd-right { padding: 22px 24px; border-left: 1px solid var(--line); background: rgba(255,255,255,0.5); display: flex; flex-direction: column; }
.bd-break { display: flex; flex-direction: column; gap: 7px; }
.bd-break-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
.bd-break-row span:last-child { color: var(--ink); font-weight: 600; }
.bd-break-row.save span:last-child { color: var(--in); }
.bd-break-row.total {
  margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 14px;
}
.bd-break-row.total span:first-child { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; color: var(--ink-soft); align-self: center; }
.bd-break-row.total span:last-child { font-family: 'Libre Caslon Text', Georgia, serif; font-size: 30px; font-weight: 400; }
.bd-tax { font-size: 10.5px; color: var(--line-strong); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.bd-cta {
  margin-top: 16px; display: block; text-align: center; text-decoration: none;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: 13px 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  transition: background .2s ease, transform .18s var(--ease);
}
.bd-cta:hover { background: #000; }
.bd-cta:active { transform: scale(0.98); }

/* ---- similar fragrances ---- */
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.sim-card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface); padding: 0 0 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.sim-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(26,28,28,0.06); }
.sim-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sim-img {
  aspect-ratio: 4 / 3; background: var(--surface-low); margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; padding: 12px; overflow: hidden;
}
.sim-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sim-img.placeholder { color: var(--line-strong); font-size: 26px; }
.sim-brand { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding: 0 14px; }
.sim-name { font-family: 'Libre Caslon Text', Georgia, serif; font-size: 16px; line-height: 1.25; padding: 0 14px; }
.sim-meta { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--line-strong); padding: 0 14px; }
.sim-price { font-size: 13.5px; font-weight: 700; margin-top: 6px; padding: 0 14px; }

/* ---- comparison table ---- */
.cmp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cmp-head .sec-title { margin-bottom: 0; }
.cmp-sort { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.cmp-sort select {
  font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0;
  border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink);
  padding: 6px 26px 6px 10px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%2344474d' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.cmp-sort select:focus { border-color: var(--ink); outline: none; }
.cmp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.cmp-chip {
  font: inherit; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); border-radius: 0; padding: 6px 13px; cursor: pointer;
  transition: all .2s ease;
}
.cmp-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.cmp-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cmp-scroll { margin-top: 14px; border: 1px solid var(--line); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp-table thead th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-soft); font-weight: 700; padding: 12px 14px;
  background: var(--surface-low); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.cmp-table td { padding: 13px 14px; vertical-align: middle; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table .orow:hover { background: var(--surface-low); }
.cmp-table .orow.is-best { background: #fbfaf7; }
.cmp-table .orow.oos { opacity: 0.62; }
.cmp-table .c-store { width: 128px; }
/* Bottle size reads at a glance: bold ml with the oz equivalent underneath. */
.cmp-table .c-size { font-weight: 700; font-size: 15px; white-space: nowrap; }
.cmp-table .c-size small { display: block; color: var(--line-strong); font-size: 11px; font-weight: 500; }
.cmp-table .c-price .op { font-weight: 700; }
.cmp-table .ship-free { color: var(--in); font-weight: 600; }
.cmp-table .ship-unk { color: var(--line-strong); font-size: 12px; }
.cpn-yes { color: var(--in); font-weight: 600; }
.cpn-yes small { display: block; color: var(--ink-soft); font-weight: 500; font-size: 10.5px; letter-spacing: 0.04em; }
.cpn-no { color: var(--line); }
.fin { font-weight: 700; font-size: 15px; font-family: 'Libre Caslon Text', Georgia, serif; display: inline-flex; align-items: center; gap: 8px; }
.fin.best { color: var(--ink); }
/* "From" marks an as-low-as price on a listing whose size the store didn't publish. */
.fin-from { font-family: 'Hanken Grotesk', sans-serif; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-soft); }
.fin-tag { font-family: 'Hanken Grotesk', sans-serif; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: var(--in); padding: 2px 6px; }
.fin-oos { color: var(--line-strong); }
/* Freshness note lives under the stock badge in the Availability column. */
.c-avail .fresh { display: flex; margin-top: 4px; }
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); }
.fresh-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex: none; }
.fresh.live .fresh-dot { background: var(--in); }
.size-unk { color: var(--ink-soft); }
.row-notify {
  font: inherit; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft); border-radius: 0;
  padding: 9px 12px; cursor: pointer; white-space: nowrap; transition: all .2s ease;
}
.row-notify:hover { border-color: var(--ink); color: var(--ink); }
.cmp-legend { font-size: 11.5px; color: var(--line-strong); margin: 12px 0 0; }
/* Shown instead of an empty table when the selected size is sold out everywhere. */
.cmp-empty {
  border: 1px dashed var(--line); padding: 26px; margin-top: 14px;
  font-size: 13.5px; color: var(--ink-soft); text-align: center;
}

/* comparison table -> stacked cards on mobile (data-label driven) */
@media (max-width: 720px) {
  .cmp-scroll { overflow-x: visible; border: none; }
  .cmp-table { min-width: 0; }
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table td { display: block; width: auto; }
  .cmp-table .orow { border: 1px solid var(--line); margin-bottom: 10px; padding: 6px 4px; }
  .cmp-table td { border: none; padding: 7px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cmp-table td::before {
    content: attr(data-label); flex: none; font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700;
  }
  .cmp-table td.c-store::before, .cmp-table td.c-cta::before { content: none; }
  .cmp-table .c-store { justify-content: flex-start; padding-top: 12px; }
  .cmp-table .c-cta { padding-bottom: 12px; }
  .cmp-table .c-cta .offer-cta, .cmp-table .c-cta .row-notify { width: 100%; text-align: center; }
  .fin, .cpn-yes { text-align: right; }
}

/* ---- notify modal ---- */
.nm-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(20, 22, 22, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .16s ease; backdrop-filter: blur(2px);
}
.nm-box {
  position: relative; width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--ink); border-radius: 0; padding: 30px 30px 24px;
  animation: cardIn .22s var(--ease) both;
}
.nm-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--ink-soft);
}
.nm-close:hover { color: var(--ink); }
.nm-title { font-family: 'Libre Caslon Text', Georgia, serif; font-size: 24px; margin-bottom: 6px; }
.nm-sub { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 18px; }
.nm-sub b { color: var(--ink); }
.nm-field { display: block; margin-bottom: 14px; }
.nm-field > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); margin-bottom: 6px; }
.nm-price-in { display: flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.nm-price-in span { padding: 0 4px 0 12px; color: var(--ink-soft); font-weight: 600; }
.nm-price-in input, .nm-field input[type="email"] {
  flex: 1; width: 100%; border: none; outline: none; background: #fff; font: inherit; font-size: 15px;
  color: var(--ink); padding: 12px 12px;
}
.nm-field input[type="email"] { border: 1px solid var(--line); }
.nm-field input:focus, .nm-price-in:focus-within { border-color: var(--ink); }
.nm-check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; cursor: pointer; }
.nm-check input { width: 15px; height: 15px; accent-color: var(--ink); }
.nm-submit {
  width: 100%; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0;
  padding: 13px; font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; transition: background .2s ease, transform .18s var(--ease);
}
.nm-submit:hover { background: #000; }
.nm-submit:active { transform: scale(0.99); }
.nm-msg { font-size: 12.5px; margin-top: 10px; min-height: 16px; color: var(--ink-soft); }
.nm-msg.err { color: var(--out); }
.nm-msg.ok { color: var(--in); }
.nm-fine { font-size: 10.5px; color: var(--line-strong); line-height: 1.5; margin: 12px 0 0; }
.nm-done { text-align: center; padding: 8px 0; }
.nm-done-ico { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--in); color: var(--in); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px; }
.nm-done .nm-sub { text-align: center; }

@media (max-width: 640px) {
  .best-deal { margin-top: 26px; }
  .bd-body { grid-template-columns: 1fr; }
  .bd-right { border-left: none; border-top: 1px solid var(--line); }
  .ph-stats { grid-template-columns: repeat(2, 1fr); }
  .ph-stat:nth-child(2) { border-right: none; }
  .ph-stat:nth-child(1), .ph-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
