/* JJ Drinks — shared styles. Built from Figma "JJ-Drinks-Website" (Oct 2026).
   Design canvas is 1440px wide; sizes scale down fluidly below that. */
:root {
  --brown: #563916;        /* nav, footer, body headings */
  --brown-2: #76432d;      /* section headings ("DISCOVER OUR RANGE") */
  --cream: #fff9eb;        /* range section background */
  --ink: #383938;          /* button text */
  --black: #000;
  --white: #fff;
  --blue: #0071ba;         /* social icons */
  --radius: 24px;
  --wrap: 1440px;
  --gutter: clamp(16px, 5.6vw, 80px);
  --font: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--brown); font-family: var(--font); line-height: 1.4; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--brown); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header__inner { height: clamp(72px, 11.4vw, 164px); display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 clamp(16px, 5.6vw, 80px) 0 clamp(16px, 3vw, 44px); max-width: var(--wrap); margin: 0 auto; }
.logo { position: relative; display: block; width: 167px; height: 52px; flex: 0 0 auto; }
.logo img { position: absolute; max-width: none; }
.logo__mark    { left: 0;      top: 0;      width: 23.76%; height: 100%; }
.logo__tagline { left: 25.25%; top: 68.04%; width: 74.15%; height: 27.14%; }
.logo__word    { left: 25.31%; top: 18.96%; width: 74.70%; height: 51.26%; }
.logo--lg { width: 230.48px; height: 71.83px; }
.nav { display: flex; gap: clamp(20px, 3.3vw, 48px); font-family: var(--font-ui); font-weight: 500; font-size: clamp(15px, 1.39vw, 20px); line-height: 1.5; }
.nav a { color: var(--white); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--brown); padding: 8px 0 16px; box-shadow: 0 12px 24px rgba(0,0,0,.18); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px var(--gutter); font-size: 18px; border: 0; }
  .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .site-header__inner { position: relative; }
  .logo { width: 128px; height: 40px; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--brown); color: var(--white); }
.site-footer__inner { min-height: 264px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
  padding: 40px 80px 40px 54px; max-width: var(--wrap); margin: 0 auto; }
.site-footer address { font-style: normal; text-align: center; font-family: var(--font-ui); font-weight: 500; font-size: clamp(17px, 1.8vw, 26px); line-height: 1.5; }
.site-footer address a { text-decoration: none; }
.site-footer address a:hover { text-decoration: underline; }
.social { display: flex; gap: 24px; justify-self: end; }
.social a { display: block; width: 74px; height: 74px; }
.social img { width: 74px; height: 74px; }
.footer-legal { text-align: center; font-family: var(--font-ui); font-size: 13px; opacity: .8; padding: 0 16px 18px; }
.footer-legal a { color: inherit; }
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; justify-items: center; padding: 40px 20px; }
  .social { justify-self: center; }
  .social a, .social img { width: 52px; height: 52px; }
}

/* ---------------------------------------------------------------- buttons */
.btn-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 76px; min-width: 274px; padding: 20px 32px;
  border-radius: 90px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 24px; line-height: 1.5;
  text-decoration: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.05)); transition: transform .15s ease, box-shadow .15s ease; }
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(86,57,22,.18); }
@media (max-width: 700px) { .btn-pill { min-height: 56px; min-width: 200px; font-size: 18px; padding: 12px 24px; } }

/* ---------------------------------------------------------------- shared blocks */
.banner { background: var(--brown); color: var(--white); text-align: center; padding: clamp(20px, 1.6vw, 23px) var(--gutter) clamp(28px, 3vw, 46px); }
.banner__quote { font-style: italic; font-weight: 700; font-size: clamp(26px, 3.33vw, 48px); letter-spacing: -0.02em; }
.banner__text { font-size: clamp(17px, 2.22vw, 32px); letter-spacing: -0.02em; max-width: 1110px; margin: 6px auto 0; }
.hero-img { width: 100%; aspect-ratio: 1440 / 810; object-fit: cover; }

/* ---------------------------------------------------------------- home */
.herbs { position: relative; background: #efe4d5 center / cover no-repeat; }
.herbs__img { width: 100%; aspect-ratio: 1440 / 821; object-fit: cover; }
.herbs__copy { position: absolute; left: 4.5%; top: 13%; width: 37%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.herbs__badge { width: 100%; max-width: 484px; mix-blend-mode: multiply; }
.herbs h2 { font-weight: 700; font-size: clamp(30px, 4.44vw, 64px); line-height: 1.02; letter-spacing: -0.02em; color: var(--brown); margin-top: 0; }
.herbs__sub { font-weight: 300; font-size: clamp(16px, 1.94vw, 28px); letter-spacing: -0.02em; color: var(--brown); margin: 8px 0 clamp(16px, 2vw, 28px); }
@media (max-width: 760px) {
  .herbs__img { aspect-ratio: auto; height: 300px; object-position: 80% center; }
  .herbs__copy { position: static; width: auto; padding: 32px var(--gutter) 40px; background: #f3ebe0; }
  .herbs__badge { max-width: 260px; }
}
.range { background: var(--cream); padding: clamp(48px, 11.7vw, 169px) 0 clamp(56px, 6vw, 90px); }
.range h2 { font-weight: 700; font-size: clamp(34px, 4.44vw, 64px); letter-spacing: -0.02em; color: var(--brown-2); padding-left: clamp(16px, 3.75vw, 54px); }
.range__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.9vw, 27px); padding: 0 clamp(16px, 2.8vw, 40px); margin-top: clamp(32px, 7vw, 100px); }
.range__item { text-decoration: none; color: var(--black); text-align: center; }
.range__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.range__item:hover img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(86,57,22,.18); }
.range__item span { display: block; font-weight: 600; font-size: clamp(18px, 2.22vw, 32px); letter-spacing: -0.02em; margin-top: 18px; }
@media (max-width: 760px) { .range__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- modals (native <dialog>) */
body.modal-open { overflow: hidden; }
dialog.modal { border: 0; padding: 0; border-radius: 24px; width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  overflow: auto; background: #fff; color: var(--brown); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.modal::backdrop { background: rgba(30, 20, 8, .55); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); color: #222; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.modal__close:hover { background: #fff; }

/* ---------------------------------------------------------------- carousels */
.carousel { position: relative; overflow: hidden; }
.carousel__track { display: flex; transition: transform .45s ease; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.carousel__nav > button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #222; font-size: 22px; cursor: pointer; }
.carousel__dots { display: flex; gap: 10px; }
.carousel__dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: #c9c9c9; cursor: pointer; }
.carousel__dots button[aria-current="true"] { background: #222; }
@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- product pop-ups (Figma "Modal / Bandung Rose" 21:7,
   "Wellness Modal" 205:537, "Jia Jia Herbal Wellness Product Pop Up Modal" 75:279 / 184:179) */
dialog.pm { width: min(1000px, calc(100vw - 24px)); border-radius: 33px; color: #fff; overflow: auto;
  background: radial-gradient(ellipse 72% 80% at 50% 50%, var(--pm-c1) 55%, var(--pm-c2) 100%); }
dialog.pm--rose { --pm-c1: #ff769d; --pm-c2: #ffd6e2; --pm-ring: rgba(255,255,255,.45); }
dialog.pm--panda { --pm-c1: #f2c21b; --pm-c2: #fbe9a6; --pm-ring: rgba(255,255,255,.5); }
dialog.pm--wellness { width: min(1421px, calc(100vw - 24px)); border-radius: 30px; --pm-ring: rgba(255,255,255,.45);
  background: linear-gradient(172deg, #f1c49c 0%, #f3cba7 38%, #f9e6c2 70%, #fefbda 100%); }
.pm__grid { display: grid; grid-template-columns: 36% 1fr; min-height: min(653px, calc(100vh - 24px)); }
dialog.pm--wellness .pm__grid { min-height: min(828px, calc(100vh - 24px)); grid-template-columns: 39% 1fr; }
.pm__media { display: grid; place-items: center; padding: 72px 16px 32px 24px; }
.pm__main { max-height: 420px; width: auto; max-width: 100%; filter: drop-shadow(0 18px 28px rgba(0,0,0,.18)); transition: opacity .2s ease; }
dialog.pm--wellness .pm__main { max-height: 560px; }
.pm__copy { padding: 34px clamp(20px, 5.6vw, 56px) 34px 0; display: flex; flex-direction: column; min-width: 0; }
dialog.pm--wellness .pm__copy { padding-top: 70px; padding-right: clamp(20px, 6vw, 90px); }
.pm h2 { font-weight: 700; font-size: clamp(28px, 4.5vw, 45px); line-height: .94; letter-spacing: -0.02em; }
.pm__label { font-weight: 700; font-size: clamp(19px, 2.5vw, 25.5px); line-height: 1; margin: 22px 0 10px; letter-spacing: -0.02em; }
dialog.pm--wellness .pm__label { font-family: var(--font-ui); font-size: 22px; letter-spacing: 0; margin-top: 36px; }
.pm__sizes { display: flex; gap: 18px; flex-wrap: wrap; }
.pm__size { background: none; border: 0; padding: 0; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: 400 21px/1.2 var(--font); }
dialog.pm--wellness .pm__size { font-family: var(--font-ui); font-size: 22px; }
.pm__thumb { width: 90px; height: 90px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 0 var(--pm-ring); transition: box-shadow .15s ease; }
/* fill the circle and scale the photo inside it: centred in every browser, whatever the photo's shape or padding */
.pm__thumb { position: relative; }
.pm__thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; padding: 12%; object-fit: contain; object-position: center; }
.pm__size.is-active .pm__thumb, .pm__size:hover .pm__thumb { box-shadow: 0 0 0 9px var(--pm-ring); }
.pm__size:focus-visible { outline: 3px solid #fff; outline-offset: 6px; border-radius: 8px; }
.pm__text { margin-top: 18px; font-size: clamp(16px, 1.85vw, 18.5px); line-height: 1.2; text-align: justify; }
.pm__text p + p { margin-top: 1.1em; }
dialog.pm--wellness .pm__text { font-weight: 300; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.05; text-align: left; letter-spacing: -0.02em; }
.pm__explore { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pm__strip { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.pm__strip::-webkit-scrollbar { display: none; }
.pm__strip a { flex: 0 0 auto; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 12px; background: #fff; }
dialog.pm--wellness .pm__strip { gap: 14px; }
dialog.pm--wellness .pm__strip a { width: 116px; height: 116px; border-radius: 17px; }
.pm__strip img { max-height: 84%; width: auto; }
.pm__more { flex: 0 0 auto; width: 47px; height: 47px; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background: url("../img/popups/next.svg") center / contain no-repeat; }
dialog.pm--wellness .pm__more { width: 70px; height: 70px; }
.pm__close { position: absolute; top: 19px; left: 21px; width: 50px; height: 50px; border: 0; padding: 0; cursor: pointer; z-index: 2;
  background: url("../img/popups/close.svg") center / contain no-repeat; }
.pm__back { position: absolute; top: 7.5%; left: 4.4%; z-index: 2; display: inline-flex; align-items: center; gap: 14px; padding: 14px 34px 14px 28px;
  border: 2px solid #fff; border-radius: 40px; background: transparent; color: #fff; font: 400 22px/1 var(--font-ui); cursor: pointer; }
.pm__back::before { content: ""; width: 10px; height: 10px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.pm__close:focus-visible, .pm__back:focus-visible, .pm__more:focus-visible, .pm__strip a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) {
  .pm__grid, dialog.pm--wellness .pm__grid { grid-template-columns: 1fr; min-height: 0; }
  .pm__media { padding: 70px 16px 8px; }
  .pm__main, dialog.pm--wellness .pm__main { max-height: 240px; }
  .pm__copy, dialog.pm--wellness .pm__copy { padding: 8px 20px 28px; }
  .pm__back { top: 14px; left: 14px; padding: 10px 20px 10px 18px; font-size: 16px; }
  .pm__thumb { width: 72px; height: 72px; }
  dialog.pm--wellness .pm__strip a { width: 78px; height: 78px; }
  dialog.pm--wellness .pm__more { width: 47px; height: 47px; }
}
.pm__close:focus-visible { border-radius: 50%; }
/* Wellness pop-ups fade to cream at the bottom: white body text there fails contrast, so it is set in deep brown. */
dialog.pm--wellness .pm__text, dialog.pm--wellness .pm__label { color: #5a3618; }

/* ---------------------------------------------------------------- spare product sections (Tea, Milk Drinks, Specialty)
   Marketing switches a spare slot on in the CMS and picks a layout; the photo is a full-width banner like the
   designed sections, with the copy laid over it. Below 760px the copy sits above the photo on a light panel. */
.xf { display: grid; scroll-margin-top: clamp(72px, 11.4vw, 164px); }
.xf > picture, .xf__copy { grid-area: 1 / 1; }
.xf__img { width: 100%; aspect-ratio: 1440 / 814; object-fit: cover; }
.xf__copy { align-self: start; width: 42%; margin-top: 7%; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(10px, 1.4vw, 20px); }
.xf--left-dark .xf__copy, .xf--left-light .xf__copy { justify-self: start; margin-left: 6%; }
.xf--right-dark .xf__copy, .xf--right-light .xf__copy { justify-self: end; margin-right: 6%; }
.xf--center-dark .xf__copy, .xf--center-light .xf__copy { justify-self: center; }
.xf--left-dark, .xf--right-dark, .xf--center-dark { color: var(--brown-2); }
.xf--left-light, .xf--right-light, .xf--center-light { color: var(--white); }
.xf h2 { font-weight: 700; font-size: clamp(28px, 4.44vw, 64px); line-height: .941; letter-spacing: -0.02em; }
.xf__sub { font-weight: 600; font-size: clamp(17px, 2.2vw, 32px); letter-spacing: -0.02em; }
.xf__btn { display: inline-flex; align-items: center; justify-content: center; min-width: clamp(150px, 17vw, 245px); min-height: clamp(44px, 5.3vw, 76px);
  padding: clamp(8px, 1.39vw, 20px) clamp(16px, 2.2vw, 32px); border: 0; border-radius: 90px; cursor: pointer; font: 600 clamp(16px, 1.67vw, 24px)/1.5 var(--font);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.05)); transition: transform .15s ease, box-shadow .15s ease; }
.xf__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.xf__btn:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.xf__btn--brown { background: var(--brown-2); color: #fff; }
.xf__btn--pink { background: #c64969; color: #fff; }
.xf__btn--yellow { background: #fdeb07; color: var(--ink); }
.xf__btn--teal { background: #088c7a; color: #fff; }
@media (max-width: 760px) {
  .xf > picture { grid-area: 2 / 1; }
  .xf .xf__copy { grid-area: 1 / 1; width: auto; margin: 0; justify-self: stretch; padding: 32px var(--gutter) 28px; background: var(--cream); color: var(--brown-2); }
}
/* extra pop-up colours for new products */
dialog.pm--tea { --pm-c1: #0e9a86; --pm-c2: #bfe6df; --pm-ring: rgba(255,255,255,.45); }
dialog.pm--honey { --pm-c1: #e9a21b; --pm-c2: #fbe2a6; --pm-ring: rgba(255,255,255,.5); }
dialog.pm--brown { --pm-c1: #7b4c1e; --pm-c2: #d9b892; --pm-ring: rgba(255,255,255,.4); }
/* light pop-up colours: white text would be hard to read, so these use dark green text and a dark close button */
dialog.pm--lime { --pm-c1: #a4d65e; --pm-c2: #e6f6cc; --pm-ring: rgba(255,255,255,.7); color: #1f3a0a; }
dialog.pm--pastel-green { --pm-c1: #b9e4c3; --pm-c2: #eef9f0; --pm-ring: rgba(255,255,255,.75); color: #1d4a2b; }
dialog.pm--lime .pm__close, dialog.pm--pastel-green .pm__close { filter: invert(1) brightness(.25); }
dialog.pm--lime .pm__size, dialog.pm--pastel-green .pm__size { color: inherit; }
dialog.pm--lime .pm__back, dialog.pm--pastel-green .pm__back { color: inherit; border-color: currentColor; }
dialog.pm--lime .pm__back::before, dialog.pm--pastel-green .pm__back::before { border-color: currentColor; }

/* ---- pop-up update (Nov 2026, marketing brief): frame up to 1500 x 920, even button spacing, two-line labels */
dialog.pm, dialog.pm--wellness { width: min(1500px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.pm__grid, dialog.pm--wellness .pm__grid { min-height: min(920px, calc(100vh - 24px)); grid-template-columns: 38% 1fr; }
.pm__main, dialog.pm--wellness .pm__main { max-height: min(620px, calc(100vh - 140px)); }
.pm__copy, dialog.pm--wellness .pm__copy { justify-content: center; padding-top: 64px; padding-bottom: 48px; }
.pm__sizes { gap: 14px 10px; }
.pm__size { width: 118px; gap: 2px; font-size: 18px; line-height: 1.2; text-align: center; }
dialog.pm--wellness .pm__size { font-size: 18px; }
.pm__thumb { margin-bottom: 6px; }
.pm__name { font-weight: 600; }
.pm__name:empty { display: none; }
.pm__sz:empty { display: none; }
@media (max-width: 760px) {
  .pm__size { width: 84px; font-size: 14px; }
  dialog.pm--wellness .pm__size { font-size: 14px; }
}

/* ---- header and footer: white, Rubik (marketing brief, Nov 2026) */
.site-header { background: #fff; color: var(--brown); box-shadow: 0 1px 0 rgba(86,57,22,.12); }
.nav { font-family: "Rubik", var(--font-ui); }
.nav a { color: var(--brown); }
.nav-toggle { color: var(--brown); }
@media (max-width: 1100px) { .nav { background: #fff; } }
.site-footer { background: #fff; color: var(--brown); border-top: 1px solid rgba(86,57,22,.15); }
.site-footer address, .footer-legal { font-family: "Rubik", var(--font-ui); }
@media (max-width: 760px) {
  .pm__grid, dialog.pm--wellness .pm__grid { grid-template-columns: 1fr; min-height: 0; }
  .pm__copy, dialog.pm--wellness .pm__copy { padding: 8px 20px 28px; }
  .pm__main, dialog.pm--wellness .pm__main { max-height: 240px; }
}

/* ---- pop-up layout, Nov 2026: title centred across the top, photo left, details right, more breathing room */
.pm__grid, dialog.pm--wellness .pm__grid { grid-template-columns: 42% 1fr; grid-template-rows: auto 1fr; column-gap: clamp(24px, 3vw, 56px); }
.pm__grid > h2 { grid-column: 1 / -1; text-align: center; padding: clamp(64px, 6vw, 90px) clamp(80px, 9vw, 160px) 0; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; }
.pm__media { padding: clamp(16px, 2vw, 32px) 0 clamp(32px, 4vw, 64px) clamp(24px, 4vw, 72px); align-self: center; }
.pm__copy, dialog.pm--wellness .pm__copy { align-self: center; justify-content: center; padding: clamp(16px, 2vw, 32px) clamp(28px, 5vw, 90px) clamp(40px, 4vw, 64px) 0; }
.pm__label, dialog.pm--wellness .pm__label { margin: 0 0 clamp(14px, 1.4vw, 20px); }
.pm__sizes { gap: 18px 14px; }
.pm__text, dialog.pm--wellness .pm__text { margin: clamp(28px, 2.8vw, 44px) 0 0; max-width: 620px; line-height: 1.5; }
.pm__text + .pm__label, dialog.pm--wellness .pm__text + .pm__label { margin-top: clamp(32px, 3.2vw, 52px); }
@media (max-width: 760px) {
  .pm__grid, dialog.pm--wellness .pm__grid { grid-template-columns: 1fr; grid-template-rows: none; column-gap: 0; }
  .pm__grid > h2 { padding: 72px 20px 0; font-size: 26px; }
  .pm__media { padding: 12px 16px 8px; }
  .pm__copy, dialog.pm--wellness .pm__copy { padding: 8px 20px 28px; }
  .pm__text, dialog.pm--wellness .pm__text { margin-top: 20px; }
  .pm__text + .pm__label { margin-top: 24px; }
}
dialog.pm--wellness .pm__text { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; letter-spacing: 0; }
.pm__size { width: 104px; }
@media (max-width: 760px) { .pm__grid > h2 { padding-top: 84px; } .pm__size { width: 84px; } }
/* "Explore other drinks" tiles: fit the whole can/bottle inside the white tile (percentage heights don't resolve in the grid) */
.pm__strip a { position: relative; overflow: hidden; }
.pm__strip img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 8%; object-fit: contain; object-position: center; }
.pm__more--back { transform: scaleX(-1); }
.pm__more[hidden] { display: none; }
.pm__strip.is-end { -webkit-mask-image: none; mask-image: none; }

/* ---- one close button for every pop-up on the site (Nov 2026): a round outline with an ×, in the pop-up's text colour */
.pm__close { position: absolute; top: clamp(14px, 1.6vw, 24px); left: clamp(14px, 1.6vw, 24px); width: 50px; height: 50px; padding: 0; z-index: 2;
  border: 2px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; filter: none;
  transition: background .15s ease, transform .15s ease; }
.pm__close::before, .pm__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.pm__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pm__close:hover { background: rgba(255,255,255,.18); transform: scale(1.05); }
dialog.pm--lime .pm__close, dialog.pm--pastel-green .pm__close { filter: none; }
dialog.pm--lime .pm__close:hover, dialog.pm--pastel-green .pm__close:hover { background: rgba(0,0,0,.06); }
.pm__close:focus { outline: none; }
.pm__close:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
dialog.pm:focus { outline: none; }
@media (max-width: 760px) { .pm__close { width: 42px; height: 42px; } }
