/* Byens Pizzaria - design system */
:root{
  --tomato:#D62E1B; --tomato-dark:#A82012;
  --oven:#1B1411; --oven-2:#2A201C;
  --kraft:#E6CFA6; --kraft-2:#F0E0C0;
  --cheese:#FFF4DC; --basil:#1E5B34; --ember:#F0902A;
  --ink:#1B1411; --muted:#5F5047; --line:rgba(27,20,17,.14);
  --font-display:'Bricolage Grotesque',system-ui,sans-serif;
  --font-body:'Figtree',system-ui,sans-serif;
  --radius-sm:8px; --radius-md:18px; --radius-pill:999px;
  --shadow:0 10px 30px -12px rgba(27,20,17,.35);
  --wrap:1200px; --header-h:72px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 12px)}
body{margin:0;font:400 1rem/1.6 var(--font-body);color:var(--ink);background:var(--cheese);-webkit-font-smoothing:antialiased}
img,svg{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.05;margin:0 0 .5em;letter-spacing:-.02em;font-weight:800}
h1{font-size:clamp(2.6rem,7vw,5.2rem)}
h2{font-size:clamp(1.9rem,4vw,3rem)}
h3{font-size:1.35rem}
p{margin:0 0 1em;max-width:62ch}
:focus-visible{outline:3px solid var(--ember);outline-offset:3px;border-radius:4px}
.wrap{width:min(var(--wrap),100% - 2rem);margin-inline:auto}
.section{padding:clamp(3rem,7vw,6rem) 0}
.section--kraft{background:var(--kraft)}
.section--oven{background:var(--oven);color:var(--cheese)}
.sr-only{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(--cheese);padding:.5rem 1rem;z-index:200}
.skip:focus{left:8px}

/* Buttons */
.btn{color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.7rem 1.4rem;border:2px solid transparent;border-radius:var(--radius-pill);font:700 1rem var(--font-body);text-decoration:none;cursor:pointer;transition:transform .15s,background .15s,color .15s,box-shadow .15s}
.btn:active{transform:translateY(1px) scale(.99)}
.btn--primary{background:var(--tomato);color:#fff;box-shadow:0 6px 0 var(--tomato-dark)}
.btn--primary:hover{background:#e63723;transform:translateY(-2px);box-shadow:0 8px 0 var(--tomato-dark)}
.btn--dark{background:var(--oven);color:var(--cheese)}
.btn--dark:hover{background:var(--oven-2)}
.btn--ghost{border-color:currentColor;background:transparent}
.btn--ghost:hover{background:rgba(255,255,255,.12)}
.btn--sm{min-height:40px;padding:.4rem 1rem;font-size:.92rem}

/* Forms */
.field{display:grid;gap:.35rem;margin-bottom:1rem}
.field label{font-weight:700;font-size:.95rem}
.input,.select,.textarea{width:100%;min-height:48px;padding:.65rem .9rem;border:2px solid var(--line);border-radius:var(--radius-sm);background:#fff;font:inherit;color:inherit}
.input:focus,.select:focus,.textarea:focus{border-color:var(--tomato);outline:none;box-shadow:0 0 0 4px rgba(214,46,27,.15)}
.field-error{color:var(--tomato-dark);font-size:.9rem;font-weight:600}

/* Cards & chips */
.card{background:#fff;border-radius:var(--radius-md);padding:1.25rem;box-shadow:var(--shadow)}
.chip{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .75rem;border-radius:var(--radius-pill);background:var(--kraft);font-weight:700;font-size:.85rem}
.chip--hot{background:var(--tomato);color:#fff}
.chip--veg{background:var(--basil);color:#fff}
.grid{display:grid;gap:1.25rem}
.grid--3{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:var(--oven);color:var(--cheese);transition:box-shadow .2s}
.site-header.is-scrolled{box-shadow:0 8px 24px -10px rgba(0,0,0,.6)}
.site-header__bar{display:flex;align-items:center;gap:1.5rem;min-height:var(--header-h)}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;font:800 1.5rem var(--font-display);letter-spacing:-.03em}
.brand__mark{width:38px;height:38px;border-radius:50%;background:var(--tomato);display:grid;place-items:center;font-size:1.2rem;transition:transform .5s}
.brand:hover .brand__mark{transform:rotate(180deg)}
.nav{display:flex;gap:.25rem;margin-left:auto}
.nav a{padding:.5rem .9rem;border-radius:var(--radius-pill);text-decoration:none;font-weight:600;transition:background .15s}
.nav a:hover,.nav a[aria-current="page"]{background:rgba(255,244,220,.14)}
.header-actions{display:flex;align-items:center;gap:.6rem}
.cart-btn{position:relative}
.cart-count{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--cheese);color:var(--oven);font-size:.8rem;font-weight:800;display:grid;place-items:center}
.cart-count.bump{animation:bump .2s}
@keyframes bump{40%{transform:scale(1.5)}}
.menu-toggle{display:none;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,244,220,.12);color:inherit;cursor:pointer}
.menu-toggle span,.menu-toggle span::before,.menu-toggle span::after{display:block;width:20px;height:2px;background:currentColor;margin:auto;position:relative;transition:transform .2s,background .2s}
.menu-toggle span::before,.menu-toggle span::after{content:"";position:absolute;left:0}
.menu-toggle span::before{top:-6px}.menu-toggle span::after{top:6px}
.menu-toggle[aria-expanded="true"] span{background:transparent}
.menu-toggle[aria-expanded="true"] span::before{transform:translateY(6px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span::after{transform:translateY(-6px) rotate(-45deg)}
@media (max-width:860px){
  .menu-toggle{display:block;margin-left:auto}
  .header-actions{margin-left:0}
  .nav{position:absolute;inset:var(--header-h) 0 auto 0;flex-direction:column;background:var(--oven);padding:.5rem 1rem 1.25rem;margin:0;border-top:1px solid rgba(255,244,220,.12);display:none}
  .nav.is-open{display:flex}
  .nav a{padding:.9rem 1rem;font-size:1.1rem}
  .header-actions .btn--login{display:none}
}

/* Flash */
.flash{padding:.8rem 1rem;font-weight:600}
.flash--success{background:var(--basil);color:#fff}
.flash--error{background:var(--tomato);color:#fff}
.flash .wrap{display:flex;justify-content:space-between;gap:1rem;align-items:center}
.flash button{background:none;border:0;color:inherit;font-size:1.4rem;cursor:pointer;min-width:44px;min-height:44px}

/* Footer shell */
.site-footer{background:var(--oven);color:var(--cheese);padding:3rem 0 1.5rem}
.site-footer__grid{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.site-footer h4,.site-footer .footer-title{font-size:1.1rem}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.site-footer a{text-decoration:none;opacity:.85}
.site-footer a:hover{opacity:1;text-decoration:underline}
.site-footer__grid{grid-template-columns:1.4fr repeat(4,1fr)}
.site-footer__bottom{margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid rgba(255,244,220,.15);font-size:.9rem;display:flex;flex-wrap:wrap;gap:.5rem 2rem;justify-content:space-between}
.site-footer__bottom,.site-footer__bottom a{opacity:.8}
.footer-social{display:flex;gap:1rem;flex-wrap:wrap;font-weight:600}
.footer-hours{border-collapse:collapse;font-size:.92rem}
.footer-hours th,.footer-hours td{padding:.15rem 0;text-align:left;font-weight:400}
.footer-hours td{padding-left:1rem}
.footer-hours .is-today{font-weight:800;color:var(--ember)}
.pay{display:flex;gap:.5rem}
.pay span{padding:.2rem .7rem;border:1px solid rgba(255,244,220,.4);border-radius:var(--radius-sm);font-size:.85rem;font-weight:700}
@media (max-width:1000px){.site-footer__grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.site-footer__grid{grid-template-columns:1fr}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Account links in the header */
.logout-form{margin:0}
.nav__auth{display:none}
@media (max-width:860px){
  .nav__auth{display:flex;flex-direction:column;border-top:1px solid rgba(255,244,220,.12);margin-top:.5rem;padding-top:.5rem}
  .nav__auth a{padding:.9rem 1rem;font-size:1.1rem}
  .header-actions .logout-form{display:none}
}

.brand__logo{height:38px;width:auto;max-width:140px;object-fit:contain;border-radius:6px}

/* Light only: the storefront has no dark theme, so tell the browser not to invent one (it would hide text). */
:root{color-scheme:only light}

/* Language switch */
.lang{display:inline-flex;border:1px solid rgba(255,244,220,.35);border-radius:999px;overflow:hidden}
.lang a{display:grid;place-items:center;min-width:40px;min-height:36px;padding:0 .5rem;font-size:.82rem;font-weight:800;letter-spacing:.04em;text-decoration:none;color:var(--cheese)}
.lang a:hover{background:rgba(255,244,220,.14)}
.lang a[aria-current="true"]{background:var(--cheese);color:var(--oven)}
@media (max-width:480px){.lang a{min-width:34px}}

/* Cookie notice: small, at the bottom, never blocks the page */
.cookie{position:fixed;left:1rem;bottom:1rem;z-index:120;max-width:440px;padding:1rem 1.1rem;background:var(--oven);color:var(--cheese);border-radius:var(--radius-md);box-shadow:0 18px 50px -12px rgba(0,0,0,.6)}
.cookie[hidden]{display:none}
.cookie p{margin:0 0 .75rem;font-size:.95rem}
.cookie__actions{display:flex;align-items:center;justify-content:flex-end;gap:1rem}
.cookie__actions a{color:var(--cheese);font-weight:700}
@media (max-width:700px){
  .cookie{left:.75rem;right:.75rem;bottom:.75rem;max-width:none}
  body:has(.cartbar:not([hidden])) .cookie{bottom:84px}
}

/* While the cookie notice is showing on a phone, leave room under the page so it never covers the last buttons */
@media (max-width:700px){body:has(.cookie:not([hidden])){padding-bottom:210px}}

/* Language switch: in the header on wider screens, in the opened menu on a small phone */
.nav__lang{display:none}
@media (max-width:560px){
  .header-actions .lang{display:none}
  .nav__lang{display:inline-flex;align-self:flex-start;margin:.75rem 1rem .25rem}
}

/* Easier to hit with a thumb: links that are only one line of text get some height around them */
.site-footer li a,.site-footer p a{display:inline-flex;align-items:center;min-height:36px}
.site-footer ul{gap:0}
.hero__facts a,.visit a[href^="tel:"],.visit a[href^="mailto:"]{display:inline-flex;align-items:center;min-height:36px}
.dish__body h3 a{display:inline-block;padding:.35rem 0}
.cart-line__info a{display:inline-block;padding:.3rem 0}
.co-summary p a{display:inline-flex;align-items:center;min-height:36px}
