/* ==========================================================================
   S369 Combo Shop (combos.html) — listing + product page
   Palette: cream #faf7f2 · beige #f4efe7 · dark gold #8a6a35 (small text) / gold #b08d57 (lines)
            maroon #5e1f2e · hairline #d9cdb8 · ink #1a1a1a · muted #6b655b · radius 2px
   ========================================================================== */
.combo-shop-page {
  --cs-cream: #faf7f2;
  --cs-beige: #f4efe7;
  --cs-gold: #b08d57;
  --cs-gold-dk: #8a6a35;
  --cs-maroon: #5e1f2e;
  --cs-maroon-dk: #4a1724;
  --cs-line: #d9cdb8;
  --cs-ink: #1a1a1a;
  --cs-muted: #6b655b;
  --cs-ease: cubic-bezier(.2, .8, .2, 1);
  --cs-serif: "Cormorant Garamond", Georgia, serif;
  --cs-sans: "Inter", system-ui, sans-serif;
  background: var(--cs-cream);
}
.cs-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 32px) 80px;
  font-family: var(--cs-sans);
  color: var(--cs-ink);
}
.cs-wrap *, .cs-wrap *::before, .cs-wrap *::after { box-sizing: border-box; }
.cs-wrap :focus-visible { outline: 2px solid var(--cs-maroon); outline-offset: 2px; }
.cs-lock { overflow: hidden; }

/* ---------- Typography ---------- */
.cs-crumbs { font-size: 12px; color: var(--cs-muted); margin: 0 0 22px; }
.cs-crumbs a { color: var(--cs-muted); text-decoration: none; }
.cs-crumbs a:hover { color: var(--cs-maroon); text-decoration: underline; }
.cs-crumbs [aria-current] { color: var(--cs-ink); }
.cs-eyebrow { margin: 0 0 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cs-gold-dk); }
.cs-h1 { font-family: var(--cs-serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; margin: 0; }
.cs-h2 { font-family: var(--cs-serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 0 0 22px; }
.cs-label { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.cs-small { margin: 6px 0 0; font-size: 12px; color: var(--cs-muted); }
.cs-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--cs-maroon); text-decoration: underline; cursor: pointer; }

/* ---------- Price + rating ---------- */
.cs-price { font-family: var(--cs-serif); font-size: 24px; font-weight: 500; color: var(--cs-ink); }
.cs-price--big { font-size: 44px; line-height: 1; }
.cs-mrp { margin-left: 10px; font-size: 15px; color: var(--cs-muted); }
.cs-off { margin-left: 10px; font-size: 15px; font-weight: 600; color: #2f7a3e; }
.cs-rating { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 12px; color: var(--cs-muted); }
.cs-rating-badge { display: inline-block; padding: 3px 8px; border-radius: 2px; background: #2f7a3e; color: #fff; font-size: 12px; font-weight: 600; }

/* ---------- Buttons ---------- */
.cs-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--cs-maroon); border-radius: 2px;
  font: 600 12px/1 var(--cs-sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.cs-btn--outline { background: #fff; color: var(--cs-maroon); }
.cs-btn--outline:hover:not(:disabled) { background: var(--cs-maroon); color: #fff; }
.cs-btn--solid { background: var(--cs-maroon); color: #fff; }
.cs-btn--solid:hover:not(:disabled) { background: var(--cs-maroon-dk); }
.cs-btn--dark { background: var(--cs-ink); border-color: var(--cs-ink); color: #fff; letter-spacing: .08em; }
.cs-btn--lg { min-height: 54px; letter-spacing: .25em; }
.cs-btn:disabled { opacity: .55; cursor: not-allowed; }
.cs-btn.is-added:disabled { opacity: 1; cursor: default; background: var(--cs-maroon-dk); color: #fff; } /* "Added ✓" for 1.5s */

/* ---------- Skeleton ---------- */
.cs-skel { background: linear-gradient(100deg, #f1ebe1 30%, #f8f4ee 50%, #f1ebe1 70%) 0 0 / 300% 100%; animation: csShimmer 1.4s linear infinite; }
@keyframes csShimmer { to { background-position: -150% 0; } }

/* ==========================================================================
   PART B — Listing
   ========================================================================== */
.cs-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.cs-list-meta { margin: 10px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cs-muted); }
.cs-type-switch { display: flex; gap: 8px; }
.cs-type-switch a { padding: 10px 16px; border: 1px solid var(--cs-line); border-radius: 2px; font-size: 12px; color: var(--cs-ink); text-decoration: none; }
.cs-type-switch a[aria-current="page"], .cs-type-switch a:hover { border-color: var(--cs-maroon); background: var(--cs-maroon); color: #fff; }

.cs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; margin-bottom: 24px; border-top: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line); }
.cs-toolbar-end { display: flex; align-items: center; gap: 18px; flex: none; }
.cs-sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--cs-muted); }
.cs-sort select { padding: 8px 10px; border: 1px solid var(--cs-line); border-radius: 2px; background: #fff; font: inherit; color: var(--cs-ink); }
.cs-filter-open, .cs-sheet-head, .cs-sheet-foot, .cs-sheet-backdrop { display: none; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-chip { padding: 8px 14px; border: 1px solid var(--cs-line); border-radius: 2px; background: #fff; font: 13px var(--cs-sans); color: var(--cs-ink); cursor: pointer; }
.cs-chip:hover { border-color: var(--cs-gold); }
.cs-chip[aria-pressed="true"] { border-color: var(--cs-maroon); background: var(--cs-maroon); color: #fff; }

/* ---------- Combo card (listing + "Similar combinations") ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; align-items: stretch; }
.cs-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--cs-cream); border: 1px solid rgba(176, 141, 87, .35); border-radius: 2px; overflow: hidden;
  transition: transform .45s var(--cs-ease), box-shadow .45s var(--cs-ease);
}
/* image: same cream as the text block; bottles fill ~78% with breathing room */
.cs-card-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background-color: var(--cs-cream); overflow: hidden; }
.cs-card-media img { position: relative; z-index: 1; width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; display: block; transition: transform .8s var(--cs-ease); }
/* soft floor shadow under the bottles (a CSS drop-shadow would outline the opaque photo rectangle) */
.cs-card-media::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 13%; height: 18px; background: radial-gradient(ellipse at center, rgba(70, 45, 20, .14) 0%, transparent 70%); }
.cs-card-tag { position: absolute; top: 16px; left: 18px; z-index: 2; font: 500 10px/1 var(--cs-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--cs-gold-dk); }
.cs-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.5vw, 32px); border-top: 1px solid rgba(176, 141, 87, .22); }
.cs-card-pack { margin: 0; font: 500 11px/1.3 var(--cs-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--cs-gold-dk); }
.cs-card-title { margin: 0; font-family: var(--cs-serif); font-weight: 500; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-card-title a { color: var(--cs-ink); text-decoration: none; }
.cs-card-title a:hover { color: var(--cs-maroon); }
/* perfume names: "Wild Crest · 50 ml" | "Night Quartz · 50 ml", thin gold divider between items */
.cs-card-scents { margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.6; color: var(--cs-muted); }
.cs-card-scents li { display: inline; white-space: nowrap; }
.cs-card-scents li:not(:last-child)::after { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: var(--cs-gold); vertical-align: -1px; }
/* price + button pinned to the bottom so rows line up */
.cs-card-foot { margin-top: auto; padding-top: 6px; }
.cs-card-price { margin: 0; line-height: 1; }
.cs-card .cs-price { font-size: 28px; }
.cs-card-tax { margin: 6px 0 16px; font-size: 11px; color: var(--cs-muted); }
.cs-card-btn { position: relative; width: 100%; min-height: 50px; padding: 0 12px; font: 600 12px/1 var(--cs-sans); letter-spacing: .25em; white-space: nowrap; overflow: hidden; }
.cs-card-btn::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 12px; height: 1px; background: var(--cs-gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--cs-ease); }
.cs-card-btn:hover:not(:disabled)::after, .cs-card-btn:focus-visible::after { transform: scaleX(1); }
.cs-wrap .cs-card-btn:focus-visible { outline-offset: 3px; }
.cs-card--skel { min-height: 0; border-color: transparent; }

/* desktop hover only (no sticky hover on touch) */
@media (hover: hover) and (pointer: fine) {
  .cs-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -26px rgba(45, 18, 25, .32); }
  .cs-card:hover .cs-card-media img { transform: scale(1.04); }
}
/* scroll reveal (class added by combo-shop.js). Uses `translate` so the hover `transform` still works. */
.cs-reveal .cs-card {
  opacity: 0; translate: 0 24px;
  transition: opacity .7s var(--cs-ease) var(--reveal-delay, 0ms), translate .7s var(--cs-ease) var(--reveal-delay, 0ms),
              transform .45s var(--cs-ease), box-shadow .45s var(--cs-ease);
}
.cs-reveal .cs-card.is-in { opacity: 1; translate: 0 0; }

/* toast (store.js #toast): readable width on phones, never blocks taps */
.combo-shop-page .toast { max-width: calc(100vw - 32px); text-align: center; pointer-events: none; }

.cs-empty { padding: 60px 20px; text-align: center; color: var(--cs-muted); }
.cs-notfound .cs-h1 { margin-bottom: 12px; color: var(--cs-ink); }
.cs-notfound-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ==========================================================================
   PART A — Product page
   ========================================================================== */
.cs-pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

/* Gallery (sticky on desktop) */
.cs-gallery { position: sticky; top: 100px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
.cs-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.cs-thumb { flex: none; width: 72px; height: 72px; padding: 4px; border: 1px solid var(--cs-line); border-radius: 2px; background: #fff; cursor: pointer; }
.cs-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.cs-thumb[aria-selected="true"] { border: 2px solid var(--cs-maroon); padding: 3px; }
.cs-stage { position: relative; height: 560px; border: 1px solid var(--cs-line); border-radius: 2px; background-color: #fff; overflow: hidden; cursor: zoom-in; }
.cs-stage img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; transition: transform .25s ease; }
.cs-stage.is-zoom img { transform: scale(2); }
.cs-dots { display: none; }

/* Buy box */
.cs-buybox { min-width: 0; }
.cs-title { font-family: var(--cs-serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 38px); line-height: 1.12; margin: 0 0 8px; }
.cs-meta { margin: 0; font-size: 12px; letter-spacing: .2em; color: var(--cs-muted); }
.cs-price-block { margin: 20px 0; }
.cs-price-block p { margin: 0; }
.cs-offers { padding: 16px 18px; margin-bottom: 22px; background: var(--cs-beige); border: 1px solid var(--cs-line); border-radius: 2px; }
.cs-offers ul { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.9; }
.cs-field { margin-bottom: 22px; }
.cs-slots { display: grid; gap: 10px; }
.cs-slots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-slots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-slot { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border: 1px solid var(--cs-line); border-radius: 2px; background: #fff; }
.cs-slot:focus-within { border-color: var(--cs-maroon); }
.cs-slot span { font-size: 11px; color: var(--cs-muted); }
.cs-slot select { width: 100%; padding: 2px 0; border: 0; background: transparent; font: 600 14px var(--cs-sans); color: var(--cs-ink); cursor: pointer; }
.cs-qty-row { display: flex; align-items: center; gap: 16px; }
.cs-qty-row .cs-label { margin: 0; }
.cs-qty { display: inline-flex; align-items: center; border: 1px solid var(--cs-line); border-radius: 2px; background: #fff; }
.cs-qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--cs-ink); }
.cs-qty output { min-width: 34px; text-align: center; font-weight: 600; }
.cs-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.cs-pin-row { display: flex; gap: 8px; }
.cs-pin-row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--cs-line); border-radius: 2px; background: #fff; font: 14px var(--cs-sans); }

/* Below the fold */
.cs-block { margin-top: clamp(48px, 6vw, 80px); }
.cs-inside { display: grid; gap: 24px; align-items: stretch; }
.cs-inside--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-inside--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-inside-card { display: flex; flex-direction: column; height: 100%; }
.cs-inside-card .product-info { display: flex; flex-direction: column; flex: 1; }
.cs-inside-card .product-scent-line { min-height: 3em; }      /* same caption space on every card */
.cs-included { margin: auto 0 0; padding: 12px; background: #f1ebe1; text-align: center; font-size: 11px; letter-spacing: .2em; color: var(--cs-ink); }
.cs-inside-simple .card-main-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.cs-desc { max-width: 760px; margin: 0 0 24px; line-height: 1.7; color: var(--cs-muted); }
.cs-note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cs-note-col { padding: 20px; background: #fff; border: 1px solid var(--cs-line); border-radius: 2px; }
.cs-note-col h3 { margin: 0 0 8px; font-family: var(--cs-serif); font-size: 22px; font-weight: 500; }
.cs-note-col p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--cs-muted); }
.cs-notes { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.cs-notes li { padding: 6px 0; border-top: 1px solid var(--cs-line); }
.cs-notes span { display: inline-block; min-width: 100px; color: var(--cs-gold-dk); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.cs-specs { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 14px; background: #fff; }
.cs-specs th, .cs-specs td { padding: 12px 16px; border: 1px solid var(--cs-line); text-align: left; }
.cs-specs th { width: 40%; font-weight: 500; color: var(--cs-muted); background: var(--cs-beige); }
.cs-review { margin: 16px 0 0; padding: 16px; background: #fff; border: 1px solid var(--cs-line); }
.cs-review cite { font-size: 12px; color: var(--cs-muted); }

.cs-sim-head { display: flex; justify-content: space-between; align-items: center; }
.cs-arrow { width: 40px; height: 40px; margin-left: 8px; border: 1px solid var(--cs-line); border-radius: 2px; background: #fff; cursor: pointer; }
.cs-arrow:hover { border-color: var(--cs-maroon); color: var(--cs-maroon); }
.cs-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.cs-carousel .cs-card { scroll-snap-align: start; }

/* Mobile sticky bar (shown ≤767px on the product page) */
.cs-sticky { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .cs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .cs-carousel { grid-auto-columns: calc((100% - 48px) / 3); }
  .cs-stage { height: 480px; }
}
@media (max-width: 900px) {
  .cs-pdp { grid-template-columns: 1fr; }
  .cs-gallery { position: static; }
  .cs-inside--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Listing ≤768px: 2 compact columns + filter bottom sheet */
@media (max-width: 768px) {
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cs-card-media { aspect-ratio: 1 / 1; }
  .cs-card-media img { width: 84%; height: 84%; }
  .cs-card-tag { top: 10px; left: 10px; font-size: 9px; letter-spacing: .24em; }
  .cs-card-body { padding: 14px; gap: 8px; }
  .cs-card-pack { font-size: 10px; letter-spacing: .14em; }
  .cs-card-title { font-size: clamp(16px, 4.4vw, 18px); }
  .cs-card-scents { font-size: 11px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cs-card-scents li { white-space: normal; }
  .cs-card-scents li:not(:last-child)::after { margin: 0 7px; height: 9px; }
  .cs-card-scents--3 .cs-ml { display: none; }   /* Trio: 3 names fit in 2 lines; size is in the pack label */
  .cs-card .cs-price { font-size: clamp(20px, 5.6vw, 22px); }
  .cs-card-tax { margin: 4px 0 10px; font-size: 10px; }
  .cs-card-btn { min-height: 44px; padding: 0 6px; font-size: 11px; letter-spacing: .15em; }
  .cs-card-btn::after { bottom: 9px; }

  .cs-filter-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--cs-line); border-radius: 2px; background: #fff; font: 600 13px var(--cs-sans); color: var(--cs-ink); cursor: pointer; }
  .cs-sort select { min-height: 44px; }
  .cs-clear-desktop { display: none; }
  .cs-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; max-height: 75vh; overflow-y: auto; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--cs-cream); border-top: 1px solid var(--cs-line); transform: translateY(100%); transition: transform .3s ease; visibility: hidden; }
  .cs-sheet.is-open { transform: none; visibility: visible; }
  .cs-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; }
  .cs-sheet-close { width: 44px; height: 44px; border: 0; background: none; font-size: 26px; cursor: pointer; }
  .cs-sheet-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
  .cs-sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(26, 26, 26, .45); }
  .cs-chip { min-height: 44px; }
}
/* Product page ≤767px */
@media (max-width: 767px) {
  .cs-wrap { padding-top: 18px; }
  .cs-price--big { font-size: 38px; }
  /* gallery → swipe carousel with dots */
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-thumbs { display: none; }
  .cs-stage { height: auto; aspect-ratio: 1 / 1; cursor: default; }
  .cs-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .cs-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--cs-line); }
  .cs-dots span.is-on { background: var(--cs-maroon); }

  .cs-slots--3 { grid-template-columns: 1fr; }
  .cs-actions { display: none; }      /* replaced by the sticky bar */
  .cs-inside--2, .cs-inside--3 { grid-template-columns: 1fr; }
  .cs-carousel { grid-auto-columns: 62%; gap: 12px; }

  .cs-has-sticky { padding-bottom: 76px; }
  .cs-sticky { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--cs-cream); border-top: 1px solid var(--cs-line); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .25); }
  .cs-sticky-price { display: flex; flex-direction: column; line-height: 1.1; padding-right: 4px; }
  .cs-sticky-price .cs-small { margin: 2px 0 0; font-size: 11px; }
  .cs-sticky-price .cs-mrp, .cs-sticky-price .cs-off { display: none; }
  .cs-sticky .cs-btn { min-height: 46px; padding: 0 6px; font-size: 11px; letter-spacing: .1em; }
  /* toast sits above the sticky buy bar */
  .cs-has-sticky .toast { bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 1002; }
}
@media (max-width: 380px) {
  .cs-grid { gap: 10px; }
  .cs-card-body { padding: 12px; }
  .cs-card-btn { letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-skel { animation: none; }
  .cs-card, .cs-card-media img, .cs-stage img, .cs-sheet, .cs-card-btn::after { transition: none; }
  .cs-card:hover, .cs-card:hover .cs-card-media img { transform: none; }
  .cs-reveal .cs-card { opacity: 1; translate: none; }
}
