/*
 * MagicToys storefront. Visual language ported from the client team's prototype (Mažvydas):
 * warm peach surfaces, Nunito, soft radii, pill controls, pastel age tiles.
 * Radius rule: containers 20-26px, cards 20px, media 14px, inputs 10px, every control a full pill.
 * Icons: Tabler Icons (MIT), inlined through templates/shop/_components/icon.html.twig.
 */

/* Nunito (OFL, see public/shop-static/fonts/OFL.txt), self-hosted variable font subset to Latin + Latin Extended-A
   (LT/LV/ET diacritics). No Google Fonts hotlinking (GDPR). */
@font-face {
  font-family: "Nunito";
  src: url("/shop-static/fonts/nunito-var-latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf5ef;
  --surface: #fffdfb;
  --peach: #f7e7dc;
  --peach-strong: #f2d9c9;
  --sage: #e3ebe2;
  --ink: #4a3226;
  --ink-soft: #6e5446;
  --muted: #7d6656;
  --line: #efe2d7;
  --accent: #b15a3b;
  --accent-hover: #9c4d31;
  --accent-tint: #fdf3ee;
  --link: #a24f36;
  --deco: #d47a5f;
  --good: #36714a;
  --warn: #9a5222;
  --bad: #b3261e;
  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --r-xl: 26px;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgb(74 50 38 / .04), 0 8px 24px -14px rgb(74 50 38 / .22);
  --shadow-lift: 0 2px 4px rgb(74 50 38 / .05), 0 16px 32px -16px rgb(74 50 38 / .3);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --age-0: #fbe4e2; --age-0-ink: #a8473c;
  --age-1: #fbecd2; --age-1-ink: #8f5a1c;
  --age-2: #e3ecdf; --age-2-ink: #3f6a48;
  --age-3: #e2e8f5; --age-3-ink: #3f5b96;
  --age-4: #ece4f6; --age-4-ink: #6a4b98;
  --age-5: #f5e6d9; --age-5-ink: #8a4a2c;
  /* z-index scale */
  --z-sticky: 10;
  --z-buybar: 20;
  --z-menu: 30;
  --z-skip: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; overflow-x: clip; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 2.3vw, 1.55rem); }
h3 { font-size: 1.05rem; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: var(--z-skip); }
.skip:focus { top: 12px; }
.wrap { max-width: 78rem; margin: 0 auto; padding-inline: 16px; }
.main { padding-block: 22px 72px; display: flex; flex-direction: column; gap: 40px; min-height: 60vh; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Free shipping strip */
.ship-bar { background: var(--ink); color: #fff; font-size: .84rem; font-weight: 600; text-align: center; padding: 7px 16px; }
.ship-bar b { font-weight: 800; }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: var(--z-sticky); }
.head-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding-block: 10px; }
.logo { display: flex; flex-direction: column; align-items: center; color: var(--ink); line-height: 1; flex: none; }
.logo:hover { text-decoration: none; }
.logo img { width: 132px; height: auto; }
.logo small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: -2px; }
.search { flex: 1 1 18rem; display: flex; min-width: 0; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.search:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 2px var(--accent); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 10px 18px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; }
.search button { border: 0; background: transparent; color: var(--ink-soft); padding: 0 16px; cursor: pointer; display: grid; place-items: center; min-width: 44px; border-radius: 999px; }
.head-tools { display: flex; align-items: center; gap: 4px; }
.lang { display: flex; gap: 2px; padding: 3px; background: var(--bg); border-radius: 999px; }
.lang a { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 8px; border-radius: 999px; color: var(--ink-soft); font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.lang a:hover { text-decoration: none; background: var(--peach); }
.lang a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(74 50 38 / .14); }
.icon-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); border: 0; background: none; cursor: pointer; }
.icon-link:hover { background: var(--peach); text-decoration: none; }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--accent); color: #fff; border-radius: 999px; min-width: 1.2rem; height: 1.2rem; display: grid; place-items: center; font-size: .7rem; font-weight: 800; padding: 0 .3rem; transition: transform .2s var(--ease-out); }
.cart-count.bump { transform: scale(1.25); }
.cats { display: flex; gap: 2px 4px; overflow-x: auto; padding-block: 0 8px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { color: var(--ink); font-weight: 600; font-size: .94rem; white-space: nowrap; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
.cats a:hover { text-decoration: none; background: var(--peach); }
.cats a[aria-current="page"] { background: var(--peach); font-weight: 800; }
.cats .cats-gift { color: var(--accent-hover); font-weight: 800; }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 12px 26px; min-height: 44px; cursor: pointer; text-align: center; white-space: nowrap; transition: background-color .2s, transform .16s var(--ease-out), box-shadow .2s; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-busy { opacity: .75; cursor: progress; }
.btn.is-done { background: var(--good); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
input, select, textarea { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; max-width: 100%; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; padding: 0; accent-color: var(--accent); }
select { padding-right: 32px; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-xl); overflow: hidden; background: var(--peach); aspect-ratio: 16 / 7.2; min-height: 22rem; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(251 245 239 / .94), rgb(251 245 239 / .74) 34%, rgb(251 245 239 / 0) 58%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: clamp(24px, 5vw, 56px); max-width: 35rem; }
.hero-copy h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.hero-copy p { color: var(--ink-soft); font-size: 1.06rem; max-width: 30rem; }
.hero-heart { color: var(--accent); display: inline-block; vertical-align: -.08em; }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sections */
.section { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* Category circles */
.circles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 14px; }
.circles a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: .92rem; text-align: center; line-height: 1.25; }
.circles a:hover { text-decoration: none; }
.circles .ring { width: 84px; height: 84px; border-radius: 999px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 4px var(--peach); transition: transform .2s var(--ease-out), box-shadow .2s; }
.circles img { width: 100%; height: 100%; object-fit: cover; }
.circles small { color: var(--muted); font-weight: 600; font-size: .78rem; }

/* Age tiles */
.ages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.age { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 100%; min-height: 6.4rem; padding: 14px 16px; border-radius: var(--r); color: var(--ink); transition: transform .2s var(--ease-out), box-shadow .2s; }
.age:hover { text-decoration: none; }
.age-num { font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; white-space: nowrap; }
.age-label { font-size: .8rem; font-weight: 700; line-height: 1.25; color: var(--ink-soft); }
.age-0 { background: var(--age-0); } .age-0 .age-num { color: var(--age-0-ink); }
.age-1 { background: var(--age-1); } .age-1 .age-num { color: var(--age-1-ink); }
.age-2 { background: var(--age-2); } .age-2 .age-num { color: var(--age-2-ink); }
.age-3 { background: var(--age-3); } .age-3 .age-num { color: var(--age-3-ink); }
.age-4 { background: var(--age-4); } .age-4 .age-num { color: var(--age-4-ink); }
.age-5 { background: var(--age-5); } .age-5 .age-num { color: var(--age-5-ink); }

/* Trust strip */
.trust { list-style: none; margin: 0; padding: 14px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px 20px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.trust li { display: flex; gap: 10px; align-items: center; color: var(--deco); }
.trust span { color: var(--ink-soft); font-size: .86rem; line-height: 1.3; font-weight: 600; }

/* Product grid and card */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 18px 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; background: var(--surface); border-radius: var(--r-lg); padding: 10px 10px 12px; box-shadow: var(--shadow); transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.card-link { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; color: var(--ink); }
.card-link:hover { text-decoration: none; }
.card-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease-out); }
.chip { position: absolute; left: 8px; top: 8px; background: var(--surface); color: var(--muted); font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; box-shadow: 0 1px 3px rgb(74 50 38 / .12); }
.chip.warn { color: var(--warn); }
.chip.off { color: var(--muted); }
.card-age { font-size: .76rem; font-weight: 800; color: var(--ink-soft); background: var(--peach); align-self: flex-start; padding: 2px 9px; border-radius: 999px; }
.card-name { font-weight: 700; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; transition: color .2s; }
.price { font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.card-buy .btn { width: 100%; padding: 9px 14px; font-size: .92rem; }
.empty { color: var(--muted); padding: 28px 0; }

/* Breadcrumbs */
.crumbs { color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* Catalog */
.list-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); }
.list-hero .lead { color: var(--ink-soft); max-width: 42rem; margin-top: 8px; }
.list-hero .mark { width: 96px; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--ink); font-weight: 700; font-size: .9rem; transition: border-color .2s; }
.chips a:hover { border-color: var(--accent); text-decoration: none; }
.catalog { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar select { width: 100%; border-radius: 999px; }
.side-title { display: block; font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); padding: 0; }
.side-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tree a { display: block; color: var(--ink-soft); padding: 7px 12px; border-radius: var(--r-sm); font-size: .93rem; font-weight: 600; }
.tree a:hover { background: var(--peach); text-decoration: none; }
.tree a[aria-current="page"] { background: var(--peach); color: var(--ink); font-weight: 800; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: .93rem; color: var(--ink-soft); cursor: pointer; min-height: 28px; }
.checks small { color: var(--muted); }
.price-range { display: flex; gap: 8px; align-items: flex-end; }
.price-range label { display: flex; flex-direction: column; gap: 3px; font-size: .76rem; font-weight: 700; color: var(--muted); flex: 1 1 0; }
.price-range input { width: 100%; border-radius: 999px; padding: 8px 12px; }
.filters-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-open { display: none; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toolbar label { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); font-weight: 700; }
.toolbar select { border-radius: 999px; padding: 8px 36px 8px 14px; font-size: .92rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; background: var(--peach); color: var(--ink); border-radius: 999px; padding: 5px 10px 5px 12px; font-size: .84rem; font-weight: 700; }
.active-filters a:hover { text-decoration: none; background: var(--peach-strong); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; list-style: none; margin: 8px 0 0; padding: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 700; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.pager a:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.pager [aria-current="page"] { background: var(--accent); color: #fff; box-shadow: none; }
.result-count { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* Gift finder */
.finder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; background: var(--sage); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 40px); }
.finder-copy { display: flex; flex-direction: column; gap: 10px; }
.finder-copy p { color: var(--ink-soft); max-width: 30rem; }
.finder-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.finder-form label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 800; color: var(--ink-soft); min-width: 0; }
.finder-form select { border-radius: 999px; padding: 10px 36px 10px 14px; width: 100%; }
.finder-page .finder-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finder-page .finder-form .btn { grid-column: 1 / -1; justify-self: start; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.gallery { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px; min-width: 0; }
.gallery.single { grid-template-columns: minmax(0, 1fr); }
.gallery > input { position: absolute; opacity: 0; pointer-events: none; }
.thumbs { display: flex; flex-direction: column; gap: 8px; order: -1; }
.thumbs label { display: block; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #fff; transition: border-color .2s; }
.thumbs img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.slides { position: relative; aspect-ratio: 1; background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; }
.gallery.single .slides img, #g0:checked ~ .slides .s0, #g1:checked ~ .slides .s1, #g2:checked ~ .slides .s2, #g3:checked ~ .slides .s3,
#g4:checked ~ .slides .s4, #g5:checked ~ .slides .s5, #g6:checked ~ .slides .s6, #g7:checked ~ .slides .s7 { opacity: 1; }
#g0:checked ~ .thumbs [for="g0"], #g1:checked ~ .thumbs [for="g1"], #g2:checked ~ .thumbs [for="g2"], #g3:checked ~ .thumbs [for="g3"],
#g4:checked ~ .thumbs [for="g4"], #g5:checked ~ .thumbs [for="g5"], #g6:checked ~ .thumbs [for="g6"], #g7:checked ~ .thumbs [for="g7"] { border-color: var(--accent); }
#g0:focus-visible ~ .thumbs [for="g0"], #g1:focus-visible ~ .thumbs [for="g1"], #g2:focus-visible ~ .thumbs [for="g2"], #g3:focus-visible ~ .thumbs [for="g3"],
#g4:focus-visible ~ .thumbs [for="g4"], #g5:focus-visible ~ .thumbs [for="g5"], #g6:focus-visible ~ .thumbs [for="g6"], #g7:focus-visible ~ .thumbs [for="g7"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.buy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.buy .brand { color: var(--muted); font-weight: 700; font-size: .9rem; }
.buy h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.buy .price { font-size: 2.1rem; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vat-note { color: var(--muted); font-size: .84rem; font-weight: 600; }
.stock-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--good); }
.stock-line.low { color: var(--warn); }
.stock-line.off { color: var(--muted); }
.stock-line .dot { width: 9px; height: 9px; border-radius: 999px; background: currentColor; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.features li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--ink-soft); line-height: 1.25; }
.features svg { color: var(--deco); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.buy-row .btn { flex: 1 1 12rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.15rem; cursor: pointer; border-radius: 999px; display: grid; place-items: center; }
.qty button:hover { background: var(--peach); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty input { width: 2.8rem; border: 0; text-align: center; font-weight: 800; background: none; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-status { font-size: .9rem; font-weight: 700; min-height: 1.4em; }
.buy-status.ok { color: var(--good); }
.buy-status.err { color: var(--bad); }
.delivery { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 12px; background: var(--surface); border-radius: var(--r-lg); padding: 14px 18px; box-shadow: var(--shadow); }
.delivery div { display: flex; gap: 10px; align-items: center; font-size: .86rem; color: var(--ink-soft); line-height: 1.3; font-weight: 600; }
.delivery strong { color: var(--ink); }
.delivery svg { color: var(--deco); flex: none; }
.notice { background: var(--peach); color: var(--ink-soft); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 600; font-size: .9rem; }
.tabs { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--line); padding: 0 12px; }
.tab-list label { padding: 14px 14px 12px; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.tab-panel { display: none; padding: clamp(18px, 3vw, 28px); }
#t-desc:checked ~ .tab-list [for="t-desc"], #t-props:checked ~ .tab-list [for="t-props"], #t-ship:checked ~ .tab-list [for="t-ship"] { color: var(--ink); border-bottom-color: var(--accent); }
#t-desc:checked ~ .p-desc, #t-props:checked ~ .p-props, #t-ship:checked ~ .p-ship { display: block; }
.tabs > input:focus-visible ~ .tab-list { outline: 3px solid var(--accent); outline-offset: -3px; }
.prose { max-width: 46rem; display: flex; flex-direction: column; gap: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 4px; }
.prose h2, .prose h3 { font-size: 1.1rem; margin-top: 8px; }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 6px 12px 6px 0; text-align: left; }
.props { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0; }
.props dt { color: var(--muted); font-weight: 600; }
.props dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.faq { display: flex; flex-direction: column; margin: 0; }
.faq div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq div:last-child { border-bottom: 0; }
.faq dt { font-weight: 800; }
.faq dd { margin: 4px 0 0; color: var(--ink-soft); }
.shop-gpsr { background: var(--bg); border-radius: var(--r); padding: 16px 18px; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.shop-gpsr h2 { font-size: 1rem; }
.shop-gpsr h3 { font-size: .95rem; }
.shop-gpsr dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; margin: 0; }
.shop-gpsr dt { color: var(--muted); font-weight: 600; }
.shop-gpsr dd { margin: 0; overflow-wrap: anywhere; }
.shop-gpsr ul { margin: 0; padding-left: 1.2rem; }
.shop-lowest-price { color: var(--muted); font-size: .86rem; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-buybar); display: none; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgb(74 50 38 / .35); transform: translateY(110%); transition: transform .25s var(--ease-out); }
.buybar.show { transform: translateY(0); }
.buybar .price { font-size: 1.15rem; }
.buybar .buybar-name { flex: 1 1 auto; min-width: 0; font-size: .82rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { flex: none; }

/* Cart, checkout and order (W4/W5 templates) */
.steps { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; gap: 8px 28px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; font-weight: 600; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps span { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--line); color: var(--ink-soft); font-weight: 800; font-size: .8rem; }
.steps .done span, .steps .now span { background: var(--accent); color: #fff; }
.steps .now { color: var(--ink); font-weight: 800; }
.panel { background: var(--surface); border-radius: var(--r-xl); padding: clamp(16px, 3vw, 26px); box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
.mt-cart__items { list-style: none; margin: 0; padding: 0; }
.mt-cart__item { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; grid-template-areas: "img name price" "img qty remove"; gap: 8px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mt-cart__item:last-child { border-bottom: 0; }
.mt-cart__item .thumb { grid-area: img; width: 5rem; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-sm); background: #fff; }
.mt-cart__item h2 { grid-area: name; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.mt-cart__item h2 a { color: var(--ink); }
.mt-cart__item > p { grid-area: price; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-cart__item > p[role="status"] { grid-area: auto; grid-column: 2 / -1; color: var(--bad); font-weight: 700; font-size: .86rem; }
.mt-cart__quantity { grid-area: qty; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt-cart__quantity label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.mt-cart__quantity input { width: 4.2rem; border-radius: 999px; text-align: center; font-weight: 800; }
.mt-cart__quantity button, .mt-cart__remove button { border: 0; background: none; color: var(--link); font-weight: 700; cursor: pointer; min-height: 44px; padding: 0 8px; border-radius: 999px; }
.mt-cart__quantity button:hover, .mt-cart__remove button:hover { background: var(--peach); }
.mt-cart__remove { grid-area: remove; justify-self: end; }
.mt-cart__total { font-size: 1.15rem; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.mt-cart__checkout { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 12px 26px; min-height: 48px; width: 100%; transition: background-color .2s, transform .16s var(--ease-out); }
.mt-cart__checkout:hover { background: var(--accent-hover); text-decoration: none; }
.mt-cart__checkout:active { transform: scale(.97); }
.mt-cart__error, .mt-checkout__error { background: #fdecea; color: var(--bad); font-weight: 700; border-radius: var(--r-sm); padding: 12px 14px; }
.summary { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 140px; }
.ship-progress { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.ship-progress meter { width: 100%; height: 8px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: .86rem; font-weight: 600; }
.ticks li { display: flex; gap: 8px; align-items: center; }
.ticks svg { color: var(--deco); flex: none; }
.checkout-page .mt-checkout__form, .checkout-page > .mt-checkout__title, .checkout-page > .mt-checkout__error { width: 100%; max-width: 48rem; margin-inline: auto; }
.mt-checkout__summary { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 24px); display: flex; flex-direction: column; gap: 6px; }
.mt-checkout__summary h2 { font-size: 1.15rem; margin-bottom: 4px; }
.mt-checkout__summary ul { margin: 0; padding-left: 1.1rem; }
.mt-checkout__consents label { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; font-weight: 600; color: var(--ink); }
.mt-checkout__consents input { margin-top: 3px; }
.checkout-page .mt-payment__group, .checkout-page .mt-order__items, .checkout-page .mt-order__totals { max-width: 48rem; }
.mt-checkout__form { display: flex; flex-direction: column; gap: 18px; }
.mt-checkout__form fieldset { border: 0; margin: 0; padding: clamp(16px, 3vw, 24px); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mt-checkout__form legend { float: left; width: 100%; font-weight: 800; font-size: 1.15rem; padding: 0; margin-bottom: 8px; }
.mt-checkout__form label { font-weight: 700; font-size: .86rem; color: var(--ink-soft); margin-top: 8px; }
.mt-checkout__form input:not([type="checkbox"]):not([type="radio"]), .mt-checkout__form select, .mt-checkout__form textarea { width: 100%; }
.mt-checkout__form p { color: var(--muted); font-size: .84rem; }
.mt-checkout__form button[type="submit"], .mt-payment__continue, .mt-order__pay { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 13px 28px; min-height: 48px; cursor: pointer; transition: background-color .2s, transform .16s var(--ease-out); }
.mt-checkout__form button[type="submit"]:hover, .mt-payment__continue:hover, .mt-order__pay:hover { background: var(--accent-hover); text-decoration: none; }
.mt-checkout__form button[type="submit"]:active { transform: scale(.97); }
.mt-payment__group { display: flex; flex-direction: column; gap: 10px; }
.mt-payment__group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 10px; }
.mt-payment__method { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 14px; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-weight: 700; text-align: center; }
.mt-payment__method:hover { box-shadow: inset 0 0 0 1.5px var(--accent); text-decoration: none; }
.mt-order__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mt-order__totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; }
.mt-order__totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.doc-page { display: flex; flex-direction: column; gap: 16px; max-width: 52rem; }
.doc-page form { display: flex; flex-direction: column; gap: 14px; }
.doc-page form div { display: flex; flex-direction: column; gap: 5px; }
.doc-page label { font-weight: 700; font-size: .86rem; color: var(--ink-soft); }
.doc-page button[type="submit"] { align-self: flex-start; border: 0; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 12px 26px; min-height: 44px; cursor: pointer; }
.doc-page button[type="submit"]:hover { background: var(--accent-hover); }
.shop-legal-page { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.shop-legal-page ul, .shop-legal-page ol { padding-left: 1.25rem; }

/* Footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-soft); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 34px 20px; }
.foot-grid nav, .foot-grid .shop-legal-footer nav { display: flex; flex-direction: column; gap: 8px; }
.foot-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.foot-grid a { color: var(--ink-soft); }
.foot-brand { display: flex; flex-direction: column; gap: 10px; max-width: 22rem; align-items: flex-start; font-size: .9rem; }
.foot-brand img { width: 120px; height: auto; }
.foot-brand address { font-style: normal; line-height: 1.6; }
.shop-legal-footer { margin: 0; }
.shop-withdraw-link { font-weight: 800; }
.foot-legal { border-top: 1px solid var(--line); padding-block: 14px 22px; font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.pay-note { display: inline-flex; align-items: center; gap: 6px; }

/* Interaction polish: hover only where a pointer can hover */
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: var(--shadow-lift); }
  .card-link:hover .card-name { color: var(--accent); }
  .card-link:hover .card-img img { transform: scale(1.03); }
  .age:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .circles a:hover .ring { transform: translateY(-3px); box-shadow: 0 0 0 4px var(--peach-strong); }
}

@media (max-width: 1100px) {
  .ages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finder { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 981px) {
  .chips.subcats { display: none; }
  /* Desktop: wrap instead of a hidden horizontal scroll, so the last links are never cut off. */
  .cats { flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 980px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .js .filter-open { display: inline-flex; align-self: flex-start; }
  .js .sidebar:not(.open) { display: none; }
  .cats { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .hero { min-height: 0; aspect-ratio: auto; }
  .hero::after { display: none; }
  .hero-img { position: relative; order: -1; aspect-ratio: 16 / 10; }
  .hero-copy { max-width: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .delivery { grid-template-columns: minmax(0, 1fr); }
  .finder-form { grid-template-columns: minmax(0, 1fr); }
  .finder-form .btn { width: 100%; }
}
@media (max-width: 700px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .ages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .ages li { flex: 0 0 44%; scroll-snap-align: start; }
  .buybar { display: flex; }
  body.has-buybar { padding-bottom: 76px; }
  .finder-page .finder-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .circles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding: 4px 2px 6px; }
  .circles li { flex: 0 0 6.6rem; scroll-snap-align: start; }
  .circles .ring { width: 72px; height: 72px; }
  .hero-img { aspect-ratio: 16 / 9; }
  .hero-copy { gap: 12px; padding: 20px; }
  .hero-copy h1 { font-size: 1.85rem; }
  .hero-actions .btn { padding: 11px 20px; }
  .site-head { position: static; }
  .head-row { gap: 8px 10px; padding-block: 8px; }
  .logo img { width: 96px; }
  .logo small { display: none; }
  .head-tools { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; }
  .lang a { min-width: 34px; padding: 0 4px; }
  .cats { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .card { padding: 8px 8px 10px; }
  .card-name { font-size: .88rem; }
  .price { font-size: 1.12rem; }
  .card-buy .btn { padding: 9px 8px; font-size: .86rem; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-hero .mark { width: 64px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .thumbs { flex-direction: row; flex-wrap: wrap; order: 1; }
  .thumbs label { flex: 0 0 3.5rem; }
  .props, .shop-gpsr dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .props dd, .shop-gpsr dd { margin-bottom: 8px; }
  .mt-cart__item { grid-template-columns: 4rem minmax(0, 1fr); grid-template-areas: "img name" "img price" "qty qty" "remove remove"; }
  .mt-cart__item .thumb { width: 4rem; }
  .mt-cart__remove { justify-self: start; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
