/* =====================================================================
   Maze Bakery Helsinki — visual match to mazeBakery.com
   Palette: dark forest green + mustard accents, clean white, black text.
   Fonts: Fredoka (display) + Nunito Sans (body).
   Pure CSS3 · Flexbox + Grid · fully responsive.
   ===================================================================== */

:root {
  --green:       #1f4d3a;   /* forest green — header/footer/buttons */
  --green-deep:  #163a2c;
  --green-soft:  #e7f0ea;   /* light green tint */
  --green-tint:  #eef5ef;
  --mustard:     #e0a526;   /* mustard yellow accent */
  --mustard-soft:#fbf0d8;
  --cream:       #ffffff;
  --cream-2:     #faf6ef;
  --ink:         #232323;
  --ink-soft:    #6b6b6b;
  --red:         #c0392b;
  --line:        #e8e4dc;
  --white:      #ffffff;
  --shadow-sm:   0 3px 14px rgba(31,77,58,.08);
  --shadow-md:   0 16px 38px rgba(31,77,58,.16);
  --radius:      14px;
  --maxw:        1200px;
  --serif:       "Fredoka", "Verdana", sans-serif;
  --sans:        "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mustard); }
img { max-width: 100%; display: block; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ---------- Top contact bar (green) ---------- */
.topbar { background: var(--green); color: #e8efe9; font-size: .8rem; font-weight: 600; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar .contact span { margin-right: 1.1rem; white-space: nowrap; }
.topbar .contact a { color: #e8efe9; }
.topbar .socials a { color: #e8efe9; margin-left: .9rem; }
.topbar .socials a:hover { color: var(--mustard); }

/* ---------- Announce (mustard promo) ---------- */
.announce { background: var(--mustard); color: #3a2e10; text-align: center; font-size: .82rem; letter-spacing: .04em; font-weight: 800; padding: .5rem 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand .mark {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--green); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.brand .word { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--green); line-height: 1; }
.brand .word small { display: block; font-family: var(--sans); font-weight: 700; font-size: .52rem; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; font-weight: 700; }
.nav-links a { color: var(--ink); position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px; border-radius: 3px; background: var(--mustard); transition: width .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); font-weight: 700; font-size: .95rem; }
#cart-badge { position: absolute; top: -8px; right: -12px; background: var(--green); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; display: none; align-items: center; justify-content: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--sans); font-weight: 800; font-size: .88rem; letter-spacing: .02em; text-transform: uppercase; padding: .8rem 1.7rem; border-radius: 10px; border: 2px solid var(--green); background: var(--green); color: #fff; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: #fff; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .76rem; color: var(--green); font-weight: 800; margin-bottom: 1rem; }
.hero h1 .accent { color: var(--green); }
.hero p.lead { max-width: 46ch; color: var(--ink-soft); font-size: 1.08rem; font-weight: 600; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--green-soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; right: 3%; top: 10%; width: 92px; height: 92px; border-radius: 50%; background: var(--mustard); color: #3a2e10; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: .8rem; font-weight: 800; box-shadow: var(--shadow-md); transform: rotate(-10deg); line-height: 1.1; }

/* ---------- Feature blocks (3-col, red/green/yellow) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { padding: clamp(2rem,4vw,3rem) 1.5rem; color: #fff; text-align: center; }
.feature h3 { color: #fff; margin-bottom: .4rem; }
.feature p { color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; margin: 0; }
.feature .ficon { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; margin: 0 auto 1rem; display: block; box-shadow: var(--shadow-sm); }
.feature.red { background: var(--red); }
.feature.green { background: var(--green); }
.feature.yellow { background: var(--mustard); color: #3a2e10; }
.feature.yellow h3, .feature.yellow p { color: #3a2e10; }

/* ---------- Promo strip (cards) ---------- */
.promo-strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 2.5rem 0; }
.promo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: center; }
.promo-card .ico { font-size: 1.8rem; width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--green-soft); border-radius: 50%; }
.promo-card h4 { margin: 0 0 .2rem; font-size: 1.02rem; }
.promo-card p { margin: 0; font-size: .88rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .76rem; color: var(--green); font-weight: 800; }
.section-head p { color: var(--ink-soft); max-width: 56ch; margin-inline: auto; font-weight: 600; }

/* ---------- Product grid (Maze: 4-col, white, black title) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.8rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; border: 1px solid var(--line); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-media { background: var(--green-soft); aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-cat { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 800; }
.card h3 { font-size: 1.12rem; margin: 0; color: var(--ink); font-weight: 700; }
.card-rating { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.card-price { font-family: var(--serif); font-size: 1.3rem; color: var(--green); font-weight: 600; }
.card-foot { margin-top: auto; display: flex; gap: .6rem; align-items: center; }
.card-foot .btn { flex: 1; padding: .6rem 1rem; font-size: .78rem; }

.allergen-mini { display: flex; flex-wrap: wrap; gap: .3rem; }
.allergen-mini span { font-size: .68rem; font-weight: 700; background: var(--green-tint); color: var(--ink-soft); padding: .16rem .5rem; border-radius: 999px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.cat-filter button { font-family: var(--sans); font-weight: 700; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font-size: .85rem; transition: all .2s; }
.cat-filter button:hover { border-color: var(--green); }
.cat-filter button.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- "Our work" gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--green-soft); aspect-ratio: 1/1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- Sampler promo ---------- */
.sampler-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--green-soft); border-radius: 22px; padding: clamp(1.5rem, 4vw, 3rem); }
.sampler-promo .promo-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.sampler-promo .promo-img img { width: 100%; height: 100%; object-fit: cover; }
.sampler-promo h2 { margin-top: 0; }
.coupon { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 2px dashed var(--green); color: var(--green); font-family: var(--serif); font-weight: 700; font-size: 1.1rem; padding: .5rem 1.1rem; border-radius: 12px; margin: .6rem 0; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--green-soft); aspect-ratio: 1/1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price { font-family: var(--serif); font-size: 2rem; color: var(--green); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; }
.qty-control { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 40px; height: 40px; border: none; background: var(--green-soft); font-size: 1.2rem; cursor: pointer; color: var(--ink); font-weight: 700; }
.qty-control button:hover { background: var(--green); color: #fff; }
.qty-control input { width: 50px; height: 40px; border: none; text-align: center; font-family: var(--serif); font-size: 1.1rem; background: #fff; }
.allergen-box { background: var(--green-tint); border-left: 4px solid var(--mustard); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.allergen-box h4 { margin: 0 0 .5rem; font-size: 1rem; }
.allergen-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.allergen-chip { background: #fff; border: 1px solid var(--line); padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.allergen-chip.warn { background: #fde8ee; border-color: #f3c2cd; color: #b23a52; }

/* anchor offset so the sticky header doesn't cover scrolled-to sections */
#flavorSection, #sizeSection { scroll-margin-top: 110px; }

/* allergen reference table */
.at-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.at-table th, .at-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.at-table thead th { background: var(--green); color: #fff; font-family: var(--serif); font-size: .95rem; letter-spacing: .02em; }
.at-table tbody tr:last-child td { border-bottom: none; }
.at-table tbody tr:hover { background: var(--green-tint); }
.at-mac { display: grid; place-items: center; }
.at-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
@media (max-width: 560px) {
  .at-table thead { display: none; }
  .at-table, .at-table tbody, .at-table tr, .at-table td { display: block; width: 100%; }
  .at-table tr { border-bottom: 8px solid var(--green-soft); }
  .at-table td { border: none; }
  .at-table td::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 800; }
}
.builder { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.builder-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.4rem; color: var(--green); margin-top: 1.2rem; }
.flavor-readout h4 { font-family: var(--serif); }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.extra-cell { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "emoji name" "emoji price" "desc desc"; gap: .2rem .8rem; align-items: center; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; background: #fff; transition: border-color .2s, box-shadow .2s; }
.extra-cell:hover { border-color: var(--green); }
.extra-cell.selected { border-color: var(--green); box-shadow: var(--shadow-sm); background: var(--green-soft); }
.extra-cell input { position: absolute; opacity: 0; pointer-events: none; }
.extra-cell .ex-emoji { grid-area: emoji; font-size: 1.8rem; }
.extra-cell .ex-name { grid-area: name; font-weight: 700; font-family: var(--serif); }
.extra-cell .ex-price { grid-area: price; font-size: .85rem; color: var(--green); font-weight: 700; }
.extra-cell .ex-desc { grid-area: desc; font-size: .8rem; color: var(--ink-soft); font-weight: 600; margin-top: .3rem; }
.compose-steps { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.step-pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--white); border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.step-pill .num { width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; font-size: .8rem; color: var(--ink); font-weight: 700; }
.step-pill.active { border-color: var(--green); color: var(--ink); }
.step-pill.active .num { background: var(--green); color: #fff; }
.box-size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.box-option { border: 2px solid var(--line); border-radius: var(--radius); padding: 1.3rem .8rem; text-align: center; cursor: pointer; background:#fff; transition: all .2s; }
.box-option:hover { border-color: var(--green); transform: translateY(-3px); }
.box-option.selected { border-color: var(--green); box-shadow: var(--shadow-md); background: var(--green-soft); }
.box-option .cap { font-family: var(--serif); font-size: 1.7rem; color: var(--green); }
.box-option .nm { font-size: .86rem; color: var(--ink-soft); font-weight: 600; }
.capacity-bar { height: 12px; border-radius: 999px; background: var(--green-tint); overflow: hidden; margin: .6rem 0 .3rem; }
.capacity-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--mustard), var(--green)); transition: width .25s; }
.capacity-text { font-size: .85rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 1.5rem; }
.flavor-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 1rem; }
.flavor-cell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; display: flex; flex-direction: column; gap: .5rem; }
.flavor-cell .swatch { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 1.4rem; box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.flavor-cell .fname { font-size: .9rem; font-weight: 600; }
.flavor-cell .fcount { font-family: var(--serif); font-size: 1.1rem; color: var(--green); }
.flavor-cell .fstepper { display: inline-flex; gap: .4rem; align-items: center; justify-content: center; }
.flavor-cell .fstepper button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--green-soft); cursor: pointer; font-size: 1rem; color: var(--ink); font-weight: 700; }
.flavor-cell .fstepper button:hover { background: var(--green); color: #fff; }
.flavor-cell.disabled { opacity: .4; pointer-events: none; }
.compose-summary { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.compose-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.compose-summary h3 { margin-top: 0; }
.summary-line { display: flex; justify-content: space-between; font-size: .9rem; padding: .25rem 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.3rem; color: var(--green); margin-top: .6rem; }
.compose-mini-grid { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0; }
.compose-mini-grid .mm { width: 22px; height: 22px; border-radius: 50%; display:grid; place-items:center; font-size:.7rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.thumb-photo { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-sm); }
.thumb-grid { display: grid; grid-template-columns: repeat(3, 16px); gap: 3px; }
.thumb-grid .thumb-mac { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.cart-item .ci-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.cart-item .ci-meta { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.cart-item .ci-right { text-align: right; display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }
.cart-item .ci-price { font-family: var(--serif); color: var(--green); font-size: 1.05rem; }
.cart-item .qty-control input { width: 42px; }
.link-danger { background: none; border: none; color: var(--red); cursor: pointer; font-size: .82rem; text-decoration: underline; font-weight: 600; }
.cart-empty { text-align: center; padding: 4rem 1rem; color: var(--ink-soft); }
.cart-empty .big { font-size: 3rem; }
.cart-totals { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.cart-totals .row { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; font-weight: 600; }
.cart-totals .grand { font-family: var(--serif); font-size: 1.5rem; color: var(--green); border: none; margin-top: .5rem; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; letter-spacing: .04em; color: var(--ink-soft); font-weight: 700; }
.field label .req { color: var(--green); }
.field input, .field textarea { font-family: var(--sans); font-size: .95rem; color: var(--ink); font-weight: 600; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field.invalid input { border-color: #d9536a; background: #fdf3f5; }
.field .err { color: #b23a52; font-size: .78rem; min-height: 1em; font-weight: 700; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(22,58,44,.45); display: none; align-items: center; justify-content: center; padding: 1.5rem; backdrop-filter: blur(3px); }
.modal-overlay.open { display: flex; animation: fade .25s ease; }
.modal { background: #fff; border-radius: 22px; max-width: 440px; width: 100%; padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow-md); animation: pop .3s ease; }
.modal .check { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.2rem; background: var(--green); color: #fff; font-size: 2.2rem; display: grid; place-items: center; }
.modal h2 { margin: 0 0 .4rem; }
.modal p { color: var(--ink-soft); font-weight: 600; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Toast ---------- */
.laduree-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: .8rem 1.4rem; border-radius: 999px; font-size: .9rem; font-weight: 700; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 300; }
.laduree-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: #e8efe9; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; letter-spacing: .06em; }
.footer-grid a { color: #d6e6dd; font-size: .9rem; font-weight: 600; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-brand .word { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer-brand p { margin-top: .8rem; font-size: .88rem; color: #cfe0d6; max-width: 34ch; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 0; font-size: .8rem; color: #c2d6ca; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .sampler-promo { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .compose-layout { grid-template-columns: 1fr; }
  .compose-summary { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-totals { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .topbar .contact { display: none; }
}
