/* MLYN — the shop: /order and /order/<slug>.
   Loaded only on shop pages, exactly as blog.css is loaded only on blog pages.
   Every colour, radius and font here comes from landing.css's tokens — this file
   adds layout, never a new palette. Do not restyle the brand from in here. */

/* ── index ──────────────────────────────────────────────────────────────── */
.shop-head{padding:34px 0 6px;}
.shop-head h1{margin:0;font-size:clamp(30px,5vw,44px);}
.shop-lede{margin:12px 0 0;max-width:56ch;color:var(--ink-2);font-size:16.5px;line-height:1.6;}

.shop-cat{padding:34px 0 6px;}
.shop-cat h2{
  margin:0 0 18px;font-size:14px;font-weight:800;letter-spacing:.16em;
  text-transform:uppercase;color:var(--mlyn);
}
:root[data-cyr="1"] .shop-cat h2{letter-spacing:.10em;}

.shop-grid{
  display:grid;gap:18px;
  grid-template-columns:repeat(auto-fill,minmax(232px,1fr));
}

.pcard{
  display:flex;flex-direction:column;
  background:var(--panel);border-radius:var(--r);overflow:hidden;
  box-shadow:var(--shadow-sm);color:inherit;text-decoration:none;
  transition:transform .15s ease,box-shadow .15s ease;
}
.pcard:hover,.pcard:focus-visible{transform:translateY(-3px);box-shadow:var(--shadow);}
.pcard:focus-visible{outline:2px solid var(--mlyn);outline-offset:3px;}
.pcard-img{position:relative;aspect-ratio:4/3;background:var(--paper-2);}
.pcard-img img{width:100%;height:100%;object-fit:cover;display:block;}
.pcard-body{padding:13px 15px 16px;display:flex;flex-direction:column;gap:5px;flex:1;}
.pcard-body h3{margin:0;font-size:17px;line-height:1.2;}
.pcard-sub{margin:0;font-size:13px;color:var(--soft);line-height:1.35;}
.pcard-price{margin-top:auto;padding-top:9px;font-weight:800;font-size:16px;color:var(--mlyn);}
.pcard-price small{font-weight:600;color:var(--soft);font-size:12.5px;}

/* The brand panel that stands in for a photograph we have not taken. Same
   decision as the cooking guide: a plate we do not have a picture of shows the
   mill, never another dish's photograph. */
.noshot{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:9px;
  background:linear-gradient(160deg,var(--paper-2),var(--cream));
}
.noshot img{width:52px;height:auto;opacity:.5;}
.noshot span{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--soft);font-weight:700;}
/* A dish with no photograph shows its drawn icon (products.js `icon`) at full
   strength instead of the faded logo. Cards drop the "photo on the way" line:
   the icon already reads as a drawing, and the label crowds a 4:3 card. */
/* Since 12 Oct 2026 only the PRINT icons (sketch-*, the packaging stickers) stand in
   for a photo, on the same red panel the menu tiles use, and always CONTAINED:
   the card and dish-page image rules (object-fit:cover, height:100%) used to crop
   and stretch them. */
.noshot.has-icon{background:var(--mlyn);}
.noshot .noshot-ico,.scard-img .noshot .noshot-ico,.prod-shot .noshot .noshot-ico{
  width:auto;height:auto;max-width:62%;max-height:78%;object-fit:contain;opacity:1;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.18));}

/* ── product page ───────────────────────────────────────────────────────── */
.crumb{
  display:flex;flex-wrap:wrap;gap:7px;align-items:center;
  padding:22px 0 0;font-size:13px;color:var(--soft);
}
.crumb a{color:var(--soft);text-decoration:none;}
.crumb a:hover{color:var(--mlyn);text-decoration:underline;}
.crumb b{color:var(--ink-2);font-weight:600;}

.prod{
  display:grid;gap:30px;padding:22px 0 10px;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start;
}
.prod-shot{position:relative;border-radius:var(--r);overflow:hidden;aspect-ratio:1/1;background:var(--paper-2);box-shadow:var(--shadow-sm);}
.prod-shot img{width:100%;height:100%;object-fit:cover;display:block;}
.prod-shot .noshot img{width:88px;}

.prod-buy h1{margin:0;font-size:clamp(26px,4vw,38px);}
.prod-desc{margin:12px 0 0;color:var(--ink-2);font-size:16px;line-height:1.62;max-width:46ch;}

.price-now{display:flex;align-items:baseline;gap:10px;margin:18px 0 0;flex-wrap:wrap;}
.price-now b{font-size:30px;color:var(--mlyn);font-weight:800;line-height:1;}
.price-now span{font-size:14px;color:var(--soft);}
.price-now .price-was{font-size:17px;font-weight:600;color:var(--soft);}
/* What a real order actually costs. soloha quotes "10.00 € / 4 шт" — a portion
   price — while MLYN quotes a unit price against a 10-piece minimum, so 1,00 €
   next to their 10,00 € reads as a smaller thing rather than a cheaper one.
   This line closes that gap by naming the figure the customer will be charged. */
.price-real{margin:7px 0 0;font-size:13.5px;color:var(--soft);}
.price-real b{color:var(--ink-2);font-weight:700;}

.opt{margin:20px 0 0;}
.opt-label{font-size:12px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--soft);margin:0 0 9px;}
:root[data-cyr="1"] .opt-label{letter-spacing:.08em;}
.opt-row{display:flex;flex-wrap:wrap;gap:8px;}
.chip{
  border:1.5px solid var(--hair);background:var(--panel);color:var(--ink-2);
  padding:8px 14px;border-radius:999px;font:inherit;font-size:14px;font-weight:600;
  cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease;
}
.chip:hover{border-color:var(--mlyn);color:var(--mlyn);}
.chip[aria-pressed="true"]{background:var(--mlyn);border-color:var(--mlyn);color:#fff;}
.chip:focus-visible{outline:2px solid var(--mlyn);outline-offset:2px;}

.qty{display:flex;align-items:center;gap:0;border:1.5px solid var(--hair);border-radius:999px;width:max-content;overflow:hidden;}
.qty button{
  width:42px;height:42px;border:0;background:var(--panel);color:var(--ink);
  font-size:20px;line-height:1;cursor:pointer;
}
.qty button:hover{background:var(--paper-2);color:var(--mlyn);}
.qty button:focus-visible{outline:2px solid var(--mlyn);outline-offset:-2px;}
.qty output{
  min-width:64px;text-align:center;font-weight:800;font-size:16px;
  font-variant-numeric:tabular-nums;
}
.qty-note{margin:8px 0 0;font-size:12.5px;color:var(--soft);}

.buy-cta{margin:22px 0 0;display:flex;flex-wrap:wrap;gap:12px;align-items:center;}
.buy-cta .btn{min-width:210px;justify-content:center;}
.buy-free{font-size:13px;color:var(--wa-deep);font-weight:700;}

/* ── tabs ───────────────────────────────────────────────────────────────── */
.tabs{margin:38px 0 0;border-top:1px solid var(--hair);}
.tabs-bar{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:6px 0 0;list-style:none;}
.tabs-bar button{
  border:0;background:none;font:inherit;font-size:15px;font-weight:700;color:var(--soft);
  padding:12px 4px;margin-right:20px;cursor:pointer;border-bottom:2.5px solid transparent;
}
.tabs-bar button:hover{color:var(--ink);}
.tabs-bar button[aria-selected="true"]{color:var(--mlyn);border-bottom-color:var(--mlyn);}
.tabs-bar button:focus-visible{outline:2px solid var(--mlyn);outline-offset:2px;}
.tabpanel{padding:18px 0 4px;max-width:62ch;font-size:15.5px;line-height:1.66;color:var(--ink-2);}
.tabpanel p{margin:0 0 12px;}
.tabpanel ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:10px;}
.tabpanel ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;}
.tabpanel h3{
  margin:20px 0 8px;font-size:12px;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--soft);
}
:root[data-cyr="1"] .tabpanel h3{letter-spacing:.08em;}
.cook-cue{margin:14px 0 0;padding:12px 15px;background:var(--paper-2);border-radius:12px;font-size:14.5px;}
.cook-cue b{color:var(--ink);}

.aller{display:flex;flex-wrap:wrap;gap:7px;margin:0;}
.aller li{list-style:none;}
.aller span{
  display:inline-block;background:var(--cream);border:1px solid var(--hair);
  padding:4px 11px;border-radius:999px;font-size:13px;font-weight:600;color:var(--ink-2);
}
.aller span.q{border-style:dashed;color:var(--soft);}
.kitchen-note{margin:12px 0 0;font-size:13.5px;color:var(--soft);}
.provisional{
  margin:14px 0 0;padding:11px 0 0;border-top:1.5px dashed rgba(214,50,43,.4);
  font-size:13.5px;color:var(--ink-2);
}

/* ── spec table ─────────────────────────────────────────────────────────── */
.spec{margin:34px 0 0;max-width:520px;}
.spec h2{margin:0 0 4px;font-size:14px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--mlyn);}
:root[data-cyr="1"] .spec h2{letter-spacing:.08em;}
.spec dl{margin:0;display:grid;grid-template-columns:1fr auto;gap:0;}
.spec dt,.spec dd{
  margin:0;padding:11px 0;border-bottom:1px dashed var(--hair);font-size:14.5px;
}
.spec dt{color:var(--soft);}
.spec dd{text-align:right;color:var(--ink);font-weight:600;}

.shop-more{margin:46px 0 0;padding:26px 0 0;border-top:1px solid var(--hair);}
.shop-more h2{margin:0 0 16px;font-size:14px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--soft);}
:root[data-cyr="1"] .shop-more h2{letter-spacing:.10em;}

@media (max-width:860px){
  .prod{grid-template-columns:1fr;gap:22px;}
  .prod-shot{aspect-ratio:4/3;}
}
@media (max-width:520px){
  .shop-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:13px;}
  .pcard-body{padding:11px 12px 13px;}
  .pcard-body h3{font-size:15px;}
  .buy-cta .btn{width:100%;}
}
@media (prefers-reduced-motion:reduce){
  .pcard{transition:none;}
  .pcard:hover,.pcard:focus-visible{transform:none;}
}

/* Studio photo in a figure, so the serving-suggestion caption (cooked photos of
   a dish sold frozen) can sit on it the way .mtile-serve does on the menu. */
.prod-fig{margin:0;width:100%;height:100%;position:relative;}
.prod-fig[hidden]{display:none;}
.prod-serve{position:absolute;left:0;right:0;bottom:10px;padding:0 12px;text-align:center;font-size:12px;font-weight:600;font-style:italic;
  color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.55);}

/* Add-ons under the buy button: quieter than the filling chips, because they
   are a suggestion, not a choice the page needs before it can sell. */
.addon-opt{margin-top:18px;}
.addon-chip{border-style:dashed;}

/* ── The shop index as a shop (12 Oct 2026) ─────────────────────────────── */
.shop-tabs{position:sticky;top:64px;z-index:20;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;
  margin:18px -16px 0;padding:10px 16px;background:var(--paper);border-bottom:1px solid var(--hair-2);}
.shop-tabs::-webkit-scrollbar{display:none;}
.shop-tabs a{flex:0 0 auto;padding:8px 14px;border-radius:999px;border:1.6px solid var(--hair);background:var(--panel);
  font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap;}
.shop-tabs a:hover{border-color:var(--mlyn);color:var(--mlyn-deep);}
.shop-cat{scroll-margin-top:130px;}

.scard{display:flex;flex-direction:column;background:var(--panel);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow-sm);}
.scard-img{position:relative;display:block;aspect-ratio:4/3;background:var(--paper-2);}
.scard-img img{width:100%;height:100%;object-fit:cover;display:block;}
.scard-body{padding:13px 15px 15px;display:flex;flex-direction:column;gap:8px;flex:1;}
.scard-body h3{margin:0;font-size:17px;line-height:1.2;}
.scard-body h3 a{color:inherit;text-decoration:none;}
.scard-body h3 a:hover{color:var(--mlyn);}
.scard-sub{margin:0;font-size:13px;color:var(--soft);line-height:1.4;}
.scard-chips{display:flex;flex-wrap:wrap;gap:6px;}
.scard-chips .chip{padding:6px 11px;font-size:13px;}
.scard-buy{margin-top:auto;padding-top:6px;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.scard-price{font-size:18px;font-weight:800;color:var(--mlyn);font-variant-numeric:tabular-nums;}
.scard-price small{font-size:12.5px;font-weight:600;color:var(--soft);}
.scard-price s{font-size:13px;font-weight:600;color:var(--soft);}
.scard-add{flex:0 0 auto;padding:10px 15px;font-size:14px;}
.scard-in{margin:0;min-height:1em;font-size:12px;font-weight:700;color:var(--wa-deep);}
.scard-in:empty{display:none;}
.scard-bob{background:rgba(214,50,43,.05);border:1.6px dashed var(--mlyn);box-shadow:none;}
.scard-bob .scard-body{justify-content:center;padding:20px;}
.scard-bob h3{font-size:22px;}
.scard-kick{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mlyn);}
.scard-bob .scard-add{align-self:flex-start;margin-top:6px;}

/* Piece → kilo hint under the quantity (mini crepes, ProductPage.astro). */
.kilo-hint{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:10px 0 0;padding:10px 12px;
  border:1.5px dashed var(--wa);border-radius:12px;font-size:13.5px;line-height:1.45;color:var(--ink-2);}
.kilo-hint[hidden]{display:none;}

.scard-bg{background:rgba(31,168,85,.06);border-color:var(--wa);}
.scard-bg .scard-kick{color:var(--wa-deep);}
.scard-bg .btn-red{background:var(--wa);}
.noshot.has-icon span{display:none;}

/* ── Shop cards on phones (13 Oct 2026) ───────────────────────────────────
   The add button and the chips used to spill out of a 150px card. Now: the
   fillings are a list (name left, price right), the unit is a small two-way
   switch above it, and the add button takes the card's full width. */
.shop-helpers{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;}
.shop-helper{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;cursor:pointer;
  border:1.5px dashed var(--mlyn);background:transparent;color:var(--mlyn-deep);font:inherit;font-size:13.5px;font-weight:700;}
.shop-helper:hover{background:rgba(214,50,43,.06);}
.shop-helper b{font-weight:800;}
.shop-helper-bg{border-color:var(--wa);color:var(--wa-deep);}
.shop-helper-bg:hover{background:rgba(31,168,85,.07);}

.scard-units{display:inline-flex;align-self:flex-start;padding:3px;border-radius:999px;background:var(--paper-2);}
.scard-units button{border:0;background:transparent;padding:4px 13px;border-radius:999px;font:inherit;font-size:13px;font-weight:700;color:var(--soft);cursor:pointer;}
.scard-units button[aria-pressed="true"]{background:var(--panel);color:var(--ink);box-shadow:0 1px 3px rgba(70,42,18,.18);}

.scard-fills{display:flex;flex-direction:column;margin:0 -6px;}
.sfill{display:flex;align-items:baseline;justify-content:space-between;gap:8px;width:100%;text-align:left;cursor:pointer;
  padding:7px 6px;border:0;border-radius:9px;background:transparent;font:inherit;font-size:14px;color:var(--ink-2);}
.sfill + .sfill{border-top:1px dashed var(--hair);border-radius:0 0 9px 9px;}
.sfill:hover{color:var(--mlyn);}
.sfill{align-items:center;}
.sfill-n{display:flex;align-items:center;min-width:0;line-height:1.25;}
.sfill-n::before{content:"";flex:0 0 auto;width:9px;height:9px;margin-right:7px;border-radius:50%;border:1.5px solid var(--hair);}
.sfill-p{flex:0 0 auto;white-space:nowrap;font-variant-numeric:tabular-nums;}
.sfill-p b{font-weight:700;color:var(--ink);}
.sfill-p small,.scard-price small{font-size:12px;font-weight:600;color:var(--soft);}
.sfill[aria-pressed="true"]{background:rgba(214,50,43,.07);color:var(--mlyn-deep);font-weight:700;}
.sfill[aria-pressed="true"] + .sfill{border-top-color:transparent;}
.sfill[aria-pressed="true"] .sfill-n::before{background:var(--mlyn);border-color:var(--mlyn);}
.sfill[aria-pressed="true"] .sfill-p b{color:var(--mlyn);}
.sfill:focus-visible{outline:2px solid var(--mlyn);outline-offset:1px;}

.scard-price{margin:0;}
.scard-price b{font-size:18px;}
.scard-buy{flex-direction:column;align-items:stretch;gap:6px;}
.scard-add{width:100%;justify-content:center;}

@media (max-width:520px){
  .scard-body{padding:11px 11px 12px;gap:8px;}
  .scard-body h3{font-size:15.5px;}
  .sfill{font-size:13px;padding:6px 5px;gap:6px;}
  .scard-fills{margin:0 -5px;}
  .sfill-n::before{width:8px;height:8px;margin-right:5px;}
  .scard-add{padding:10px 8px;font-size:13.5px;}
}
.scard-sub .nw{white-space:nowrap;}
.scard-from{display:none;} /* the list row on a phone: phone.css */
.qty-bar{display:none;}    /* the stepper in the phone's buy bar */
.shop-tabs a.on{background:var(--mlyn);border-color:var(--mlyn);color:#fff;}
.chip-p{display:inline-flex;align-items:baseline;gap:7px;}
.chip-p b{font-weight:800;font-size:13px;color:var(--mlyn);font-variant-numeric:tabular-nums;}
.chip-p[aria-pressed="true"] b{color:#fff;opacity:.92;}

/* "On our blog" on a dish page (6 Nov 2026): plain links, title over the excerpt. */
.prod-blog ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.prod-blog a{display:block;padding:14px 16px;border:1px solid var(--hair);border-radius:12px;color:var(--ink);text-decoration:none}
.prod-blog a:hover{border-color:var(--ink)}
.prod-blog strong{display:block;margin-bottom:4px}
.prod-blog span{display:block;font-size:14px;color:var(--ink-2)}
@media (max-width:899px){.prod-blog span{display:none}.prod-blog strong{margin:0}}

/* Link from the shop's boxes to the boxes page (9 Nov 2026). */
.shop-boxes-more{margin:-6px 0 14px;}
.shop-boxes-more a{font-weight:700;color:var(--ink);}

/* Box card: price, then what is inside behind one tap (11 Nov 2026). */
.shop-serve{margin:8px 0 0;font-size:12px;font-style:italic;color:var(--b-caramel,#A45A2A);}
.scard-what{margin:4px 0 2px;font-size:13.5px;}
.scard-what summary{display:inline-flex;align-items:center;gap:6px;min-height:32px;cursor:pointer;font-weight:700;color:var(--ink);list-style:none;}
.scard-what summary::-webkit-details-marker{display:none;}
.scard-what summary::after{content:'';width:7px;height:7px;margin-top:-3px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .15s;}
.scard-what[open] summary::after{margin-top:3px;transform:rotate(-135deg);}
.scard-what ul{list-style:none;margin:2px 0 6px;padding:0;}
.scard-what li{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid var(--hair-2,rgba(63,32,33,.12));line-height:1.3;}
.scard-what li:last-child{border-bottom:0;}
.scard-what li b{white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums;}
