/* ==========================================================================
   Nauvitel Store — storefront styles (light grey · white · black)
   Accent colour comes from CMS → Settings → Branding as --accent / --accent-ink.
   ========================================================================== */
:root {
  --accent: #111111;
  --accent-ink: #ffffff;
  --black: #111318;
  --ink-2: #2a2e36;
  --bg: #ffffff;
  --grey: #f3f4f6;
  --grey-2: #e9ebee;
  --line: #e3e5e9;
  --line-2: #cfd3d9;
  --text: #111318;
  --muted: #5b6270;
  --dim: #8a909b;
  --ok: #13804f;
  --warn: #b45f06;
  --bad: #c62828;
  --sale: #d72c2c;
  --r: 10px;
  --r-sm: 6px;
  --wrap: 1320px;
  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(17,19,24,.06), 0 8px 24px -12px rgba(17,19,24,.18);
  --shadow-lg: 0 24px 60px -24px rgba(17,19,24,.35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; font-weight: 700; }
h1, .h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 65ch; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.ic { flex: none; }
.hp { position: absolute; left: -9999px; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--black); color: #fff; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: #fff; padding: 10px 14px; }
.skip:focus { left: 10px; top: 10px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--accent); color: var(--accent-ink); }
.btn-dark:hover { background: color-mix(in srgb, var(--accent) 82%, #fff); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--black); }
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: var(--grey-2); }
.btn-outline-inv { border-color: rgba(255,255,255,.3); color: #fff; height: 40px; margin-top: 6px; align-self: flex-start; }
.btn-outline-inv:hover { border-color: #fff; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn.full { width: 100%; }
.btn.grow { flex: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-sm); display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; cursor: pointer; }
.icon-btn:hover { background: var(--grey); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; transition: gap .2s; }
.link-arrow:hover { gap: 10px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--black); color: #d5d8de; font-size: 12.5px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 36px; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 22px; min-width: 0; }
.tb-left a, .tb-msg { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tb-msg { overflow: hidden; text-overflow: ellipsis; }
.tb-right a { color: #d5d8de; white-space: nowrap; }
.tb-right a:hover, .tb-left a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce { background: var(--grey-2); font-size: 13px; text-align: center; padding: 7px 0; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------ header */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.head-row { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 42px; width: auto; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--black); color: #fff; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; line-height: 1; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--f-body); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.search { flex: 1; display: flex; align-items: stretch; height: 48px; border: 2px solid var(--black); border-radius: var(--r-sm); overflow: hidden; background: #fff; max-width: 760px; }
.search select { border: 0; border-right: 1px solid var(--line); background: var(--grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111318' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 0 30px 0 14px; font-size: 13.5px; appearance: none; cursor: pointer; max-width: 190px; border-radius: 0; height: auto; outline: none; }
.search input { flex: 1; border: 0; outline: none; padding: 0 16px; font-size: 15px; min-width: 0; }
.search input::placeholder { color: var(--dim); }
.search button { border: 0; background: var(--black); color: #fff; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.search button:hover { background: var(--ink-2); }
.head-tools { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.tool-link { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.tool-link small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.tool-link:hover { color: var(--ink-2); }
.cart-ic { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--grey); display: grid; place-items: center; }
.cart-btn:hover .cart-ic { background: var(--grey-2); }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.only-mobile { display: none; }

/* -------------------------------------------------------- category bar */
.catbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 35; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.catbar-row { display: flex; align-items: center; gap: 18px; height: 50px; }
.mega-wrap { position: relative; height: 100%; display: flex; align-items: center; }
.mega-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; background: var(--black); color: #fff; border: 0; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.mega-btn .ic:last-child { transition: transform .2s; }
.mega-wrap.open .mega-btn .ic:last-child { transform: rotate(180deg); }
.catlinks { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.catlinks a, .catbar-extra a { padding: 7px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
.catlinks a:hover, .catlinks a.on, .catbar-extra a:hover { background: var(--grey); color: var(--black); }
.catlinks .pill-new { font-weight: 700; }
.catlinks .pill-sale { color: var(--sale); font-weight: 700; }
.catbar-extra { display: flex; gap: 2px; flex: none; }
.catbar-extra a { font-weight: 600; border: 1px solid var(--line-2); }
.mega {
  position: absolute; top: calc(100% + 1px); left: 0; width: min(1080px, calc(100vw - 48px)); background: #fff; border: 1px solid var(--line);
  border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-lg); padding: 26px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.mega-wrap.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 32px; }
.mega-col { display: flex; flex-direction: column; gap: 3px; }
.mega-col a { font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.mega-col a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.mega-col .mega-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--black); font-size: 14.5px; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega-head img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--grey); }
.mega-col .mega-all { color: var(--black); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }

/* ------------------------------------------------------------------ drawer */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(17,19,24,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(86vw, 340px); background: #fff; padding: 18px; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-top .brand-name { font-size: 19px; }
.drawer-h { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin: 18px 0 4px; font-weight: 600; }
.drawer-panel > a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }

/* ------------------------------------------------------------------ notices */
.notice { margin: 16px 0 0; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--grey); font-size: 14px; }
.notice-success { border-color: #b7dfc9; background: #eef8f2; color: #0d5c38; }
.notice-error { border-color: #f1c0c0; background: #fdf1f1; color: #8d1c1c; }
.notice-info { border-color: var(--line-2); background: var(--grey); }

/* ---------------------------------------------------------- product groups */
.groups { background: var(--grey); border-bottom: 1px solid var(--line); padding: 18px 0; }
.groups-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; }
.groups-row::-webkit-scrollbar { display: none; }
.group { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.group:hover { border-color: var(--black); box-shadow: var(--shadow); transform: translateY(-2px); }
.group-img { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--grey); color: var(--black); }
.group-img img { width: 100%; height: 100%; object-fit: cover; }
.group-name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.group-all .group-img { background: var(--black); color: #fff; }

/* -------------------------------------------------------------------- hero */
.hero { padding: 24px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.hero-grid.no-sides { grid-template-columns: 1fr; }
.slider { position: relative; border-radius: var(--r); overflow: hidden; background: linear-gradient(120deg, #f6f7f9 0%, #e9ebef 100%); border: 1px solid var(--line); min-height: 420px; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 20px; padding: 44px 48px 72px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.slide.on { opacity: 1; visibility: visible; position: relative; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 6px 10px; background: var(--black); color: #fff; border-radius: 4px; margin-bottom: 18px; }
.slide h1, .slide .h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 16px; }
.slide p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin-bottom: 26px; }
.slide-art img { width: 100%; max-height: 330px; object-fit: contain; border-radius: var(--r); mix-blend-mode: multiply; }
.slider-ctrl { position: absolute; left: 48px; bottom: 24px; display: flex; align-items: center; gap: 12px; z-index: 2; }
.sl-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; }
.sl-btn:hover { border-color: var(--black); }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--line-2); padding: 0; cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 26px; background: var(--black); }
.side-promos { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.side-promo { position: relative; overflow: hidden; border-radius: var(--r); background: var(--grey); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; transition: border-color .15s; }
.side-promo:hover { border-color: var(--black); }
.side-promo > div { position: relative; z-index: 1; max-width: 62%; }
.side-promo h3 { font-size: 1.25rem; margin-bottom: 6px; }
.side-promo p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.side-promo img { position: absolute; right: -24px; bottom: -24px; width: 62%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; mix-blend-mode: multiply; }
.side-promo.dark { background: var(--black); color: #fff; border-color: var(--black); }
.side-promo.dark p { color: #b6bbc4; }
.side-promo.dark img { mix-blend-mode: normal; opacity: .9; }

/* -------------------------------------------------------------------- USPs */
.usps { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usps-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-right: 1px solid var(--line); }
.usp:last-child { border-right: 0; }
.usp-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--grey); display: grid; place-items: center; flex: none; }
.usp b { display: block; font-size: 14px; }
.usp span { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ----------------------------------------------------------------- sections */
.section { padding: 56px 0 0; }
.section-last { padding-bottom: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.tabs-head { align-items: center; border-bottom: 1px solid var(--line); }
.ptabs { display: flex; gap: 4px; overflow-x: auto; }
.ptabs button { background: none; border: 0; padding: 12px 4px; margin-right: 22px; font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--dim); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptabs button:hover { color: var(--ink-2); }
.ptabs button.on { color: var(--black); border-color: var(--black); }

/* ------------------------------------------------------------ product cards */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-products.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-products[hidden] { display: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1; background: var(--grey); overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 3px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.tag-sale { background: var(--sale); color: #fff; }
.tag-new { background: #fff; color: var(--black); border: 1px solid var(--black); }
.tag-dark { background: var(--black); color: #fff; }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sku { font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); }
.card h3 { font-family: var(--f-body); font-weight: 600; font-size: 14.5px; line-height: 1.35; margin: 0; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--bad); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.price-row s, .pt-price s { color: var(--dim); font-size: 13px; }
.card-buy { display: flex; gap: 8px; margin-top: 8px; }
.mini-qty { width: 56px; height: 38px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-weight: 600; outline: none; -moz-appearance: textfield; }
.mini-qty:focus { border-color: var(--black); }
.mini-qty::-webkit-outer-spin-button, .mini-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card-buy .btn.done, .pt-buy .btn.done { background: var(--ok); color: #fff; }

/* -------------------------------------------------------------------- promo */
.promo { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 30px; padding: 48px 56px; border-radius: var(--r); overflow: hidden; background: var(--black); color: #fff; position: relative; }
.promo::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.promo > * { position: relative; }
.promo .kicker { color: #b6bbc4; }
.promo h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
.promo p { color: #b6bbc4; max-width: 48ch; margin-bottom: 24px; }
.promo-art img { width: 100%; max-width: 360px; margin-left: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }

/* --------------------------------------------------------- category features */
.cat-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-feature { position: relative; overflow: hidden; border-radius: var(--r); background: var(--grey); border: 1px solid var(--line); padding: 26px; min-height: 230px; display: flex; transition: border-color .15s; }
.cat-feature:hover { border-color: var(--black); }
.cf-copy { position: relative; z-index: 1; max-width: 58%; display: flex; flex-direction: column; }
.cf-copy h3 { font-size: 1.35rem; }
.cf-copy p { color: var(--muted); font-size: 13.5px; }
.cf-meta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.cat-feature img { position: absolute; right: -30px; bottom: -30px; width: 58%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; mix-blend-mode: multiply; transition: transform .4s; }
.cat-feature:hover img { transform: scale(1.05); }

/* ----------------------------------------------------------------- services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.service:hover { border-color: var(--black); box-shadow: var(--shadow); }
.service-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--black); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.service h3 { font-size: 1.2rem; margin-bottom: 4px; }
.service p { color: var(--muted); font-size: 14px; }
.service .link-arrow { margin-top: auto; }
.about-band { text-align: center; max-width: 860px; padding: 40px 24px; border-top: 1px solid var(--line); }
.about-band p { color: var(--muted); font-size: 1.05rem; }

/* ---------------------------------------------------------------- page head */
.page-head { padding: 26px 0 26px; background: var(--grey); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.page-head h1 { margin-bottom: 6px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.page-head .lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--black); text-decoration: underline; }

/* --------------------------------------------------------------------- shop */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-bottom: 64px; }
.shop-side { display: flex; flex-direction: column; gap: 14px; align-self: start; position: sticky; top: 66px; }
.side-box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 1px; }
.side-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.side-link { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; }
.side-link span { color: var(--dim); font-size: 12.5px; }
.side-link:hover { background: var(--grey); }
.side-link.on { background: var(--black); color: #fff; }
.side-link.on span { color: #b6bbc4; }
.side-check { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: 14px; border-radius: var(--r-sm); }
.side-check:hover { background: var(--grey); }
.side-check .box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.side-check.on .box { background: var(--black); border-color: var(--black); color: #fff; }
.side-help { background: var(--grey); gap: 6px; }
.side-help p { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; padding: 10px 14px; background: var(--grey); border: 1px solid var(--line); border-radius: var(--r); }
.shop-bar-r { display: flex; align-items: center; gap: 12px; }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 14px; }
select, .field input, .field textarea { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
select { padding-right: 34px; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111318' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select:focus, .field input:focus, .field textarea:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(17,19,24,.08); }
.view-toggle { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.view-toggle a { width: 38px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.view-toggle a.on { background: var(--black); color: #fff; }
.part-table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pt-head, .pt-row { display: grid; grid-template-columns: minmax(0, 2.6fr) 1fr 1.1fr .9fr 150px; gap: 14px; align-items: center; padding: 12px 16px; }
.pt-head { background: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.pt-row { border-bottom: 1px solid var(--line); }
.pt-row:last-child { border-bottom: 0; }
.pt-row:hover { background: #fafafb; }
.pt-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pt-prod img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.pt-prod b { display: block; font-size: 14px; }
.pt-prod small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.pt-prod:hover b { text-decoration: underline; }
.pt-sku { font-size: 12.5px; color: var(--ink-2); }
.pt-price b { font-family: var(--f-display); font-size: 1.05rem; display: block; }
.pt-buy .card-buy { margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pager a { min-width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line-2); font-weight: 500; }
.pager a:hover { border-color: var(--black); }
.pager a.on { background: var(--black); color: #fff; border-color: var(--black); }
.empty { text-align: center; padding: 64px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.empty h1, .empty h3 { color: var(--text); margin: 10px 0 4px; }
.empty .btn { margin-top: 14px; }
.empty.big { padding: 100px 20px; }
.code404 { font-size: 13px; padding: 6px 12px; border-radius: 4px; background: var(--black); color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta.center { justify-content: center; }

/* ------------------------------------------------------------------ product */
.product { padding-top: 22px; padding-bottom: 64px; }
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery { position: sticky; top: 70px; }
.gallery-main { position: relative; border-radius: var(--r); overflow: hidden; background: var(--grey); border: 1px solid var(--line); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery-main .tag { position: absolute; top: 14px; left: 14px; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--grey); padding: 0; cursor: pointer; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on, .thumb:hover { border: 2px solid var(--black); }
.buybox h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 0 0 8px; }
.buybox .kicker { margin-bottom: 10px; }
.buybox .kicker:hover { color: var(--black); }
.buy-price { font-family: var(--f-display); font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.buy-price s { font-size: 1.05rem; color: var(--dim); font-weight: 400; }
.save { font-family: var(--f-body); font-size: 12.5px; font-weight: 700; color: #fff; background: var(--sale); padding: 4px 8px; border-radius: 4px; letter-spacing: 0; }
.stock-box { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 20px; padding: 14px 16px; border-radius: var(--r); background: var(--grey); border: 1px solid var(--line); }
.stock-box .stock { font-size: 14px; }
.buy-form { display: flex; flex-wrap: wrap; gap: 10px; }
.qty { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.qty button { width: 40px; height: 100%; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { color: var(--black); }
.qty input { width: 44px; text-align: center; border: 0; background: none; outline: none; -moz-appearance: textfield; font-weight: 600; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 38px; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 34px; }
.assure { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.assure li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: 14px; }
.product-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.product-detail h2 { font-size: 1.35rem; margin: 0 0 16px; }
.spec-table { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-table div { display: grid; grid-template-columns: 42% 1fr; border-bottom: 1px solid var(--line); }
.spec-table div:last-child { border-bottom: 0; }
.spec-table div:nth-child(odd) { background: var(--grey); }
.spec-table dt { padding: 11px 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
.spec-table dd { margin: 0; padding: 11px 14px; font-family: var(--f-mono); font-size: 12.5px; }
.prose { color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r); margin: 1em 0; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--grey); padding: 2px 6px; border-radius: 4px; }
.page-body { padding-bottom: 64px; font-size: 1.02rem; }
.product .section { padding-top: 56px; }

/* --------------------------------------------------------------------- cart */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 64px; }
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.cart-lines .link-arrow { margin-top: 10px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 18px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.cl-img img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--grey); }
.cl-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-name { font-weight: 600; }
.cl-name:hover { text-decoration: underline; }
.cl-info .muted { font-size: 13px; }
.warn { color: var(--warn); font-size: 13px; }
.cl-total { font-family: var(--f-display); font-weight: 700; min-width: 92px; text-align: right; }
.summary { position: sticky; top: 70px; padding: 22px; border-radius: var(--r); background: var(--grey); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.summary h3 { font-size: 1.15rem; margin: 0 0 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 14px; }
.sum-row span:last-child { color: var(--text); }
.sum-total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line-2); font-size: 1.2rem; font-family: var(--f-display); color: var(--text); font-weight: 800; }
.summary .btn { margin-top: 6px; }
.free-bar { height: 6px; border-radius: 999px; background: var(--grey-2); overflow: hidden; border: 1px solid var(--line); }
.free-bar div { height: 100%; background: var(--black); }
.mini-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mini-line img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: #fff; }
.mini-line small { display: block; color: var(--muted); }

/* ----------------------------------------------------------------- checkout */
.checkout-form { display: flex; flex-direction: column; gap: 18px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin: 0; background: #fff; display: flex; flex-direction: column; gap: 14px; }
legend { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; padding: 0 8px; margin-left: -8px; display: flex; align-items: center; gap: 10px; }
.step { font-size: 11px; color: #fff; background: var(--black); padding: 3px 7px; border-radius: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; color: var(--text); font-size: 15px; padding: 11px 13px; }
.field textarea { resize: vertical; }
.field em { font-style: normal; color: var(--bad); font-size: 12.5px; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }

/* -------------------------------------------------------------------- order */
.order-done { max-width: 720px; padding-top: 48px; padding-bottom: 64px; }
.order-hero { text-align: center; margin-bottom: 26px; }
.order-hero .lead { margin: 0 auto 14px; }
.order-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 16px; }
.order-ic.ok { background: #e6f5ec; color: var(--ok); }
.order-ic.wait { background: var(--grey); color: var(--black); }
.order-ref { display: inline-block; font-size: 12px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 4px; }
.order-card { padding: 24px; border-radius: var(--r); background: var(--grey); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line-2); }
.order-meta p { margin: 6px 0 0; font-size: 14px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 12px; font-weight: 700; background: #fff; color: var(--muted); border: 1px solid var(--line-2); }
.pill-paid, .pill-delivered { color: var(--ok); border-color: #b7dfc9; background: #eef8f2; }
.pill-unpaid, .pill-pending { color: var(--warn); border-color: #f0d5b3; background: #fdf6ec; }
.pill-processing, .pill-shipped { color: #1d4ed8; border-color: #c5d4f6; background: #eff4fe; }
.pill-cancelled, .pill-refunded { color: var(--bad); border-color: #f1c0c0; background: #fdf1f1; }

/* ------------------------------------------------------------------ contact */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding-bottom: 64px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.contact-form .btn { align-self: flex-start; }
.contact-cards { display: flex; flex-direction: column; gap: 10px; }
.c-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--grey); }
a.c-card:hover { border-color: var(--black); }
.c-card b { display: block; font-size: 14px; }
.c-card span { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- newsletter */
.newsletter { background: var(--grey); border-top: 1px solid var(--line); padding: 34px 0; }
.nl-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.nl-copy { display: flex; align-items: center; gap: 16px; }
.nl-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; flex: none; }
.nl-copy h3 { font-size: 1.25rem; margin: 0 0 2px; }
.nl-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.nl-form { display: flex; gap: 8px; flex: 1; max-width: 480px; min-width: 280px; }
.nl-form input[type=email] { flex: 1; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; outline: none; min-width: 0; }
.nl-form input[type=email]:focus { border-color: var(--black); }
.nl-form .btn { height: 48px; }

/* ------------------------------------------------------------------- footer */
.site-foot { background: var(--black); color: #c9cdd4; padding-top: 6px; }
.foot-usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-usps > div { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: #9aa0aa; }
.foot-usps b { display: block; color: #fff; font-size: 14px; }
.foot-usps .ic { color: #fff; margin-top: 2px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 44px; padding-bottom: 40px; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; gap: 9px; }
.foot-grid a, .foot-contact > span { color: #9aa0aa; font-size: 14px; display: inline-flex; gap: 10px; align-items: flex-start; }
.foot-grid a:hover { color: #fff; }
.foot-grid .btn-outline-inv { color: #fff; align-items: center; }
.brand-inv .brand-mark { background: #fff; color: var(--black); }
.brand-inv .brand-name { color: #fff; }
.brand-inv .brand-name small { color: #9aa0aa; }
.foot-brand p { color: #9aa0aa; font-size: 14px; max-width: 36ch; margin: 16px 0 18px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: #fff; color: var(--black); }
.foot-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.muted-inv { color: #9aa0aa; font-size: 13px; margin-right: 6px; }
.paybadge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; background: #fff; color: var(--black); font-size: 12px; font-weight: 700; }
.paybadge.secure { background: transparent; color: #c9cdd4; border: 1px solid rgba(255,255,255,.2); font-weight: 500; margin-left: auto; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #8a909b; }
.foot-base a { margin-left: 18px; }
.foot-base a:hover { color: #fff; }

/* -------------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100; opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: var(--r-sm); background: var(--black); color: #fff; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .tool-link:not(.cart-btn) > span:last-child { display: none; }
  .catbar-extra { display: none; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr 280px; }
}
@media (max-width: 980px) {
  .tb-right a:not(:last-child) { display: none; }
  .only-mobile { display: inline-grid; }
  .head-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 44px; }
  .search select { display: none; }
  .search button span { display: none; }
  .catbar { position: relative; }
  .catlinks { overflow-x: auto; scrollbar-width: none; }
  .catlinks::-webkit-scrollbar { display: none; }
  .mega-wrap { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .side-promos { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .slide { grid-template-columns: 1fr; padding: 30px 28px 70px; }
  .slide-art { display: none; }
  .slider { min-height: 0; }
  .slider-ctrl { left: 28px; }
  .usps-row, .foot-usps { grid-template-columns: 1fr 1fr; }
  .usp:nth-child(2) { border-right: 0; }
  .usp:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-products, .grid-products.grid-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .promo { grid-template-columns: 1fr; padding: 32px; }
  .promo-art { display: none; }
  .cat-features, .services { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .shop-side { position: static; }
  .side-box:not(:first-child) { display: none; }
  .side-box:first-child { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 8px; }
  .side-box:first-child h4 { display: none; }
  .side-link { white-space: nowrap; border: 1px solid var(--line); }
  .side-link span { margin-left: 8px; }
  .pt-head { display: none; }
  .pt-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .pt-prod { grid-column: 1 / -1; }
  .pt-sku { display: none; }
  .pt-buy { grid-column: 1 / -1; }
  .pt-buy .card-buy { justify-content: flex-start; }
  .product-grid, .product-detail, .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: 1fr; gap: 26px; }
  .gallery, .summary { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .section { padding-top: 42px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .topbar-row { height: 34px; }
  .tb-msg { display: none; }
  .tool-link.cart-btn > span:last-child { display: none; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 36px; height: 36px; }
  .groups-row { grid-auto-columns: 96px; }
  .group-img { width: 58px; height: 58px; }
  .side-promos { grid-template-columns: 1fr; }
  .usp { padding: 14px 10px; gap: 10px; }
  .usp-ic { width: 36px; height: 36px; }
  .usp span { font-size: 12px; }
  .ptabs button { font-size: 1.1rem; margin-right: 14px; }
  .tabs-head .link-arrow { display: none; }
  .card-body { padding: 10px; }
  .card h3 { font-size: 13.5px; }
  .price { font-size: 1.1rem; }
  .card-buy .mini-qty { display: none; }
  .card-buy .btn { font-size: 13px; padding: 0 8px; }
  .shop-bar { flex-wrap: wrap; }
  .sort-form label { display: none; }
  .cart-line { grid-template-columns: 72px 1fr auto; grid-template-areas: "img info rm" "img qty total"; gap: 10px 14px; }
  .cl-img { grid-area: img; } .cl-img img { width: 72px; height: 72px; }
  .cl-info { grid-area: info; } .cl-qty { grid-area: qty; } .cl-total { grid-area: total; min-width: 0; } .cl-remove { grid-area: rm; }
  .row2 { grid-template-columns: 1fr; }
  fieldset { padding: 16px; }
  .order-meta { grid-template-columns: 1fr; }
  .foot-grid, .foot-usps { grid-template-columns: 1fr; gap: 24px; }
  .paybadge.secure { margin-left: 0; }
  .foot-base a { margin: 0 14px 0 0; }
  .buy-form .btn.grow { flex-basis: 100%; order: 3; }
  .buy-form .btn-ghost { order: 4; }
  .nl-form { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* fixes */
[hidden] { display: none !important; }
.side-promo > div { max-width: 56%; }
.side-promo img { width: 46%; right: -18px; bottom: -18px; }

/* ---------------------------------------------------------- accounts */
.acct-ic { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--grey); display: grid; place-items: center; }
.acct-link:hover .acct-ic { background: var(--grey-2); }
.acct-dot { position: absolute; right: 2px; bottom: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.tb-acct { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff !important; }
.ulink { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--black); }
.auth-wrap { padding: 48px 24px 72px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 420px); gap: 40px; justify-content: center; align-items: start; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 20px; }
.narrow-card { max-width: 520px; margin: 0 auto; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.auth-form .btn { margin-top: 6px; }
.auth-form .btn:not(.full) { align-self: flex-start; }
.auth-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-side { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.auth-note { display: flex; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--grey); border: 1px solid var(--line); }
.auth-note b { display: block; margin-bottom: 4px; }
.auth-note p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.auth-note a:not(.btn) { color: var(--black); font-weight: 600; text-decoration: underline; }
.auth-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; flex: none; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.acct-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding-bottom: 64px; align-items: start; }
.acct-nav { position: sticky; top: 66px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: 14px; color: var(--ink-2); }
.acct-nav a:hover { background: var(--grey); }
.acct-nav a.on { background: var(--black); color: #fff; }
.acct-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.acct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.acct-stats div { background: var(--grey); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.acct-stats b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; }
.acct-stats span { color: var(--muted); font-size: 13px; }
.acct-card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: #fff; scroll-margin-top: 70px; }
.acct-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.acct-orders { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 12px; }
.acct-order { display: grid; grid-template-columns: 130px 1fr auto 110px 18px; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.acct-order:last-child { border-bottom: 0; }
.acct-order:hover { background: var(--grey); }
.acct-order b { text-align: right; font-family: var(--f-display); }
.small-empty { padding: 30px 10px; }
.check-line { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check-line input { accent-color: var(--black); width: 16px; height: 16px; }
.checkout-signin { display: flex; align-items: center; gap: 10px; margin-top: -10px; margin-bottom: 18px; }
@media (max-width: 980px) {
  .auth-grid, .acct-layout { grid-template-columns: 1fr; }
  .acct-nav { position: static; flex-direction: row; overflow-x: auto; }
  .acct-nav a { white-space: nowrap; }
  .acct-order { grid-template-columns: 1fr auto; }
  .acct-order > .ic { display: none; }
}
@media (max-width: 640px) {
  .auth-wrap { padding: 28px 14px 48px; }
  .auth-card { padding: 22px; }
  .tb-acct { display: inline-flex; }
}

/* ------------------------------------------------------------ logo */
.brand { color: var(--black); line-height: 0; }
.brand .logo-svg { height: 36px; width: auto; display: block; }
.brand:hover .logo-svg { opacity: .85; }
.brand-inv { color: #fff; }
.brand-inv .logo-svg { height: 32px; }
.drawer-top .brand .logo-svg { height: 26px; }
.maint-logo { margin-bottom: 18px; }
.maint-logo .logo-svg { height: 52px; }
.brand-text { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; line-height: 1; }
@media (max-width: 640px) { .brand .logo-svg { height: 28px; } }
.foot-grid a.brand-inv, .foot-grid a.brand-inv:hover { color: #fff; }
@media (max-width: 640px) {
  .head-tools { gap: 8px; }
  .head-tools .tool-link:not(.cart-btn):not(.acct-link) { display: none; }
  .acct-link > span:last-child { display: none; }
  .acct-ic, .cart-ic { width: 40px; height: 40px; }
}

/* ----------------------------------------------------- picture slider */
.pic-slider { padding: 56px 0 60px; }
.pic-slider .section-head { margin-bottom: 18px; }
.ps-arrows { display: flex; gap: 8px; }
.ps-box { position: relative; overflow: hidden; border-radius: var(--r); background: var(--grey); border: 1px solid var(--line); aspect-ratio: 21 / 8; outline: none; touch-action: pan-y; user-select: none; }
.ps-box:focus-visible { box-shadow: 0 0 0 3px rgba(17,19,24,.25); }
.ps-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.ps-track.dragging { transition: none; }
.ps-slide { position: relative; flex: 0 0 100%; height: 100%; display: block; overflow: hidden; }
.ps-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.ps-slide.on img { transform: scale(1.04); }
.ps-cap { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 44px); padding: 10px 16px; border-radius: var(--r-sm); background: rgba(17,19,24,.86); color: #fff; font-weight: 600; font-size: 15px; backdrop-filter: blur(6px); }
a.ps-slide:hover .ps-cap { background: var(--black); }
.ps-dots { position: absolute; right: 22px; bottom: 30px; display: flex; gap: 6px; z-index: 2; }
.ps-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(17,19,24,.25); cursor: pointer; transition: width .25s, background .25s; }
.ps-dots button.on { width: 26px; background: #fff; }
.ps-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(17,19,24,.08); }
.ps-progress i { display: block; height: 100%; width: 0; background: var(--black); }
.ps-progress i.run { width: 100%; transition: width linear; }
@media (max-width: 640px) {
  .pic-slider { padding: 40px 0 44px; }
  .ps-box { aspect-ratio: 4 / 3; }
  .ps-cap { left: 12px; bottom: 12px; font-size: 13.5px; padding: 8px 12px; max-width: calc(100% - 90px); }
  .ps-dots { right: 12px; bottom: 20px; }
  .ps-arrows { display: none; }
}
.ps-dots { background: rgba(255,255,255,.85); padding: 6px 8px; border-radius: 999px; box-shadow: 0 1px 4px rgba(17,19,24,.15); bottom: 26px; }
.ps-dots button { background: rgba(17,19,24,.28); box-shadow: none; }
.ps-dots button.on { background: var(--black); }
@media (max-width: 640px) { .ps-dots { top: 12px; bottom: auto; right: 12px; } }

/* ------------------------------------------------- blog & tutorials */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: border-color .15s, box-shadow .15s; }
.post-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pc-media { position: relative; aspect-ratio: 16 / 9; background: var(--grey); overflow: hidden; border-bottom: 1px solid var(--line); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .pc-media img { transform: scale(1.04); }
.pc-media .tag { position: absolute; top: 12px; left: 12px; }
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-body h3 { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.pc-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pc-body p { color: var(--muted); font-size: 14px; margin: 0; }
.pc-body .link-arrow { margin-top: auto; padding-top: 6px; }
.pc-meta, .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.pc-meta span, .post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.lvl { padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 11.5px; border: 1px solid; }
.lvl-beginner { color: var(--ok); border-color: #b7dfc9; background: #eef8f2; }
.lvl-intermediate { color: var(--warn); border-color: #f0d5b3; background: #fdf6ec; }
.lvl-advanced { color: var(--bad); border-color: #f1c0c0; background: #fdf1f1; }

.posts-slider { padding: 56px 0 8px; border-top: 1px solid var(--line); }
.pss-tools { display: flex; align-items: center; gap: 8px; }
.pss-tabs { display: flex; gap: 2px; background: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-right: 6px; }
.pss-tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.pss-tabs button.on { background: var(--black); color: #fff; }
.pss-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 18px; scrollbar-width: thin; outline: none; }
.pss-track::-webkit-scrollbar { height: 6px; }
.pss-track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.pss-item { scroll-snap-align: start; min-width: 0; }
.pss-item[hidden] { display: none !important; }
.pss-more a { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 20px; color: var(--ink-2); transition: border-color .15s, background .15s; }
.pss-more a:hover { border-color: var(--black); background: var(--grey); }
.pss-more span { color: var(--muted); font-size: 13px; }

.blog-wrap { padding-bottom: 64px; }
.blog-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.blog-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.blog-tabs a b { font-weight: 500; color: var(--dim); margin-left: 4px; }
.blog-tabs a.on { background: var(--black); color: #fff; border-color: var(--black); }
.blog-tabs a.on b { color: #b6bbc4; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.post-page { padding-top: 22px; padding-bottom: 64px; }
.post-head { max-width: 820px; margin: 10px 0 24px; }
.post-head .tag { display: inline-block; margin-bottom: 14px; }
.post-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.03em; margin-bottom: 12px; }
.post-head .lead { margin-bottom: 14px; }
.post-meta span + span::before { content: "·"; margin-right: 6px; color: var(--dim); }
.post-meta .lvl::before, .post-meta .lvl + span::before { content: none; }
.post-cover { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--grey); aspect-ratio: 21 / 8; margin-bottom: 34px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.post-layout.no-aside { grid-template-columns: minmax(0, 780px); }
.post-body { font-size: 1.03rem; line-height: 1.75; }
.post-body h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.post-body h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.prose pre { background: #0f1115; color: #e6e8ec; padding: 18px 20px; border-radius: var(--r); overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 1.2em 0 1.4em; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--black); background: var(--grey); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.post-aside { position: sticky; top: 70px; }
.parts-box { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.parts-box h2 { font-size: 1.1rem; margin: 0 0 4px; }
.part { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.part img { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; background: var(--grey); border: 1px solid var(--line); }
.part b { display: block; font-size: 13.5px; line-height: 1.3; margin-bottom: 3px; }
.part a:hover b { text-decoration: underline; }
.part-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.part-buy .price { font-size: .98rem; }
.add-mini { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; }
.add-mini:hover { background: var(--black); color: #fff; border-color: var(--black); }
.add-mini.done { background: var(--ok); color: #fff; border-color: var(--ok); }
.parts-total { display: flex; justify-content: space-between; font-size: 15px; font-family: var(--f-display); padding-top: 2px; }

@media (max-width: 1200px) { .pss-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 980px) {
  .pss-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; gap: 28px; }
  .post-aside { position: static; }
}
@media (max-width: 640px) {
  .posts-slider .section-head { flex-direction: column; align-items: flex-start; }
  .pss-tools .sl-btn { display: none; }
  .pss-track { grid-auto-columns: 82%; }
  .post-grid { grid-template-columns: 1fr; }
  .post-cover { aspect-ratio: 16 / 9; }
}
