/* ==========================================================================
   Lafix Shop — storefront (shop.html, produkt.php, warenkorb.html, bestellung-erfolgreich.html)
   Light trade-shop layout: white base, steel-grey image wells, graphite ink,
   Lafix slate for header/footer, signal orange only for actions.
   Type: Archivo (variable width) — condensed for headlines, normal for text.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --well: #eef1f3;          /* steel-grey image wells / subtle fills */
  --well-2: #f6f7f8;
  --line: #dde2e6;
  --line-strong: #c4ccd2;
  --ink: #1c232a;           /* graphite text */
  --ink-2: #4a5761;         /* secondary text */
  --ink-3: #74828c;         /* tertiary / meta */
  --slate: #2e3e47;         /* Lafix slate: header bar, footer */
  --slate-2: #24323a;
  --signal: #ee7d00;        /* Lafix orange: actions only */
  --signal-hover: #d96f00;
  --signal-soft: #fff2e3;
  --ok: #1d7f47;
  --warn: #b55d00;
  --bad: #c0392b;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --r-s: 4px;   /* controls */
  --r-m: 8px;   /* cards, images */
  --wrap: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --hdr-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body.store {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55; font-stretch: 100%;
  font-feature-settings: 'tnum' 0; -webkit-font-smoothing: antialiased;
}
:where(.store) img { max-width: 100%; display: block; }
:where(.store) a { color: inherit; text-decoration: none; }
:where(.store) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.store) :where(h1, h2, h3, p, ul, figure) { margin: 0; }
:where(.store) ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico--s { width: 16px; height: 16px; }
.ico--l { width: 26px; height: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* Headline voice: condensed, heavy, tight — site signage, not a magazine */
.h-display, .h-1, .h-2 { font-stretch: 72%; font-weight: 800; letter-spacing: -0.005em; line-height: 1.02; color: var(--ink); }
.h-display { font-size: clamp(2.6rem, 6.2vw, 4.9rem); }
.h-1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.h-2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
.h-3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.lead { font-size: 1.075rem; color: var(--ink-2); max-width: 60ch; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-s); border: 1px solid transparent; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn--signal { background: var(--signal); color: #1a1208; }
.btn--signal:hover { background: var(--signal-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--line { border-color: var(--line-strong); background: var(--paper); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: var(--signal); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar { background: var(--slate-2); color: #d5dde2; font-size: 0.8rem; }
.topbar .wrap { display: flex; align-items: center; gap: 28px; min-height: 34px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__item .ico { width: 15px; height: 15px; color: #fff; }
.topbar__right { margin-left: auto; }
.topbar a:hover { color: #fff; }

.hdr { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; min-height: var(--hdr-h); }
.hdr__logo img { height: 38px; width: auto; }
.hdr__burger { display: none; width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; cursor: pointer; align-items: center; justify-content: center; }
.search { position: relative; display: flex; max-width: 640px; width: 100%; }
.search input { width: 100%; height: 46px; padding: 0 52px 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper); font-size: 0.95rem; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--ink); }
.search button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: var(--r-s); background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hdr__actions { display: flex; align-items: center; gap: 6px; }
.hdr__action { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-s); font-size: 0.9rem; font-weight: 600; }
.hdr__action:hover { background: var(--well); }
.hdr__action .ico { width: 24px; height: 24px; }
.hdr__action small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.75rem; line-height: 1.1; }
.cart-count { position: absolute; top: 0; left: 22px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--signal); color: #1a1208; font-size: 0.7rem; font-weight: 800; display: grid; place-items: center; }
.cart-count[data-count="0"], .cart-count:empty { display: none; }

/* category navigation + mega menu */
.catnav { border-top: 1px solid var(--line); }
.catnav__list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__item { position: static; }
.catnav__link { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; font-weight: 600; font-size: 0.93rem; color: var(--ink); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.catnav__link .ico { width: 15px; height: 15px; color: var(--ink-3); transition: transform .15s; }
.catnav__link:hover, .catnav__item.open .catnav__link, .catnav__link[aria-current="true"] { border-bottom-color: var(--signal); }
.catnav__item.open .catnav__link .ico { transform: rotate(180deg); }
.catnav__link--brand { color: var(--signal-hover); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(28,35,42,.28); }
.mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-block: 28px 32px; }
.mega__inner--noimg { grid-template-columns: minmax(0, 1fr); }
.mega__title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.mega__title a { font-size: 0.9rem; font-weight: 600; }
.mega__title a:hover { color: var(--signal-hover); }
.mega__cols { columns: 3 200px; column-gap: 32px; }
.mega__cols a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; break-inside: avoid; color: var(--ink-2); font-size: 0.95rem; border-bottom: 1px solid var(--well); }
.mega__cols a:hover { color: var(--ink); }
.mega__cols a span { color: var(--ink-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.mega__img { border-radius: var(--r-m); overflow: hidden; background: var(--well); aspect-ratio: 4 / 3; }
.mega__img img { width: 100%; height: 100%; object-fit: cover; }

/* mobile drawer */
.drawer { position: fixed; inset: 0 auto 0 0; width: min(380px, 88vw); background: var(--paper); z-index: 90; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__head img { height: 30px; width: auto; }
.drawer__close { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.drawer__body { overflow-y: auto; flex: 1; padding-bottom: 24px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .ico:last-child { margin-left: auto; color: var(--ink-3); transition: transform .15s; }
.drawer details[open] summary .ico:last-child { transform: rotate(180deg); }
.drawer__sub a { display: block; padding: 10px 16px 10px 48px; color: var(--ink-2); }
.drawer__sub a:first-child { font-weight: 600; color: var(--ink); }
.drawer__links { padding: 12px 0; }
.drawer__links a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-weight: 600; }
.scrim { position: fixed; inset: 0; background: rgba(20,26,31,.45); z-index: 80; }

/* ==========================================================================
   Start page
   ========================================================================== */
.hero { position: relative; min-height: clamp(420px, 58vh, 600px); display: flex; align-items: flex-end; color: #fff; background: var(--slate) center / cover no-repeat; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,24,29,.82) 0%, rgba(18,24,29,.55) 42%, rgba(18,24,29,0) 75%); }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero .wrap { width: 100%; padding-block: 56px; }
/* bright photo with empty wall on the left: dark type straight on the image */
.hero--photo { color: var(--ink); background: var(--well-2); }
.hero--photo::before { background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 30%, rgba(255,255,255,0) 58%); }
.hero.hero--photo .h-display { color: var(--ink); }
.hero.hero--photo .hero__lead { color: var(--ink-2); }
.hero--photo .btn--ghost-light { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.6); }
.hero--photo .btn--ghost-light:hover { background: #fff; }
.hero__copy { max-width: 620px; }
.hero .h-display { color: #fff; }
.hero__lead { margin-top: 18px; font-size: 1.15rem; color: #e6ebee; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.usp { border-bottom: 1px solid var(--line); background: var(--paper); }
.usp__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.usp__item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px 22px 0; }
.usp__item + .usp__item { padding-left: 24px; border-left: 1px solid var(--line); }
.usp__item .ico { width: 28px; height: 28px; color: var(--signal); margin-top: 2px; }
.usp__item strong { display: block; font-size: 0.98rem; }
.usp__item span { font-size: 0.85rem; color: var(--ink-3); }

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--well { background: var(--well-2); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section__head p { margin-top: 8px; color: var(--ink-2); }
.section__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.section__more:hover { color: var(--signal-hover); }

.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cat { display: flex; flex-direction: column; }
.cat__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--well); }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cat__media:hover img { transform: scale(1.035); }
.cat__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.cat__ph .ico { width: 56px; height: 56px; stroke-width: 1.25; }
.cat__body { padding-top: 14px; }
/* compact tile while a category has no photo yet */
.cats--compact { gap: 16px; }
.cat--compact { flex-direction: row; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-m); }
.cat--compact:hover { border-color: var(--line-strong); }
.cat--compact .cat__media { flex: 0 0 64px; width: 64px; aspect-ratio: 1; }
.cat--compact .cat__ph .ico { width: 30px; height: 30px; stroke-width: 1.5; color: var(--ink-2); }
.cat--compact .cat__body { padding-top: 0; }
.cat__name { display: inline-flex; align-items: center; gap: 6px; font-stretch: 80%; font-weight: 800; font-size: 1.45rem; line-height: 1.1; }
.cat__name:hover { color: var(--signal-hover); }
.cat__subs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); }
.cat__subs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cat__count { font-size: 0.85rem; color: var(--ink-3); font-weight: 500; font-stretch: 100%; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature__media { background: var(--well); border-radius: var(--r-m); aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; }
.feature__media img { width: 72%; height: auto; }
.feature__copy .lead { margin-top: 14px; }
.checks { display: grid; gap: 10px; margin: 22px 0 28px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--ok); margin-top: 2px; }

/* ==========================================================================
   Listing
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-block: 18px 6px; font-size: 0.85rem; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .ico { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--ink-2); }
.listing__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: 10px 20px; }
.listing__head p { margin-top: 8px; color: var(--ink-2); max-width: 70ch; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 20px; }
.subcat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-s); font-size: 0.9rem; font-weight: 600; background: var(--paper); }
.subcat span { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.subcat:hover { border-color: var(--ink); }
.subcat[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.subcat[aria-current="true"] span { color: #c9d1d6; }
.listing { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 36px; align-items: start; border-top: 1px solid var(--line); padding-top: 24px; }

.filters { position: sticky; top: calc(var(--hdr-h) + 64px); max-height: calc(100vh - var(--hdr-h) - 84px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.filters__head strong { font-size: 1.05rem; }
.filters__reset { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.85rem; }
.filters__close, .filters__apply { display: none; }
.fgroup { border-top: 1px solid var(--line); }
.fgroup summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .ico { color: var(--ink-3); transition: transform .15s; }
.fgroup[open] summary .ico { transform: rotate(180deg); }
.fgroup__n { margin-left: 8px; margin-right: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 0.72rem; display: inline-grid; place-items: center; }
.fgroup__body { display: grid; gap: 2px; padding-bottom: 14px; max-height: 280px; overflow-y: auto; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; margin: 0; }
.fcheck span { flex: 1; display: inline-flex; align-items: center; gap: 8px; }
.fcheck em { font-style: normal; font-size: 0.8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fcheck:hover { color: var(--ink); }
.fcheck--top { padding: 12px 0; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }
.fswatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.fsizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.fsize { height: 38px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper); font-weight: 600; font-size: 0.85rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.fsize:hover { border-color: var(--ink); }
.fsize.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fprice { display: flex; align-items: center; gap: 8px; }
.fprice input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-s); }

.results__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; }
.results__count { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.results__filter-btn { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--well-2); font-size: 0.82rem; cursor: pointer; }
.achip .ico { width: 13px; height: 13px; }
.achip:hover { border-color: var(--ink); }
.results__sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); }
.results__sort select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231c232a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; cursor: pointer; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard__media { position: relative; display: block; aspect-ratio: 1; background: var(--well); border-radius: var(--r-m); overflow: hidden; }
.pcard__media img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.pcard__media:hover img { transform: scale(1.04); }
.pcard__ph { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa7b0; }
.pcard__ph .ico { width: 54px; height: 54px; stroke-width: 1.25; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: var(--r-s); font-size: 0.75rem; font-weight: 700; background: var(--paper); color: var(--ink); }
.badge--sale { background: var(--bad); color: #fff; }
.pcard__body { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; flex: 1; }
.pcard__brand { font-size: 0.8rem; color: var(--ink-3); font-weight: 600; }
.pcard__name { font-size: 0.98rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard__facts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8rem; color: var(--ink-2); }
.pcard__facts li { position: relative; }
.pcard__facts li + li::before { content: ''; position: absolute; left: -6px; top: 50%; width: 1px; height: 11px; transform: translateY(-50%); background: var(--line-strong); }
.pcard__var { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-3); }
.pcard__dots { display: inline-flex; gap: 3px; }
.pcard__dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.pcard__price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pcard__price strong { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pcard__price small { font-size: 0.85rem; color: var(--ink-2); }
.pcard__price s { color: var(--ink-3); font-size: 0.9rem; }
.pcard__meta { font-size: 0.75rem; color: var(--ink-3); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; margin-top: 4px; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--ok { color: var(--ok); } .stock--low { color: var(--warn); } .stock--out { color: var(--bad); }
.pcard__cta { margin-top: 12px; }
.pcard__cta .btn { width: 100%; min-height: 42px; font-size: 0.9rem; }
.pcard__cta .btn.added { background: var(--ok); color: #fff; }

.empty { padding: 56px 0; max-width: 520px; }
.empty .ico { width: 40px; height: 40px; color: var(--ink-3); margin-bottom: 14px; }
.empty h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.empty p { color: var(--ink-2); margin-bottom: 18px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-s); font-size: 0.92rem; margin-block: 14px; }
.notice .ico { margin-top: 1px; }
.notice--info { background: #eef5fb; color: #1f4a6e; }
.notice--warn { background: var(--signal-soft); color: #7a3f00; }
.notice--error { background: #fdecea; color: #8a1f14; }
.notice a { text-decoration: underline; }
.loading { padding: 60px 0; color: var(--ink-3); }

/* ==========================================================================
   Product page
   ========================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 8px 48px; }
.gallery { position: sticky; top: calc(var(--hdr-h) + 64px); }
.gallery__main { position: relative; aspect-ratio: 1; background: var(--well); border-radius: var(--r-m); overflow: hidden; display: grid; place-items: center; }
.gallery__main img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__main .pcard__ph .ico { width: 96px; height: 96px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumb { width: 76px; height: 76px; flex-shrink: 0; padding: 6px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--well); cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb.on { border-color: var(--ink); }

.buy__brand { font-weight: 600; color: var(--ink-3); }
.buy__title { font-stretch: 80%; font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.08; margin-top: 4px; }
.buy__sku { margin-top: 8px; font-size: 0.85rem; color: var(--ink-3); }
.buy__short { margin-top: 14px; color: var(--ink-2); }
.buy__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.buy__facts li { padding: 5px 10px; border-radius: var(--r-s); background: var(--well); font-size: 0.85rem; font-weight: 500; }
.buy__price { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.buy__price strong { font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.buy__price strong small { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.buy__price s { margin-left: 10px; color: var(--ink-3); font-size: 1.1rem; }
.buy__vat, .buy__base { display: block; font-size: 0.85rem; color: var(--ink-3); margin-top: 2px; }
.buy__vat a { text-decoration: underline; text-underline-offset: 2px; }
.picker { margin-top: 22px; }
.picker__label { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 10px; }
.picker__label strong { color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 8px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper); cursor: pointer; font-size: 0.9rem; }
.swatch-btn i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.swatch-btn:hover { border-color: var(--ink-2); }
.swatch-btn.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch-btn.out { color: var(--ink-3); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.size-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; overflow: hidden; }
.size-btn small { font-size: 0.68rem; font-weight: 600; color: var(--ink-3); }
.size-btn:hover { border-color: var(--ink-2); }
.size-btn.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-btn.on small { color: #c9d1d6; }
.size-btn.out { color: var(--ink-3); background: var(--well-2); border-style: dashed; }
.size-btn.out::after { content: ''; position: absolute; inset: 50% -10% auto; height: 1px; background: var(--line-strong); transform: rotate(-28deg); }
.size-btn.out.on { background: var(--well); color: var(--bad); border-color: var(--bad); border-style: solid; }
.buy__stock { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); min-height: 24px; }
.buy__stock::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.buy__stock--ok { color: var(--ok); } .buy__stock--ok::before { background: var(--ok); }
.buy__stock--low { color: var(--warn); } .buy__stock--low::before { background: var(--warn); }
.buy__stock--out { color: var(--bad); } .buy__stock--out::before { background: var(--bad); }
.buy__cta { display: flex; gap: 10px; margin-top: 14px; }
.buy__cta .btn { flex: 1; min-height: 52px; font-size: 1rem; }
.buy__cta .btn.added { background: var(--ok); color: #fff; }
.buy__msg { margin-top: 8px; font-size: 0.88rem; color: var(--warn); }
.buy__msg:empty { display: none; }
.services { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-m); }
.services li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; font-size: 0.9rem; color: var(--ink-2); }
.services li + li { border-top: 1px solid var(--line); }
.services .ico { color: var(--ink); margin-top: 1px; }
.services strong { color: var(--ink); font-weight: 600; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper); flex-shrink: 0; }
.qty button { width: 42px; height: 48px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.qty button:hover:not(:disabled) { background: var(--well); }
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty input { width: 44px; height: 48px; border: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: none; }
.qty--s button { width: 34px; height: 38px; } .qty--s input { width: 36px; height: 38px; }

.tabs { border-top: 1px solid var(--line); }
.tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs__btn { height: 52px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; font-weight: 700; font-size: 1rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs__btn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--signal); }
.tabs__panel { padding-block: 28px 48px; max-width: 900px; }
.prose { color: var(--ink-2); line-height: 1.7; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 4px; }
.prose li::marker { color: var(--signal); }
.specs { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.specs th { width: 38%; font-weight: 600; color: var(--ink-2); background: var(--well-2); }
.specs td { font-variant-numeric: tabular-nums; }
.docs { display: grid; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); font-weight: 600; }
.docs a:hover { border-color: var(--ink); }
.docs a span { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: 0.85rem; }
.missing { padding-block: 80px; max-width: 560px; }
.missing p { margin: 12px 0 24px; color: var(--ink-2); }

/* ==========================================================================
   Cart page
   ========================================================================== */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-bottom: 64px; }
.cart__head { padding-block: 10px 20px; }
.cline { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.cline:first-child { border-top: 1px solid var(--line); }
.cline__img { width: 112px; height: 112px; border-radius: var(--r-m); background: var(--well); display: grid; place-items: center; overflow: hidden; }
.cline__img img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.cline__img .ico { width: 36px; height: 36px; color: #9aa7b0; }
.cline__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cline__name { font-weight: 700; line-height: 1.35; }
.cline__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cline__meta { font-size: 0.88rem; color: var(--ink-2); }
.cline__unit { font-size: 0.82rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cline__problem { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--bad); }
.cline__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.cline__remove { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--ink-2); font-size: 0.88rem; cursor: pointer; }
.cline__remove:hover { color: var(--bad); }
.cline__total { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; }
.summary { position: sticky; top: calc(var(--hdr-h) + 64px); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; }
.summary__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding-block: 5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.summary__row--total { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.summary__vat { font-size: 0.82rem; color: var(--ink-3); }
.freeship { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-s); background: var(--well-2); font-size: 0.88rem; color: var(--ink-2); }
.freeship--ok { background: #e8f5ee; color: var(--ok); font-weight: 600; }
.freeship__bar { height: 5px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.freeship__bar span { display: block; height: 100%; background: var(--signal); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.consent a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.summary .btn--signal { margin-top: 16px; min-height: 52px; font-size: 1rem; }
.summary__hint { margin-top: 12px; font-size: 0.8rem; color: var(--ink-3); }
.paylist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.paylist span { padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-s); font-size: 0.75rem; font-weight: 700; color: var(--ink-2); }

/* success page */
.done { max-width: 720px; padding-block: 40px 80px; }
.done__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #e8f5ee; color: var(--ok); margin-bottom: 18px; }
.done__icon--wait { background: var(--signal-soft); color: var(--warn); }
.done__icon--err { background: #fdecea; color: var(--bad); }
.done__icon .ico { width: 28px; height: 28px; }
.done__text { margin-top: 12px; color: var(--ink-2); }
.done__order { display: inline-block; margin-top: 20px; padding: 10px 14px; border-radius: var(--r-s); background: var(--well); font-weight: 700; font-variant-numeric: tabular-nums; }
.done__items { margin-top: 24px; border-top: 1px solid var(--line); }
.done__items li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.done__items li.total { font-weight: 800; }
.done__addr { margin-top: 20px; font-style: normal; white-space: pre-line; color: var(--ink-2); line-height: 1.6; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* added-to-cart popup (from cart.js) */
.cart-pop { position: fixed; top: 16px; right: 16px; z-index: 95; width: min(380px, calc(100vw - 32px)); padding: 18px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 50px -12px rgba(28,35,42,.35); display: grid; gap: 14px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; font-family: var(--font); color: var(--ink); }
.cart-pop.show { opacity: 1; transform: none; pointer-events: auto; }
.cart-pop__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ok); }
.cart-pop__close { border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--ink-3); }
.cart-pop__item { display: flex; gap: 12px; align-items: center; }
.cart-pop__item img { width: 64px; height: 64px; object-fit: contain; background: var(--well); border-radius: var(--r-s); mix-blend-mode: multiply; }
.cart-pop__item div { display: grid; font-size: 0.85rem; color: var(--ink-2); }
.cart-pop__item strong { color: var(--ink); font-size: 0.95rem; }
.cart-pop__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart-pop__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: var(--r-s); border: 1px solid transparent; background: var(--signal); color: #1a1208; font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.cart-pop__btn--ghost { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr { background: var(--slate); color: #c9d3d9; margin-top: 24px; }
.ftr__top { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 40px; }
.ftr__logo { height: 34px; width: auto; filter: brightness(0) invert(1); }
.ftr__about { margin-top: 16px; font-size: 0.92rem; max-width: 34ch; }
.ftr__contact { display: grid; gap: 8px; margin-top: 18px; font-size: 0.92rem; }
.ftr__contact a { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.ftr h2 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.ftr__col a { display: block; padding: 5px 0; font-size: 0.92rem; }
.ftr__col a:hover, .ftr__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.82rem; }
.ftr__pay { display: flex; flex-wrap: wrap; gap: 6px; }
.ftr__pay span { padding: 4px 8px; border-radius: var(--r-s); background: rgba(255,255,255,.08); color: #e7edf0; font-weight: 700; font-size: 0.72rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .usp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usp__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --hdr-h: 64px; }
  .topbar__item:not(:first-child) { display: none; }
  .hdr__main { grid-template-columns: auto 1fr auto; gap: 8px; min-height: var(--hdr-h); }
  .hdr__burger { display: inline-flex; }
  .hdr__logo { justify-self: start; }
  .hdr__logo img { height: 30px; }
  .hdr__main .search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: 12px; }
  .hdr__actions { grid-column: 3; grid-row: 1; justify-self: end; }
  .hdr__action span.lbl { display: none; }
  .catnav { display: none; }
  .listing { grid-template-columns: minmax(0, 1fr); border-top: 0; padding-top: 0; }
  .filters { position: fixed; inset: 0 auto 0 0; top: 0; width: min(360px, 90vw); max-height: none; z-index: 90; background: var(--paper); padding: 16px 16px 88px; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.7,.2,1); }
  .filters.open { transform: none; }
  .filters__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
  .filters__apply { display: flex; position: fixed; left: 16px; bottom: 16px; width: calc(min(360px, 90vw) - 32px); }
  .results__filter-btn { display: inline-flex; }
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .cart { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (max-width: 640px) {
  .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .pcard__name { font-size: 0.92rem; }
  .pcard__price strong { font-size: 1.15rem; }
  .pcard__facts { display: none; }
  .cats { grid-template-columns: 1fr; }
  .cat__subs { display: none; }
  .usp__list { grid-template-columns: 1fr; }
  .usp__item, .usp__item + .usp__item { padding: 14px 0; border-left: 0; }
  .usp__item + .usp__item { border-top: 1px solid var(--line); }
  .hero { min-height: 480px; align-items: flex-end; }
  .hero--photo { display: block; min-height: 0; }
  .hero--photo::before { display: none; }
  .hero--photo .hero__img { position: static; display: block; aspect-ratio: 16 / 10; height: auto; object-position: 78% 50%; }
  .hero--photo .wrap { padding-block: 24px 36px; }
  .hero::before { background: linear-gradient(0deg, rgba(18,24,29,.88) 0%, rgba(18,24,29,.55) 55%, rgba(18,24,29,.15) 100%); }
  .section__head { flex-direction: column; align-items: flex-start; }
  .results__sort { margin-left: 0; width: 100%; }
  .results__sort select { flex: 1; }
  .buy__cta { position: sticky; bottom: 0; z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); background: var(--paper); border-top: 1px solid var(--line); }
  .cline { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .cline__img { width: 84px; height: 84px; }
  .cline__total { grid-column: 2; }
  .ftr__top { grid-template-columns: 1fr; gap: 28px; }
  .specs th { width: 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* very narrow phones (≤ 360px): keep quantity + add-to-cart on one line */
@media (max-width: 360px) {
  .buy__cta { gap: 8px; }
  .buy__cta .btn { min-width: 0; padding-inline: 12px; font-size: 0.95rem; }
  .buy__cta .qty button { width: 36px; }
  .buy__cta .qty input { width: 36px; }
}
