/* Nanuky do ruky — glaze & piped lettering. See DESIGN.md. */

:root {
  --ink: #2a1915;
  --ink-soft: #5b4540;
  --sugar: #ffffff;
  --sugar-2: #fbf1f3;
  --malina: #c2305a;
  --malina-deep: #8f1d40;
  --ruby: #f3c3cf;
  --ruby-deep: #8f1d40;
  --pistacia: #a8c57f;
  --pistacia-deep: #2f4f24;
  --karamel: #d8964d;
  --karamel-deep: #5a3410;
  --kakao: #4a2c25;
  --kakao-deep: #f6e3dc;
  --biela: #f7efe9;
  --biela-deep: #4a2c25;
  --gold: #b8912c;
  --kraft: #c89c6d;
  --kraft-dark: #8a6440;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --piped: "Sacramento", cursive;

  --r-media: 18px;
  --shadow: 0 10px 30px -12px rgba(42, 25, 21, .35);
  --shadow-sm: 0 4px 12px -6px rgba(42, 25, 21, .35);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-drop: cubic-bezier(.2, 1.4, .4, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sugar);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.03em; margin: 0; text-wrap: balance; font-weight: 750; }
p { margin: 0 0 1em; text-wrap: pretty; }
small { font-size: .85em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { 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: var(--ink); color: var(--sugar); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--malina); outline-offset: 3px; border-radius: 6px; }
.plain { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ---------- piped lettering ---------- */
.piped {
  font-family: var(--piped);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  -webkit-text-stroke: .045em currentColor;
  paint-order: stroke fill;
}
.piped--hero { color: var(--malina); font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 .1em -.05em; transform: rotate(-4deg); transform-origin: left; }
.piped--sign { color: var(--malina); font-size: 2.6rem; margin-top: .4em; }
.piped--light { color: var(--ruby); font-size: 1.9rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--malina); color: #fff; box-shadow: 0 8px 18px -10px var(--malina-deep); }
.btn--primary:hover { background: var(--malina-deep); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(42, 25, 21, .06); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(42,25,21,.08); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand-name em { font-style: normal; color: var(--malina); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 550; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--sugar-2); color: var(--malina-deep); }
.nav-toggle { display: none; }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--ink); color: var(--sugar); text-decoration: none; font-weight: 600; }
.cart-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--ruby); color: var(--malina-deep); font-size: .85rem; }

@media (max-width: 860px) {
  .header-row { gap: 12px; min-height: 64px; }
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 40px; height: 40px; }
  .cart-pill span { display: none; }
  .cart-pill { padding: 8px 10px; }
  .main-nav { order: 3; margin-left: 0; }
  .cart-pill { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--sugar-2); border-radius: 999px; cursor: pointer; }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s var(--ease-out); }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .burger { background: transparent; }
  .nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 8px var(--gutter) 20px; background: var(--sugar); border-bottom: 1px solid rgba(42,25,21,.1); box-shadow: var(--shadow); }
  .main-nav ul.open { display: flex; }
  .main-nav a { padding: 14px 12px; font-size: 1.15rem; }
}

/* ---------- hero / box builder ---------- */
.hero { background: var(--ruby); padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 7vw, 88px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
/* the headline stays at the top and travels down with the builder while it grows (steps, extras) */
.hero-copy { position: sticky; top: 104px; padding-top: clamp(8px, 3vw, 40px); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); color: var(--ink); letter-spacing: -0.04em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34ch; margin-top: 1em; color: var(--malina-deep); }
.hero-facts { list-style: none; padding: 0; margin: 1.4em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { background: rgba(255,255,255,.6); padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.hero-facts b { color: var(--malina-deep); }

.builder { display: grid; gap: 18px; scroll-margin-top: 80px; }
.box {
  scroll-margin-top: 80px;
  position: relative;
  background: var(--kraft);
  border-radius: 14px;
  padding: 20px 22px 14px;
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(138,100,64,.35);
}
.box::before { /* inner tray */
  content: ""; position: absolute; inset: 14px; border-radius: 8px;
  background: linear-gradient(#b7895a, #c89c6d 30%); box-shadow: inset 0 6px 14px -6px rgba(60,35,15,.55);
}
.box-lid { position: absolute; top: -22px; right: 18px; width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 2; transform: rotate(8deg); }
.box-lid img { width: 56px; height: 56px; }
.box-slots { --slot-h: clamp(135px, 15vw, 192px); position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--slots, 6), minmax(0, 1fr)); grid-auto-rows: var(--slot-h); gap: clamp(6px, 1.2vw, 12px); }
.box[data-size="m"] .box-slots { --slot-h: clamp(92px, 10vw, 120px); row-gap: 10px; }
.box[data-size="l"] .box-slots { --slot-h: clamp(68px, 7vw, 84px); row-gap: 8px; column-gap: 6px; }
.box-size { position: relative; margin: -6px 0 6px; font-size: .85rem; font-weight: 700; color: #fff; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(90,52,16,.35); }
.slot { position: relative; display: grid; place-items: end center; }
.popsicle.still { animation: none; }
.slot-empty { width: 78%; height: 92%; border-radius: 999px 999px 18px 18px; border: 2px dashed rgba(255,255,255,.55); position: relative; }
.slot-empty::after { content: ""; position: absolute; bottom: -12%; left: 50%; width: 10%; height: 14%; transform: translateX(-50%); border: 2px dashed rgba(255,255,255,.45); border-top: 0; border-radius: 0 0 4px 4px; }
.slot.filled .slot-empty { display: none; }
.slot button.slot-remove { all: unset; position: absolute; inset: 0; cursor: pointer; border-radius: 12px; }
.slot button.slot-remove:focus-visible { outline: 3px solid #fff; }
.slot .popsicle { display: block; width: 80%; height: 100%; animation: drop .42s var(--ease-drop) both; filter: drop-shadow(0 6px 5px rgba(60,35,15,.35)); }
.slot .popsicle svg { width: 100%; height: 100%; }
@keyframes drop { from { transform: translateY(-60%) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.box-name { position: relative; text-align: center; color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: .95; min-height: .95em; margin: 4px 0 0; text-shadow: 0 2px 0 rgba(90,52,16,.4); }

.builder-panel { background: var(--sugar); border-radius: var(--r-media); padding: 16px; box-shadow: var(--shadow); }
.builder-hint { margin: 0 0 10px; color: var(--ink-soft); font-size: .95rem; }
.flavours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.flavour {
  width: 100%; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left;
  padding: 6px 10px 6px 6px; min-height: 52px; border-radius: 14px; border: 2px solid transparent; background: var(--sugar-2); cursor: pointer;
  transition: border-color .15s var(--ease-out), transform .15s var(--ease-out), background-color .15s var(--ease-out);
}
.flavour-pop { grid-row: 1 / span 2; width: 34px; height: 46px; display: grid; place-items: center; }
.flavour-pop svg { height: 46px; width: auto; transform: rotate(-8deg); }
.flavour-name { font-weight: 650; font-size: .92rem; line-height: 1.15; }
.flavour-price { font-size: .8rem; color: var(--ink-soft); }
.flavour:hover { border-color: var(--malina); background: #fff; }
.flavour:active { transform: scale(.97); }
.flavour[disabled] { opacity: .45; cursor: not-allowed; }
.builder-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(42,25,21,.08); }
.builder-total { margin: 0; font-size: 1.05rem; }
.builder-total b { color: var(--malina-deep); font-size: 1.2rem; }
.builder-actions { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { position: static; padding-top: 0; }
  .hero-copy { order: 0; }
  .lede { max-width: 44ch; }
}

/* ---------- glaze bands ---------- */
.band { --bg: var(--ruby); --fg: var(--ink); --accent: var(--malina-deep); background: var(--bg); color: var(--fg); padding: clamp(44px, 7vw, 84px) 0; }
.band--malina { --bg: var(--malina); --fg: #fff; --accent: var(--ruby); }
.band--pistacia { --bg: var(--pistacia); --fg: var(--pistacia-deep); --accent: var(--pistacia-deep); }
.band--karamel { --bg: var(--karamel); --fg: var(--karamel-deep); --accent: var(--karamel-deep); }
.band--kakao { --bg: var(--kakao); --fg: var(--kakao-deep); --accent: var(--ruby); }
.band--biela { --bg: var(--biela); --fg: var(--biela-deep); --accent: var(--malina-deep); }
.band--ruby { --bg: var(--sugar-2); --fg: var(--ink); --accent: var(--malina-deep); }
.band-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.band-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.04em; }
.band-head p { grid-column: 1; margin: 0; max-width: 52ch; opacity: .9; }
.band-more { grid-column: 2; grid-row: 1 / span 2; align-self: end; color: var(--accent); font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 2px solid currentColor; white-space: nowrap; }
.band-more:hover { background: rgba(255,255,255,.18); }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
@media (max-width: 860px) {
  .band-head { grid-template-columns: 1fr; }
  .band-more { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .rail::after { content: ""; flex: 0 0 1px; }   /* keeps the right gutter after the last card */
  .rail::-webkit-scrollbar { display: none; }
  .rail > .pcard { flex: 0 0 68%; scroll-snap-align: start; }
}

/* ---------- product card ---------- */
.pcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.pcard-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-media); overflow: hidden; background: color-mix(in srgb, var(--glaze, var(--ruby)) 35%, #fff); box-shadow: var(--shadow-sm); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-noimg { position: absolute; inset: 22% 34% 12%; border-radius: 999px 999px 18px 18px; background: var(--glaze, var(--malina)); opacity: .6; }
.pcard-body { display: grid; gap: 2px; }
.pcard-name { font-weight: 700; font-size: 1.08rem; line-height: 1.2; letter-spacing: -0.01em; }
.pcard-price { font-size: .95rem; opacity: .85; }
.tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.tag--gf { background: var(--pistacia); color: var(--pistacia-deep); }

/* ---------- story ---------- */
.story { padding: clamp(56px, 9vw, 120px) 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.story-photo { margin: 0; border-radius: 999px 999px var(--r-media) var(--r-media); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 4; max-width: 460px; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: .5em; }
.story-copy p { max-width: 58ch; font-size: 1.08rem; }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } .story-photo { max-width: 320px; } }

/* ---------- pickup ---------- */
.pickup { background: var(--sugar-2); padding: clamp(48px, 7vw, 88px) 0; }
.pickup h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.pickup-lede { margin: .6em 0 1.6em; font-size: 1.1rem; }
.pickup-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.pickup-list li { display: grid; gap: 4px; padding: 20px 20px 22px 0; border-bottom: 1px solid rgba(42,25,21,.15); }
.pickup-list li + li { padding-left: 20px; border-left: 1px solid rgba(42,25,21,.15); }
.pickup-city { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--malina); }
.pickup-list b { font-size: 1.1rem; }
.pickup-list a { color: var(--malina-deep); font-weight: 650; }
@media (max-width: 760px) {
  .pickup-list { grid-template-columns: 1fr; }
  .pickup-list li + li { padding-left: 0; border-left: 0; }
}

/* ---------- duo (cakes / b2b) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo-item { position: relative; min-height: clamp(320px, 44vw, 520px); display: flex; align-items: flex-end; text-decoration: none; color: #fff; overflow: hidden; }
.duo-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.duo-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,25,21,.82), rgba(42,25,21,0) 60%); }
.duo-item:hover img { transform: scale(1.04); }
.duo-text { position: relative; z-index: 1; display: grid; gap: 6px; padding: clamp(20px, 4vw, 40px); max-width: 32rem; }
.duo-text b { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; }
.duo-link { font-weight: 700; color: var(--ruby); margin-top: 6px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--kakao); color: var(--kakao-deep); padding: clamp(48px, 7vw, 80px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; color: #fff; margin-bottom: .8em; font-weight: 700; }
.site-footer li { margin-bottom: .7em; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.site-footer small { opacity: .8; }
.footer-brand { display: flex; flex-direction: column; align-items: center; width: fit-content; text-align: center; }   /* logo centred over the line below it */
.footer-brand img { background: #fff; border-radius: 50%; padding: 4px; }
.footer-brand .piped { margin-top: 14px; }
.footer-legal { font-size: .9rem; opacity: .9; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { margin-inline: auto; }
}

/* ---------- page heads, shop grid ---------- */
.page-head { background: var(--bg, var(--sugar-2)); color: var(--fg, var(--ink)); padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.04em; }
.page-head p { max-width: 56ch; margin-top: .8em; font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.7); text-decoration: none; font-weight: 600; border: 2px solid transparent; }
.chip:hover { border-color: currentColor; }
.chip[aria-current="page"], .chip.on { background: var(--ink); color: var(--sugar); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 44vw), 1fr)); gap: clamp(16px, 2.4vw, 28px) clamp(12px, 2vw, 24px); padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; } .pcard-name { font-size: .98rem; } }
.empty { padding: 64px 0; text-align: center; color: var(--ink-soft); }

/* ---------- product page ---------- */
.crumbs { font-size: .9rem; color: var(--ink-soft); padding: 18px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); padding: 20px 0 clamp(48px, 7vw, 88px); align-items: start; }
.gallery { position: sticky; top: 92px; display: grid; gap: 10px; }
.gallery-main { aspect-ratio: 4 / 5; border-radius: var(--r-media); overflow: hidden; background: color-mix(in srgb, var(--glaze, var(--ruby)) 35%, #fff); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { flex: 0 0 72px; height: 88px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-pressed="true"] { border-color: var(--malina); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -0.04em; }
.p-cat { display: inline-block; margin-bottom: 10px; font-weight: 650; color: var(--malina-deep); text-decoration: none; }
.p-price { font-size: 1.6rem; font-weight: 750; margin: 14px 0 4px; letter-spacing: -0.02em; }
.p-price small { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.p-desc { margin: 18px 0; max-width: 60ch; }
.p-facts { display: grid; gap: 8px; margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--sugar-2); font-size: .95rem; }
.p-facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; align-items: baseline; }
.p-facts dt { font-weight: 700; min-width: 7.5em; }
.p-facts dd { margin: 0; }
.allergens { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.allergens i { font-style: normal; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: #fff; border: 1px solid rgba(42,25,21,.2); font-size: .75rem; font-weight: 700; }
.legend { font-size: .85rem; color: var(--ink-soft); }
.legend summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.legend ol { columns: 2; margin: 8px 0 0; padding-left: 1.4em; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .gallery-main { aspect-ratio: 1; }
}

/* ---------- configurator ---------- */
.config { display: grid; gap: 22px; margin-top: 8px; }
.ogroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.ogroup legend { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.ogroup legend .req { color: var(--malina); }
.ogroup-meta { font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
.ogroup-meta b { color: var(--malina-deep); }
.ogroup.invalid legend .ogroup-meta { color: var(--malina); font-weight: 650; }
.ohelp { font-size: .9rem; color: var(--ink-soft); margin: -4px 0 10px; }
.qty-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qty-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 6px 8px 6px 6px; border-radius: 14px; background: var(--sugar-2); transition: background-color .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.qty-row.on { background: #fff; box-shadow: inset 0 0 0 2px var(--malina); }
.qty-row img, .qty-row .swatch { width: 44px; height: 52px; object-fit: cover; border-radius: 10px; background: #fff; }
.qty-row .swatch { border-radius: 999px 999px 10px 10px; background: var(--glaze, var(--ruby)); }
.qty-name { font-weight: 650; line-height: 1.2; }
.qty-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: #fff; border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px rgba(42,25,21,.15); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.stepper button:hover:not([disabled]) { background: var(--sugar-2); }
.stepper button[disabled] { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 26px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 16px; border-radius: 16px; background: var(--sugar-2); border: 2px solid transparent; font-weight: 600; line-height: 1.2; transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out); }
.pill small { font-weight: 500; color: var(--ink-soft); }
.pill input:checked + span { background: #fff; border-color: var(--malina); }
.pill input:focus-visible + span { outline: 3px solid var(--malina); outline-offset: 2px; }
.text-opt input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 2px solid rgba(42,25,21,.18); font: inherit; background: #fff; }
.text-opt input:focus { border-color: var(--malina); outline: none; }
.piped-preview { display: flex; align-items: center; justify-content: center; min-height: 92px; margin-top: 10px; border-radius: 14px; background: var(--kakao); color: var(--ruby); font-size: clamp(2.2rem, 5vw, 3rem); padding: 8px 16px; overflow: hidden; text-align: center; }
.piped-preview:empty::before { content: "tu bude váš nápis"; opacity: .45; }
.buy { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px calc(var(--gutter) * -0.5) 0; padding: 12px calc(var(--gutter) * 0.5); background: var(--sugar); border-top: 1px solid rgba(42,25,21,.1); box-shadow: 0 -12px 24px -18px rgba(42,25,21,.4); }
.buy-total { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-right: auto; }
.buy-total small { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.buy-msg { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--malina); min-height: 1.2em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 22px; box-shadow: var(--shadow); transition: transform .35s var(--ease-out); z-index: 90; width: max-content; max-width: calc(100% - 32px); text-align: center; text-wrap: balance; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- content pages ---------- */
.content { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }   /* block only: .wrap owns the side gutters */
.price-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.price-table th, .price-table td { text-align: left; padding: 14px 8px 14px 0; border-bottom: 1px solid rgba(42,25,21,.12); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; padding-bottom: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 24px; }
.taglist li { padding: 8px 14px; border-radius: 999px; background: var(--sugar-2); font-weight: 550; }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-media); background: var(--sugar-2); }
.form h2 { font-size: 1.8rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .95rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid rgba(42,25,21,.15); background: #fff; font: inherit; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--malina); outline: none; }
.note { font-size: .9rem; color: var(--ink-soft); }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 32px; }
.gallery-strip img { aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; width: 100%; }
@media (max-width: 640px) { .gallery-strip { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- phone tuning ---------- */
@media (max-width: 600px) {
  .hero { padding-top: 22px; }
  .piped--hero { font-size: 2.1rem; }
  .hero h1 { font-size: 2.45rem; }
  .lede { font-size: 1rem; margin-top: .7em; }
  .hero-facts { margin-top: 1em; gap: 6px; }
  .hero-facts li { padding: 6px 12px; font-size: .85rem; }
  .box { padding: 16px 14px 12px; }
  .box::before { inset: 10px; }
  .box-slots { --slot-h: 132px; }
  .box[data-size="m"] .box-slots { --slot-h: 86px; }
  .box[data-size="l"] .box-slots { --slot-h: 64px; column-gap: 4px; }
  .box-lid { width: 52px; height: 52px; top: -18px; }
  .box-lid img { width: 46px; height: 46px; }
  .builder-panel { padding: 12px; }
  .flavours { grid-template-columns: 1fr 1fr; }
  .builder-foot { position: sticky; bottom: 0; background: var(--sugar); margin: 12px -12px -12px; padding: 12px; border-radius: 0 0 var(--r-media) var(--r-media); }
  .buy { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 10px var(--gutter); }
  .buy .btn { flex: 1; }
}

/* ---------- phase 2: cart & checkout ---------- */
.flash { background: var(--malina); color: #fff; padding: 12px 0; font-weight: 600; }
.flash p { margin: 0; }
.flash-inline { background: var(--sugar-2); color: var(--malina-deep); padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.field-error { color: var(--malina); font-size: .9rem; font-weight: 600; margin: 4px 0 0; }
[aria-invalid="true"] { border-color: var(--malina) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--block { width: 100%; }
.link-btn { all: unset; cursor: pointer; font-size: .88rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--malina); }
.link-btn:focus-visible { outline: 3px solid var(--malina); outline-offset: 2px; border-radius: 4px; }
.toast a { color: var(--ruby); font-weight: 700; margin-left: 6px; white-space: nowrap; }

.cart-empty { text-align: center; padding: 40px 0 24px; display: grid; justify-items: center; gap: 8px; }
.cart-empty h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 10px; }
.cart-empty .btn { margin: 4px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: "thumb body side" "thumb remove side"; gap: 4px 18px; padding: 18px 0; border-bottom: 1px solid rgba(42,25,21,.12); }
.cart-line--bad { background: linear-gradient(90deg, rgba(194,48,90,.06), transparent); }
.cart-thumb { grid-area: thumb; width: 88px; height: 108px; border-radius: 14px; overflow: hidden; background: var(--sugar-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { grid-area: body; min-width: 0; }
.cart-name { font-weight: 750; font-size: 1.12rem; text-decoration: none; letter-spacing: -0.01em; }
.cart-label { margin: 2px 0 0; color: var(--malina-deep); font-weight: 650; font-size: .95rem; }
.cart-details { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .88rem; color: var(--ink-soft); }
.cart-details li { background: var(--sugar-2); padding: 2px 10px; border-radius: 999px; }
.cart-piped { font-size: 1.5rem; color: var(--malina); vertical-align: -3px; }
.cart-line-side { grid-area: side; display: grid; justify-items: end; align-content: start; gap: 10px; }
.cart-line-total { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cart-remove { grid-area: remove; align-self: end; }
.cart-line:not(:has(.cart-thumb)) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "body side" "remove side"; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb body" "thumb side" "remove remove"; }
  .cart-thumb { width: 64px; height: 80px; }
  .cart-line-side { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; }
}

.summary { background: var(--sugar-2); border-radius: var(--r-media); padding: 22px; display: grid; gap: 14px; }
.summary--sticky { position: sticky; top: 92px; }
.summary h2 { font-size: 1.5rem; }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.summary-total { border-top: 2px solid var(--ink); padding-top: 10px; font-size: 1.3rem; }
.summary-total dt { color: var(--ink); font-weight: 750; }
.summary-total dd { font-weight: 800; }
.summary-note { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.summary-back { font-size: .92rem; text-align: center; color: var(--ink-soft); }
.summary-lines { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 8px; border-bottom: 1px solid rgba(42,25,21,.12); font-size: .95rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines small { display: block; color: var(--malina-deep); }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary--sticky { position: static; } }
.checkout-main { display: grid; gap: 34px; min-width: 0; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 750; letter-spacing: -0.02em; margin-bottom: 14px; padding: 0; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--malina); color: #fff; font-size: 1rem; flex: none; }
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .places { grid-template-columns: 1fr; } }
.place { position: relative; display: block; cursor: pointer; }
.place input { position: absolute; opacity: 0; }
.place-card { display: grid; gap: 2px; height: 100%; padding: 16px; border-radius: 16px; background: var(--sugar-2); border: 2px solid transparent; transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out); }
.place-city { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--malina); }
.place-card small { color: var(--ink-soft); }
.place-price { margin-top: 8px; font-weight: 700; font-size: .9rem; }
.place input:checked + .place-card { background: #fff; border-color: var(--malina); box-shadow: var(--shadow-sm); }
.place input:focus-visible + .place-card { outline: 3px solid var(--malina); outline-offset: 2px; }
@media (max-width: 700px) {
  .place-card { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .place-card > * { grid-column: 1; }
  .place-price { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}

.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; align-items: stretch; }
.days-month { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .78rem; font-weight: 700; color: var(--malina-deep); text-transform: uppercase; letter-spacing: .08em; padding: 4px 0; }
.day { flex: none; display: grid; justify-items: center; gap: 0; width: 60px; padding: 10px 0 12px; border-radius: 999px 999px 18px 18px; border: 2px solid transparent; background: var(--sugar-2); cursor: pointer; scroll-snap-align: start; transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), transform .15s var(--ease-out); }
.day span { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.day b { font-size: 1.45rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.day:hover { border-color: var(--malina); }
.day[aria-checked="true"] { background: var(--malina); color: #fff; border-color: var(--malina); transform: translateY(-3px); box-shadow: 0 8px 16px -10px var(--malina-deep); }
.day[aria-checked="true"] span { color: var(--ruby); }
.days-picked { margin: 6px 0 0; font-weight: 650; color: var(--malina-deep); min-height: 1.5em; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .95rem; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--malina); flex: none; margin-top: 1px; }

.form-done { padding: 12px 0; }
.form .flash-inline { background: #fff; margin: 0; }
.form-done h2 { margin: 8px 0 6px; }
.done-head .done-piped { font-size: clamp(2.6rem, 6vw, 3.8rem); margin-bottom: .1em; transform: rotate(-4deg); transform-origin: left; }
.done-when { padding: 0 0 22px; }
.done-when p { font-size: 1.1rem; margin: 6px 0 0; }
.hours { margin-top: 8px; border-collapse: collapse; font-size: .9rem; }
.hours th { text-align: left; font-weight: 600; padding: 2px 14px 2px 0; color: var(--ink-soft); }
.hours td { padding: 2px 0; font-variant-numeric: tabular-nums; }

/* ---------- box builder: finishing steps (inline mode) ---------- */
.steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 6px; counter-reset: st; }
.steps li { counter-increment: st; flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: var(--sugar-2); font-weight: 650; font-size: .88rem; color: var(--ink-soft); transition: background-color .25s var(--ease-out), color .25s var(--ease-out); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-size: .78rem; flex: none; }
.steps li.on { background: var(--malina); color: #fff; }
.steps li.on::before { color: var(--malina); }
.steps li.done { color: var(--malina-deep); }
.steps li.done::before { content: "✓"; background: var(--ruby); }
.step-pane { animation: pane-in .35s var(--ease-out) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.builder-hint.nudge { animation: nudge .4s var(--ease-out); color: var(--malina); font-weight: 650; }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.btn--primary[aria-disabled="true"] { opacity: .55; box-shadow: none; }

.touch { display: grid; gap: 8px; padding: 4px 0 16px; }
.touch + .touch { border-top: 1px solid rgba(42,25,21,.08); padding-top: 14px; }
.touch-title { margin: 0; font-weight: 750; font-size: 1.05rem; letter-spacing: -0.01em; }
.touch-title small { font-weight: 500; color: var(--ink-soft); margin-left: 6px; }
.touch input[type="text"] { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 2px solid rgba(42,25,21,.18); font: inherit; background: #fff; }
.touch input[type="text"]:focus { border-color: var(--malina); outline: none; }
.touch-help { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.pops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pop-row { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 14px; background: var(--sugar-2); border: 2px solid transparent; transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out); }
.pop-row.on { background: #fff; border-color: var(--malina); }
.pop-art svg { width: 44px; height: 44px; display: block; }
.pop-name { display: grid; text-align: center; font-weight: 650; font-size: .88rem; line-height: 1.15; }
.pop-name small { font-weight: 500; color: var(--ink-soft); }
.stepper--sm button { width: 30px; height: 30px; font-size: 1.05rem; }
.stepper--sm output { min-width: 20px; }

.box-extras { position: relative; list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; min-height: 0; }
.box-extras:empty { display: none; }
.tok { animation: drop .42s var(--ease-drop) both; }
.tok--pop svg { width: 34px; height: 34px; display: block; filter: drop-shadow(0 3px 3px rgba(60,35,15,.35)); }
.tok--extra { background: #fff; color: var(--kakao); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.box-name--text { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

.box-cover {
  position: absolute; inset: 0; z-index: 3; border-radius: 14px;
  display: grid; place-content: center; justify-items: center; gap: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px), linear-gradient(160deg, #d4a978, #b98a58);
  box-shadow: inset 0 0 0 6px rgba(138,100,64,.45), var(--shadow);
  clip-path: inset(0 0 100% 0 round 14px);
  transition: clip-path .75s var(--ease-out);
  pointer-events: none;
}
.box-cover img { width: 96px; height: 96px; background: #fff; border-radius: 50%; padding: 4px; transform: rotate(-8deg) scale(.6); opacity: 0; transition: transform .5s .55s var(--ease-drop), opacity .3s .55s; }
.box-cover p { margin: 6px 0 0; color: #fff; font-size: clamp(2.2rem, 5vw, 3.2rem); text-shadow: 0 2px 0 rgba(90,52,16,.4); opacity: 0; transition: opacity .4s .8s; }
.box.closed .box-cover { clip-path: inset(0 0 0 0 round 14px); }
.box.closed .box-cover img { transform: rotate(-8deg) scale(1); opacity: 1; }
.box.closed .box-cover p { opacity: 1; }
.box.closed .box-lid { opacity: 0; }

.step-done { text-align: center; padding: 8px 0 4px; }
.step-done .piped--sign { margin: 0; }
.done-title { font-size: 1.6rem; margin: 4px 0 6px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
@media (max-width: 600px) { .pops { gap: 6px; } .done-actions .btn { flex: 1 1 100%; } }

/* extras tossed into the box: marshmallows fill the gaps behind, chocolate/macaron land on top */
.box-inner { position: relative; --deco: 1; }
.box[data-size="m"] .box-inner { --deco: .8; }
.box[data-size="l"] .box-inner { --deco: .64; }
.decor { position: absolute; inset: 0; pointer-events: none; }
.decor--front { z-index: 2; }
.deco { position: absolute; translate: -50% -50%; animation: drop .45s var(--ease-drop) both; filter: drop-shadow(0 3px 3px rgba(60,35,15,.35)); }
.deco svg { display: block; width: 100%; height: auto; }
.deco--mm { width: calc(24px * var(--deco)); }
.deco--choc { width: calc(40px * var(--deco)); }
.deco--mac { width: calc(46px * var(--deco)); }
@media (max-width: 600px) { .deco--mm { width: calc(15px * var(--deco)); } .deco--choc { width: calc(32px * var(--deco)); } .deco--mac { width: calc(36px * var(--deco)); } }

/* ---------- legal ---------- */
.legal-nav { margin: 0 0 28px; }
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.35rem; margin: 2em 0 .6em; letter-spacing: -0.015em; }
.legal p, .legal li { font-size: 1rem; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 8px 0 18px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid rgba(42,25,21,.12); }
.legal-table th { font-size: .8rem; color: var(--ink-soft); }
@media (max-width: 640px) { .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; } .legal-table thead { display: none; } .legal-table tr { padding: 10px 0; border-bottom: 1px solid rgba(42,25,21,.12); } .legal-table td { border: 0; padding: 2px 0; } .legal-table td:first-child { font-weight: 700; } }
.footer-links { line-height: 1.9; }

.check--company { margin-top: 14px; }
.company-fields { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--sugar-2); }

/* ---------- cakes gallery ---------- */
.work { margin-top: clamp(56px, 8vw, 96px); scroll-margin-top: 80px; }
.work-head { max-width: 60ch; margin-bottom: 22px; }
.work-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .35em; }
.work-head p { margin: 0; font-size: 1.08rem; color: var(--ink-soft); }
.work-grid { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 12px; }
.work-grid li { break-inside: avoid; margin-bottom: 12px; }
.work-item { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--sugar-2); cursor: zoom-in; position: relative; }
.work-item img { width: 100%; height: auto; transition: transform .6s var(--ease-out), filter .3s; }
.work-item:hover img { transform: scale(1.04); }
.work-item:focus-visible { outline: 3px solid var(--malina); outline-offset: 3px; }
.work-more { text-align: center; margin: 18px 0 0; }
.work-cta { text-align: center; margin: 22px 0 0; font-size: 1.1rem; }
.work-cta a { color: var(--malina-deep); font-weight: 700; }
@media (max-width: 560px) { .work-grid { columns: 2; column-gap: 8px; } .work-grid li { margin-bottom: 8px; } .work-item { border-radius: 12px; } }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(26, 14, 11, .9); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .25s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 72px 24px; pointer-events: none; }
.lightbox img { max-width: min(92vw, 1100px); max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); opacity: 0; transform: scale(.98); transition: opacity .25s var(--ease-out), transform .35s var(--ease-out); }
.lightbox img.in { opacity: 1; transform: none; }
.lightbox figcaption { font-weight: 600; text-align: center; }
.lightbox figcaption small { opacity: .65; font-weight: 500; margin-left: 8px; font-variant-numeric: tabular-nums; }
.lb-btn { position: fixed; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .15s; }
.lb-btn:hover { background: var(--malina); }
.lb-btn:focus-visible { outline: 3px solid var(--ruby); outline-offset: 2px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox figure { padding: 60px 8px 90px; }
  .lightbox img { max-width: 96vw; max-height: calc(100dvh - 190px); }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
.work--top { margin-top: 0; }
.cennik { margin-top: clamp(56px, 8vw, 96px); scroll-margin-top: 80px; }
.head-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px !important; }
.btn--light { background: #fff; color: var(--malina-deep); }
.btn--light:hover { background: var(--ruby); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.15); }

/* what's in the box, in words */
.box-contents { margin: -6px 2px 0; min-height: 34px; }
.box-contents ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.box-contents-empty { margin: 0; font-size: .92rem; color: var(--malina-deep); opacity: .75; }
.content-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 6px 4px 12px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: .9rem; font-weight: 600; animation: pane-in .25s var(--ease-out) both; }
.content-chip b { color: var(--malina-deep); font-weight: 800; }
.content-chip--extra { padding-right: 12px; background: rgba(255,255,255,.5); font-weight: 550; }
.content-chip .dot { width: 10px; height: 16px; border-radius: 999px 999px 3px 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.content-chip .dot--pop { width: 12px; height: 12px; border-radius: 50%; }
.content-piped { font-size: 1.35rem; color: var(--malina); line-height: 1; }
.chip-x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--sugar-2); color: var(--malina-deep); font-weight: 800; font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.chip-x:hover { background: var(--malina); color: #fff; }
.chip-x:focus-visible { outline: 3px solid var(--malina); outline-offset: 1px; }
.builder[data-step="3"] .box-contents { display: none; }

/* extras: drawings in the picker, smaller pieces tucked beside the sticks */
.extras-grid .pop-art svg { width: 44px; height: 32px; }
.extras-grid .pop-art[data-art="marshmallow"] svg { width: 30px; height: 28px; }
.extra-toggle .switch { margin-top: 2px; }
.deco--small { --deco-k: .72; }
.deco--choc.deco--small { width: calc(40px * var(--deco) * .72); }
.deco--mac.deco--small { width: calc(46px * var(--deco) * .72); }
.deco--mm-gap { width: calc(18px * var(--deco)); }
@media (max-width: 600px) { .deco--choc.deco--small { width: calc(32px * var(--deco) * .72); } .deco--mac.deco--small { width: calc(36px * var(--deco) * .72); } .deco--mm-gap { width: calc(13px * var(--deco)); } }

.box-size { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-right: 64px; }   /* keep clear of the seal */
.box-illu { font-weight: 500; font-size: .76rem; opacity: .9; letter-spacing: 0; }
@media (max-width: 600px) { .box-size { padding-right: 52px; } .box-illu { font-size: .7rem; } }

.touch textarea { width: 100%; padding: 12px 14px; border-radius: 14px; font: inherit; resize: vertical; min-height: 84px; }

@media (min-width: 761px) { .pickup-list li:nth-child(n) { padding-left: 20px; border-left: 1px solid rgba(42,25,21,.15); } .pickup-list li:first-child { padding-left: 0; border-left: 0; } }

/* Checkout: payment choice in the summary */
.pay { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pay legend { font-weight: 750; padding: 0; margin-bottom: 8px; }
.pay-opt { position: relative; display: block; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span { display: grid; gap: 1px; padding: 10px 14px 10px 42px; border-radius: 14px; background: rgba(255,255,255,.55); border: 2px solid transparent; transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out); }
.pay-opt span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid rgba(42,25,21,.35); background: #fff; box-sizing: border-box; transition: border .15s var(--ease-out); }
.pay-opt small { color: var(--ink-soft); font-size: .85rem; }
.pay-opt input:checked + span { background: #fff; border-color: var(--malina); box-shadow: var(--shadow-sm); }
.pay-opt input:checked + span::before { border: 5px solid var(--malina); }
.pay-opt input:focus-visible + span { outline: 3px solid var(--malina); outline-offset: 2px; }
