/* ===========================================================
   Popsicle — Is · Kager · Juice
   Playful, colourful palette · rounded display type · summery feel
   =========================================================== */

:root {
  --bg: #fff5fa;             /* soft pink paper */
  --bg-elev: #ffe9f3;        /* deeper pink wash */
  --bg-card: #ffffff;        /* clean white card */
  --line: #f7d7e6;
  --line-soft: #fce8f1;

  --text: #2a1830;           /* deep plum ink */
  --text-dim: #6b5b76;
  --text-mute: #9a8aa3;

  --green: #ff3d8b;          /* Popsicle pink — primary brand */
  --green-soft: #ff70ab;
  --burgundy: #b5179e;       /* magenta-grape secondary accent */
  --gold: #ff9f1c;           /* sunny accent */
  --rye: #c2185b;            /* berry */
  --paper-shadow: rgba(181, 23, 158, 0.08);

  --serif: "Fredoka", "Poppins", system-ui, sans-serif;
  --serif-text: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(181, 23, 158, 0.05), 0 8px 22px -12px rgba(181, 23, 158, 0.28);
  --shadow-card-hover: 0 2px 4px rgba(181, 23, 158, 0.06), 0 18px 40px -16px rgba(214, 36, 110, 0.38);
  --shadow-elev: 0 22px 54px -20px rgba(181, 23, 158, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-bottom: 96px; }
@media (min-width: 720px) {
  html { scroll-padding-bottom: 16px; }
}
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============== Top nav ============== */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topnav__wordmark {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.005em;
  color: var(--green);
  font-style: italic;
}
.topnav__links {
  display: flex; gap: 28px; list-style: none; align-items: center;
  font-size: 14.5px;
  letter-spacing: 0.02em;
}
.topnav__links a { color: var(--text-dim); transition: color .2s; }
.topnav__links a:hover { color: var(--green); }
.topnav__cta {
  color: var(--bg-card) !important;
  background: var(--green);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
}
.topnav__cta:hover { background: var(--green-soft); color: var(--bg-card) !important; }

@media (min-width: 720px) {
  .topnav { display: flex; }
}

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 22px 110px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 720px) {
  .hero { padding: 28px 20px 96px; min-height: 92svh; }
}
.hero__paper {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(214, 36, 110, 0.07), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(181, 23, 158, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(176, 138, 62, 0.08), transparent 70%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(rgba(42, 24, 48, 0.04) 1px, transparent 1px);
  background-size: 6px 6px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.6;
}

.hero__parent {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: -8vh;
  margin-bottom: 32px;
  transition: opacity .2s ease, transform .2s ease;
}
.hero__parent:hover { opacity: 0.85; transform: translateY(-1px); }
.hero__parent span {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--text-mute);
}
.hero__parent img {
  width: clamp(112px, 18vw, 152px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35);
}

.hero__title {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero__title-script {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(72px, 16vw, 168px);
  line-height: 0.95;
  color: var(--green);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.hero__title-sub {
  font-family: var(--body);
  font-size: clamp(13px, 1.8vw, 16px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 4px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__lead {
  max-width: 600px;
  font-family: var(--serif-text);
  font-size: clamp(17px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.hero__lead--second {
  margin: 0 0 28px;
}
.hero__lead em {
  font-style: italic;
  color: var(--burgundy);
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  color: var(--text-dim);
  background: rgba(255, 253, 247, 0.6);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4f8c54;
  box-shadow: 0 0 0 3px rgba(79, 140, 84, 0.18);
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--green);
  color: var(--bg-card);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 22px -10px rgba(214, 36, 110, 0.5);
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #d6246e;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 28px -10px rgba(214, 36, 110, 0.6);
}
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.btn--block { width: 100%; }

/* ============== Sections ============== */
section { padding: 90px 0; position: relative; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}
/* Reserve space at the bottom of the LAST scrollable content section on mobile
   so the floating cart bar / bottom nav doesn't cover the final card's CTA. */
@media (max-width: 720px) {
  .location { padding-bottom: calc(56px + env(safe-area-inset-bottom) + 110px); }
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 6.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 22px;
}
.section-title em {
  font-style: italic;
  color: var(--green);
}

/* ============== Concept ============== */
.concept {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.concept__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (min-width: 720px) {
  .concept__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
}
.concept .lead {
  font-family: var(--serif-text);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.55;
}
.concept__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elev);
  border: 1px solid var(--line);
  /* The stand photo is 1920×1920 — show it 1:1 so nothing is cropped. */
  aspect-ratio: 1 / 1;
}
.concept__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.badges {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
  width: 100%;
}
.badges li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  min-width: 0;
}
.badges li span {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 5.5vw, 28px);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--green);
  margin-bottom: 4px;
  text-transform: none;
}

/* ============== Menu ============== */
.menu {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}
.menu-intro {
  max-width: 580px;
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 28px;
}
@media (max-width: 720px) {
  .menu-intro { font-size: 14.5px; margin-bottom: 22px; line-height: 1.55; }
}
.menu-intro strong { color: var(--green); }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 28px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Fade the right edge to hint at more tabs */
  mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .tabs { flex-wrap: wrap; overflow-x: visible; mask-image: none; -webkit-mask-image: none; }
}
.tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: all .2s ease;
}
.tab:hover { color: var(--text); border-color: var(--text-mute); }
.tab.is-active {
  background: var(--green);
  color: var(--bg-card);
  border-color: var(--green);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1000px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-card);
}
.menu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 36, 110, 0.25);
  box-shadow: var(--shadow-card-hover);
}
.menu-card[hidden] { display: none; }

.menu-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
}
.menu-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.menu-card:hover .menu-card__img img { transform: scale(1.04); }
.menu-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--bg-card);
  background: rgba(214, 36, 110, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-card__tag--burgundy { background: rgba(181, 23, 158, 0.92); }
.menu-card__tag--gold { background: rgba(120, 90, 30, 0.92); }

.menu-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.menu-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.menu-card__head h3 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.15;
}
.menu-card__price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--burgundy);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.menu-card__desc {
  color: var(--text-dim);
  font-size: 14.5px;
  flex: 1;
  margin-bottom: 16px;
}
.menu-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}
.menu-card__foot .add-btn,
.menu-card__foot .qty { width: 100%; justify-content: space-between; }
.menu-card__foot .qty { padding: 0 4px; }
/* Only one of {add-btn, qty} shown at a time — driven by data-qty on card */
.menu-card[data-in-cart] .add-btn { display: none; }
.menu-card:not([data-in-cart]) .qty { display: none; }

/* Qty stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  overflow: hidden;
}
.qty button {
  width: 44px; height: 44px;
  font-size: 18px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.qty button:hover:not(:disabled) { background: rgba(214, 36, 110, 0.08); }
.qty button:disabled { color: var(--text-mute); cursor: not-allowed; opacity: 0.5; }
.qty__val {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.add-btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--bg-card);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-btn span:last-child {
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
}
.add-btn:hover { background: #d6246e; }
.add-btn:active { transform: scale(0.97); }

.menu-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-mute);
  text-align: center;
}
.menu-note a { color: var(--burgundy); border-bottom: 1px solid currentColor; }

/* ============== Location ============== */
.location { background: var(--bg); }
.location__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 720px) {
  .location__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
}
.addr {
  font-style: normal;
  font-size: 16.5px;
  color: var(--text-dim);
  margin: 14px 0 22px;
  line-height: 1.75;
}
.addr strong { color: var(--text); font-size: 19px; }
.addr-note {
  font-size: 14.5px;
  color: var(--text-mute);
  border-left: 2px solid var(--burgundy);
  padding: 4px 0 4px 14px;
  margin-bottom: 28px;
  max-width: 420px;
  font-style: italic;
  font-family: var(--serif-text);
}

.hours h3 {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--text-mute);
  margin-bottom: 10px;
  font-weight: 600;
}
.hours__row {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: 15.5px;
}
.hours__row span:first-child { font-weight: 600; color: var(--text); }
.hours__time {
  color: var(--green);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hours__row span:first-child::after { content: " · "; color: var(--text-mute); margin-left: 6px; }

.location__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.map-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
  box-shadow: var(--shadow-elev);
  transition: transform .2s ease, box-shadow .2s ease;
}
.map-card:hover { transform: translateY(-2px); }
.map-card__bg { position: absolute; inset: 0; }
.map-card__bg svg { width: 100%; height: 100%; }
.map-card__pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -75%);
  width: 54px;
  filter: drop-shadow(0 6px 12px rgba(181, 23, 158, 0.35));
  animation: pin-bounce 2.6s ease-in-out infinite;
}
.map-card__pin svg { width: 100%; height: auto; }
@keyframes pin-bounce {
  0%, 100% { transform: translate(-50%, -75%); }
  50% { transform: translate(-50%, -82%); }
}
.map-card__label {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 12px 16px;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.map-card__label strong {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.map-card__label span {
  font-size: 12.5px;
  color: var(--burgundy);
}

/* ============== Footer ============== */
.footer {
  background: #2a1830;
  color: #d9d2bf;
  padding: 60px 0 130px;
  font-size: 14px;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .footer { padding-bottom: 60px; }
}
.footer__inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
}
.footer__brand { text-align: left; }
.footer__wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  color: #f0e8d0;
  display: inline-block;
  margin-bottom: 8px;
}
.footer__brand p { max-width: 320px; color: #a89e85; }
.footer__col h4 {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: #f0e8d0;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { color: #d9d2bf; transition: color .2s; }
.footer__col a:hover { color: var(--bg-card); }
.footer__copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  margin-top: 28px;
  font-size: 12px;
  color: #8a8268;
  line-height: 1.6;
}
.footer__address {
  font-style: normal;
  line-height: 1.7;
  color: #d9d2bf;
}
.footer__address strong { color: #f0e8d0; }
.footer__address a { color: #d9d2bf; text-decoration: underline; text-decoration-color: rgba(217,210,191,0.3); }
.footer__address a:hover { color: #f0e8d0; }

/* ---- Footer legal (handelsbetingelser etc.) ---- */
.footer__legal {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer__legal details {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__legal details:last-of-type {
  border-bottom: none;
}
.footer__legal summary {
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 17px;
  color: #f0e8d0;
  font-weight: 400;
  letter-spacing: -0.005em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__legal summary::-webkit-details-marker { display: none; }
.footer__legal summary::after {
  content: "+";
  color: #a89e85;
  font-size: 22px;
  line-height: 1;
  transition: transform .2s;
  font-family: var(--body);
}
.footer__legal details[open] > summary::after {
  content: "−";
}
.footer__legal summary:hover {
  color: #fff;
}
.legal-content {
  padding: 4px 0 22px;
  color: #c0b9a4;
  font-size: 14px;
  line-height: 1.65;
  max-width: 760px;
}
.legal-content h5 {
  color: #f0e8d0;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 18px 0 8px;
}
.legal-content h5:first-child { margin-top: 4px; }
.legal-content p { margin-bottom: 10px; }
.legal-content ul { margin: 0 0 10px 18px; }
.legal-content li { margin-bottom: 4px; }
.legal-content strong { color: #f0e8d0; font-weight: 600; }
.legal-content a {
  color: #f0e8d0;
  text-decoration: underline;
  text-decoration-color: rgba(240, 232, 208, 0.4);
}
.legal-content a:hover { text-decoration-color: currentColor; }
.legal-version {
  color: #7a7361;
  font-size: 12px;
  font-style: italic;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ============== Cart bar (sticky) ============== */
.cartbar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 65;  /* above bottomnav, which hides via :has() below */
  pointer-events: none;
}
/* When cart bar is visible (not [hidden]), hide bottom nav on mobile —
   they push the same action and stacking both wastes 138px of viewport. */
body:has(#cart-bar:not([hidden])) .bottomnav { display: none; }
@media (min-width: 720px) {
  .cartbar { bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; right: auto; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); }
}
.cartbar__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  background: var(--green);
  color: var(--bg-card);
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 40px -16px rgba(214, 36, 110, 0.55), 0 2px 0 rgba(0,0,0,0.06);
}
.cartbar__left { display: flex; align-items: baseline; gap: 8px; }
.cartbar__count {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  background: rgba(255,255,255,0.16);
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.cartbar__label {
  font-size: 13px; letter-spacing: 0.04em; opacity: 0.9;
}
.cartbar__total {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05;
}
.cartbar__total-label { font-size: 11px; opacity: 0.7; letter-spacing: 0.12em; text-transform: uppercase; }
.cartbar__total-amount {
  font-family: var(--serif); font-size: 19px; letter-spacing: -0.01em;
}
.cartbar__cta {
  background: var(--bg-card);
  color: var(--green);
  padding: 11px 18px;
}
.cartbar__cta:hover { background: #fffdf7; color: var(--green); transform: none; box-shadow: none; }

/* ============== Bottom nav (mobile) ============== */
.bottomnav {
  position: fixed;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(42, 24, 48, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.4);
}
.bottomnav a {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #d9d2bf;
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}
.bottomnav a:hover { background: rgba(255,255,255,0.08); color: var(--bg-card); }
.bottomnav__cta {
  background: var(--burgundy);
  color: var(--bg-card) !important;
}
.bottomnav__cta:hover { background: #6a1f1f; }
@media (min-width: 720px) {
  .bottomnav { display: none; }
}

/* ============== Modal ============== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 700px) {
  .modal { align-items: center; }
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(42, 24, 48, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in .25s ease both;
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  background: var(--bg-card);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide-up .35s cubic-bezier(.2,.7,.2,1) both;
  box-shadow: 0 -10px 50px -10px rgba(0,0,0,0.3);
}
@media (min-width: 700px) {
  .modal__panel { border-radius: 22px; max-height: min(92vh, 720px); }
}
@keyframes fade-in { from {opacity: 0;} to {opacity: 1;} }
@keyframes slide-up { from {transform: translateY(28px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.modal__head h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.005em;
  flex: 1;
  text-align: center;
}
.modal__close, .modal__back {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-dim);
  transition: background .2s;
}
.modal__close:hover, .modal__back:hover { background: var(--bg-elev); color: var(--text); }
.modal__back { font-size: 22px; }

.modal__body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.modal__body--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.modal__foot {
  padding: 16px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: var(--bg);
}
.modal__foot .btn { flex: 1; }
.modal__foot .btn--block { flex: 1 1 100%; }

/* ============== Cart list ============== */
.cart-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cart-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px dashed var(--line);
}
.cart-list li:last-child { border-bottom: none; }
.cart-line__name { font-family: var(--serif); font-size: 18px; color: var(--text); line-height: 1.25; }
.cart-line__price { color: var(--text-mute); font-size: 13px; margin-top: 2px; }
.cart-line__amount { color: var(--burgundy); font-family: var(--serif); font-size: 18px; min-width: 64px; text-align: right; }

.cart-empty { text-align: center; padding: 28px; color: var(--text-mute); font-style: italic; }

.cart-summary {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 2px solid var(--text);
}
.cart-summary div {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-size: 22px;
}
.cart-summary strong { color: var(--burgundy); }

/* ============== Form ============== */
.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.field > span, .field > legend {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.field > span em, .field > legend em { color: var(--text-mute); font-style: normal; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(214, 36, 110, 0.12);
}
.field--pickup { border: none; padding: 0; margin-bottom: 18px; }
.pickup-rule {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  line-height: 1.5;
}
.pickup-rule strong { color: var(--green); }
.pickup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pickup-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pickup-cell > span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.pickup-cell input[type=date],
.pickup-cell select {
  font-family: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}
.pickup-cell select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23d6246e' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
  cursor: pointer;
}
.pickup-cell input[type=date]:focus,
.pickup-cell select:focus {
  outline: none;
  border-color: var(--green);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(214, 36, 110, 0.12);
}
.pickup-cell select:disabled {
  color: var(--text-mute);
  cursor: not-allowed;
  opacity: 0.6;
}
.slot-empty {
  font-size: 13.5px;
  color: var(--text-mute);
  font-style: italic;
  margin-top: 10px;
}
.slot {
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.slot:hover { border-color: var(--green); }
.slot.is-active {
  background: var(--green);
  color: var(--bg-card);
  border-color: var(--green);
}
.form-error {
  background: #fde9e6;
  color: #7a2c2c;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
}

/* ============== Pay step ============== */
.pay-amount {
  display: flex; flex-direction: column;
}
.pay-amount span { color: var(--text-mute); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.pay-amount strong {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--burgundy);
  line-height: 1;
  margin-top: 4px;
}
.pay-mp {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%;
  text-align: left;
}
.pay-mp__icon { width: 48px; height: 48px; flex: 0 0 48px; }
.pay-mp__icon svg { width: 100%; height: 100%; }
.pay-mp__details { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pay-mp__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.pay-mp__number { font-family: var(--serif); font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.pay-mp__comment { font-size: 12.5px; color: var(--text-dim); }
.pay-mp__comment code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-elev);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--burgundy);
}
.pay-help { font-size: 13.5px; color: var(--text-mute); max-width: 360px; }
.pay-help strong { color: var(--text-dim); }
.pay-checking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 14px;
  color: var(--text-dim);
}
.pay-checking__spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: pay-spin 0.9s linear infinite;
  flex: 0 0 18px;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }

/* ============== Done step ============== */
.done-check {
  color: #4f8c54;
  width: 72px; height: 72px;
  margin-top: 8px;
}
.done-line {
  font-family: var(--serif-text);
  font-size: 20px;
  color: var(--text-dim);
}
.done-card {
  width: 100%;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.done-card div { display: flex; justify-content: space-between; align-items: baseline; }
.done-card span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.done-card strong { font-family: var(--serif); font-size: 18px; color: var(--text); letter-spacing: -0.005em; }
.done-foot { font-style: italic; color: var(--text-mute); font-family: var(--serif-text); font-size: 17px; }

/* ============== Spis hos os (dine-in catalog) ============== */
.dine-in {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.dinein-groups {
  display: grid;
  gap: 56px;
  margin-top: 14px;
}
@media (max-width: 720px) {
  .dinein-groups { gap: 36px; }
}
.dinein-group__title {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 36px);
  letter-spacing: -0.005em;
  color: var(--green);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.dinein-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .dinein-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .dinein-grid { grid-template-columns: repeat(3, 1fr); }
}
.dinein-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-card);
}
.dinein-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 36, 110, 0.25);
  box-shadow: var(--shadow-card-hover);
}
.dinein-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
}
.dinein-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.dinein-card:hover .dinein-card__img img { transform: scale(1.04); }
.dinein-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--bg-card);
  background: rgba(214, 36, 110, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dinein-card__tag--burgundy { background: rgba(181, 23, 158, 0.92); }
.dinein-card__tag--gold { background: rgba(120, 90, 30, 0.92); }
.dinein-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.dinein-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.dinein-card__head h4 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.005em;
}
.dinein-card__price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--burgundy);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.dinein-card__desc {
  color: var(--text-dim);
  font-size: 14.5px;
  flex: 1;
}

/* ============== Motion preferences ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================
   Popsicle overrides — playful, rounded, colourful
   =========================================================== */

/* Rounded display font reads better upright than synthetically slanted */
.topnav__wordmark,
.hero__title-script,
.footer__wordmark,
.section-title em,
.hero__lead em,
.dinein-group__title,
.cart-line__name,
.done-line,
.done-foot,
.addr-note { font-style: normal; }

/* Heavier weight for the rounded display font so headings feel bold & fun */
.hero__title-script { font-weight: 600; letter-spacing: -0.02em; }
.section-title, .dinein-group__title, .footer__wordmark,
.menu-card__head h3, .dinein-card__head h4 { font-weight: 600; }

/* Pink-tinted glass nav/meta instead of cream */
.topnav { background: rgba(255, 245, 250, 0.9); }
.hero__meta { background: rgba(255, 255, 255, 0.7); }

/* Sunny multi-colour hero wordmark for a playful, ice-cream feel */
.hero__title-script {
  background: linear-gradient(95deg, #ff3d8b 0%, #b5179e 45%, #ff9f1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

/* Bouncier cards */
.menu-card, .dinein-card { border-radius: var(--radius-lg); }

/* Each Spis-hos-os group gets its own accent colour */
.dinein-group[data-cat="popsicle"] .dinein-group__title { color: #ff3d8b; border-color: #ffd0e4; }
.dinein-group[data-cat="kagen"]    .dinein-group__title { color: #b5179e; border-color: #f0cdec; }
.dinein-group[data-cat="juicen"]   .dinein-group__title { color: #18a07a; border-color: #c5ecdf; }

/* Friendly "coming soon" note for the order section */
.menu-empty {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--text-dim);
  font-size: 16px;
  box-shadow: var(--shadow-card);
}
.menu-empty strong { color: var(--green); }

/* Sold-out treatment on cards */
.menu-card[data-soldout] .menu-card__img img,
.dinein-card[data-soldout] .dinein-card__img img { filter: grayscale(0.6) opacity(0.7); }
.menu-card__tag--soldout, .dinein-card__tag--soldout { background: rgba(154, 138, 163, 0.95); }
