/* Lletra de la casa: Dolly (la mateixa de les fitxes de receptes) */
@font-face { font-family: "Dolly"; src: url("https://static.wixstatic.com/ufonts/a9a405_17e641a37bd04021a07a69040a52979d/file.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Dolly"; src: url("https://static.wixstatic.com/ufonts/723b1a_720a10d0ea28463bab64f7a7b634d374/file.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Dolly"; src: url("https://static.wixstatic.com/ufonts/431e6b_1e552b8d693346ecadba81daae9494c0/file.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
/* Layout: botiga de barri a l'estil Panem — fotos a tota amplada, tipografia gran, columnes netes, encàrrec sempre a mà.
   Colors de la casa: tinta 111111, gris 808080, daurat F5A71C (espiga del logo, també als textos) i crema F4F2EB */
:root {
  --paper: #f4f2eb;
  --card: #fbfaf6;
  --ink: #111111;
  --muted: #6b6b6b;
  --crust: #f5a71c;
  --crust-ink: #f5a71c;
  --line: rgba(17, 17, 17, .14);
  --on-ink: #f4f2eb;
  --display: "Dolly", Georgia, "Times New Roman", serif;
  --body: "Dolly", Georgia, "Times New Roman", serif;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
/* Sempre clara (fons crema), també amb el mode fosc del mòbil */
:root { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; font-kerning: normal; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
a { color: inherit; }
[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 2px solid var(--crust); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--crust-ink); margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--body); letter-spacing: .02em; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.proto { font-size: 12px; color: var(--muted); font-style: italic; }

/* barra superior + capçalera */
.topbar { background: var(--crust); color: var(--ink); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding-block: 9px; font-weight: 700; }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.logo b { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: 0; color: var(--crust); }
.logo span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
nav.main { display: flex; gap: 26px; font-size: 15px; font-weight: 400; }
nav.main a { text-decoration: none; }
nav.main a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-btn { position: relative; padding: 11px 18px; }
.cart-count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { nav.main { display: none; } .logo b { font-size: 26px; } }
/* menú mòbil */
.menu-btn { display: none; align-items: center; gap: 8px; font: 700 15px/1 var(--body); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .logo span { display: none; }
  .logo b { white-space: nowrap; }
  nav.main.open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 12px 24px rgba(17, 17, 17, .08); }
  nav.main.open a { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 20px; }
  nav.main.open a:last-child { border-bottom: 0; }
}

/* hero */
.hero { padding-block: 18px 0; }
.hero-frame { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 8; max-width: 100%; background: var(--card); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,12,8,.72), rgba(18,12,8,.45) 60%, rgba(18,12,8,.15)); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 4vw, 48px); color: #f6f0e8; display: grid; gap: 14px; }
.hero-copy h1 { font-size: clamp(44px, 8.4vw, 124px); }
.hero-copy h1 em { font-style: italic; }
.hero-copy p { margin: 0; font-size: clamp(15px, 1.6vw, 18px); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { background: #f6f0e8; color: #1c1814; border-color: #f6f0e8; }
.hero-actions .btn.ghost { background: transparent; color: #f6f0e8; }
@media (max-width: 640px) { .hero-frame { aspect-ratio: 4 / 5; } }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 7px 12px; border-radius: 999px; background: rgba(246,240,232,.16); backdrop-filter: blur(6px); width: fit-content; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #8fd19b; }
.status.closed i { background: #f0a090; }

/* seccions */
section.block { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(40px, 5.6vw, 76px); }
.sec-head > p { margin: 0; max-width: 44ch; color: var(--muted); }

/* pa del dia */
.days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.day { all: unset; cursor: pointer; padding: 16px 12px 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.day:focus-visible { outline: 2px solid var(--crust); outline-offset: -2px; }
.day small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.day span { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.05; }
.day[aria-selected="true"] { border-bottom: 3px solid var(--crust); }
.day[aria-selected="true"] small { color: var(--crust-ink); }
.day .today { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--crust-ink); font-weight: 700; min-height: 14px; }
@media (max-width: 720px) { .days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.day-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; margin-top: 28px; }
.day-list li { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.day-list ul { padding: 0; margin: 0; display: contents; }
.day-list .tag { font-size: 12px; color: var(--muted); white-space: nowrap; }
.day-list .tag.only { color: var(--crust-ink); font-weight: 700; }

/* productes */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: 400 15px/1 var(--body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 24px; }
.prod { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; min-width: 0; }
.prod figure { margin: 0; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border-radius: 3px; background: var(--card); }
.prod img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.prod:hover img { transform: scale(1.04); }
.prod .cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.prod h3 { font-size: 30px; }
.prod p { margin: 0; color: var(--muted); font-size: 15px; }
.prod .add { justify-self: start; padding: 10px 16px; font-size: 13px; }
.prod .add.added { background: transparent; color: var(--ink); }
.prod .add { display: none; } /* encàrrecs aturats fins a nou avís */

/* encàrrecs: com funciona */
.how { background: var(--ink); color: var(--paper); }
.how .eyebrow, .how .sec-head > p { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps div { border-top: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); padding-top: 18px; display: grid; gap: 8px; }
.steps div::before { counter-increment: s; content: "Pas " counter(s); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .7; }
.steps h3 { font-size: 32px; }
.steps p { margin: 0; opacity: .82; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* festes */
.season { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card); }
.season-now { padding: clamp(24px, 4vw, 48px); display: grid; gap: 14px; align-content: start; border-right: 1px solid var(--line); }
.season-now h3 { font-size: clamp(40px, 5vw, 64px); }
.season-now .when { margin: 0; font-weight: 700; color: var(--crust-ink); }
.season-now p:not(.eyebrow):not(.when) { margin: 0; color: var(--muted); max-width: 46ch; }
.calendar { list-style: none; margin: 0; padding: 0; }
.calendar li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 16px clamp(18px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.calendar li:last-child { border-bottom: 0; }
.calendar time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.calendar b { font-family: var(--display); font-weight: 400; font-size: 24px; display: block; line-height: 1.1; }
.calendar span { font-size: 14px; color: var(--muted); }
.calendar li.next { background: color-mix(in srgb, var(--crust) 18%, transparent); }
@media (max-width: 820px) { .season { grid-template-columns: 1fr; } .season-now { border-right: 0; border-bottom: 1px solid var(--line); } }

/* nosaltres */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.story figure { margin: 0; }
.story figure img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; border-radius: 3px; display: block; }
.story figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.story-text { display: grid; gap: 18px; min-width: 0; }
.story-text h2 { font-size: clamp(40px, 5.6vw, 76px); }
.story-text > p { margin: 0; max-width: 58ch; font-size: 17px; }
.timeline { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.timeline div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.timeline b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.timeline span { color: var(--muted); }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.values span { font-size: 13px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

/* visita */
.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--ink); padding-top: 24px; }
.visit > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.visit h3 { font-size: 30px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.is-today td { font-weight: 700; color: var(--crust-ink); }
.copyline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copyline span { font-size: 22px; font-family: var(--display); user-select: all; }
.mini { font: 400 13px/1 var(--body); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* calaix d'encàrrec */
.drawer-bg { position: fixed; inset: 0; background: rgba(10,8,6,.45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 41; background: var(--paper); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 36px; }
.drawer-body { overflow-y: auto; padding: 8px 24px 24px; display: grid; gap: 18px; align-content: start; }
.line-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.line-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; }
.line-item b { font-weight: 400; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; }
.qty button:focus-visible { outline: 2px solid var(--crust); border-radius: 50%; }
.qty output { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { font: 15px var(--body); padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empty { color: var(--muted); padding-block: 24px; }
.drawer-foot { padding: 16px 24px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot .btn { width: 100%; }
.msg { white-space: pre-wrap; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 14px; margin: 0; }
.note { font-size: 12px; color: var(--muted); margin: 0; }
/* web de diverses pàgines */
nav.main a[aria-current="page"] { color: var(--crust); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.sec-head h1, .story-text h1 { font-size: clamp(40px, 5.6vw, 76px); }
.page-top { padding-top: clamp(40px, 6vw, 72px); }
.more { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card); text-decoration: none; transition: transform .15s; }
.teaser:hover { transform: translateY(-2px); }
.teaser img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }
.teaser div { padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.teaser h2 { font-size: clamp(32px, 3.4vw, 44px); }
.teaser p { margin: 0; color: var(--muted); font-size: 15px; }
.teaser .go { margin-top: auto; font-weight: 700; color: var(--ink); }
.teaser .go::after { content: " →"; }
.teaser table { font-size: 14px; }
@media (max-width: 960px) { .teasers { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .teaser { grid-template-columns: 1fr; } .teaser img { min-height: 0; aspect-ratio: 16 / 10; } }
/* inici: el pa d'avui i la propera festa */
.today-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.today-row:has(.next-festa[hidden]) { grid-template-columns: 1fr; }
.today-box { display: grid; gap: 14px; }
.today-box h2 { font-size: clamp(40px, 5.6vw, 76px); }
.today-box .day-list { margin-top: 8px; border-top: 1px solid var(--ink); }
.today-box .more-count { color: var(--muted); font-style: italic; }
.next-festa { display: grid; gap: 12px; padding: clamp(22px, 3vw, 36px); border-radius: 4px; background: color-mix(in srgb, var(--crust) 18%, var(--card)); border: 1px solid var(--line); text-decoration: none; transition: transform .15s; }
.next-festa:hover { transform: translateY(-2px); }
.next-festa h3 { font-size: clamp(34px, 4vw, 52px); }
.next-festa .when { margin: 0; font-weight: 700; }
.next-festa p { margin: 0; color: var(--muted); }
.next-festa .go { font-weight: 700; color: var(--ink); }
.next-festa .go::after { content: " →"; }
@media (max-width: 900px) { .today-row { grid-template-columns: 1fr; } }
/* al mòbil, productes de dos en dos perquè la pàgina no sigui tan llarga */
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } .prod h3 { font-size: 22px; } .prod p { font-size: 14px; } }
.map { margin-top: 40px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--card); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }
