/* Trio Box offer (19 Nov 2026): Choco Peanut Crunch + Dark Choco Almonds + Signature Nutty Medley,
   three 100g jars for Rs 1,999 with free delivery. Used on the homepage, shop, product, bag and checkout.
   The real HD jar photos are fanned together, so the labels stay exactly as printed. */
:root {
  --plum: #45163F;
  --peanut: #5A2236;
  --medley: #74191B;
}

/* ---------- the three jars, fanned ---------- */
.trio-jars {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  isolation: isolate;
}
.trio-jars img {
  position: absolute;
  bottom: 4%;
  height: 92%;
  width: auto;
  aspect-ratio: 555 / 1194;
  filter: drop-shadow(0 26px 26px rgba(12, 4, 3, .38));
  transform-origin: 50% 100%;
}
.trio-jars .tj-c { left: 50%; translate: -50% 0; z-index: 3; }
.trio-jars .tj-l { left: 50%; height: 80%; translate: -112% 0; rotate: -7deg; z-index: 2; }
.trio-jars .tj-r { left: 50%; height: 80%; translate: 12% 0; rotate: 7deg; z-index: 2; }
.trio-jars .contact { left: 6%; right: 6%; bottom: 2%; height: 7%; z-index: 1; }

/* brass seal: the saving */
.trio-seal {
  position: absolute;
  z-index: 4;
  top: 2%;
  right: 2%;
  width: clamp(92px, 26%, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 35% 30%, #e6c891 0%, var(--brass) 52%, #8A6A35 100%);
  color: var(--cocoa);
  box-shadow: 0 14px 30px rgba(12, 4, 3, .35), inset 0 0 0 3px rgba(42, 22, 18, .18), inset 0 0 0 7px rgba(244, 239, 231, .28);
  rotate: 10deg;
}
.trio-seal small { font: 600 clamp(11px, 2.6vw, 13px)/1 var(--sans); letter-spacing: .04em; }
.trio-seal b { font: 600 clamp(24px, 6.4vw, 38px)/1 var(--serif); margin-top: 4px; white-space: nowrap; }

/* ---------- the gift-box photo ---------- */
.trio-photo { position: relative; aspect-ratio: 1; width: 100%; }
.trio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(12, 4, 3, .45), 0 0 0 1px rgba(194, 154, 91, .35);
}
.trio-photo .trio-seal { top: -5%; left: -4%; right: auto; rotate: -10deg; }
.trio-banner .trio-photo .trio-seal, .pdp-trio-photo .trio-seal { top: 4%; left: 4%; }
.pdp-trio-photo { max-width: 560px; margin: 0 auto clamp(32px, 5vw, 56px); }
.pdp-trio-photo figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--cocoa-soft); }

/* ---------- price block ---------- */
.trio-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.trio-price .now { font: 600 clamp(54px, 13vw, 88px)/.95 var(--serif); letter-spacing: -.01em; }
.trio-price s { font: 500 20px/1 var(--sans); opacity: .62; text-decoration-thickness: 2px; }
.trio-free {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 10px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--cocoa);
  font: 600 15px/1 var(--sans);
}
.trio-free::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f8a4c; box-shadow: 0 0 0 4px rgba(47, 138, 76, .18); }
.trio-inside { list-style: none; display: grid; gap: 10px; font-size: 16px; }
.trio-inside li { display: flex; align-items: center; gap: 12px; }
.trio-inside li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px rgba(244, 239, 231, .55); }
.trio-inside a { text-decoration: underline; text-decoration-color: rgba(244, 239, 231, .35); text-underline-offset: 4px; }
.trio-fine { font-size: 13.5px; opacity: .72; max-width: 46ch; }
.btn-brass { background: var(--brass); color: var(--cocoa); }
.btn-brass:hover { background: #d3ad6e; }

/* ---------- homepage: hero chip and the offer section ---------- */
.trio-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  background: var(--brass);
  box-shadow: 0 10px 26px rgba(12, 4, 3, .3);
  font: 600 14.5px/1.2 var(--sans);
  color: var(--cocoa);
}
.trio-chip b { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--cocoa); color: var(--ivory); font-size: 12px; letter-spacing: .04em; }
.trio-chip:hover { background: #d3ad6e; }
.trio-chip span { text-align: left; }

.trio {
  --field: var(--plum);
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 140px) var(--gutter) clamp(72px, 10vw, 120px);
  color: var(--ivory);
}
.trio-word {
  position: absolute;
  inset: auto 0 auto 0;
  top: clamp(40px, 7vw, 90px);
  text-align: center;
  font: italic 500 clamp(140px, 34vw, 420px)/.8 var(--serif);
  color: rgba(244, 239, 231, .06);
  pointer-events: none;
  white-space: nowrap;
}
.trio-grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}
.trio-grid h2 em { font-style: italic; color: #e6c891; }
.trio-lead { max-width: 34ch; font-size: 17px; opacity: .9; }
.trio-stage { width: min(100%, 480px); }
.trio-copy { display: grid; gap: 22px; justify-items: center; }
.trio-copy .trio-price { justify-content: center; }
.trio-copy .trio-inside { justify-items: start; text-align: left; }
.trio-copy .btn { min-width: min(100%, 300px); }
@media (min-width: 900px) {
  .trio-grid { grid-template-columns: 1.05fr 1fr; align-items: center; text-align: left; justify-items: start; gap: 40px 64px; }
  .trio-grid > .tagline, .trio-grid > h2 { grid-column: 1 / -1; justify-self: center; text-align: center; }
  .trio { padding-top: 92px; }
  .trio-grid { row-gap: 24px; }
  .trio-stage { width: 100%; max-width: min(480px, 62vh); justify-self: center; }
  .trio-copy { justify-items: start; }
  .trio-copy .trio-price { justify-content: flex-start; }
  .trio-lead { font-size: 19px; }
}
/* one entrance: the jars rise and the seal lands as the section comes in */
@media (prefers-reduced-motion: no-preference) {
  .trio-reveal .tj-c, .trio-reveal .tj-l, .trio-reveal .tj-r { opacity: 0; transform: translateY(60px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
  .trio-reveal .tj-l, .trio-reveal .tj-r { transition-delay: .12s; }
  .trio-reveal .trio-seal { opacity: 0; transform: scale(1.6); transition: opacity .5s var(--ease) .55s, transform .7s cubic-bezier(.3, 1.6, .5, 1) .55s; }
  .trio-reveal .trio-photo img { opacity: 0; transform: translateY(46px) scale(.97); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
  .trio-reveal.in .trio-photo img { opacity: 1; transform: none; }
  .trio-reveal.in .tj-c, .trio-reveal.in .tj-l, .trio-reveal.in .tj-r { opacity: 1; transform: none; }
  .trio-reveal.in .trio-seal { opacity: 1; transform: none; }
}

/* ---------- homepage first screen: the Trio hero ---------- */
/* the homepage page colour behind the phone's browser bars matches the Trio hero, not the old almond red */
body.home-trio { background: #2B0A26; }
.trio-hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  /* the same photo as a background too, so the box still shows if a phone's browser skips the <picture> */
  background: #2B0A26 url("../../assets/trio/trio-hero-tall.webp") 50% 100% / cover no-repeat;
  color: var(--ivory);
}
@media (orientation: landscape) and (min-width: 760px) {
  .trio-hero { background-image: url("../../assets/trio/trio-hero-wide.webp"); background-position: 100% 50%; }
}
.trio-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
/* a soft plum veil where the words sit, so they stay readable on any screen */
.trio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(43, 10, 38, .78) 0%, rgba(43, 10, 38, .42) 34%, rgba(43, 10, 38, 0) 50%),
    linear-gradient(0deg, rgba(30, 8, 26, .7) 0%, rgba(30, 8, 26, 0) 22%);
  pointer-events: none;
}
.trio-hero-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 84px var(--gutter) max(26px, env(safe-area-inset-bottom));
  text-align: center;
}
.trio-hero-top { display: grid; gap: 10px; justify-items: center; }
.trio-hero h2 { font: 500 clamp(50px, 14vw, 104px)/.95 var(--serif); letter-spacing: -.01em; }
.trio-hero h2 em { font-style: italic; color: #e6c891; }
.trio-hero-sub { display: none; max-width: 40ch; font-size: 17px; opacity: .92; }
.trio-hero .trio-price { justify-content: center; margin-top: 2px; }
/* Cormorant's old-style figures (the 9s) hang below the line, so the price gets room underneath */
.trio-hero .trio-price .now { font-size: clamp(46px, 12vw, 84px); line-height: 1; padding-bottom: .14em; }
.trio-hero .trio-perks { margin-top: 6px; }
.trio-hero .trio-price s { color: var(--ivory); }
.trio-hero-bottom { display: grid; gap: 14px; justify-items: center; }
.trio-perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.trio-perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 9px;
  border-radius: 999px;
  background: rgba(244, 239, 231, .94);
  color: var(--cocoa);
  font: 600 14px/1 var(--sans);
}
.trio-perks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f8a4c; }
.trio-hero-actions { display: grid; gap: 12px; justify-items: center; width: 100%; }
.trio-hero-actions .btn { width: min(100%, 340px); box-shadow: 0 14px 30px rgba(12, 4, 3, .35); }
.trio-hero-link { font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
/* computers and landscape tablets: words on the empty left of the wide photo */
@media (orientation: landscape) and (min-width: 760px) {
  .trio-hero-bg img { object-position: 100% 50%; }
  .trio-hero::after {
    background: linear-gradient(90deg, rgba(43, 10, 38, .82) 0%, rgba(43, 10, 38, .55) 32%, rgba(43, 10, 38, 0) 55%);
  }
  .trio-hero-copy {
    inset: 0 auto 0 0;
    width: min(46vw, 620px);
    justify-content: center;
    gap: 30px;
    padding: 90px 0 60px var(--gutter);
    text-align: left;
  }
  .trio-hero-top, .trio-hero-bottom, .trio-hero-actions { justify-items: start; }
  .trio-hero .tagline { justify-content: flex-start; }
  .trio-hero .tagline::before { display: none; }
  .trio-hero-sub { display: block; margin-top: 4px; }
  .trio-hero-top { gap: 14px; }
  .trio-hero .trio-perks { margin-top: 10px; }
  .trio-hero .trio-price, .trio-perks { justify-content: flex-start; }
  .trio-hero-actions { grid-auto-flow: column; align-items: center; gap: 22px; width: auto; }
  .trio-hero-actions .btn { width: auto; min-width: 240px; }
}
@media (prefers-reduced-motion: no-preference) {
  .trio-hero-bg img { animation: trio-zoom 14s var(--ease) both; }
  @keyframes trio-zoom { from { transform: scale(1.06); } to { transform: none; } }
}

/* ---------- bag: add the Trio for free delivery ---------- */
.trio-bag-offer {
  --field: var(--plum);
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 16px 18px 16px 12px;
  border-radius: 22px;
  color: var(--ivory);
}
.trio-bag-offer img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(12, 4, 3, .35)); }
.trio-bag-offer b { display: block; font: 600 24px/1.1 var(--serif); }
.trio-bag-offer p { margin: 4px 0 12px; font-size: 14.5px; opacity: .92; }
.trio-bag-offer .btn { min-height: 44px; padding: 0 22px; }

/* checkout: the gift card message (only while a Trio Box is in the bag) */
.gift-card-field .field-hint { margin-top: 6px; font-size: 13px; color: var(--cocoa-soft); }
.gift-card-field[hidden] { display: none; }

/* ---------- shop: the featured banner above the grid ---------- */
.trio-banner {
  --field: var(--plum);
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
  padding: clamp(26px, 4vw, 48px);
  border-radius: 28px;
  color: var(--ivory);
  overflow: hidden;
}
.trio-banner .trio-stage { width: min(100%, 360px); justify-self: center; }
.trio-banner h2 { font-size: clamp(40px, 6vw, 64px); }
.trio-banner h2 em { font-style: italic; color: #e6c891; }
.trio-banner .copy { display: grid; gap: 16px; align-content: center; }
.trio-banner .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trio-banner .actions a:not(.btn) { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.trio-banner .badge-new { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--brass); color: var(--cocoa); font: 600 12.5px/1 var(--sans); letter-spacing: .04em; }
@media (min-width: 760px) {
  .trio-banner { grid-template-columns: minmax(260px, 380px) 1fr; align-items: center; gap: 40px; }
}

/* ---------- product page for the Trio ---------- */
.pdp-hero .trio-jars { position: absolute; z-index: 2; left: 0; right: 0; margin: 0 auto; bottom: 7%; width: min(94%, 60svh); }
@media (min-width: 900px) { .pdp-hero .trio-jars { width: min(88%, 74vh); bottom: 5vh; } }
.pdp-trio-note { display: grid; gap: 14px; margin: 6px 0 20px; }
.pdp-trio-note .trio-inside { color: var(--cocoa); }
.pdp-trio-note .trio-inside li::before { box-shadow: 0 0 0 2px rgba(42, 22, 18, .12); }
.pdp-trio-note .trio-inside a { text-decoration-color: rgba(42, 22, 18, .3); }
.pdp-trio-note .trio-free { justify-self: start; background: var(--cocoa); color: var(--ivory); }
.pdp-save { font-weight: 600; color: #2f7a46; }

/* upsell card on the single-flavour pages */
.trio-upsell {
  --field: var(--plum);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: 14px 18px 14px 10px;
  border-radius: 20px;
  color: var(--ivory);
}
.trio-upsell { overflow: hidden; }
.trio-upsell .trio-jars { width: 96px; }
.trio-upsell .trio-jars img { filter: drop-shadow(0 6px 6px rgba(12, 4, 3, .35)); }
.trio-upsell .trio-jars .contact { display: none; }
.trio-upsell b { display: block; font: 600 22px/1.1 var(--serif); }
.trio-upsell span { font-size: 14px; opacity: .9; }
.trio-upsell:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* bag and checkout thumbnail */
.item-field .trio-jars, .cart-page-item__media .trio-jars { width: 100%; height: 100%; aspect-ratio: auto; }
