:root { --color-bg: #eaf3ff; --color-panel: #ffffff; --color-fg: #2b1d44; --color-accent: #6c5ce7; --color-accent-fg: #ffffff; --bg: var(--color-bg); --ink: var(--color-fg); --accent: var(--color-accent); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }
h1 { margin: 0 0 12px; font-size: clamp(34px, 7vw, 54px); line-height: 1.1; }
h2 { margin: 0 0 18px; font-size: clamp(24px, 4vw, 32px); line-height: 1.2; }
h3 { margin: 0 0 6px; font-size: 19px; }

.hero { text-align: center; padding: 64px 0 40px; }
.hero img.logo { display: block; margin: 0 auto 20px; width: 160px; height: auto; }
.tagline { margin: 0 auto 24px; max-width: 34em; font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.is-plain { background: transparent; color: var(--accent); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.about p { max-width: 40em; margin: 0 0 14px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.card { height: 100%; padding: 18px; border: 1px solid rgba(128, 128, 128, 0.35); border-radius: 16px; }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.card p { margin: 0 0 8px; }
.price { font-weight: 700; color: var(--accent); }

.details dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.details dt { font-weight: 700; }
.details dd { margin: 0; }

form { display: grid; gap: 12px; max-width: 560px; }
label { display: grid; gap: 4px; font-weight: 600; }
input, textarea { width: 100%; padding: 8px 12px; font-size: 16px; border: 1px solid rgba(128, 128, 128, 0.6); border-radius: 10px; background: transparent; color: inherit; font: inherit; }
textarea { min-height: 96px; resize: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: 0; font-size: 14px; opacity: 0.75; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
footer { padding: 28px 0 40px; text-align: center; font-size: 14px; opacity: 0.8; }
.center { text-align: center; padding: 80px 0; }

/* form states */
.field { display: grid; gap: 4px; }
.field label { display: block; font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; opacity: 0.7; }
.hint, .count, .suggest { margin: 0; font-size: 13px; opacity: 0.8; }
.count { text-align: right; }
.error { margin: 0; font-size: 13.5px; font-weight: 600; color: #b3261e; }
.error::before { content: "\26A0\FE0E  "; }
/* Messages never move the page: each field has a reserved slot for its message (a typo hint and an error share it), and the form
   message has a reserved line. Hidden means invisible, not gone. Borders keep their width; the red is colour and a ring. */
/* The message sits in the field's header, level with its name, out of the flow, so it can never move anything. */
.field { position: relative; }
.msg { position: absolute; top: 2px; right: 0; max-width: 70%; display: grid; justify-items: end; text-align: right; font-size: 13.5px; }
.msg > * { grid-area: 1 / 1; margin: 0; }
.msg > [hidden], .form-errors[hidden] { display: block; visibility: hidden; }
.field:has(.suggest:not([hidden])) .error { visibility: hidden; }
@media (max-width: 520px) { .msg { max-width: 58%; font-size: 12.5px; line-height: 1.2; } .error { font-size: 12.5px; } .field { gap: 8px; } }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.form-errors { min-height: 1.6em; margin: 0; padding: 0; border: 0; color: #b3261e; font-weight: 600; }
.form-done { max-width: 560px; padding: 18px 20px; border: 2px solid var(--accent); border-radius: 14px; font-size: 19px; }
.form-done:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
button.link { display: inline; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
select { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid rgba(128, 128, 128, 0.6); border-radius: 10px; background: transparent; color: inherit; font: inherit; }
.button[disabled] { opacity: 0.65; cursor: progress; }

/* ============ Sugar and Sips ============ */
:root { --deep: #2a1259; --soft: #5b4a86; --lav: #efe9ff; --sky: #e3f1ff; --pink: #ff7eb6; }
body { font-family: ui-rounded, "SF Pro Rounded", "Segoe UI Variable", system-ui, -apple-system, sans-serif; color: var(--deep);
  background: radial-gradient(900px 500px at 85% -5%, #d6c9ff 0, transparent 60%), radial-gradient(800px 500px at -10% 10%, #cfe8ff 0, transparent 55%), linear-gradient(180deg, #f4f9ff, #ffffff 60%); }
h1, h2, h3 { color: var(--deep); letter-spacing: -0.02em; }
section { padding: 72px 0; }
.wrap { max-width: 1120px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); background: rgba(255, 255, 255, 0.72); border-bottom: 1px solid rgba(91, 74, 134, 0.12); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--deep); text-decoration: none; margin-right: auto; }
.brand img { border-radius: 50%; box-shadow: 0 2px 8px rgba(42, 18, 89, 0.25); }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--soft); font-weight: 600; text-decoration: none; }
.nav ul a:hover { background: var(--lav); color: var(--deep); }
.nav-cta { min-height: 42px; padding: 0 20px; }
.brand span, .nav-cta { white-space: nowrap; }
@media (max-width: 720px) {
  .nav { position: static; }
  .nav-in { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 8px; padding-bottom: 6px; }
  .brand { font-size: 17px; gap: 8px; }
  .nav-cta { min-height: 44px; padding: 0 16px; font-size: 16px; }
  .nav ul { order: 3; flex: 0 0 100%; overflow-x: auto; gap: 2px; margin: 4px -4px 0; padding: 0 4px 2px; scrollbar-width: none; }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav ul a { white-space: nowrap; padding: 10px 8px; font-size: 14px; }
  section { padding: 40px 0; }
  .hero { padding-top: 40px; }
  .page-head { padding-top: 36px; }
}

/* hero */
.hero { padding: 72px 0 0; }
.hero img.logo { display: none; }
.hero h1 { font-size: clamp(44px, 9vw, 92px); line-height: 1; margin-bottom: 18px; background: linear-gradient(120deg, #2a1259 10%, #6c5ce7 55%, #ff7eb6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: clamp(19px, 2.6vw, 26px); color: var(--soft); margin-bottom: 30px; }
.button { min-height: 52px; padding: 0 28px; font-size: 17px; background: linear-gradient(135deg, #7c5cff, #5a3fe0); border-color: transparent; color: #fff; box-shadow: 0 10px 24px rgba(108, 92, 231, 0.35); }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(108, 92, 231, 0.45); }
.button.is-plain { background: rgba(255, 255, 255, 0.85); color: var(--deep); border: 2px solid rgba(91, 74, 134, 0.25); box-shadow: none; }
.block-wb-scene-3d { padding: 0; }
.block-wb-scene-3d .wrap { max-width: 1240px; padding: 0; }
wb-scene-3d { display: block; height: clamp(300px, 52vw, 560px); margin-top: -6px; }
wb-scene-3d canvas { display: block; width: 100%; height: 100%; }

/* headings */
h2 { font-size: clamp(30px, 5vw, 46px); padding-bottom: 0; margin-bottom: 14px; }
h2::after { display: none; }
.about p { font-size: clamp(19px, 2.4vw, 24px); color: var(--soft); max-width: 36em; }
.about h2, #products h2 { margin-bottom: 20px; }

/* products */
.grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { position: relative; overflow: hidden; min-height: 240px; padding: 34px; border-radius: 28px; color: #fff; box-shadow: 0 20px 50px rgba(42, 18, 89, 0.22); display: flex; flex-direction: column; justify-content: flex-end; }
.card:nth-child(1) { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.35), transparent 40%), linear-gradient(145deg, #ff8fc2, #9a6bff); }
.card:nth-child(2) { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.3), transparent 40%), linear-gradient(145deg, #5a3fe0, #1b0b4a); }
.card h3 { color: #fff; font-size: 30px; margin: 0 0 8px; }
.card p { color: rgba(255, 255, 255, 0.92); font-size: 18px; }

/* steps */
.block-wb-steps { padding-top: 24px; }

/* order wizard */
.block-wb-wizard { background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.1) 30%, rgba(124, 92, 255, 0.1) 70%, transparent); }
.block-wb-wizard .wrap { max-width: 880px; }
.block-wb-wizard h2 { text-align: center; }
wb-wizard { background: #fff; padding: 36px 32px; border-radius: 32px; box-shadow: 0 30px 70px rgba(42, 18, 89, 0.2); border: 1px solid rgba(91, 74, 134, 0.1); --wb-bg: #fff; --wb-fg: #2a1259; --wb-radius: 14px; }
@media (max-width: 560px) { wb-wizard { padding: 24px 14px; border-radius: 24px; } }

/* details, contact, footer */
.details dl { padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(91, 74, 134, 0.14); }
input, textarea, select { background: #fff; border: 1.5px solid #cbbdf5; border-radius: 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
footer { margin-top: 40px; padding: 40px 0; background: var(--deep); color: #d9cffb; opacity: 1; }
.grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { min-height: 190px; padding: 26px; border-radius: 24px; }
.card h3 { font-size: 26px; }
.card:nth-child(1) { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 40%), linear-gradient(145deg, #ffb36b, #ff7eb6); }
.card:nth-child(2) { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 40%), linear-gradient(145deg, #ff8fc2, #9a6bff); }
.card:nth-child(3) { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 40%), linear-gradient(145deg, #7fd1ff, #7c5cff); }
.card:nth-child(4) { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 40%), linear-gradient(145deg, #b69cff, #6c5ce7); }
.card:nth-child(5) { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 40%), linear-gradient(145deg, #ffcf70, #ff8f6b); }
.card:nth-child(6) { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.3), transparent 40%), linear-gradient(145deg, #5a3fe0, #1b0b4a); }

/* inner pages and home call-to-action */
.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.05; margin-bottom: 12px; background: linear-gradient(120deg, #2a1259 10%, #6c5ce7 60%, #ff7eb6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.4vw, 23px); color: var(--soft); max-width: 36em; margin: 0; }
main > section:first-child { padding-top: 32px; }
.nav ul a[aria-current="page"] { background: var(--lav); color: var(--deep); }
.cta-box { padding: 56px 32px; border-radius: 32px; text-align: center; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.28), transparent 45%), linear-gradient(135deg, #6c5ce7, #2a1259); box-shadow: 0 24px 60px rgba(42, 18, 89, 0.3); }
.cta-box h2 { color: #fff; margin-bottom: 10px; } .cta-box p { margin: 0 0 24px; font-size: 20px; color: #e6ddff; }
.cta-box .button { background: #fff; color: var(--deep); box-shadow: none; }

/* product pages */
.card-1 { --g: linear-gradient(145deg,#ffb36b,#ff7eb6); }
.card-2 { --g: linear-gradient(145deg,#ff8fc2,#9a6bff); }
.card-3 { --g: linear-gradient(145deg,#7fd1ff,#7c5cff); }
.card-4 { --g: linear-gradient(145deg,#b69cff,#6c5ce7); }
.card-5 { --g: linear-gradient(145deg,#ffcf70,#ff8f6b); }
.card-6 { --g: linear-gradient(145deg,#5a3fe0,#1b0b4a); }
.grid .card[class*="card-"], .showcase-art { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.32), transparent 42%), var(--g); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover { transform: translateY(-4px); } .card { transition: transform .15s; }
.crumbs { margin: 0 0 14px; font-weight: 600; } .crumbs a { color: var(--soft); }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.showcase-art { min-height: 380px; border-radius: 32px; display: grid; place-items: center; color: #fff; font-size: clamp(34px, 6vw, 56px); font-weight: 800; text-align: center; padding: 24px; box-shadow: 0 24px 60px rgba(42, 18, 89, 0.25); position: sticky; top: 96px; }
.showcase-art img { border-radius: 24px; }
.showcase-body h2 { font-size: 26px; margin: 28px 0 8px; } .showcase-body h2:first-child { margin-top: 0; }
.pricing { padding: 16px 20px; border-radius: 16px; background: #fff; border: 1.5px dashed #b9a9ee; color: var(--soft); margin: 0; }
.flavors { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flavors li { padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(91, 74, 134, 0.14); display: grid; gap: 2px; }
.flavors span { color: var(--soft); }
.showcase-body .button { margin-top: 28px; }
@media (max-width: 820px) { .showcase-grid { grid-template-columns: 1fr; } .showcase-art { position: static; min-height: 240px; } }
body { min-height: 100vh; display: flex; flex-direction: column; background-attachment: fixed; }
main { flex: 1; }

/* flavor photos and gallery */
.flavors li img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.flavors:has(img) { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gallery-section { padding-top: 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery .shot { display: block; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 28px rgba(42, 18, 89, 0.15); transition: transform .15s; }
.gallery .shot:hover { transform: translateY(-3px) scale(1.01); }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(20, 8, 48, 0.82); backdrop-filter: blur(4px); }
.lightbox img { display: block; width: min(92vw, 900px); object-fit: contain; max-height: 80vh; border-radius: 16px; margin: 0 auto; }
.lightbox-cap { text-align: center; margin: 12px 0 0; font-size: 18px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--deep); width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { top: -16px; right: -16px; } .lb-prev { left: -20px; top: 40%; } .lb-next { right: -20px; top: 40%; }
.lightbox button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.showcase-art { padding: 0; overflow: hidden; }
.showcase-art wb-scene-3d { display: block; width: 100%; height: clamp(300px, 40vw, 440px); }
.showcase-art wb-scene-3d canvas { display: block; width: 100%; height: 100%; }
.showcase-art wb-scene-3d > span { display: none; }
/* gradient text is clipped to the line box, so give descenders (g, p, y) room */
.hero h1, .page-head h1 { line-height: 1.18; padding-bottom: 0.12em; }

/* title wave: the gradient is painted per letter (wave.js sets --gx and --gw) so letters can move while the colours stay continuous */
.hero h1.is-waving { position: relative; }
.wave-word { display: inline-block; white-space: nowrap; }
.wave-ch { display: inline-block; background: linear-gradient(120deg, #2a1259 10%, #6c5ce7 55%, #ff7eb6 100%); background-size: var(--gw, 100%) 100%; background-position: var(--gx, 0) 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wave 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); animation-play-state: paused; }
@keyframes wave { 0%, 22%, 100% { transform: translateY(0); } 8% { transform: translateY(-0.22em); } 15% { transform: translateY(0.04em); } }

.hero h1.is-waving { width: fit-content; margin-left: auto; margin-right: auto; cursor: default; }

/* delivery page map: a small map, not the full page width */
wb-map { max-width: 540px; }

/* delivery page: details on the left, the map beside it; on a phone the map drops below */
@media (min-width: 900px) {
  main:has(.block-wb-map) { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 28px; align-items: start; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
  main:has(.block-wb-map) .wrap { padding: 0; max-width: none; }
  main:has(.block-wb-map) > section { padding-top: 32px; }
}

.field[hidden] { display: none; }

/* sizes and ingredients on product pages */
.sizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sizes li { padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(91, 74, 134, 0.14); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.sizes em { font-style: normal; font-weight: 700; color: var(--accent); text-align: right; }
.sizes span { grid-column: 1 / -1; color: var(--soft); }
.ing { margin-top: 8px; }
.ing summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 32px; display: flex; align-items: center; }
.ing summary::after { content: "+"; margin-left: 8px; font-weight: 700; }
.ing[open] summary::after { content: "\2013"; }
.ing summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ing p { margin: 4px 0 0; color: var(--soft); }

/* centred layout: headings and text are centred; form controls, the order form and the map keep their own alignment */
main, .page-head, .hero { text-align: center; }
wb-wizard, wb-map, form, .lightbox { text-align: left; }
.lead, .about p, .tagline { margin-left: auto; margin-right: auto; }
.actions { justify-content: center; }
.hero h1.is-waving { margin-left: auto; margin-right: auto; }
form { margin-left: auto; margin-right: auto; }
.form-done { margin-left: auto; margin-right: auto; }
.details dl { grid-template-columns: 1fr; justify-items: center; gap: 2px; text-align: center; max-width: 36em; margin: 0 auto; }
.details dt { margin-top: 14px; } .details dt:first-child { margin-top: 0; }
wb-map { margin-left: auto; margin-right: auto; }
.flavors li, .sizes li { text-align: center; }
.sizes li { grid-template-columns: 1fr; justify-items: center; }
.sizes em { text-align: center; }
.ing summary { justify-content: center; }
.gallery { justify-content: center; }
.block-wb-steps, .block-wb-steps * { text-align: center; }
@media (min-width: 900px) {
  main:has(.block-wb-map) { text-align: center; }
}

/* product cards: a short last row is centred, and the pictures line up along the top */
.grid { display: flex; flex-wrap: wrap; justify-content: center; }
.grid > li { flex: 1 1 240px; max-width: 300px; }
.grid .card { justify-content: flex-start; }
.card img { margin-bottom: 14px; }
.grid > .card { height: auto; align-self: stretch; }

/* compact product pages: a small picture beside the text, sizes and flavors in grids */
.product-head { padding: 36px 0 0; }
.product-head h1 { margin-bottom: 6px; }
.crumbs { margin-bottom: 6px; }
.showcase { padding: 24px 0 36px; }
.showcase-body h2 { font-size: 22px; margin: 20px 0 8px; }
.showcase-body p { margin: 0 0 8px; }
.showcase-art { min-height: 0; border-radius: 24px; }
.showcase-art wb-scene-3d { height: 220px; }
.sizes { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sizes li { padding: 10px 12px; border-radius: 14px; gap: 0; }
.flavors { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; align-items: start; }
.flavors li { padding: 12px 14px; border-radius: 14px; }
.pricing { padding: 12px 16px; }
@media (min-width: 821px) {
  .showcase-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
  .showcase-art { top: 88px; }
  .showcase-art wb-scene-3d { height: 260px; }
}
@media (max-width: 820px) { .showcase-art wb-scene-3d { height: 200px; } }

/* flavor picker: the chosen flavor's picture replaces the 3D model */
.flavor-img { display: block; width: 100%; height: 200px; object-fit: cover; }
.flavor-img[hidden] { display: none; }
.showcase-art.is-flavor wb-scene-3d { display: none; }
@media (min-width: 821px) { .flavor-img { height: 260px; } }
.flavors li { position: relative; transition: border-color .15s, box-shadow .15s; }
.flavor-pick { background: none; border: 0; padding: 0; margin: 0 0 4px; font: inherit; color: inherit; cursor: pointer; text-align: center; width: 100%; }
.flavor-pick::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.flavor-pick:focus-visible { outline: none; }
.flavors li:has(.flavor-pick:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.flavors li:hover { border-color: var(--accent); }
.flavors li.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.flavors li .ing { position: relative; z-index: 1; }

/* product page: one centred column; the picture sits with the flavors it shows */
.showcase-grid { display: block; max-width: 760px; margin: 0 auto; }
.showcase-art, .showcase-art.card-1 { position: static; width: min(100%, 320px); margin: 0 auto 14px; min-height: 0; }
.showcase-art wb-scene-3d, .flavor-img { height: 220px; }
@media (min-width: 821px) { .showcase-grid { display: block; } .showcase-art { top: auto; } .showcase-art wb-scene-3d, .flavor-img { height: 240px; } }
.showcase-grid { max-width: 980px; }
.sizes { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.flavors { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* product page: full-width container; short last rows of cards are centred */
.showcase-grid { max-width: none; }
.sizes, .flavors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sizes li { flex: 1 1 200px; max-width: 360px; }
.flavors li { flex: 0 1 calc(25% - 8px); min-width: 240px; }
.showcase .wrap.showcase-grid { max-width: 1120px; padding: 0 20px; }

/* product page, final: one tidy 880px column, equal-height cards in rows of three */
.showcase .wrap.showcase-grid { max-width: 880px; }
.sizes, .flavors { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 12px; }
.sizes li { flex: 1 1 0; min-width: 200px; max-width: none; align-content: center; }
.flavors li { flex: 0 1 calc(33.333% - 8px); min-width: 230px; align-content: start; }
.flavors li.is-selected { box-shadow: inset 0 0 0 2px var(--accent); }
.flavors li .ing { margin-top: auto; }
.showcase-art, .showcase-art.card-1 { margin: 6px auto 18px; }
.showcase-art wb-scene-3d, .flavor-img { border-radius: 24px; }

/* every container on a product page matches: same column, same card */
.showcase .wrap.showcase-grid, .gallery-section .wrap { max-width: 880px; padding: 0 20px; }
.pricing, .sizes li, .flavors li { padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(91, 74, 134, 0.14); box-shadow: none; }
.pricing { border-style: solid; text-align: center; }
.sizes li, .flavors li { min-height: 104px; }
.flavors li.is-selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gallery li { flex: 1 1 calc(25% - 9px); min-width: 180px; }
.gallery .shot { border-radius: 16px; box-shadow: none; border: 1px solid rgba(91, 74, 134, 0.14); }

/* same width and same height for every card: three per row, 170px tall */
.sizes li, .flavors li, .gallery li { flex: 0 0 calc(33.333% - 8px); width: calc(33.333% - 8px); min-width: 0; max-width: none; box-sizing: border-box; }
.sizes li, .flavors li { height: 170px; min-height: 0; overflow: auto; align-content: center; }
.flavors li { align-content: start; }
.gallery li { height: 170px; }
.gallery .shot, .gallery img { height: 100%; width: 100%; aspect-ratio: auto; }
.gallery img { object-fit: cover; }
@media (max-width: 640px) { .sizes li, .flavors li, .gallery li { flex-basis: 100%; width: 100%; } }

/* equal cards, no clipping: 3 per row, 200px minimum, tallest in the list sets the height */
.sizes li, .flavors li { height: auto; min-height: 200px; overflow: visible; }
.sizes, .flavors, .gallery { align-items: stretch; }
.gallery li { height: 200px; }
.gallery li:nth-child(4):last-child { flex-basis: calc(33.333% - 8px); }

/* one card: 272px wide at desktop (a third of the column), exactly 240px tall, in sizes, flavors and gallery */
.sizes li, .flavors li, .gallery li { height: 240px; min-height: 240px; }

/* final: cards 200px tall, centered content, gallery three to a row with no lift */
.sizes li, .flavors li, .gallery li { height: 200px; min-height: 200px; }
.flavors li { align-content: center; }
.gallery li:nth-child(n+4) { display: none; }
.gallery .shot:hover { transform: none; }

/* flavors: two equal halves. Left: the flavor cards. Right: the picture, then the ingredient list. */
.flavor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.flavor-layout .flavors { display: grid; grid-template-columns: 1fr; gap: 12px; }
.flavor-layout .flavors li { width: auto; flex: none; height: 96px; min-height: 96px; align-content: center; }
.flavor-panel { position: sticky; top: 90px; display: grid; gap: 12px; }
.flavor-panel .showcase-art, .flavor-panel .showcase-art.card-1 { width: 100%; margin: 0; }
.flavor-panel .showcase-art wb-scene-3d, .flavor-panel .flavor-img { height: 240px; }
.flavor-facts-wrap { padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(91, 74, 134, 0.14); text-align: center; min-height: 200px; }
.flavor-facts h3 { margin: 0 0 6px; font-size: 1.05rem; }
.flavor-facts h4 { margin: 10px 0 2px; color: var(--accent); font-size: .95rem; }
.flavor-facts p { margin: 0; color: var(--soft); }
.flavor-facts .allergens { margin-top: 4px; }
@media (max-width: 720px) { .flavor-layout { grid-template-columns: 1fr; } .flavor-panel { position: static; order: -1; } }

/* ingredients as line items, one per line */
.flavor-facts-wrap { text-align: left; }
.flavor-facts h3 { text-align: center; padding-bottom: 8px; border-bottom: 1px solid rgba(91, 74, 134, 0.14); }
.flavor-facts h4 { margin: 14px 0 4px; text-align: left; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.flavor-facts h5 { margin: 8px 0 2px; font-size: .9rem; color: var(--ink, #2a1259); }
.ing-list, .allergen-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { padding: 6px 0; border-bottom: 1px solid rgba(91, 74, 134, 0.1); color: var(--soft); }
.ing-list li:last-child { border-bottom: 0; }
.flavor-facts .allergens { margin: 12px 0 6px; }
.allergen-list { display: flex; flex-wrap: wrap; gap: 6px; }
.allergen-list li { padding: 3px 12px; border-radius: 999px; background: #f0eafe; color: var(--accent); font-weight: 600; font-size: .88rem; text-transform: capitalize; }
.flavor-panel { position: static; }

/* ingredient line items in two columns */
.ing-list { columns: 2; column-gap: 20px; }
.ing-list li { break-inside: avoid; }
@media (max-width: 420px) { .ing-list { columns: 1; } }

/* more columns: as many 120px columns as fit */
.ing-list { columns: 120px; column-gap: 14px; }
.ing-list li { font-size: .92rem; padding: 5px 0; }
@media (max-width: 420px) { .ing-list { columns: 2 100px; } }
.ing-list { columns: 3 90px; column-gap: 12px; } .ing-list li { font-size: .88rem; }
.flavor-panel { order: -1; }

/* balance: the flavor cards share the full height of the picture and ingredients column */
.flavor-layout { align-items: stretch; }
.flavor-layout .flavors { grid-auto-rows: 1fr; align-content: stretch; }
.flavor-layout .flavors li { height: auto; min-height: 96px; }

/* row 1: picture left, flavor cards right, equal height. row 2: ingredients across the full width. */
.flavor-layout { grid-template-columns: 1fr 1fr; grid-template-areas: "art list" "facts facts"; align-items: stretch; gap: 12px 16px; }
.flavor-panel { display: contents; }
.flavor-panel .showcase-art, .flavor-panel .showcase-art.card-1 { grid-area: art; position: relative; min-height: 280px; height: auto; margin: 0; }
.flavor-panel .showcase-art wb-scene-3d, .flavor-panel .flavor-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.flavor-layout .flavors { grid-area: list; grid-auto-rows: 1fr; gap: 10px; }
.flavor-layout .flavors li { height: auto; min-height: 72px; padding: 10px 16px; }
.flavor-facts-wrap { grid-area: facts; min-height: 0; }
.ing-list { columns: 140px; column-gap: 16px; }
@media (max-width: 720px) {
  .flavor-layout { grid-template-columns: 1fr; grid-template-areas: "art" "list" "facts"; }
  .flavor-panel .showcase-art, .flavor-panel .showcase-art.card-1 { min-height: 240px; }
}

/* top of a product page: About and Base pricing as two equal cards, then compact sizes */
.intro-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 8px; }
.intro-card { padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid rgba(91, 74, 134, 0.14); display: grid; align-content: start; gap: 6px; text-align: center; }
.intro-card h2 { margin: 0 0 4px; }
.intro-card p { margin: 0; }
.intro-card .pricing { padding: 0; border: 0; background: none; font-size: 1.15rem; font-weight: 600; color: var(--accent); }
.sizes li { height: 110px; min-height: 110px; }
@media (max-width: 720px) { .intro-row { grid-template-columns: 1fr; } }

/* product cards: six cards in a 3 x 2 grid, all the same size, centred on the page */
.grid:has(.card) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.grid:has(.card) > li { max-width: none; flex: none; }
@media (max-width: 820px) { .grid:has(.card) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid:has(.card) { grid-template-columns: 1fr; } }

/* no dead space above the footer: short pages fill the screen, tall pages do not gain extra scroll */
main { flex: 1 0 auto; }
main > :last-child { padding-bottom: 32px; }
footer { margin-top: 0; }

/* header and content share one width on the menu page */
.grid:has(.card) { max-width: none; }

/* header button: snug, not a big pill */
.nav .nav-cta { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3); }
@media (max-width: 640px) { .nav .nav-cta { min-height: 44px; } }
main > :last-child { padding-bottom: 24px; }

.block-wb-wizard .wrap { max-width: 880px; }
.block-wb-wizard .wrap { max-width: 920px; }


/* slim footer on every page, with a clear gap above it */
footer { padding: 14px 0; font-size: 13px; }
main > :last-child { padding-bottom: 0; }
main { padding-bottom: 28px; }

/* one slim page header on every page, the same template everywhere */
.page-head { padding: 22px 0 6px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 4px; }
.page-head .lead { margin: 0 0 6px; font-size: 17px; }

/* identical header and footer on every page */
.page-head .lead { margin: 0 auto 6px; }
footer p { margin: 0; }

/* the quote page fits one screen: slim shared header, slim card, footer in view */
.page-head { padding: 14px 0 2px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 2px; }
.page-head .lead { margin: 0 auto 4px; font-size: 15px; }
.block-wb-wizard { padding-top: 12px; padding-bottom: 12px; }
wb-wizard { padding: 18px 28px; }
@media (max-width: 560px) { wb-wizard { padding: 16px 14px; } }

/* the ingredient box keeps one height: every flavor's list shares the same cell, so the tallest sets it */
.flavor-facts-wrap { display: grid; align-content: start; }
.flavor-facts, .flavor-facts[hidden] { grid-area: 1 / 1; display: block; }
.flavor-facts[hidden] { visibility: hidden; pointer-events: none; }
.allergen-list li.none { background: #eefaf1; color: #1f7a3d; }

/* about page profile: photo placeholder with the logo as a badge, then name and role */
.profile { display: grid; justify-items: center; gap: 2px; margin: 4px 0 18px; }
.profile .avatar { position: relative; display: block; width: 180px; height: 180px; }
.profile .avatar > img:first-child { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 12px 30px rgba(42, 18, 89, 0.2); }
.profile .badge { position: absolute; right: -34px; bottom: -14px; width: 96px; height: 96px; border-radius: 50%; border: 3px solid #fff; background: #fff; box-shadow: 0 6px 16px rgba(42, 18, 89, 0.25); }
.profile .pname { margin: 12px 0 0; font-size: 1.5rem; font-weight: 800; color: var(--deep); }
.profile .prole { margin: 0; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.page-head + main .about p:not(.pname):not(.prole) { max-width: 640px; margin-left: auto; margin-right: auto; }

/* about: logo and portrait side by side, same size */
.profile .avatar { display: flex; justify-content: center; align-items: center; gap: 28px; width: auto; height: auto; }
.profile .avatar > img:first-child, .profile .badge { position: static; width: 170px; height: 170px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #fff; box-shadow: 0 12px 30px rgba(42, 18, 89, 0.2); }
@media (max-width: 480px) { .profile .avatar { gap: 14px; } .profile .avatar > img:first-child, .profile .badge { width: 130px; height: 130px; } }

/* about: two pictures stacked on the left, name and text on the right */
@media (min-width: 700px) {
  .about .wrap:has(.profile) { display: grid; grid-template-columns: 200px minmax(0, 520px); column-gap: 48px; justify-content: center; align-content: start; }
  .about .profile { display: contents; }
  .profile .avatar { grid-column: 1; grid-row: 1 / span 6; flex-direction: column; align-self: start; gap: 24px; }
  .profile .avatar > img:first-child, .profile .badge { width: 200px; height: 200px; }
  .about .wrap:has(.profile) > * { grid-column: 2; }
  .about .wrap:has(.profile) > .profile .pname, .about .wrap:has(.profile) > .profile .prole, .about .wrap:has(.profile) > p:not(.pname):not(.prole) { grid-column: 2; text-align: left; margin-left: 0; margin-right: 0; max-width: none; }
  .profile .pname { margin-top: 0; font-size: 34px; }
}
@media (min-width: 700px) {
  .about .wrap:has(.profile) { min-height: 424px; align-content: center; grid-template-rows: none; grid-auto-rows: auto; }
  .profile .avatar { grid-row: 1 / span 6; align-self: center; }
  .about .wrap:has(.profile) > p:not(.pname):not(.prole) { font-size: 19px; line-height: 1.6; margin-bottom: 14px; }
}

/* base pricing: one short line each */
.intro-card .pricing { display: grid; gap: 10px; font-size: 1rem; font-weight: 400; color: var(--soft); }
.intro-card .pricing p { margin: 0; }
.intro-card .pricing .price-main { font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1.25; }

/* about: text column matches the height of the two stacked pictures */
@media (min-width: 700px) {
  .about .wrap:has(.profile) { grid-template-rows: auto auto repeat(3, 1fr); align-content: stretch; height: 424px; min-height: 0; }
  .about .wrap:has(.profile) > p:not(.pname):not(.prole) { align-self: center; margin: 0; }
  .profile .prole { margin-bottom: 0; }
}
/* phones: everything stacks */
@media (max-width: 699px) {
  .about .wrap:has(.profile) { display: block; }
  .profile .avatar { flex-direction: column; gap: 20px; }
  .profile .avatar > img:first-child, .profile .badge { width: 170px; height: 170px; }
}
@media (min-width: 700px) {
  .about .wrap:has(.profile) > p:last-child { align-self: end; }
  .about .wrap:has(.profile) > .profile + p { align-self: start; margin-top: 12px; }
}

/* ingredients: fill the full width in a responsive grid, no empty right side */
.ing-list { columns: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 20px; }
.ing-list li { border-bottom: 1px solid rgba(91, 74, 134, 0.1); }
.ing-list li:last-child { border-bottom: 1px solid rgba(91, 74, 134, 0.1); }

/* footer stays on screen on every page */
footer { position: sticky; bottom: 0; z-index: 30; }
.ing-list { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* flavor cards: equal heights, text centred vertically in each */
.flavor-layout ul.flavors { display: grid; grid-auto-rows: 1fr; align-content: stretch; gap: 10px; }
.flavor-layout ul.flavors li { display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0; }
.flavor-layout ul.flavors li .flavor-pick { margin: 0 0 4px; width: auto; }

/* ingredient lists: the most columns that fill every row (set per list by the builder) */
.ing-list.c1 { grid-template-columns: 1fr; }
.ing-list.c2 { grid-template-columns: repeat(2, 1fr); }
.ing-list.c3 { grid-template-columns: repeat(3, 1fr); }
.ing-list.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .ing-list.c3, .ing-list.c4 { grid-template-columns: repeat(2, 1fr); } }
