/* ============================================================
   BARFI · Handcrafted Happiness
   Warm burgundy palette · hand-drawn sketch vibe · soft motion
   ============================================================ */

:root {
  /* Brand · pulled from the logo */
  --burgundy:        #6E1622;
  --burgundy-bright: #8E1C2E;
  --burgundy-deep:   #4C0E17;

  /* Warm sweet-shop accents */
  --gold:        #C6973F;
  --gold-soft:   #E4C57E;
  --pistachio:   #7E9A4E;
  --rose:        #D98AA0;

  /* Cream paper backgrounds */
  --cream:    #FBF4E9;
  --cream-2:  #F5EAD6;
  --cream-3:  #EFE0C6;

  /* Ink */
  --ink:       #321319;
  --ink-soft:  rgba(50, 19, 25, .68);
  --ink-faint: rgba(50, 19, 25, .42);

  /* Type */
  --serif: "Bodoni Moda", Georgia, serif;
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;
  --hand:  "Caveat", "Comic Sans MS", cursive;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --shadow-soft: 0 18px 50px -24px rgba(76, 14, 23, .45);
  --shadow-lift: 0 28px 70px -28px rgba(76, 14, 23, .55);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Warm paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(92%, var(--maxw)); margin-inline: auto; }
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; z-index: 2; scroll-margin-top: 104px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; margin: 0; }
.eyebrow {
  font-family: var(--hand);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--burgundy-bright);
  transform: rotate(-3deg);
  display: inline-block;
}
.h-section { font-size: clamp(2.3rem, 5.4vw, 4rem); color: var(--burgundy); letter-spacing: -.5px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); line-height: 1.7; max-width: 60ch; }

/* ---------- Hand-drawn sketch border ---------- */
/* Uses the #wobble SVG filter (defined inline in the HTML). */
.sketch { position: relative; }
.sketch::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2.4px solid var(--ink);
  border-radius: 16px 14px 18px 13px / 14px 18px 13px 16px;
  filter: url(#wobble);
  pointer-events: none;
  opacity: .9;
  transition: transform .5s var(--ease), border-color .3s;
}
.sketch.sketch--gold::before  { border-color: var(--gold); }
.sketch.sketch--burgundy::before { border-color: var(--burgundy); }
.sketch:hover::before { transform: rotate(-.6deg) scale(1.012); }

/* A second offset stroke = doodled double outline */
.sketch--double::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--gold-soft);
  border-radius: 14px 17px 12px 16px / 16px 12px 17px 13px;
  filter: url(#wobble2);
  pointer-events: none;
  opacity: .55;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--burgundy);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .2px;
  padding: .9rem 1.6rem;
  color: var(--cream);
  background: var(--bg);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 12px 24px -12px rgba(76,14,23,.7);
}
.btn:hover { transform: translateY(-3px) rotate(-.8deg); box-shadow: 0 20px 34px -14px rgba(76,14,23,.7); background: var(--burgundy-bright); }
.btn:active { transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--burgundy);
  box-shadow: none;
  border: 2.2px solid var(--burgundy);
}
.btn--ghost:hover { background: var(--burgundy); color: var(--cream); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Logo wordmark ---------- */
.logo { display: block; overflow: visible; }
.logo__word { font-family: var(--serif); font-weight: 600; fill: var(--burgundy); }
.logo__sub  { font-family: var(--sans); font-weight: 600; fill: var(--burgundy); }
.logo__rule { stroke: var(--burgundy); stroke-width: 1.4; }

/* ---------- Nav ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.4rem);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.topbar.is-stuck { box-shadow: 0 12px 30px -22px rgba(76,14,23,.7); }
.topbar.is-stuck .nav {
  background: rgba(251, 244, 233, .92);
  backdrop-filter: blur(12px);
  padding-top: .55rem;
  padding-bottom: .55rem;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; display: block; transition: height .4s; }
.topbar.is-stuck .nav__logo img { height: 30px; }
.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__link {
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  position: relative;
  padding: .2rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 7px;
  background: var(--gold);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
  opacity: .55;
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { padding: .65rem 1.2rem; font-size: .92rem; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav__burger span { display: block; width: 26px; height: 2.6px; background: var(--burgundy); border-radius: 3px; margin: 5px 0; transition: .3s; }

/* ---------- Ticker (closing time + rolling news) ---------- */
.ticker { display: flex; align-items: stretch; height: 38px; background: var(--burgundy-deep); color: var(--cream-2); font-size: .86rem; overflow: hidden; }
.ticker__status { display: flex; align-items: center; gap: .55rem; flex: none; padding: 0 1.15rem; background: var(--gold); color: var(--burgundy-deep); font-weight: 800; white-space: nowrap; }
.ticker__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--burgundy-deep); flex: none; }
.ticker__status.open .ticker__dot { background: #2f7d36; box-shadow: 0 0 0 3px rgba(47,125,54,.3); }
.ticker__status.closed .ticker__dot { background: #b2303f; }
.ticker__track { flex: 1; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__move { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: tickermove 30s linear infinite; }
.ticker__move span { padding: 0 1.1rem; font-weight: 600; }
.ticker__move .ticker__sep { color: var(--gold-soft); padding: 0; opacity: .8; }
.ticker:hover .ticker__move { animation-play-state: paused; }
@keyframes tickermove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__move { animation: none; } }
@media (max-width: 560px) { .ticker__status { padding: 0 .8rem; font-size: .8rem; } .ticker { font-size: .8rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 8.5rem 0 4rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  z-index: 0;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  top: -12%; right: -10%;
  background: radial-gradient(circle, rgba(198,151,63,.34), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__logo { width: min(78vw, 360px); height: auto; margin-bottom: 1.6rem; }
.hero__tagline {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.65;
  margin: 0 0 2rem;
}
.hero__tagline b { color: var(--burgundy); font-weight: 700; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* hero photo stage with 3D tilt */
.hero__stage { position: relative; perspective: 1100px; min-height: 420px; display: grid; place-items: center; }
.hero__float { animation: floaty 6s var(--ease) infinite; transform-style: preserve-3d; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.photo-card {
  position: relative;
  width: min(78vw, 420px);
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: rotate(-3deg);
  transition: transform .25s var(--ease);
  will-change: transform;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card .sticker {
  position: absolute;
  right: -14px; bottom: 22px;
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
  color: var(--cream);
  background: var(--burgundy);
  padding: .6rem .9rem;
  border-radius: 50% 48% 52% 50%;
  transform: rotate(8deg);
  box-shadow: var(--shadow-soft);
}
.bubble {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cream);
  box-shadow: var(--shadow-soft);
  will-change: transform;
}
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.bubble--1 { width: 128px; height: 128px; left: -6%; bottom: 6%; }
.bubble--2 { width: 104px; height: 104px; right: -4%; top: 2%; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--burgundy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.hero__scroll svg { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* floating sketch doodles */
.doodle { position: absolute; z-index: 2; pointer-events: none; opacity: .8; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; } /* fail-safe if JS is off */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Section heading block ---------- */
.head { text-align: center; margin-bottom: 3rem; display: grid; gap: .6rem; justify-items: center; }
.head .lead { text-align: center; }

/* ---------- About / story ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__copy p { color: var(--ink-soft); line-height: 1.75; font-size: 1.06rem; }
.stats { display: flex; gap: 2.2rem; margin-top: 2rem; flex-wrap: wrap; }
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--burgundy); line-height: 1; }
.stat__label { font-size: .92rem; color: var(--ink-soft); margin-top: .35rem; }
.about__art { position: relative; aspect-ratio: 4/5; }
.about__art svg { width: 100%; height: 100%; }
.framed { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lift); }
.framed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__tag {
  position: absolute;
  right: -10px; top: -22px;
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--burgundy);
  background: var(--cream);
  padding: .2rem .7rem;
  transform: rotate(6deg);
  z-index: 4;
}

/* ---------- Menu ---------- */
.menu { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.menu__filters { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.6rem; }
.chip {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  border: 2.2px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
  transition: .25s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip.is-active { background: var(--burgundy); color: var(--cream); }

.menu__cat { margin-bottom: 3.4rem; }
.menu__cat-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.menu__cat-name { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--burgundy); }
.menu__cat-note { font-family: var(--hand); font-weight: 700; font-size: 1.3rem; color: #4c6624; }

.menu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 1.6rem 1.4rem; }

.dish { position: relative; transition: transform .35s var(--ease); z-index: 2; }
.dish:hover { transform: translateY(-5px) rotate(-.4deg); }
.dish__card {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .9rem; row-gap: .7rem;
}
.dish__icon { grid-column: 1; grid-row: 1; width: 52px; height: 52px; }
.dish__icon--photo { border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-soft); }
.dish__icon--photo img { width: 100%; height: 100%; object-fit: cover; }
.dish__body { grid-column: 2; grid-row: 1; min-width: 0; }
.dish__name { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; color: var(--ink); line-height: 1.12; }
.dish__meta { font-size: .82rem; color: var(--ink-faint); margin-top: .15rem; }
.dish__price { grid-column: 3; grid-row: 1; justify-self: end; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--burgundy); white-space: nowrap; text-align: right; }
.dish__price small { font-size: .68rem; font-weight: 600; color: var(--ink-faint); font-family: var(--sans); }
.dish__actions { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }

.dish__infobtn { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; font-family: var(--sans); font-weight: 700; font-size: .85rem; color: var(--ink-soft); background: none; border: 1.6px solid rgba(110,22,34,.22); border-radius: 999px; padding: .42rem .85rem; cursor: pointer; transition: border-color .2s, color .2s; }
.dish__infobtn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.dish__add { display: inline-flex; align-items: center; gap: .42rem; white-space: nowrap; font-family: var(--sans); font-weight: 700; font-size: .92rem; color: var(--cream); background: var(--burgundy); border: none; border-radius: 999px; padding: .5rem 1.05rem; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(76,14,23,.85); transition: transform .2s var(--ease), background .2s; }
.dish__add:hover { background: var(--burgundy-bright); transform: translateY(-2px); }
.dish__add:active { transform: translateY(0); }
.dish__sold { font-weight: 700; font-size: .85rem; color: var(--ink-faint); }

.dish.is-soldout .dish__card { filter: grayscale(.6); opacity: .78; }
.dish.is-soldout .dish__price { color: var(--ink-faint); }

/* slide-up "Innhold" panel */
.dish__info {
  position: absolute; inset: 0; z-index: 4;
  background: var(--cream-2);
  padding: 1rem 1.2rem;
  display: flex; flex-direction: column; gap: .45rem;
  transform: translateY(101%);
  transition: transform .42s var(--ease);
  overflow: auto;
}
.dish__card.show-info .dish__info { transform: none; }
.dish__info h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--burgundy); margin: 0; }
.dish__info p { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.dish__infoclose { position: absolute; top: .55rem; right: .6rem; width: 28px; height: 28px; border: none; background: rgba(110,22,34,.1); border-radius: 50%; cursor: pointer; color: var(--burgundy); font-size: .8rem; }
.dish__infoclose:hover { background: var(--burgundy); color: var(--cream); }
.dish__alg { font-size: .82rem; color: var(--ink-faint); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-top: auto; }
.dish__alg-label { font-weight: 700; }
.alg { font-weight: 700; font-size: .76rem; color: var(--burgundy); background: rgba(142,28,46,.12); border-radius: 999px; padding: .16rem .6rem; }
.badge-soldout {
  position: absolute;
  top: -12px; right: 10px;
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--cream);
  background: var(--burgundy);
  padding: .1rem .7rem;
  border-radius: 999px;
  transform: rotate(5deg);
  z-index: 5;
  box-shadow: var(--shadow-soft);
}

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.7rem; }
.treat {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: visible;
  display: grid;
  place-items: center;
  background: var(--cream-2);
  transition: transform .4s var(--ease);
}
.treat:hover { transform: translateY(-6px) rotate(1deg); }
.treat svg { width: 64%; height: 64%; }
.treat--photo { background: none; }
.treat--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.treat__name {
  position: absolute;
  bottom: -.4rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--burgundy);
  background: var(--cream);
  padding: 0 .6rem;
  white-space: nowrap;
}

/* ---------- Visit ---------- */
.visit { background: var(--burgundy); color: rgba(251,244,233,.85); position: relative; overflow: hidden; }
.visit .h-section { color: var(--cream); }
.visit .eyebrow { color: var(--gold-soft); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

.visit__sub { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.1rem); color: var(--gold-soft); margin-bottom: 1rem; }

.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; align-items: baseline; gap: .6rem; padding: .5rem 0; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.hours__day { white-space: nowrap; }
.hours__now { font-family: var(--hand); font-size: 1.3rem; color: var(--gold-soft); transform: rotate(-4deg); white-space: nowrap; }
.hours__fill { flex: 1; border-bottom: 2px dotted rgba(228,197,126,.4); transform: translateY(-.3em); }
.hours__time { white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .4px; color: var(--cream); }
.hours .closed { color: var(--rose); }
.hours li.is-today .hours__time:not(.closed) { color: var(--gold-soft); font-weight: 800; }

.visit__rule { height: 12px; margin: 1.8rem 0; max-width: 320px; background-repeat: repeat-x; background-position: left center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12'%3E%3Cpath d='M0 6 Q10 0 20 6 T40 6' stroke='%23E4C57E' stroke-width='2' fill='none' stroke-opacity='0.5'/%3E%3C/svg%3E"); }

.visit__addr { font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.35; color: var(--cream); margin: 0 0 .8rem; }
.visit__park { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-soft); font-weight: 600; margin: 0 0 1.5rem; }
.visit__park svg { width: 19px; height: 19px; flex: none; }
.visit__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.visit__btn { display: inline-flex; align-items: center; gap: .55rem; }
.visit__btn svg { width: 19px; height: 19px; }
.visit .btn:not(.btn--ghost) { background: var(--gold); color: var(--burgundy-deep); box-shadow: 0 12px 24px -14px rgba(0,0,0,.6); }
.visit .btn:not(.btn--ghost):hover { background: var(--gold-soft); }
.visit .btn--ghost { color: var(--cream); border-color: rgba(228,197,126,.55); }
.visit .btn--ghost:hover { background: var(--gold-soft); color: var(--burgundy-deep); border-color: var(--gold-soft); }

.visit__map-wrap { position: relative; }
.visit__here { position: absolute; top: -22px; right: 6%; z-index: 4; font-family: var(--hand); font-size: 1.9rem; color: var(--gold-soft); transform: rotate(-7deg); }
.visit__frame { background: var(--cream); padding: 12px 12px 18px; border-radius: 6px; transform: rotate(-1.8deg); box-shadow: var(--shadow-lift); transition: transform .5s var(--ease); }
.visit__frame:hover { transform: rotate(0deg) scale(1.01); }
.visit__frame iframe { display: block; width: 100%; height: 350px; border: 0; border-radius: 3px; }
.visit__pin { position: absolute; left: 12%; bottom: -16px; width: 42px; z-index: 4; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); animation: pinbob 2.4s var(--ease) infinite; }
@keyframes pinbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Footer ---------- */
.footer { background: var(--burgundy-deep); color: rgba(251,244,233,.7); padding: 3.5rem 0 2rem; text-align: center; }
.footer__logo { width: 190px; height: auto; margin: 0 auto 1.5rem; filter: brightness(0) invert(1); opacity: .92; }
.footer__links { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin: 1.4rem 0; }
.footer__links a { color: var(--cream-2); font-weight: 600; }
.footer__legal { display: flex; gap: 1.3rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.footer__legal a { color: rgba(251,244,233,.55); font-size: .85rem; }
.footer__legal a:hover { color: var(--gold-soft); }
.footer__credit { font-size: .85rem; margin-top: 1.4rem; color: rgba(251,244,233,.45); }
.footer__credit a { color: var(--gold-soft); }

/* ---------- Box-builder: compact sweet grid (shared by /boks concepts) ---------- */
.sweetgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: .55rem; }
@media (min-width: 700px) { .sweetgrid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: .7rem; } }
.sweet { display: grid; gap: .35rem; padding: .6rem .45rem; background: var(--cream); border-radius: 14px; box-shadow: var(--shadow-soft); text-align: center; align-content: start; }
.sweet__sw { width: 12px; height: 12px; border-radius: 4px; margin: 0 auto; }
.sweet__thumb { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; margin: 0 auto; display: grid; place-items: center; background: var(--cream-2); }
.sweet__thumb img, .sweet__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.sweet__name { font-family: var(--serif); font-weight: 600; font-size: .92rem; line-height: 1.08; color: var(--ink); }
.sweet__st { display: flex; align-items: center; justify-content: center; gap: .15rem; }
.sweet__st button { width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--cream-2); color: var(--burgundy); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.sweet__st button:hover:not(:disabled) { background: var(--burgundy); color: var(--cream); }
.sweet__st button:disabled { opacity: .3; cursor: not-allowed; }
.sweet__st .q { min-width: 40px; text-align: center; font-weight: 800; color: var(--burgundy); font-size: .9rem; }

/* ---------- Cart / bestilling ---------- */
.cartfab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--burgundy);
  color: var(--cream);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lift);
  transition: transform .25s var(--ease), background .25s;
}
.cartfab[hidden] { display: none; }
.cartfab:hover { transform: translateY(-3px); background: var(--burgundy-bright); }
.cartfab__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--burgundy-deep);
  font-family: var(--sans); font-weight: 800; font-size: .82rem;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
}
.cartfab.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 35% { transform: scale(1.16); } }

.cart {
  position: fixed; inset: 0; z-index: 60;
  display: flex; justify-content: flex-end;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility .35s;
}
.cart.is-open { visibility: visible; opacity: 1; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(50,19,25,.45); backdrop-filter: blur(2px); }
.cart__panel {
  position: relative;
  width: min(440px, 94vw);
  height: 100%;
  background: var(--cream);
  box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1.5px dashed rgba(110,22,34,.2); }
.cart__head h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--burgundy); }
.cart__x { width: 40px; height: 40px; border: none; background: none; font-size: 1.1rem; color: var(--ink-soft); cursor: pointer; border-radius: 50%; }
.cart__x:hover { background: rgba(110,22,34,.08); color: var(--burgundy); }
.cart__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem 2rem; }

.cart__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.citem { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .5rem 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(110,22,34,.1); }
.citem__info { display: flex; flex-direction: column; }
.citem__name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.citem__unit { font-size: .82rem; color: var(--ink-faint); }
.citem__total { font-family: var(--serif); font-weight: 700; color: var(--burgundy); white-space: nowrap; }
.citem__rm { grid-column: 3; grid-row: 1; border: none; background: none; color: var(--ink-faint); cursor: pointer; font-size: .9rem; padding: .2rem; align-self: start; }
.citem__rm:hover { color: var(--burgundy-bright); }
.stepper { grid-column: 1 / 2; grid-row: 2; display: inline-flex; align-items: center; gap: .2rem; background: var(--cream-2); border-radius: 999px; padding: 3px; width: fit-content; }
.stepper button { width: 36px; height: 36px; border: none; background: var(--cream); border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--burgundy); box-shadow: 0 2px 6px -3px rgba(76,14,23,.5); }
.stepper button:hover { background: var(--burgundy); color: var(--cream); }
.stepper__val { min-width: 60px; text-align: center; font-weight: 700; font-size: .95rem; }

.cart__sum { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--burgundy); padding: 1rem 0 .4rem; }
.cart__hint { font-size: .85rem; color: var(--ink-faint); line-height: 1.5; margin: .3rem 0 1.2rem; }
.cart__cta { width: 100%; justify-content: center; }
.cart__empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.cart__empty p { margin: .4rem 0; }
.cart__back { background: none; border: none; color: var(--burgundy); font-weight: 700; cursor: pointer; padding: 0 0 1rem; font-size: .95rem; }

.oform { display: flex; flex-direction: column; gap: 1rem; }
.oform label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .92rem; color: var(--ink); }
.oform .opt { font-weight: 500; color: var(--ink-faint); }
.oform input, .oform textarea { font-family: var(--sans); font-size: 16px; padding: .8rem .9rem; border-radius: 12px; border: 1.6px solid rgba(110,22,34,.25); background: var(--cream-2); color: var(--ink); resize: vertical; }
.oform input:focus, .oform textarea:focus { outline: none; border-color: var(--burgundy); }
.oform__sum { background: var(--cream-2); border-radius: 14px; padding: 1rem 1.1rem; font-size: .95rem; display: flex; flex-direction: column; gap: .4rem; }
.oform__sum > div { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); }
.oform__total { border-top: 1px solid rgba(110,22,34,.18); padding-top: .5rem; margin-top: .3rem; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--burgundy) !important; }
.oform__status { min-height: 1.2em; font-weight: 600; font-size: .9rem; }
.oform__status.err { color: var(--burgundy-bright); }

.cart__done { text-align: center; padding: 2rem 1rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.cart__check { width: 64px; height: 64px; border-radius: 50%; background: var(--pistachio); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.cart__done h4 { font-family: var(--serif); font-size: 1.7rem; color: var(--burgundy); }
.cart__done p { color: var(--ink-soft); line-height: 1.6; max-width: 34ch; }
.cart__done .btn { width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about__grid, .visit__grid { grid-template-columns: 1fr; }
  .about__art { max-width: 420px; margin-inline: auto; }
  .hero { padding-top: 7rem; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__stage { order: 1; min-height: 360px; margin-bottom: 1rem; }
  .hero__logo { margin-inline: auto; }
  .hero__tagline { margin-inline: auto; }
  .hero__cta { justify-content: center; }

  /* cart becomes a bottom sheet on phones */
  .cart { align-items: flex-end; justify-content: center; }
  .cart__panel { width: 100%; height: auto; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .cart.is-open .cart__panel { transform: none; }
  .stepper button { width: 40px; height: 40px; }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--cream);
    box-shadow: var(--shadow-lift);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    padding: 2rem;
  }
  .nav__links.is-open { transform: none; }
  .nav__burger { display: block; z-index: 60; }
}
