/* Products: details page, catalogue, bulk juices. Uses tokens and utilities from main.css. */

/* ---------- Product details: hero ---------- */
.phero { padding-top: clamp(8px, 2vw, 24px); overflow-x: clip; }
.phero__name { text-align: center; font-size: calc(clamp(2.8rem, min(9.2vw, 17vh), 8.6rem) * var(--display-scale)); }
.phero__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: clamp(12px, 3vw, 48px);
  margin-top: clamp(-24px, -1vw, 0px);
}
.phero__label { margin: 0 0 clamp(24px, 6vw, 90px); }
.phero__label--origin { text-align: right; }
.phero__label .eyebrow { margin-bottom: .5rem; }
.phero__value { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(clamp(1.5rem, 2.6vw, 2.4rem) * var(--display-scale)); line-height: 1.12; color: var(--green); max-width: 17ch; }
.phero__label--origin .phero__value { margin-left: auto; }
.phero__fig { position: relative; margin: 0; width: clamp(240px, 33vw, 470px); aspect-ratio: 3 / 4; }
.phero__halo {
  position: absolute; left: 50%; bottom: 4%; width: 120%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, var(--cream)) 0%, color-mix(in srgb, var(--accent) 10%, var(--cream)) 55%, transparent 70%);
}
.phero__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 30px rgba(15, 59, 42, .22)); }
@media (max-width: 700px) {
  .phero__stage { grid-template-columns: 1fr 1fr; grid-template-areas: "fig fig" "cat origin"; row-gap: 0; }
  .phero__fig { grid-area: fig; justify-self: center; width: min(74vw, 340px); }
  .phero__label--cat { grid-area: cat; margin-top: 8px; }
  .phero__label--origin { grid-area: origin; margin-top: 8px; }
  .phero__label { margin-bottom: 0; }
  .phero__value { max-width: none; }
}

/* ---------- Product details: description ---------- */
.pdesc .wrap { max-width: 900px; text-align: center; }
.pdesc .lede { margin-inline: auto; font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.pdesc__whatsin { margin: 1.6rem 0 0; color: var(--ink); }
.pdesc__whatsin .eyebrow, .pdesc__flavours .eyebrow { margin-bottom: .4rem; }
.pdesc__flavours { margin-top: 2rem; }
.pdesc__flavours .pills { justify-content: center; margin-top: .6rem; }
.pdesc__flavours-note { margin: 1.2rem 0 0; color: var(--ink-soft); font-size: .98rem; }
.pdesc__flavours-note a { color: var(--purple); font-weight: 600; }

.flavour-pill { background: var(--fl); color: var(--fl-ink); border-color: var(--fl); font-size: .92rem; padding: .55em 1.3em; }

.pinfo { padding-bottom: clamp(32px, 5vw, 64px); }
.pinfo__other { margin: 1rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.pinfo .cols-3 p { margin: 0; }

/* ---------- Product details: gallery ---------- */
.pgallery { padding-inline: 0; }
.pgallery__track {
  --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  list-style: none; display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 18px; scroll-padding-inline: var(--pad); -webkit-overflow-scrolling: touch; scrollbar-width: thin; cursor: grab;
}
.pgallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.pgallery__card {
  flex: 0 0 clamp(260px, 38vw, 520px); aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 36%, var(--cream));
}
.pgallery__card--2 { background: color-mix(in srgb, var(--accent) 14%, #fff); }
.pgallery__card--3 { background: color-mix(in srgb, var(--accent) 60%, var(--cream)); }
.pgallery__card img { width: 78%; height: 88%; object-fit: contain; filter: drop-shadow(0 22px 24px rgba(15, 59, 42, .2)); pointer-events: none; }
.pgallery__card--2 img { width: 125%; height: 125%; max-width: none; transform: translateY(6%); }
@media (max-width: 700px) { .pgallery__card { flex-basis: 76vw; } }

/* ---------- Product details: CTA and others ---------- */
.pcta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; padding-block: clamp(8px, 2vw, 24px) clamp(40px, 6vw, 80px); }
.pcta h2, .pcta .lede { flex: 0 0 100%; text-align: center; }
.pcta__note { flex: 0 0 100%; text-align: center; margin: .8rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.pcta.section { padding-block: clamp(56px, 9vw, 130px); }
.pothers { background: var(--cream-2); border-radius: var(--radius) var(--radius) 0 0; }
.pothers__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.pothers__head h2 { margin: 0; }
.pothers__head .pill { white-space: nowrap; flex: none; }
.pothers__strip {
  --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  list-style: none; padding: 0 var(--pad) 18px; scroll-padding-inline: var(--pad); cursor: grab; gap: 22px;
}
.pothers__strip > li { flex: 0 0 min(72vw, 300px); }
.pothers__strip.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.pothers__strip .card { height: 100%; }

/* ---------- Catalogue ---------- */
.chead { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(32px, 5vw, 64px); }
.chead .display { margin-bottom: .25em; }
.chead .lede { max-width: 52rem; }
.chead__jump { list-style: none; margin-top: 2rem; }
.chead__jump .pill { transition: background .25s var(--ease), color .25s var(--ease); }
.chead__jump .pill:hover { background: var(--green); color: var(--cream); }
.cgroup { padding-block: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); scroll-margin-top: 24px; display: block; }
.cgroup__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(16px, 2.4vw, 32px); }
.cgroup__head h2 { margin: 0; }
.cgroup__count { font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
:lang(hi) .cgroup__count, :lang(kn) .cgroup__count { letter-spacing: .02em; text-transform: none; }
.cgroup__grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.ccard { display: grid; grid-template-rows: auto 1fr; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ccard:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(15, 59, 42, .5); }
.ccard__media { display: grid; place-items: center; aspect-ratio: 4 / 3.4; overflow: hidden; background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--accent) 34%, var(--cream)), color-mix(in srgb, var(--accent) 8%, var(--cream)) 78%); }
.ccard__media img { height: 100%; width: auto; padding-block: 6%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(15, 59, 42, .2)); transition: transform .6s var(--ease); }
.ccard:hover .ccard__media img { transform: scale(1.05); }
.ccard__body { display: flex; flex-direction: column; gap: .5rem; padding: 22px 24px 26px; }
.ccard__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(clamp(1.7rem, 2.4vw, 2.2rem) * var(--display-scale)); line-height: 1.08; color: var(--green); }
.ccard__blurb { color: var(--ink-soft); font-size: 1rem; }
.ccard__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: .8rem; }
.ccard__origin { font-size: .82rem; font-weight: 600; color: var(--green); }
.ccard__sizes { display: inline-flex; gap: 6px; }
.ccard__sizes .pill { min-width: 0; height: 32px; font-size: .78rem; }
.ccard__go { font-size: .88rem; font-weight: 700; color: var(--purple); letter-spacing: .04em; }
.ccta { margin-top: clamp(40px, 6vw, 90px); }
.ccta .lede { color: var(--cream); }
.ccta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 2rem 0 0; }
@media (max-width: 960px) { .cgroup__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cgroup__grid { grid-template-columns: minmax(0, 1fr); } .ccard__media { aspect-ratio: 4 / 3; } }

/* ---------- Bulk juices ---------- */
.bhero { padding-top: clamp(16px, 3vw, 40px); }
.bhero .display { margin-bottom: .25em; }
.bhero__img { margin: clamp(28px, 4vw, 56px) 0 0; aspect-ratio: 16 / 8; background: var(--cream-2); }
.bhero__img img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
@media (max-width: 700px) { .bhero__img { aspect-ratio: 4 / 3; } }
.bflavours { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: 2.4rem; }
.bflavour {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(150px, 20vw, 260px); padding: clamp(18px, 2vw, 28px);
  background: var(--fl); color: var(--fl-ink); border-radius: var(--radius); overflow: hidden;
}
.bflavour::before { content: ""; position: absolute; right: -18%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.bflavour__size { position: absolute; left: clamp(18px, 2vw, 28px); top: clamp(16px, 2vw, 24px); font: 700 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.bflavour__name { position: relative; font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(clamp(1.9rem, 3.6vw, 3.2rem) * var(--display-scale)); line-height: 1; text-transform: var(--display-case); letter-spacing: var(--display-track); }
@media (max-width: 760px) { .bflavours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bfusion { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: 2.4rem; }
.bfusion__card {
  display: flex; flex-direction: column; justify-content: flex-end; gap: .8rem; min-height: clamp(160px, 22vw, 280px); padding: clamp(20px, 2.4vw, 36px);
  border-radius: var(--radius); color: var(--fl-ink); background: linear-gradient(120deg, var(--fl) 0%, var(--fl) 38%, var(--fl2) 100%);
}
.bfusion__card .tag { align-self: flex-start; font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: .5em .9em; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--green); }
.bfusion__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(clamp(1.8rem, 3.4vw, 3rem) * var(--display-scale)); line-height: 1.02; text-transform: var(--display-case); letter-spacing: var(--display-track); text-shadow: 0 1px 12px rgba(0, 0, 0, .12); }
@media (max-width: 700px) { .bfusion { grid-template-columns: minmax(0, 1fr); } }
.buses { margin-top: clamp(16px, 4vw, 56px); }
.buses__grid { margin-top: 2.4rem; }
.buses__item { border-top: 1px solid rgba(251, 244, 234, .35); padding-top: 1.2rem; }
.buses__item h3 { color: var(--gold) !important; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.buses__item p { margin: 0; opacity: .92; }
.blabel__box { background: var(--cream-2); border-radius: var(--radius); padding: clamp(28px, 5vw, 72px); }
.blabel__box .lede { margin-bottom: 1.6rem; }
.pcta.section.wrap { display: flex; }

/* Drag-to-spin on the product hero */
.phero__fig { position: relative; }
.phero__img[data-turntable] { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-drag: none; }
.phero__img.is-spinning { cursor: grabbing; }
.phero__spin {
  display: none; position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 2; pointer-events: none; white-space: nowrap;
  align-items: center; gap: .5em; padding: .5em .95em; border-radius: 999px; background: rgba(251, 244, 234, .92); color: var(--green);
  font: 600 .78rem/1 var(--font-body); box-shadow: 0 8px 22px rgba(15, 59, 42, .18); transition: opacity .4s var(--ease);
}
html.js .phero__spin { display: inline-flex; }
.phero__spin svg { color: var(--purple); animation: spin-hint 2.2s var(--ease) infinite; }
.phero__spin.is-gone { opacity: 0; }
@keyframes spin-hint { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .phero__spin { display: none !important; } }
