/* =====================================================================
   OZAURA — combos.css
   "Bundle & Save" grid (partials/combo-offers.php). Sits between the
   product grid and whatever follows, using the same .shop-section
   rhythm as the rest of the storefront (sec-head, container widths).
   ===================================================================== */

.cbo{ padding:4.5rem 0; background:var(--cream-2); }

/* flex rather than grid: an odd count (5 combos today, until the Biotin
   ones unhide and make it 8) leaves the last row short, and a grid
   strands that card hard left against three empty columns. Centring the
   remainder reads as intentional instead. */
.cbo-grid{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:1.6rem; margin-top:2.4rem;
}

/* ---------------------------------------------------------------------
   Card: a media panel with the packs shown large, then the details —
   the same shape as .prod-card so the two grids read as one system.
   The old layout put two 78px chips above centred text, which made the
   products almost unreadable and the card look like a list row.
   --------------------------------------------------------------------- */
.cbo-card{
  flex:1 1 300px; max-width:352px;
  position:relative; display:flex; flex-direction:column; overflow:hidden;
  background:var(--card); border:1px solid var(--line); border-radius:var(--rad);
  box-shadow:0 14px 34px -26px rgba(29,27,22,.5); transition:var(--tr);
}
.cbo-card:hover{ transform:translateY(-5px); box-shadow:0 26px 52px -26px rgba(29,27,22,.42); }

/* ---- media: the two packs on the studio backdrop they were shot on ---- */
.cbo-media{
  position:relative; display:flex; align-items:center; justify-content:center;
  gap:.2rem; padding:1rem .6rem;
  aspect-ratio:1/.82; overflow:hidden;
  /* the pack shots carry this backdrop, so the panel continues it rather
     than floating them on a mismatched cream */
  background:linear-gradient(170deg, #d7dced 0%, #c8d0e3 55%, #bfc8de 100%);
}
/* min-height:0 + min-width:0 are what hold the aspect-ratio: without them a
   tall pack (the 200ml shampoo) stretches this panel past the ratio and that
   card ends up taller than the rest of the row */
.cbo-shot{
  position:relative; flex:1 1 0; min-width:0; min-height:0; align-self:stretch;
}
/* absolutely positioned so the box is always exactly the panel's inner
   height: a percentage max-height on an auto-height flex child resolves to
   "none", which let tall packs spill 270px out of the bottom of the panel */
.cbo-shot img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:contain; display:block;
  filter:drop-shadow(0 12px 18px rgba(29,27,22,.18));
  transition:transform .5s cubic-bezier(.22,.61,.36,1);
}
.cbo-card:hover .cbo-shot img{ transform:translateY(-4px) scale(1.03); }

/* photo mode: one dedicated shot of the pair together, not the
   cutouts-plus-gradient composite — it carries its own backdrop, fills
   the panel edge to edge, and needs none of the composite's tricks */
.cbo-media--photo{ padding:0; background:none; }
.cbo-media--photo img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s cubic-bezier(.22,.61,.36,1);
}
.cbo-card:hover .cbo-media--photo img{ transform:scale(1.04); }

.cbo-plus{
  flex:0 0 auto; z-index:1;
  width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(255,255,255,.92); color:var(--ink);
  font-family:var(--serif); font-size:1.05rem; line-height:1;
  box-shadow:0 4px 12px -4px rgba(29,27,22,.35);
}

.cbo-save{
  position:absolute; top:.85rem; right:.85rem; z-index:2;
  background:var(--sage-deep); color:#fff; font-size:.68rem; font-weight:700;
  letter-spacing:.06em; padding:.34rem .72rem; border-radius:999px;
  box-shadow:0 6px 16px -6px rgba(29,27,22,.45);
}
.cbo-qty{
  position:absolute; right:.2rem; bottom:.2rem; background:var(--ink); color:#fff;
  font-size:.62rem; font-weight:700; padding:.05rem .35rem; border-radius:.35rem;
}

/* ---- body ---- */
.cbo-body{
  display:flex; flex-direction:column; flex:1;
  padding:1.1rem 1.15rem 1.2rem;
}
/* flows as one wrapping line ("A + B"), not one forced row per product —
   a 3-item combo used to reserve 5 stacked rows (name, +, name, +, name)
   against a 2-item combo's 3, and .cbo-foot{margin-top:auto} below
   stretched the shorter cards to match, leaving a large empty gap above
   the price in every 2-item card whenever a 3-item combo shared its row */
.cbo-name{ font-size:1rem; line-height:1.4; margin-bottom:1rem; }
.cbo-name span + span::before{ content:' + '; color:var(--gold); font-weight:400; }

.cbo-foot{ margin-top:auto; }
.cbo-price{ display:flex; align-items:baseline; gap:.55rem; margin-bottom:.9rem; }
.cbo-price b{ font-size:1.45rem; font-weight:700; letter-spacing:-.01em; }
.cbo-price s{ color:var(--muted); font-size:.92rem; }

.cbo-add{ width:100%; justify-content:center; }
.cbo-add.added{ background:var(--sage-deep); border-color:var(--sage-deep); }

@media (max-width: 620px){
  .cbo{ padding:3rem 0; }
  .cbo-grid{ gap:1rem; }
  .cbo-card{ flex:1 1 calc(50% - .5rem); max-width:none; }
  .cbo-media{ padding:.7rem .4rem; aspect-ratio:1/.9; }
  .cbo-plus{ width:24px; height:24px; font-size:.9rem; }
  .cbo-body{ padding:.85rem .85rem 1rem; }
  .cbo-name{ font-size:.86rem; margin-bottom:.7rem; }
  .cbo-price b{ font-size:1.2rem; }
  .cbo-add{ padding:.75rem 1rem; font-size:.75rem; }
}

/* =====================================================================
   .promo-card — the combo banner shown right after the last product card,
   two card-tracks wide. `span 2` (rather than the old `span 3`) needs
   only a 2-track gap to land beside the last product instead of a 3-track
   one, so it lines up correctly across far more product counts; the
   browser still clamps it to a full-width strip on narrow layouts where
   fewer than 2 tracks exist.

   `align-self:center` keeps its own height short instead of the grid's
   default stretch, which was pulling it up to match the row's tallest
   sibling — a full .prod-card (image + name + price text). The img's
   height was `100%` of that stretched box, which — since width and
   height were both explicitly set — silently overrode `aspect-ratio`
   (it only applies when one dimension is left to derive), so the banner
   rendered tall and cropped instead of the short, wide shape the ratio
   was supposed to give it. `height:auto` lets aspect-ratio drive it.
   ===================================================================== */
.promo-card{
  grid-column:span 2;
  align-self:center;
  position:relative; display:block; overflow:hidden;
  border-radius:var(--rad); border:1px solid var(--line);
  box-shadow:0 14px 34px -26px rgba(29,27,22,.5);
  background:var(--cream-2);
  transition:var(--tr);
}
.promo-card:hover{ transform:translateY(-4px); box-shadow:0 22px 46px -24px rgba(29,27,22,.42); }
.promo-card img{
  width:100%; height:auto; aspect-ratio:2/1.02; object-fit:cover; display:block;
  transition:transform .6s cubic-bezier(.22,.61,.36,1);
}
.promo-card:hover img{ transform:scale(1.04); }

/* the veil and CTA only come up on hover, so the artwork reads clean at rest */
.promo-veil{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(29,27,22,0) 35%, rgba(29,27,22,.55) 100%);
  opacity:0; transition:opacity .35s ease;
}
.promo-cta{
  position:absolute; inset:0; display:grid; place-items:center;
  opacity:0; transform:translateY(8px);
  transition:opacity .35s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.promo-card:hover .promo-veil,
.promo-card:focus-visible .promo-veil{ opacity:1; }
.promo-card:hover .promo-cta,
.promo-card:focus-visible .promo-cta{ opacity:1; transform:none; }
.promo-cta .btn{ pointer-events:none; }   /* the <a> itself is the target */
.promo-card:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

@media (hover:none){
  /* no hover on touch — keep the CTA visible so it's discoverable */
  .promo-veil{ opacity:1; }
  .promo-cta{ opacity:1; transform:none; }
}

/* =====================================================================
   .pair — product.php's single bundle offer
   Deliberately NOT the .cbo grid card and NOT another centred
   eyebrow/script-headline section: this page already ends with one of
   those ("You might also love"), and a second would read as filler.
   One panel, split in two — the offer on the left, a promo that earns
   the other half on the right, so a lone card never floats in dead space.
   ===================================================================== */
.pair{ padding:1rem 0 3.5rem; }

.pair-wrap{
  display:grid; grid-template-columns:1.06fr .94fr;
  border:1px solid var(--line); border-radius:var(--rad); overflow:hidden;
  background:var(--card); box-shadow:0 18px 44px -32px rgba(29,27,22,.55);
}

/* ---- left: the bundle ---- */
.pair-offer{ padding:2.1rem 2.2rem 1.9rem; display:flex; flex-direction:column; align-items:flex-start; }

.pair-label{
  font-size:.7rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gold);
}

.pair-line{ display:flex; align-items:center; gap:.7rem; margin:1.15rem 0 1.25rem; flex-wrap:wrap; }
.pair-thumb{
  position:relative; width:74px; height:74px; border-radius:.85rem; overflow:hidden;
  border:1px solid var(--line); background:var(--cream-2); flex-shrink:0;
}
.pair-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
/* the product you're already looking at reads as context, not the offer */
.pair-thumb.is-this{ opacity:.72; }
.pair-thumb.is-this::after{
  content:""; position:absolute; inset:0; border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(29,27,22,.08);
}
.pair-plus{ font-family:var(--serif); font-size:1.25rem; color:var(--gold); flex-shrink:0; }

.pair-title{ font-size:1.18rem; line-height:1.32; }
.pair-sub{ font-size:.82rem; color:var(--muted); margin-top:.3rem; }

.pair-price{ display:flex; align-items:baseline; gap:.65rem; flex-wrap:wrap; margin:1.15rem 0 1.3rem; }
.pair-price b{ font-size:1.55rem; font-weight:700; letter-spacing:-.01em; }
.pair-price s{ color:var(--muted); font-size:.95rem; }
.pair-price em{
  font-style:normal; font-size:.72rem; font-weight:700; letter-spacing:.05em;
  background:#eaf4e8; color:#2f6b34; border:1px solid #bcd9b6;
  padding:.24rem .6rem; border-radius:999px;
}

.pair-add{ padding:.85rem 1.6rem; }
.pair-add.added{ background:var(--sage-deep); border-color:var(--sage-deep); }
.pair-note{ font-size:.74rem; color:var(--muted); margin-top:.75rem; line-height:1.5; }

/* ---- right: the promo half ---- */
.pair-promo{
  position:relative; display:flex; align-items:flex-end;
  min-height:300px; padding:2rem; color:#fff; overflow:hidden;
}
.pair-promo-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  /* the shot is mostly cream product-on-cloth — darken it hard enough
     that white type stays legible without hiding the photo */
  filter:brightness(.62) saturate(1.05);
  transition:transform .5s cubic-bezier(.22,.61,.36,1);
}
/* the whole panel is a link now (was a plain <aside>) — the same subtle
   zoom every other clickable card on the site gives on hover */
.pair-promo:hover .pair-promo-bg{ transform:scale(1.045); }
.pair-promo::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(105deg, rgba(29,27,22,.82) 0%, rgba(29,27,22,.5) 55%, rgba(29,27,22,.25) 100%);
}
.pair-promo-in{ position:relative; z-index:1; }

.pair-promo-kicker{
  display:block; font-size:.68rem; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:rgba(255,255,255,.72);
}
.pair-promo-code{
  font-family:var(--serif); font-size:2.1rem; line-height:1; letter-spacing:.02em;
  margin:.5rem 0 .45rem; color:#fff;
}
/* 34ch keeps "₹1,000." on the same line as the clause it belongs to —
   a narrower box orphans it */
.pair-promo-line{ font-size:.86rem; line-height:1.5; color:rgba(255,255,255,.88); max-width:34ch; }

.pair-promo-list{ list-style:none; margin:1.1rem 0 1.2rem; padding:0; display:grid; gap:.45rem; }
.pair-promo-list li{ display:flex; align-items:center; gap:.55rem; font-size:.79rem; color:rgba(255,255,255,.85); }
.pair-promo-list i{ color:var(--gold); width:15px; text-align:center; font-size:.78rem; }

.pair-promo-link{
  display:inline-flex; align-items:center; gap:.45rem;
  font-size:.76rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:#fff; padding-bottom:.25rem; border-bottom:1px solid rgba(255,255,255,.4);
  transition:var(--tr);
}
/* .pair-promo-link is plain text now — the card itself is the <a> — so
   its hover feedback has to key off the parent being hovered instead of
   itself */
.pair-promo:hover .pair-promo-link{ border-bottom-color:var(--gold); color:var(--gold); }
.pair-promo-link i{ font-size:.7rem; transition:transform .3s var(--tr); }
.pair-promo:hover .pair-promo-link i{ transform:translateX(3px); }

@media (max-width: 860px){
  .pair-wrap{ grid-template-columns:1fr; }
  .pair-offer{ padding:1.7rem 1.5rem 1.5rem; }
  .pair-promo{ min-height:0; padding:1.7rem 1.5rem; }
  .pair-promo-code{ font-size:1.8rem; }
  /* stacked, the copy runs the full width and crosses the bright product
     half of the shot — the side-to-side gradient stops covering it, so
     darken top-to-bottom instead */
  .pair-promo::after{
    background:linear-gradient(180deg, rgba(29,27,22,.9) 0%, rgba(29,27,22,.76) 55%, rgba(29,27,22,.66) 100%);
  }
  .pair-promo-line{ max-width:none; }
}
@media (max-width: 480px){
  .pair{ padding:.5rem 0 2.5rem; }
  .pair-thumb{ width:62px; height:62px; }
  .pair-title{ font-size:1.05rem; }
  .pair-price b{ font-size:1.35rem; }
  .pair-add{ width:100%; justify-content:center; }
}

/* =====================================================================
   combo.php — "what's in this bundle": each row links to that product's
   own page, so a shopper who wants to check ingredients before buying
   the pair doesn't have to leave the combo entirely to do it.
   ===================================================================== */
.combo-items{ display:grid; gap:.65rem; margin-top:.9rem; }
.combo-item{
  display:flex; align-items:center; gap:.85rem;
  padding:.7rem .85rem; border:1px solid var(--line); border-radius:.9rem;
  background:var(--card); transition:var(--tr);
}
.combo-item:hover{ border-color:var(--gold); transform:translateY(-2px); box-shadow:0 10px 22px -16px rgba(29,27,22,.35); }
.combo-item-thumb{
  position:relative; flex:0 0 auto; width:52px; height:52px; border-radius:.65rem; overflow:hidden;
  background:var(--cream-2); border:1px solid var(--line);
}
.combo-item-thumb img{ width:100%; height:100%; object-fit:contain; display:block; }
.combo-item-thumb small{
  position:absolute; right:1px; bottom:1px; background:var(--ink); color:#fff;
  font-size:.6rem; font-weight:700; padding:.02rem .3rem; border-radius:.3rem;
}
.combo-item-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:.1rem; }
.combo-item-info b{ font-size:.88rem; font-weight:600; line-height:1.3;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.combo-item-info small{ color:var(--muted); font-size:.74rem; }
.combo-item-price{ flex:0 0 auto; font-weight:700; font-size:.88rem; }
.combo-item i{ flex:0 0 auto; color:var(--muted); font-size:.75rem; }

/* the whole card is now a link to combo.php — a full-bleed overlay over
   the media, same pattern as .pc-link on a product card, so hovering
   anywhere on the photo (not just the name) shows it's clickable */
.cbo-link{ position:absolute; inset:0; z-index:1; }
.cbo-name a{ color:inherit; }
.cbo-name a:hover{ color:var(--sage-deep); }
