/* ===========================================================
   Gustamo — home-style food storefront
   =========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fustat:wght@400;500;600;700;800&family=Gluten:wght@600;700&display=swap');

:root{
  --cream:#F8F4EC;
  --white:#FFFFFF;
  --ink:#231E19;
  --muted:#594F45;
  --muted-2:#766B5F;
  --muted-3:#94887A;
  --olive:#556B2F;
  --olive-dark:#455A26;
  --yellow:#FCD34D;
  --yellow-dark:#F5C518;
  --border:#E7DDD0;
  --size-active:#D1C5B6;
  --shadow-sm:0 1px 2px rgba(35,30,25,.05);
  --shadow-md:0 12px 30px rgba(35,30,25,.10);
  --shadow-lg:0 24px 60px rgba(35,30,25,.22);
  --r-card:24px;
  --r-lg:32px;
  --maxw:1360px;
  --pad:clamp(16px,5vw,96px);
  --header-h:72px;
  --header-bg:rgba(248,244,236,.85);
  --page-bg:#F8F4EC;
  --hero-grad:
    linear-gradient(90deg,rgba(248,244,236,.99) 0%,rgba(248,244,236,.95) 30%,rgba(248,244,236,.66) 55%,rgba(248,244,236,.2) 80%,rgba(248,244,236,0) 100%),
    linear-gradient(0deg,rgba(248,244,236,.45) 0%,rgba(248,244,236,0) 42%);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"]{
  --cream:#211D18;
  --white:#2B261F;
  --ink:#F4EEE3;
  --muted:#C6BCAC;
  --muted-2:#A99E8C;
  --muted-3:#8C8172;
  --border:#3C352C;
  --size-active:#4C4335;
  --page-bg:#181510;
  --header-bg:rgba(24,21,16,.85);
  --hero-grad:
    linear-gradient(90deg,rgba(0,0,0,.98) 0%,rgba(0,0,0,.94) 32%,rgba(0,0,0,.72) 58%,rgba(0,0,0,.38) 82%,rgba(0,0,0,0) 100%),
    linear-gradient(0deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,0) 45%);
  --shadow-sm:0 1px 2px rgba(0,0,0,.3);
  --shadow-md:0 12px 30px rgba(0,0,0,.45);
  --shadow-lg:0 24px 60px rgba(0,0,0,.6);
}
[data-theme="dark"] body{background:var(--page-bg)}
[data-theme="dark"] .cart-item__img,[data-theme="dark"] .modal__media{background:#1E1A15}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Fustat',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--cream);
  color:var(--ink);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
h1,h2,h3,p{margin:0}
ul{margin:0;padding:0;list-style:none}
.icon{width:20px;height:20px;flex:0 0 auto;stroke-width:1.75}
.container{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  height:48px;padding:0 24px;border-radius:999px;
  font-size:16px;font-weight:500;line-height:1;white-space:nowrap;
  transition:transform .12s ease,background .18s ease,box-shadow .18s ease,border-color .18s;
}
.btn:active{transform:scale(.97)}
.btn--sm{height:40px;padding:0 16px;font-size:15px}
.btn--icon{width:44px;height:44px;padding:0}
.btn--block{width:100%}
.btn--primary{background:var(--olive);color:#fff}
.btn--primary:hover{background:var(--olive-dark);box-shadow:0 8px 20px rgba(85,107,47,.28)}
.btn--primary .icon{stroke:#fff}
.btn--ghost{background:var(--white);color:var(--muted-2);border:1px solid var(--border)}
.btn--ghost:hover{border-color:var(--muted-3);background:var(--white)}
.btn--ghost .icon{stroke:var(--muted-2)}
.btn--yellow{background:var(--yellow);color:#231E19}
.btn--yellow:hover{background:var(--yellow-dark)}
.btn--yellow .icon{stroke:#231E19}
.btn--glass{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.4);backdrop-filter:blur(4px)}
.btn--glass:hover{background:rgba(255,255,255,.24)}
.btn--glass .icon{stroke:#fff}

.badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:4px 12px;border-radius:999px;background:var(--yellow);color:#231E19;
  font-size:13px;font-weight:500;line-height:18px;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:40;
  background:var(--header-bg);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid transparent;
}
.site-header.scrolled{border-bottom-color:var(--border);box-shadow:var(--shadow-sm)}
.header-inner{
  height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:20px;color:var(--ink)}
.brand__mark{
  width:32px;height:32px;border-radius:50%;background:var(--olive);
  display:grid;place-items:center;color:#D5FF8C;font-family:'Gluten',cursive;font-weight:700;font-size:19px;
  box-shadow:inset 0 0 0 3px rgba(184,214,132,.35);
}
.header-left{display:flex;align-items:center;gap:20px}
.lang-wrap{position:relative}
.lang{display:inline-flex;align-items:center;gap:2px;font-size:15px;color:var(--muted-2);padding:6px 10px;border-radius:999px;border:1px solid transparent;transition:border-color .15s,background .15s}
.lang:hover{border-color:var(--border);background:var(--white)}
.lang .icon{width:16px;height:16px;stroke:var(--muted-2)}
.lang-menu{
  position:absolute;top:calc(100% + 8px);left:0;min-width:140px;z-index:50;
  background:var(--white);border:1px solid var(--border);border-radius:14px;padding:6px;
  box-shadow:var(--shadow-md);display:none;flex-direction:column;gap:2px;
}
.lang-menu.open{display:flex}
.lang-menu button{
  display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:9px 12px;border-radius:9px;
  font-size:15px;color:var(--ink);transition:background .12s;
}
.lang-menu button:hover{background:var(--cream)}
.lang-menu button b{width:22px;color:var(--muted-2);font-weight:600;font-size:12px}
.nav{display:flex;align-items:center;gap:24px}
.nav__link{font-size:16px;color:var(--ink);padding:8px 4px;border-radius:8px;transition:color .15s}
.nav__link:hover{color:var(--olive)}
.nav__link.active{color:var(--olive);font-weight:600}
.cart-btn{
  position:relative;display:inline-flex;align-items:center;gap:6px;
  height:40px;padding:8px 16px;border-radius:999px;background:var(--yellow);color:#231E19;
  font-size:16px;font-weight:500;transition:background .18s,transform .12s;
}
.cart-btn:hover{background:var(--yellow-dark)}
.cart-btn:active{transform:scale(.97)}
.cart-btn .icon{stroke:#231E19}
.cart-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:rgba(35,30,25,.14);color:#231E19;font-size:12px;font-weight:700;line-height:1}
.cart-count:empty{display:none}
.mode-toggle{width:36px;height:36px;border-radius:999px;display:grid;place-items:center}
.mode-toggle .icon{stroke:var(--muted-2)}
.mode-toggle:hover{background:rgba(0,0,0,.05)}

/* ---------- Hero (full-bleed image slider + overlay text) ---------- */
.hero{position:relative;min-height:clamp(460px,58vh,560px);display:flex;align-items:center;overflow:hidden;background:var(--page-bg)}
.hero .slider{position:absolute;inset:0;z-index:0}
.slide{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .9s ease;
}
.slide.active{opacity:1}
.hero__overlay{position:absolute;inset:0;z-index:1;background:var(--hero-grad)}
.hero__content{position:relative;z-index:2;width:100%;padding:32px 0}
.hero-text{display:flex;flex-direction:column;gap:20px;align-items:flex-start;max-width:560px}
.hero h1{font-size:clamp(38px,6vw,64px);line-height:1.06;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.hero p{font-size:clamp(16px,2vw,18px);line-height:1.55;color:var(--muted);max-width:44ch}
.hero-actions{display:flex;gap:8px;flex-wrap:wrap}
.slider__dots{position:absolute;left:0;right:0;bottom:16px;z-index:3;display:flex;gap:8px;justify-content:center}
.slider__dot{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.5);transition:width .25s,background .25s;cursor:pointer}
.slider__dot.active{width:24px;background:#fff}

/* ---------- Generic section ---------- */
.section{padding:clamp(40px,6vw,64px) 0}
.section--alt{background:var(--white)}
.section__title{font-size:clamp(28px,4vw,40px);font-weight:800;text-align:center;letter-spacing:-.02em}
.section__sub{text-align:center;color:var(--muted);font-size:18px;margin-top:8px}
.section__head{display:flex;flex-direction:column;gap:8px;margin-bottom:40px}

/* ---------- Problem cards ---------- */
.problem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.problem-card{
  background:var(--white);border:1px solid var(--border);border-radius:var(--r-card);
  padding:32px;display:flex;flex-direction:column;gap:16px;align-items:center;text-align:center;
}
.problem-card__img{width:150px;height:150px;object-fit:contain;margin:0 auto}
.problem-card h3{font-size:22px;font-weight:800}
.problem-card p{color:var(--muted);font-size:16px}

/* ---------- Solution / "How Gustamo works" timeline ---------- */
.works{background:var(--cream);border-radius:var(--r-lg);padding:8px}
.works__inner{
  background:var(--white);border:1px solid var(--border);border-radius:var(--r-card);
  padding:clamp(32px,4vw,48px) clamp(20px,3vw,40px);
  display:flex;flex-direction:column;gap:40px;align-items:center;
}
.works__steps{display:flex;width:100%;gap:16px}
.works__step{
  flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;position:relative;
}
.works__media{width:120px;height:120px}
.works__media img{width:120px;height:120px;object-fit:contain}
.works__node{
  width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
  background:var(--white);border:1px solid var(--border);color:var(--ink);font-weight:700;font-size:18px;
  position:relative;z-index:2;
}
/* active step: white node with a soft pale-green ring + glow */
.works__step.active .works__node{
  background:var(--white);border:5px solid #C4E08E;color:var(--ink);
  box-shadow:0 0 0 4px rgba(196,224,142,.32),0 0 14px 2px rgba(150,200,90,.22);
}
/* continuous connector track through the nodes (node centre at 120+16+24 = 160px) */
.works__step:not(:last-child)::after{
  content:"";position:absolute;top:160px;left:50%;width:calc(100% + 16px);height:6px;
  transform:translateY(-50%);
  background:var(--border);border-radius:999px;z-index:0;
}
/* green progress pill (pale inner + green frame) leading into the active node */
.works__step.active::before{
  content:"";position:absolute;top:160px;right:calc(50% + 20px);transform:translateY(-50%);
  width:90px;height:16px;border-radius:999px;z-index:1;
  background:#E7F1C8;box-shadow:inset 0 0 0 3px #C4E08E;
}
.works__label{font-size:18px;font-weight:600;color:var(--ink);max-width:22ch}

/* ---------- Product card ---------- */
.card-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product-card{
  position:relative;background:var(--white);border:1px solid var(--border);border-radius:var(--r-card);
  padding:44px 24px 24px;display:flex;flex-direction:column;gap:12px;transition:box-shadow .2s,transform .2s;
}
.product-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.product-card__badge{position:absolute;top:16px;left:16px;z-index:2}
.product-card__title{font-size:20px;font-weight:600;text-align:center}
.product-card__imgbtn{background:none;padding:0;display:block}
.product-card__img{
  width:100%;aspect-ratio:1/1;object-fit:contain;padding:8px 16px;
  transition:transform .25s ease;
}
.product-card__imgbtn:hover .product-card__img{transform:scale(1.05)}
.product-card__desc{color:var(--muted);font-size:15px;min-height:44px}
.product-card__meta{display:flex;gap:8px;color:var(--muted);font-size:14px}
.price-row{display:flex;align-items:center;gap:6px;margin-top:auto}
/* price grows to fill the row so the Add-to-cart button stays anchored (no jump on size change) */
.price{font-size:18px;font-weight:600;white-space:nowrap;flex:1 1 auto;min-width:0}
.price-row .btn{flex:0 0 auto;padding:0 14px}
.price small{font-size:13px;color:var(--muted-2);font-weight:400}

/* segmented size selector */
.size-selector{display:flex;background:var(--white);border:1px solid var(--border);border-radius:999px;padding:4px;gap:2px}
.size-selector__opt{
  flex:1;height:40px;border-radius:999px;font-size:15px;color:var(--muted-2);white-space:nowrap;
  display:grid;place-items:center;transition:background .15s,color .15s;
}
.size-selector__opt.active{background:var(--size-active);color:var(--ink);font-weight:500}
.size-selector__opt:hover:not(.active){background:var(--cream)}

/* ---------- Menu page ---------- */
.menu-header{text-align:center;padding:clamp(32px,5vw,64px) 0 24px}
.menu-header h1{font-size:clamp(32px,5vw,48px);font-weight:800;letter-spacing:-.02em}
.menu-header p{color:var(--muted);font-size:18px;margin-top:8px}
.filters{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:24px}
.filter{
  height:44px;padding:0 22px;border-radius:999px;background:var(--white);border:1px solid var(--border);
  color:var(--muted-2);font-size:15px;font-weight:500;transition:all .16s;
}
.filter:hover{border-color:var(--muted-3)}
.filter.active{background:var(--olive);color:#fff;border-color:var(--olive)}
.menu-cat{padding:32px 0}
.menu-cat__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:16px}
.menu-cat__head h2{font-size:clamp(24px,3vw,32px);font-weight:800}

/* horizontal scroller (homepage popular) */
.scroller{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;-webkit-overflow-scrolling:touch}
.scroller::-webkit-scrollbar{height:8px}
.scroller::-webkit-scrollbar-thumb{background:var(--border);border-radius:999px}
.scroller .product-card{flex:0 0 280px;scroll-snap-align:start}
/* menu page: same horizontal scroller as popular, narrower cards to match Figma */
.menu-cat .scroller{gap:24px}
.menu-cat .scroller .product-card{flex:0 0 250px}
.head-actions{display:flex;align-items:center;gap:12px}
.scroller-nav{display:flex;gap:8px}
.icon-round{width:44px;height:44px;border-radius:50%;background:var(--white);border:1px solid var(--border);display:grid;place-items:center;color:var(--muted-2);transition:border-color .15s,color .15s}
.icon-round:hover{border-color:var(--muted-3);color:var(--ink)}
.icon-round .icon{stroke:currentColor}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--border);background:var(--cream)}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px var(--pad);flex-wrap:wrap}
.footer-links{display:flex;align-items:center;gap:24px;color:var(--muted-2);font-size:15px}
.footer-links a:hover{color:var(--olive)}
.footer-copy{color:var(--muted-2);font-size:14px}

/* ---------- Legal pages ---------- */
.legal-hero{padding:clamp(48px,8vw,88px) 0 32px;border-bottom:1px solid var(--border)}
.legal-hero__inner{max-width:840px}
.legal-kicker{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:var(--yellow);color:#231E19;font-size:13px;font-weight:600;margin-bottom:18px}
.legal-hero h1{font-size:clamp(38px,6vw,58px);line-height:1.05;letter-spacing:-.03em;font-weight:800}
.legal-hero p{max-width:65ch;margin-top:16px;color:var(--muted);font-size:18px}
.legal-meta{display:flex;align-items:center;gap:10px;margin-top:20px;color:var(--muted-2);font-size:14px}
.legal-meta__dot{width:4px;height:4px;border-radius:50%;background:var(--muted-3)}
.legal-layout{display:grid;grid-template-columns:220px minmax(0,760px);gap:clamp(40px,7vw,96px);justify-content:center;padding-top:48px;padding-bottom:72px}
.legal-toc{position:sticky;top:calc(var(--header-h) + 28px);align-self:start;display:flex;flex-direction:column;gap:4px}
.legal-toc__title{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-3);font-weight:700;margin-bottom:8px}
.legal-toc a{padding:7px 10px;border-radius:9px;color:var(--muted-2);font-size:14px}
.legal-toc a:hover{background:var(--white);color:var(--olive)}
.legal-content{min-width:0}
.legal-content section{scroll-margin-top:calc(var(--header-h) + 24px)}
.legal-content section+section{border-top:1px solid var(--border);margin-top:32px;padding-top:32px}
.legal-content h2{font-size:24px;line-height:1.25;font-weight:800;margin-bottom:14px}
.legal-content p,.legal-content li{color:var(--muted);line-height:1.7}
.legal-content p+p{margin-top:12px}
.legal-content ul{list-style:disc;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.legal-content a{color:var(--olive);text-decoration:underline;text-underline-offset:3px}
.legal-note{margin-top:20px;padding:18px 20px;border:1px solid var(--border);border-left:4px solid var(--olive);border-radius:14px;background:var(--white);color:var(--muted)}

/* ---------- Cart drawer ---------- */
.overlay{
  position:fixed;inset:0;background:rgba(35,30,25,.45);z-index:60;opacity:0;visibility:hidden;
  transition:opacity .28s ease,visibility .28s;
}
.overlay.open{opacity:1;visibility:visible}
.drawer{
  position:fixed;top:0;right:0;height:100%;width:440px;max-width:100vw;background:var(--white);z-index:70;
  transform:translateX(100%);transition:transform .32s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;box-shadow:var(--shadow-lg);
}
.drawer.open{transform:translateX(0)}
.drawer__head{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 16px}
.drawer__head h2{font-size:24px;font-weight:800}
.icon-btn{width:40px;height:40px;border-radius:50%;background:var(--cream);display:grid;place-items:center}
.icon-btn .icon{width:22px;height:22px;stroke:var(--ink)}
.icon-btn:hover{background:var(--border)}
.drawer__body{flex:1;overflow-y:auto;padding:0 24px 24px;display:flex;flex-direction:column;gap:24px}

.cart-items{display:flex;flex-direction:column}
.cart-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--cream)}
.cart-item:last-child{border-bottom:none}
.cart-item__left{display:flex;gap:12px;align-items:center;min-width:0}
.cart-item__img{width:64px;height:64px;border-radius:16px;background:var(--cream);object-fit:contain;padding:4px;flex:0 0 auto}
.cart-item__info{min-width:0}
.cart-item__name{font-size:17px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cart-item__size{color:var(--muted-3);font-size:15px;margin-top:2px}
.qty{display:inline-flex;align-items:center;gap:10px;margin-top:6px;background:var(--cream);border-radius:999px;padding:3px}
.qty button{width:24px;height:24px;border-radius:50%;background:var(--white);display:grid;place-items:center;box-shadow:var(--shadow-sm)}
.qty button .icon{width:14px;height:14px;stroke:var(--ink)}
.qty button:hover{background:var(--border)}
.qty span{min-width:16px;text-align:center;font-weight:600;font-size:15px}
/* qty stepper stays hidden behind a pencil (edit) button until tapped */
.cart-item__qtyrow{margin-top:6px}
.cart-item__qtyrow .qty{margin-top:0}
.cart-item__editbtn{display:inline-flex;align-items:center;gap:6px;background:var(--cream);border-radius:999px;padding:5px 12px;color:var(--muted-2);font-size:14px;font-weight:500}
.cart-item__editbtn .icon{width:15px;height:15px;stroke:var(--muted-2)}
.cart-item__editbtn:hover{background:var(--border);color:var(--ink)}
.cart-item .qty{display:none}
.cart-item.editing .qty{display:inline-flex}
.cart-item.editing .cart-item__editbtn{display:none}
.cart-item__right{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.cart-item__price{font-size:17px;font-weight:600;white-space:nowrap}
.cart-item__remove{color:var(--muted-3);display:grid;place-items:center}
.cart-item__remove .icon{stroke:var(--muted-3)}
.cart-item__remove:hover .icon{stroke:#C0392B}

.summary{background:var(--cream);border-radius:var(--r-card);padding:24px;display:flex;flex-direction:column;gap:12px}
.summary__row{display:flex;justify-content:space-between;align-items:baseline}
.summary__row--sub{font-size:18px;font-weight:500;color:var(--muted-2)}
.summary__row--sub b{color:var(--muted);font-weight:500}
.summary__row--small{font-size:14px;color:var(--muted)}
.summary__row--total{font-size:20px;font-weight:600;color:var(--ink)}
.summary hr{border:none;border-top:1px solid var(--border);margin:0}
/* keep the summary + checkout button pinned to the bottom while the item list scrolls */
.cart-foot{position:sticky;bottom:0;margin-top:auto;background:var(--white);display:flex;flex-direction:column;gap:16px;padding-bottom:4px}
.cart-foot::before{content:"";position:absolute;left:0;right:0;top:-24px;height:24px;background:linear-gradient(transparent,var(--white));pointer-events:none}

/* checkout delivery form */
.checkout-form{display:flex;flex-direction:column;gap:20px}
.field{display:flex;flex-direction:column}
.input{
  height:52px;width:100%;border:1px solid var(--border);border-radius:16px;background:var(--white);
  padding:0 18px;font-family:inherit;font-size:16px;color:var(--ink);transition:border-color .15s;
}
.input:focus{outline:none;border-color:var(--olive)}
.input::placeholder{color:var(--muted-3)}
.field__error{color:#D9534F;font-size:13px;font-weight:500;margin-top:6px}
.field__error:empty{display:none}
.input--error,.input--error:focus{border-color:#D9534F}
/* back + place-order stay pinned to the bottom while the form scrolls */
.checkout-actions{position:sticky;bottom:0;margin-top:auto;background:var(--white);display:flex;align-items:center;gap:12px;padding-top:12px;padding-bottom:4px}
.checkout-actions::before{content:"";position:absolute;left:0;right:0;top:-20px;height:20px;background:linear-gradient(transparent,var(--white));pointer-events:none}
.checkout-actions .icon-round{width:52px;height:52px;flex:0 0 auto}
.checkout-actions .btn{flex:1}

/* empty & success states */
.cart-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:safe center;text-align:center;gap:12px;padding:24px}
.cart-state__icon{width:96px;height:96px;border-radius:50%;background:var(--cream);display:grid;place-items:center;margin-bottom:8px}
.cart-state__icon .icon{width:44px;height:44px;stroke:var(--muted-2)}
.cart-state h3{font-size:22px;font-weight:800}
.cart-state p{color:var(--muted);max-width:30ch}
.receipt{width:100%;text-align:left;background:var(--cream);border-radius:var(--r-card);padding:20px;display:flex;flex-direction:column;gap:10px;margin-top:8px}
.receipt__row{display:flex;justify-content:space-between;gap:12px;font-size:15px}
.receipt__row span:first-child{color:var(--muted-2)}
.receipt__row span:last-child{font-weight:500;text-align:right}

/* ---------- Product modal ---------- */
.modal{
  position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:24px;
  opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;
}
.modal.open{opacity:1;visibility:visible}
.modal__backdrop{position:absolute;inset:0;background:rgba(35,30,25,.5)}
.modal__card{
  position:relative;background:var(--white);border-radius:var(--r-card);width:860px;max-width:100%;max-height:90vh;
  display:flex;overflow:hidden;box-shadow:var(--shadow-lg);
  transform:translateY(12px) scale(.98);transition:transform .25s;
}
.modal.open .modal__card{transform:none}
.modal__media{position:relative;flex:0 0 380px;background:var(--cream);overflow:hidden;min-height:380px}
.modal__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:24px}
.modal__media .badge{position:absolute;top:16px;left:16px}
/* right column scrolls on its own when the text is long */
.modal__body{flex:1 1 auto;min-width:0;min-height:0;padding:24px 32px 40px;overflow-y:auto;display:flex;flex-direction:column;gap:24px}
/* keep each block its natural size (scroll instead of squishing the button) */
.modal__body > *{flex-shrink:0}
.modal__close{position:absolute;top:16px;right:16px;z-index:2}
.modal__title{font-size:clamp(26px,4vw,32px);font-weight:800;overflow-wrap:break-word;word-break:break-word;padding-right:40px}
.modal__priceline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.modal__price{font-size:24px;font-weight:800;color:var(--muted)}
.modal__price small{display:block;font-size:15px;font-weight:400;color:var(--muted-2)}
.modal__tag{display:inline-flex;align-items:center;gap:4px;height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--border);color:var(--muted-2);font-size:15px}
.field-label{font-size:16px;font-weight:500;margin-bottom:6px;display:block}
.modal__info h4{font-size:16px;font-weight:600;margin-bottom:2px}
.modal__info p{color:var(--muted);font-size:15px}
.modal__info>div+div{margin-top:14px}

/* ---------- Toast ---------- */
.toast{
  position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);z-index:90;
  display:inline-flex;align-items:center;gap:6px;padding:12px 20px;border-radius:999px;
  background:var(--yellow);color:var(--ink);font-weight:500;box-shadow:var(--shadow-md);
  opacity:0;visibility:hidden;transition:opacity .25s,transform .25s,visibility .25s;
}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
.toast .icon{stroke:var(--ink)}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .card-row{grid-template-columns:repeat(2,1fr)}
  .problem-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .works__steps{gap:12px}
  .legal-layout{grid-template-columns:1fr;padding-top:32px;gap:32px}
  .legal-toc{position:static;display:none}
}
@media (max-width:640px){
  :root{--header-h:58px}
  .header-inner{gap:12px}
  .header-left{gap:10px}
  .brand{font-size:17px}
  .brand__mark{width:30px;height:30px;font-size:17px}
  .nav{gap:12px}
  .nav__link{font-size:14px;padding:6px 2px}
  /* mobile header matches Figma: brand + language + Menu + Cart + toggle
     (hide Home — still reachable via the logo — so the row never overflows) */
  .nav .nav__link[href="index.html"]{display:none}
  /* keep the language selector visible on mobile (compact) */
  .lang{padding:5px 7px;font-size:14px;gap:1px}
  .lang .icon{width:14px;height:14px}
  /* compact filter pills so they wrap cleanly and never clip the screen edges */
  .filters{gap:6px;margin-top:18px}
  .filter{height:38px;padding:0 14px;font-size:13px}
  .cart-btn{height:38px;padding:7px 12px;font-size:14px;gap:5px}
  .cart-btn .icon{width:18px;height:18px}
  .mode-toggle{width:34px;height:34px}
  .card-row{grid-template-columns:1fr}
  .menu-cat__head .btn{display:none}
  /* prev/next arrows stay visible on the right of each menu category head */
  .menu-cat__head{gap:12px}
  .menu-cat__head h2{font-size:22px}
  /* problem cards -> horizontal row: image left, title + description right */
  .problem-card{
    display:grid;grid-template-columns:auto 1fr;
    grid-template-areas:"img title" "img desc";
    column-gap:16px;row-gap:4px;align-items:center;text-align:left;padding:16px 18px;
  }
  .problem-card__img{grid-area:img;width:72px;height:72px;margin:0;align-self:center}
  .problem-card h3{grid-area:title;align-self:end;font-size:18px}
  .problem-card p{grid-area:desc;align-self:start;font-size:14px}
  .footer-inner{flex-direction:column;text-align:center;gap:14px}
  .drawer{width:100%}
  .modal{padding:0;align-items:flex-end}
  .modal__card{flex-direction:column;border-radius:24px 24px 0 0;max-height:94vh;width:100%}
  .modal__media{flex:0 0 220px;min-height:0}
  .modal__media img{padding:16px}
  .hero-actions .btn{flex:1}
  /* works timeline -> vertical (matches Figma mobile: node | label | image) */
  .works__steps{flex-direction:column;gap:20px}
  .works__step{flex-direction:row;align-items:center;text-align:left;gap:14px;position:relative}
  .works__media,.works__media img{width:64px;height:64px;flex:0 0 auto}
  .works__media{order:1;margin-left:auto}
  .works__node{width:40px;height:40px;font-size:16px;flex:0 0 auto;order:-1;z-index:2}
  .works__label{font-size:16px;max-width:none;flex:1}
  /* continuous vertical track: each node links down to the next */
  .works__step:not(:last-child)::after{
    top:50%;left:20px;bottom:auto;right:auto;
    width:3px;height:calc(50% + 60px);transform:translateX(-50%);border-radius:999px;
  }
  /* hide the desktop horizontal chevrons on mobile */
  .works__step:not(:first-child)::before{display:none}
  /* vertical green progress pill leading into the active node from the top */
  .works__step.active::before{
    top:-6px;bottom:auto;left:20px;right:auto;transform:translateX(-50%);
    width:16px;height:38px;
  }
}
@media (max-width:440px){
  .header-inner{gap:8px}
  .header-left{gap:8px}
  .brand{font-size:16px}
  .brand__mark{width:28px;height:28px;font-size:16px}
  .nav{gap:8px}
  .lang{padding:4px 6px}
  .cart-btn__label{display:none}
  .cart-btn{width:38px;height:38px;padding:0;gap:0;justify-content:center}
  .cart-count{
    position:absolute;top:-3px;right:-3px;min-width:17px;height:17px;padding:0 4px;
    background:var(--olive);color:#fff;font-size:10px;border:2px solid var(--page-bg);
  }
  .modal__body{padding:20px 20px 32px;gap:18px}
  .modal__title{padding-right:36px}
  .modal__priceline{flex-wrap:wrap;row-gap:8px}
  .size-selector__opt{font-size:13px;white-space:nowrap}
}
@media (max-width:360px){
  .brand{font-size:0;gap:0}
  .brand__mark{font-size:16px}
  .nav{gap:9px}
  .nav__link{font-size:13px}
}
