/* Abbigliamento Militare Fossano — light theme first, dark via html[data-theme="dark"] */

:root {
  --bg: #ffffff;
  --surface: #f3f5f1;
  --ink: #18221c;
  --muted: #5b655e;
  --line: #dfe3dc;
  --line-strong: #b4bcb1;
  --action: #35462a;
  --action-hover: #26331e;
  --action-ink: #ffffff;
  --red: #b3122b;
  --ok: #2d6a3e;
  --well: #ffffff;
  --footer-bg: #18221c;
  --footer-ink: #e9ece5;
  --footer-muted: #a9b2a8;
  --font: "Titillium Web", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 4px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --header-h: 72px;
}
html[data-theme="dark"] {
  --bg: #131614;
  --surface: #1b1f1c;
  --ink: #eceee8;
  --muted: #a3aba3;
  --line: #2b312c;
  --line-strong: #4a544b;
  --action: #b9c78a;
  --action-hover: #cdd9a2;
  --action-ink: #141a10;
  --red: #ff7285;
  --ok: #8fd19e;
  --footer-bg: #0d0f0e;
  --footer-ink: #eceee8;
  --footer-muted: #9aa39a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--line-strong) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; caret-color: var(--action); }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--action); color: var(--action-ink); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--action); color: var(--action-ink); padding: 12px 16px; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: 1248px; margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* type */
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: clamp(27px, 2.8vw, 38px); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 20px; line-height: 1.3; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 60ch; }

/* links and buttons: one pair */
.link { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 5px; font-weight: 600; transition: text-decoration-color .2s ease; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: var(--r); background: var(--action); color: var(--action-ink); font-weight: 600; line-height: 1.2; border: 1px solid var(--action); transition: background-color .18s ease, border-color .18s ease, transform .16s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (hover: hover) {
  .link:hover { text-decoration-color: currentColor; }
  .btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
  .btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
}

/* ribbon: the stripes of a medal ribbon, one pattern per corps */
.ribbon { display: inline-block; width: 26px; height: 9px; flex: none; border-radius: 1px; background: var(--rb, var(--line-strong)); vertical-align: middle; }
.rb-cc { --rb: linear-gradient(90deg, #1c2b6e 0 34%, #c8102e 34% 66%, #1c2b6e 66%); }
.rb-ei { --rb: linear-gradient(90deg, #55602f 0 40%, #d7b44a 40% 60%, #55602f 60%); }
.rb-pp { --rb: linear-gradient(90deg, #2a67ad 0 30%, #e9edf2 30% 42%, #2a67ad 42% 58%, #e9edf2 58% 70%, #2a67ad 70%); }
.rb-ps { --rb: linear-gradient(90deg, #9d1238 0 38%, #e2bd4a 38% 62%, #9d1238 62%); }
.rb-gdf { --rb: linear-gradient(90deg, #efc100 0 25%, #2c6a3b 25% 75%, #efc100 75%); }
.rb-gpg { --rb: linear-gradient(90deg, #59606a 0 42%, #df7a24 42% 58%, #59606a 58%); }
.rb-med { --rb: linear-gradient(90deg, #1f8a4c 0 33.3%, #f2f2ee 33.3% 66.6%, #c8202e 66.6%); }
.rb-lib { --rb: linear-gradient(90deg, #8a9187 0 20%, #e6e9e3 20% 80%, #8a9187 80%); }

/* notice + header */
.notice { background: var(--surface); font-size: 14px; color: var(--muted); }
.notice .wrap { display: flex; justify-content: space-between; gap: 24px; min-height: 36px; align-items: center; }
.notice a { color: var(--ink); }
.notice-right { display: flex; gap: 24px; }
.header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; color: var(--action); }
.brand small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a, .nav button { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; font-weight: 600; font-size: 16px; border-radius: var(--r); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0 1.5px; background-position: 12px 34px; transition: background-size .25s var(--ease); }
.nav a[aria-current="page"], .nav button[aria-expanded="true"] { background-size: calc(100% - 24px) 1.5px; }
.nav .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.tools { display: flex; align-items: center; gap: 2px; }
.tool { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); transition: background-color .15s ease, transform .16s var(--ease); }
.tool:active { transform: scale(.94); }
.tool-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--action); color: var(--action-ink); font-size: 12px; font-weight: 700; line-height: 19px; text-align: center; }
.tool-count:empty { display: none; }
.tool-menu { display: none; }
.tool .icon { display: block; }
.when-light, .when-dark { display: contents; }
html[data-theme="dark"] .when-light, html:not([data-theme="dark"]) .when-dark { display: none; }
.search-trigger { display: flex; align-items: center; gap: 10px; width: 210px; height: 44px; padding: 0 14px; margin-right: 6px; border: 1px solid var(--line-strong); border-radius: 22px; color: var(--muted); font-size: 15px; text-align: left; transition: border-color .15s ease, color .15s ease; }
.search-trigger .icon { width: 19px; height: 19px; color: var(--ink); }
@media (hover: hover) { .search-trigger:hover { border-color: var(--ink); color: var(--ink); } }
@media (hover: hover) {
  .nav a:hover, .nav button:hover { background-size: calc(100% - 24px) 1.5px; }
  .tool:hover { background-color: var(--surface); }
}

/* catalogue panel under the header */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(24, 34, 28, .25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .22s var(--ease), visibility .18s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 32px; padding-block: 32px 40px; }
.mega h3 { font-size: 17px; margin-bottom: 8px; }
.mega h3 a { display: inline-flex; align-items: center; gap: 10px; }
.mega li a { display: block; padding: 4px 0; font-size: 15px; color: var(--muted); }
@media (hover: hover) { .mega a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }

/* search panel */
.searchbar { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(24, 34, 28, .25); display: none; }
.searchbar.is-open { display: block; }
.searchbar form { display: flex; gap: 12px; padding-block: 20px; }
.searchbar .input { flex: 1; height: 52px; font-size: 18px; }
.results { padding-bottom: 20px; }
.result { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 8px; border-radius: var(--r); }
.result img { width: 56px; height: 56px; object-fit: contain; background: var(--well); border-radius: 2px; }
.result b { display: block; font-weight: 600; line-height: 1.3; }
.result span { font-size: 14px; color: var(--muted); }
@media (hover: hover) { .result:hover { background: var(--surface); } }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .32s var(--ease-drawer), visibility .32s; }
.menu.is-open { transform: none; visibility: visible; }
.menu-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.menu-body { flex: 1; overflow: auto; padding: 8px 16px 40px; }
.menu summary, .menu-link { display: flex; align-items: center; gap: 12px; min-height: 56px; font-size: 19px; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .icon { margin-left: auto; width: 18px; height: 18px; transition: transform .2s var(--ease); }
.menu details[open] summary .icon { transform: rotate(180deg); }
.menu details a { display: flex; align-items: center; min-height: 44px; padding-left: 38px; color: var(--muted); }

/* sections */
.section { padding-block: 88px; }
.section-alt { background: var(--surface); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 40px; }
.head p { max-width: 52ch; color: var(--muted); }
.head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }

/* home hero */
.hero { padding-block: 40px 0; }
.hero-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.hero h1 { font-weight: 700; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.028em; }
.hero-side p { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; }
/* home slider: a native scroll-snap track, so it swipes on touch and scrolls with the keyboard */
.slider { margin-top: 36px; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--r); background: var(--surface); }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 2574 / 1247; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide:first-child img { animation: hero-in 1.1s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } }
.slider-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 16px; }
.slider-cap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; font-size: 19px; line-height: 1.35; }
.slider-cap strong { font-weight: 600; }
.slider-cap .link { font-size: 16px; }
.slider-ctrl { display: flex; align-items: center; gap: 6px; }
.slider-ctrl .num { margin-right: 10px; font-size: 15px; color: var(--muted); }
.slider-ctrl .tool { border: 1px solid var(--line-strong); }
.slider-ctrl .tool .icon { width: 20px; height: 20px; }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.tile-photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile h3 { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.tile p { font-size: 15px; color: var(--muted); }
@media (hover: hover) { .tile:hover .tile-photo img { transform: scale(1.03); } .tile:hover h3 span:last-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; } }

/* steps: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.steps li::before { content: counter(step); display: block; font-size: 40px; font-weight: 300; line-height: 1; margin-bottom: 14px; color: var(--action); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); }
.aside-note { margin-top: 32px; max-width: 70ch; }

/* photo frame: the whole photo is shown, never cropped. The shop's photos come in every
   shape, so the space around each one is filled with a blurred copy of the same photo. */
.photo { position: relative; overflow: hidden; background: var(--surface); isolation: isolate; }
.photo img { position: absolute; left: 50%; top: 50%; max-width: none; aspect-ratio: 1; transform: translate(-50%, -50%); }
.photo-bg { filter: blur(22px) saturate(.8); opacity: .85; }
.photo-fg { transition: transform .5s var(--ease); }
.photo.is-missing img { visibility: hidden; }

/* product cards */
.goods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); transition: border-color .2s ease; }
.card-media { position: relative; }
.wish { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--ink); box-shadow: 0 1px 4px rgba(12, 18, 14, .22); transition: transform .16s var(--ease); }
.wish:active { transform: scale(.9); }
.wish .icon { width: 20px; height: 20px; transition: fill .15s ease, stroke .15s ease; }
.wish[aria-pressed="true"] .icon { fill: var(--red); stroke: var(--red); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-cat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.3; }
.card-cat span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name { margin-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-name a::after { content: ""; position: absolute; inset: 0; }
.card-code { margin-top: 2px; font-size: 13px; color: var(--muted); min-height: 1.5em; }
.card-foot { margin-top: auto; padding-top: 12px; }
.price { font-weight: 700; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; font-size: 14px; color: var(--muted); }
.price s { font-weight: 400; font-size: 14px; color: var(--muted); margin-right: 6px; }
.card-kind { margin-top: 2px; font-size: 14px; color: var(--muted); }
.card-kind.is-free { color: var(--ok); }
.card .btn { position: relative; z-index: 1; width: 100%; min-height: 44px; margin-top: 12px; padding: 8px 12px; font-size: 15px; }
.card .btn .icon { width: 19px; height: 19px; }
.label-short { display: none; }
@media (hover: hover) { .card:hover { border-color: var(--line-strong); } .card:hover .photo-fg { transform: translate(-50%, -50%) scale(1.03); } }

/* service facts above the footer */
.service { border-top: 1px solid var(--line); }
.service-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px; font-size: 15px; }
.service-row p { display: flex; align-items: center; gap: 10px; }
.service-row .icon { width: 20px; height: 20px; color: var(--action); }

/* enlarged photo */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(10, 14, 11, .92); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); background: #fff; border-radius: var(--r); }
.lightbox .tool { position: absolute; top: 14px; right: 14px; color: #fff; }

/* photo strip + story split */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.strip a, .shots a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--well); border: 1px solid var(--line); }
.strip img, .shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (hover: hover) { .strip a:hover img, .shots a:hover img { transform: scale(1.03); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split-text > * + * { margin-top: 18px; }
.split-photo { border-radius: var(--r); overflow: hidden; background: var(--well); }
.split-photo img { width: 100%; }

/* visit */
.address { display: inline-block; margin-top: 12px; font-size: clamp(40px, 6.6vw, 96px); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: .12em; transition: text-decoration-color .25s ease; }
@media (hover: hover) { .address:hover { text-decoration-color: currentColor; } }
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; margin-top: 48px; }
.rows { border-top: 1px solid var(--line); }
.rows > div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--muted); }
.rows dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.open-now { font-weight: 600; color: var(--ok); }
.open-now.is-closed { color: var(--red); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.map { margin-top: 56px; height: 420px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
html[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* page head (category, info, cart…) */
.pagehead { padding-block: 32px 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.pagehead h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.pagehead h1 .ribbon { width: 44px; height: 14px; }
.pagehead .lead { margin-top: 12px; }
.cathead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.cathead-photo { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.cathead-photo img { width: 100%; height: 100%; object-fit: cover; }
.sublist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 20px; font-size: 15px; font-weight: 600; line-height: 1.2; transition: background-color .15s ease, border-color .15s ease; }
.chip span { font-weight: 400; color: var(--muted); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.is-on span { color: inherit; opacity: .75; }
@media (hover: hover) { .chip:not(.is-on):hover { border-color: var(--ink); } }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 16px; margin-bottom: 28px; border-block: 1px solid var(--line); }
.toolbar .field-inline { flex: 1; min-width: 220px; position: relative; }
.toolbar .field-inline .icon { position: absolute; left: 12px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.toolbar .field-inline .input { padding-left: 42px; }
.toolbar .count { margin-left: auto; font-size: 15px; color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.empty h2, .empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }
.more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 48px; color: var(--muted); font-size: 15px; }

/* forms */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.field em { font-style: normal; color: var(--red); }
.input { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r); font-size: 16px; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease; }
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { outline: 0; border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 22%, transparent); }
textarea.input { min-height: 104px; resize: vertical; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237b857c' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field-error { display: none; margin-top: 6px; font-size: 14px; color: var(--red); }
.field.has-error .input { border-color: var(--red); }
.field.has-error .field-error { display: block; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--action); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); font-weight: 600; font-size: 15px; text-align: center; line-height: 1.25; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.choice input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 3px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r); margin-bottom: 8px; cursor: pointer; }
.option input { accent-color: var(--action); width: 18px; height: 18px; }
.option span { margin-left: auto; color: var(--muted); font-size: 15px; }
.fineprint { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; padding-bottom: 88px; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery-main { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs button { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: var(--r); background: var(--well); overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: 15px; color: var(--muted); }
.product-meta .is-free { color: var(--ok); font-weight: 600; }
.product-meta .is-card { color: var(--ink); font-weight: 600; }
.product-price { margin-top: 20px; font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.product-price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.product-price s { font-size: 18px; font-weight: 400; color: var(--muted); margin-right: 10px; }
.block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.block > h2 { font-size: 19px; letter-spacing: 0; margin-bottom: 16px; }
.buy { display: flex; gap: 10px; margin-top: 8px; }
.buy .btn { flex: 1; }
.btn .icon { width: 20px; height: 20px; }
.buy .wish-btn { flex: none; width: 48px; padding: 0; }
.wish-btn[aria-pressed="true"] .icon { fill: var(--red); stroke: var(--red); }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); }
.qty button { display: grid; place-items: center; width: 44px; height: 46px; }
.qty button .icon { width: 18px; height: 18px; }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 600; font-variant-numeric: tabular-nums; outline-offset: 0; }
.qty-sm button { width: 36px; height: 36px; }
.qty-sm input { width: 30px; font-size: 15px; }
.perks { margin-top: 24px; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--ink); }

/* prose */
.prose { max-width: 70ch; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4, .prose h5 { font-size: 22px; line-height: 1.25; letter-spacing: 0; margin-top: 1.8em; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose img { height: auto; border-radius: var(--r); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.info { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 88px; }
.sidenav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; }
.sidenav a { padding: 9px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.sidenav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (hover: hover) { .sidenav a:hover { color: var(--ink); } }

/* cart */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding-bottom: 88px; }
.panel { background: var(--surface); border-radius: var(--r); padding: 28px; }
.panel-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.panel > h2 { font-size: 22px; letter-spacing: 0; margin-bottom: 18px; }
.formgroup { padding: 28px 0; border-top: 1px solid var(--line); }
.formgroup:first-child { padding-top: 0; border-top: 0; }
.formgroup > h2 { font-size: 22px; letter-spacing: 0; margin-bottom: 18px; }
.line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-photo { width: 88px; height: 88px; border: 1px solid var(--line); border-radius: var(--r); background: var(--well); overflow: hidden; }
.line-photo img { width: 100%; height: 100%; object-fit: contain; }
.line-name { font-weight: 600; line-height: 1.3; }
.line-opts { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.line-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.line-remove { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; min-height: 36px; }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.sum .sum-total { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 22px; font-weight: 700; }
.sum dd { font-variant-numeric: tabular-nums; }
.ship { margin-bottom: 18px; font-size: 15px; }
.ship-bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--ok); transition: width .4s var(--ease); }
.narrow { max-width: 480px; margin-inline: auto; padding-block: 48px 104px; }
.narrow h1 { margin-bottom: 10px; }
.narrow .lead { margin-bottom: 28px; font-size: 17px; }

/* drawer + toast */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(12, 18, 14, .45); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 55; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; box-shadow: -24px 0 48px -24px rgba(12, 18, 14, .35); transform: translateX(100%); visibility: hidden; transition: transform .34s var(--ease-drawer), visibility .34s; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; letter-spacing: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 0 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .btn + .btn { margin-top: 8px; }
.drawer .line { grid-template-columns: 72px minmax(0, 1fr) auto; }
.drawer .line-photo { width: 72px; height: 72px; }
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; box-shadow: 0 12px 32px -8px rgba(12, 18, 14, .4); animation: toast-in .4s ease both; }
.toast.is-out { opacity: 0; transition: opacity .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* footer */
.footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 64px 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer h2 { font-size: 16px; letter-spacing: 0; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--footer-muted); }
.footer .brand { color: var(--footer-ink); }
.footer .brand svg { color: #b9c78a; }
.footer .brand small, .footer p { color: var(--footer-muted); }
.footer p { margin-top: 16px; max-width: 34ch; font-size: 15px; }
.footer-legal { margin-top: 56px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: var(--footer-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (hover: hover) { .footer a:hover { color: var(--footer-ink); text-decoration: underline; text-underline-offset: 4px; } }

/* responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .tools { margin-left: auto; }
  .search-trigger { width: 44px; padding: 0; margin: 0; border: 0; justify-content: center; }
  .search-trigger span { display: none; }
  .search-trigger .icon { width: 22px; height: 22px; }
  .tool-menu { display: grid; }
  .mega { display: none; }
  .hero-head, .cathead, .split, .visit, .product, .layout-2, .info { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gallery, .panel-sticky, .sidenav { position: static; }
  .sidenav { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .tiles, .goods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 72px; }
}
@media (max-width: 680px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .notice-right { display: none; }
  .header-row { gap: 12px; }
  .brand { font-size: 17px; gap: 10px; min-width: 0; }
  .brand small { display: none; }
  .tools { gap: 0; }
  .tool { width: 40px; }
  .tool-account { display: none; }
  .section { padding-block: 56px; }
  .head { margin-bottom: 28px; }
  .head-side { align-items: flex-start; text-align: left; }
  .hero { padding-top: 32px; }
  .slider { margin-top: 32px; }
  .slide { aspect-ratio: 16 / 10; }
  .slide.is-banner img { object-fit: contain; }
  .slider-cap { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .goods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card-cat .ribbon { display: none; }
  .card .btn { font-size: 14px; padding-inline: 8px; gap: 6px; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .wish { top: 6px; right: 6px; width: 36px; height: 36px; }
  .service-row { flex-direction: column; }
  .tile h3 { font-size: 17px; }
  .steps, .cols-2, .choice { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sublist { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .sublist::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .toolbar .input { min-width: 0; }
  .toolbar select.input { flex: 1; }
  .toolbar .count { width: 100%; margin-left: 0; }
  .card-name { font-size: 15px; }
  .price { font-size: 17px; }
  .product { padding-bottom: 56px; }
  .buy { position: sticky; bottom: 0; z-index: 5; margin-inline: -16px; padding: 12px 16px; background: var(--bg); border-top: 1px solid var(--line); }
  .line { grid-template-columns: 72px minmax(0, 1fr); }
  .line-photo { width: 72px; height: 72px; }
  .line-total { grid-column: 2; }
  .panel { padding: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .map { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
