/* Prime Halal — public site.
   Restrained, monochrome design: warm paper background, near-black ink, hairline borders
   instead of shadows, one muted brass accent for small details. Mobile-first, no framework. */

/* ===== Tokens ===== */
:root {
  /* Brand (from the logo): forest green + wheat gold on cream. */
  --brand: #133E29;
  --brand-deep: #0D2C1D;
  --brand-hover: #1B5238;
  --brand-soft: #E4ECE4;
  --gold: #B8924F;            /* text-safe gold for small accents */
  --gold-light: #DDC79A;      /* logo gold, for large shapes and dark backgrounds */
  --gold-soft: #F3EAD7;

  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --sunken: #F2F5F2;
  --sand: #EBEFEA;
  --sand-soft: #F6F8F6;
  --ink: #17251D;
  --ink-2: #3A4840;
  --muted: #6D776F;
  --faint: #A6ADA4;
  --line: #E3E8E3;
  --line-strong: #CCD5CD;
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --red: #A8402B;
  --red-soft: #F8E9E4;
  --ok: #2E6B45;
  --warn: #9A6A12;
  --danger: #B42318;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  /* Control sizes: every button, field and filter uses one of these heights and --radius-sm corners. */
  --h-sm: 40px;   /* small buttons, filters, dropdowns, steppers on cards, icon buttons */
  --h-md: 44px;   /* default buttons, catalog search */
  --h-lg: 52px;   /* main actions, form fields, product page buy box */
  --pill: 999px;
  --shadow: 0 1px 2px rgba(19, 62, 41, .05), 0 10px 26px -14px rgba(19, 62, 41, .18);
  --shadow-lg: 0 26px 60px -26px rgba(13, 44, 29, .35);
  --ring: 0 0 0 3px rgba(19, 62, 41, .16);

  --header-h: 72px;
  --tabbar-h: 0px;
  /* One restrained sans-serif for everything; Kazakh and Russian letters share the same design. */
  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 16px/1.65 var(--font); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--tabbar-h);
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--brand); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
b, strong { font-weight: 600; }
h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 17px; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 768px) { .container { padding: 0 28px; } }

.sr-only, .hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.noscript { padding: 24px; text-align: center; }
.muted { color: var(--muted); font-weight: 400; }
.lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.icon { width: 20px; height: 20px; flex: none; }
.overline { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h-md); padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.btn--sm { height: var(--h-sm); padding: 0 14px; font-size: 14px; }
.btn--lg { height: var(--h-lg); padding: 0 22px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--muted { background: var(--sunken); color: var(--muted); }
.btn--text { height: var(--h-sm); padding: 0 4px; background: none; color: var(--muted); }
.btn--text:hover { color: var(--brand); }
.btn--light { background: var(--paper); color: var(--brand); }
.btn--light:hover { background: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .4); color: var(--paper); }
.btn--outline-light:hover { border-color: var(--gold-light); color: #fff; }
/* WhatsApp actions keep the restrained style; only the glyph carries the brand colour. */
.btn--wa .icon--wa { color: #25D366; }
.btn--primary .icon--wa { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: var(--h-sm); height: var(--h-sm);
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--sunken); }
.icon-btn .icon { width: 21px; height: 21px; }
.count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill);
  background: var(--brand); color: #fff; border: 2px solid var(--paper);
  font: 600 10px/14px var(--font); text-align: center; font-style: normal;
}
.count--gold { background: var(--gold); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--brand); white-space: nowrap; }
.link-arrow .icon { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { height: 46px; width: auto; }
.logo--footer .logo__img { height: auto; width: 190px; }
@media (max-width: 480px) { .logo__img { height: 34px; } }
@media (max-width: 380px) { .logo__img { height: 28px; } }

.nav { display: none; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }
.langs { display: inline-flex; padding: 3px; margin-right: 6px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); }
.langs button { padding: 4px 9px; border: 0; border-radius: var(--pill); background: none; font-size: 12px; font-weight: 500; letter-spacing: .03em; color: var(--muted); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* header search */
.hsearch { position: relative; display: none; align-items: center; }
.hsearch > .icon { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.hsearch input {
  width: 100%; height: var(--h-sm); padding: 0 42px 0 40px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
.hsearch input::-webkit-search-cancel-button { display: none; }
.hsearch input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.hsearch__close { position: absolute; right: 2px; width: 36px; height: 36px; }
.hsearch__panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5; max-height: 70vh; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hs-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); }
.hs-item:hover, .hs-item.is-active { background: var(--sunken); }
.hs-item__img { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; background: var(--sunken); }
.hs-item__img img { width: 100%; height: 100%; object-fit: cover; }
.hs-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hs-item__text b, .hs-item__text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-item__text b { font-weight: 500; font-size: 14.5px; }
.hs-item__text small { color: var(--muted); font-size: 12.5px; }
.hs-item__price { font-weight: 500; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hs-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; padding: 11px; border-top: 1px solid var(--line); font-weight: 500; font-size: 14.5px; }
.hs-all:hover, .hs-all.is-active { background: var(--sunken); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.hs-all .icon { width: 16px; height: 16px; }
.hs-empty { margin: 0; padding: 18px; text-align: center; color: var(--muted); }

/* Wide screens show the search field in the header; narrower ones open it as a panel under the header. */
.hsearch-btn { display: none; }
@media (min-width: 900px) and (max-width: 1199px) { .hsearch-btn { display: inline-grid; } }
@media (max-width: 1199px) {
  .search-open .hsearch {
    display: flex; position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 41; padding: 10px 16px 12px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .search-open .hsearch input { height: 46px; font-size: 16px; }
  .search-open .hsearch > .icon { left: 29px; }
  .search-open .hsearch__close { right: 20px; }
  .search-open .hsearch__panel { left: 12px; right: 12px; }
}
@media (min-width: 1200px) {
  .hsearch { display: flex; flex: 1; min-width: 0; max-width: 380px; margin: 0 10px 0 auto; }
  .hsearch__close { display: none; }
  .header__actions { margin-left: 0; }
}
@media (max-width: 899px) {
  :root { --tabbar-h: calc(62px + env(safe-area-inset-bottom)); }
  .hide-sm { display: none !important; }
  .menu-open .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--header-h);
    padding: 6px 16px 14px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .menu-open .nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-weight: 500; }
  .menu-open .nav a:last-child { border-bottom: 0; }
}
@media (min-width: 900px) {
  .burger { display: none; }
  .nav { display: flex; gap: 2px; margin-left: 20px; }
  .nav a {
    padding: 7px 13px; border-radius: var(--pill); font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
    transition: background-color .15s, color .15s;
  }
  .nav a:hover { background: var(--sunken); color: var(--brand); }
  .nav a.is-active { background: var(--brand-soft); color: var(--brand); }
  .nav .nav__mobile { display: none; }
}
@media (min-width: 900px) and (max-width: 1359px) { .nav .nav__wide { display: none; } }
@media (min-width: 900px) and (max-width: 1023px) { .nav { margin-left: 8px; } .nav a { padding: 7px 9px; font-size: 14px; } }

/* ===== Tab bar (phones) ===== */
.tabbar { display: none; }
@media (max-width: 899px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; color: var(--faint); font-size: 10.5px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar .is-active { color: var(--brand); }
  .tabbar .count { top: 5px; right: calc(50% - 21px); }
}

/* ===== Hero ===== */
.hero { padding: 16px 0 0; }
.hero__panel {
  position: relative; overflow: hidden; padding: 32px 22px 26px; border-radius: 24px; color: #fff;
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(221, 199, 154, .16), transparent 65%),
    radial-gradient(560px 380px at 0% 100%, rgba(27, 82, 56, .85), transparent 70%),
    var(--brand);
}
.hero__panel::after {  /* furrow lines echoing the fields in the logo, kept faint behind the text */
  content: ''; position: absolute; right: -12%; bottom: -35%; width: 62%; height: 95%; pointer-events: none; opacity: .07;
  background: repeating-radial-gradient(ellipse at 100% 100%, transparent 0 22px, var(--gold-light) 22px 24px);
}
.hero__panel > * { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 5px 12px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--gold-light);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); }
.hero h1 { max-width: 22ch; margin: 0 0 16px; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.hero .lead { max-width: 46ch; margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: rgba(255, 255, 255, .75); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
@media (max-width: 560px) { .hero__actions .btn { flex: 1 1 100%; } }
.steps-card { padding: 24px; border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .45); }
.steps-card__title { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.steps-card ol { list-style: none; margin: 0; padding: 0; display: grid; }
.steps-card li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.steps-card li:first-child { border-top: 0; }
.steps-card__num {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.facts-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.facts-strip div { padding: 18px 12px 2px 0; }
.facts-strip div + div { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .14); }
.facts-strip dt { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.facts-strip dd { margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
@media (min-width: 900px) {
  .hero { padding: 24px 0 0; }
  .hero__panel { padding: 56px 56px 36px; border-radius: 32px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; }
  .facts-strip { max-width: 640px; margin-top: 48px; }
  .facts-strip div { padding: 20px 24px 0 0; }
  .facts-strip div + div { padding-left: 24px; }
}

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section--tight { padding: 16px 0; }
.section--alt { background: var(--sand-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--flush { padding: 56px 0 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head:has(+ .section__text) { margin-bottom: 8px; }
.section__text { max-width: 60ch; margin: 0 0 24px; color: var(--muted); }
.section--sale { background: linear-gradient(180deg, var(--red-soft), transparent 70%); }
.section--premium { background: linear-gradient(180deg, var(--gold-soft), transparent 70%); }
.section__head h2 { margin: 0; }
.section__head .overline { margin-bottom: 8px; }
@media (min-width: 900px) { .section { padding: 88px 0; } .section--tight { padding: 24px 0; } }

/* promo banners */
.promos-section { padding-top: 28px; }
.promos {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px;
}
.promos::-webkit-scrollbar { display: none; }
.promos--1 { grid-auto-columns: 100%; }
.promo {
  --banner-bg: #EFE5D3; --banner-fg: #8A6A34; --banner-ink: #3D2E14;
  position: relative; display: flex; min-height: 210px; padding: 24px; overflow: hidden; scroll-snap-align: start;
  border-radius: var(--radius-lg); background: var(--banner-bg); color: var(--banner-ink);
  transition: transform .25s var(--ease);
}
a.promo:hover { transform: translateY(-2px); }
.promo__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: 60%; }
.promo__text h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; line-height: 1.15; color: inherit; }
.promo__text p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; opacity: .78; }
.promo__btn {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .72); font-size: 13.5px; font-weight: 500;
}
.promo__btn .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
a.promo:hover .promo__btn .icon { transform: translateX(3px); }
.promo__art { position: absolute; right: -4px; bottom: -6px; width: 50%; max-width: 230px; color: var(--banner-fg); transition: transform .4s var(--ease); }
a.promo:hover .promo__art { transform: translate(-4px, -2px); }
.art { width: 100%; height: auto; display: block; }
/* Shapes that "cut through" an illustration take the banner background colour. */
.art__cut { fill: var(--banner-bg); }
.promo--photo .promo__art { inset: 0 0 0 42%; width: auto; max-width: none; }
.promo--photo .promo__art img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.promo--sand  { --banner-bg: #EFE5D3; --banner-fg: #8A6A34; --banner-ink: #3D2E14; }
.promo--clay  { --banner-bg: #F1DED5; --banner-fg: #9A4E36; --banner-ink: #4A2216; }
.promo--sage  { --banner-bg: #E3E9DF; --banner-fg: #4E6A4A; --banner-ink: #22331F; }
.promo--slate { --banner-bg: #E2E7EC; --banner-fg: #4A5D70; --banner-ink: #1F2B37; }
.promo--wheat { --banner-bg: #F2E8CF; --banner-fg: #8C6A1C; --banner-ink: #3F3009; }
.promo--ink   { --banner-bg: #1A1916; --banner-fg: #D9BE8C; --banner-ink: #FFFFFF; }
.promo--ink .promo__btn { background: rgba(255, 255, 255, .12); }
@media (min-width: 768px) { .promos { margin: 0 -28px; padding: 0 28px 4px; scroll-padding: 0 28px; grid-auto-columns: 60%; } }
@media (min-width: 1000px) {
  .promos { grid-auto-flow: row; overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .promos--1 { grid-template-columns: 1fr; }
  .promos--2 { grid-template-columns: 1fr 1fr; }
  .promos--3 { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
  .promos--3 .promo:first-child { grid-row: span 2; min-height: 380px; padding: 36px; }
  .promos--3 .promo:first-child .promo__text h3 { font-size: 30px; }
  .promos--3 .promo:first-child .promo__text p { font-size: 15.5px; }
  .promos--3 .promo:first-child .promo__art { width: 58%; max-width: 360px; }
  .promos--many { grid-template-columns: repeat(3, 1fr); }
  .promo { min-height: 182px; }
}

/* categories */
.cats { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.cat { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: padding .2s var(--ease); }
.cat:hover { padding-left: 10px; }
.cat__img { width: 52px; height: 52px; border-radius: var(--radius-sm); flex: none; display: grid; place-items: center; overflow: hidden; background: var(--sunken); color: var(--faint); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; }
.cat__img .icon { width: 24px; height: 24px; stroke-width: 1.5; }
.cat__body { display: flex; flex-direction: column; min-width: 0; }
.cat__name { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; color: var(--brand); }
.cat__count { font-size: 13px; color: var(--muted); }
.cat > .icon { margin-left: auto; width: 18px; height: 18px; color: var(--faint); transition: color .2s, transform .2s var(--ease); }
.cat:hover > .icon { color: var(--brand); transform: translateX(3px); }
@media (min-width: 640px) { .cats { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }

/* banner */
.banner {
  display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(520px 220px at 100% 0%, rgba(221, 199, 154, .28), transparent 70%), var(--brand-deep);
}
.banner h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; color: #fff; }
.banner p { margin: 0; color: rgba(255, 255, 255, .66); }
.banner .overline { color: var(--gold-light); }
.banner .btn--primary { background: var(--paper); color: var(--brand); }
.banner .btn--primary:hover { background: #fff; }
@media (min-width: 800px) { .banner { grid-template-columns: 1fr auto; padding: 36px 40px; } }

/* about */
.about { display: grid; gap: 40px; }
.about__text p { color: var(--ink-2); font-size: 17px; max-width: 52ch; }
.adv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.adv li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.adv h3 { margin: 12px 0 4px; }
.adv p { margin: 0; color: var(--muted); font-size: 15px; }
.adv__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.adv__icon .icon { width: 24px; height: 24px; stroke-width: 1.6; }
@media (min-width: 640px) {
  .adv { grid-template-columns: 1fr 1fr; }
  .adv li:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
  .adv li:nth-child(even) { padding-left: 24px; }
}
@media (min-width: 900px) { .about { grid-template-columns: .85fr 1.15fr; gap: 72px; } }

/* delivery */
.delivery { display: grid; gap: 28px; }
.delivery__text p { font-size: 17px; color: var(--ink-2); max-width: 56ch; }
.cities { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cities li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 2px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--brand); }
.cities li span { display: inline-flex; align-items: center; gap: 10px; }
.cities .icon { width: 18px; height: 18px; color: var(--accent); }
.cities li:first-child { color: var(--ink); }
.cities small { font-family: var(--font); padding: 3px 10px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: 0; }
@media (min-width: 900px) { .delivery { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* contacts */
.contacts { display: grid; gap: 32px; }
.contacts h2 { margin-bottom: 24px; }
.contact-list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.contact-list div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.contact-list dt .icon { width: 16px; height: 16px; }
.contact-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.contact-list dd a:hover { text-decoration-color: var(--ink); }
@media (min-width: 640px) { .contact-list div { grid-template-columns: 180px 1fr; align-items: baseline; } }
@media (min-width: 900px) { .contacts { grid-template-columns: .85fr 1.15fr; gap: 72px; } }

/* ===== Product cards ===== */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.pcard {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(26, 25, 22, .04);
  transition: border-color .2s, box-shadow .2s;
}
.pcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.pcard__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sunken); }
.pcard__media > a { display: block; width: 100%; height: 100%; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.03); }
.pcard__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.pcard__info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pcard__meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__brand { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pcard__cat { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.pcard__title { margin: 0; font-size: 15.5px; font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); }
.pcard__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard__desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.buy .btn, .buy .stepper { width: 100%; }
@media (min-width: 768px) { .pcard__body { padding: 16px; } .pcard__title { font-size: 16px; } }

/* empty image state */
.ph { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--sunken); color: #B4BCB5; }
.ph__icon { display: grid; place-items: center; width: 34%; max-width: 96px; aspect-ratio: 1; }
.ph__icon .ph-art { width: 100%; height: 100%; }
.ph__text { font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: .02em; }
.ph--compact .ph__icon { width: 60%; max-width: none; }
.gallery__main .ph__icon { max-width: 150px; }
.gallery__main .ph__text { font-size: 13.5px; }

/* variants (weight, pack size, volume…) */
.variants { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.variants__label { font-size: 12px; font-weight: 500; color: var(--muted); }
.variants__list { display: flex; flex-wrap: wrap; gap: 6px; }
.variants__list button {
  min-height: 32px; padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.variants__list button:hover { border-color: var(--ink); }
.variants__list button:hover { border-color: var(--brand); }
.variants__list button[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.variants__list button.is-out { color: var(--faint); text-decoration: line-through; }
.variants__list button.is-out[aria-checked="true"] { background: var(--sunken); border-color: var(--line-strong); color: var(--muted); }
.variants--lg { margin: 0 0 20px; gap: 8px; }
.variants--lg .variants__label { font-size: 13px; }
.variants--lg .variants__list button { height: var(--h-sm); min-height: 0; padding: 0 16px; font-size: 14.5px; line-height: 1; border-radius: var(--radius-sm); }
.cart-item__variant { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.order-card__name small { color: var(--muted); }

/* characteristics, stock */
.specchips { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.specchips li { display: inline-flex; gap: 5px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.specchips small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.stock { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--muted); }
.stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock--in_stock { color: var(--ok); }
.stock--on_order { color: var(--warn); }
.stock--out_of_stock { color: var(--faint); }

/* badges & favourite */
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 56px); pointer-events: none; }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; line-height: 1.4; }
.badge--new { background: var(--brand); color: #fff; }
.badge--sale { background: var(--red); color: #fff; }
.badge--premium { gap: 4px; background: #0E2E1F; color: #E6CF9E; box-shadow: inset 0 0 0 1px rgba(221, 199, 154, .55); }
.badge--premium svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.fav {
  position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink-2); cursor: pointer;
  transition: color .15s, border-color .15s; -webkit-tap-highlight-color: transparent;
}
.fav .icon { width: 17px; height: 17px; }
.fav:hover { border-color: var(--ink); color: var(--ink); }
.fav[aria-pressed="true"] { color: var(--red); border-color: transparent; }
.fav:hover { color: var(--brand); border-color: var(--brand); }
.fav[aria-pressed="true"] .icon { fill: currentColor; animation: pop-heart .3s var(--ease); }
@keyframes pop-heart { 50% { transform: scale(1.25); } }
.fav--lg { position: static; width: var(--h-lg); height: var(--h-lg); flex: none; border-radius: var(--radius-sm); border-color: var(--line-strong); background: var(--surface); }
.fav--lg .icon { width: 20px; height: 20px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font-variant-numeric: tabular-nums; }
.price span { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.price s { order: -1; flex-basis: 100%; font-size: 13px; color: var(--faint); line-height: 1.3; }
.price--sale span { color: var(--red); }
.price small { font-size: 13px; color: var(--muted); }
.price--request span { font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.price--request small::before { content: '· '; }

.wholesale { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; font-size: 12.5px; font-weight: 500; color: var(--accent); }
.wholesale .icon { width: 14px; height: 14px; }

.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.avail::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.avail--in_stock { color: var(--ok); }
.avail--on_order { color: var(--warn); }
.avail--out_of_stock { color: var(--faint); }

.stepper { display: inline-flex; align-items: center; height: var(--h-sm); overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.stepper button { flex: none; width: 40px; height: 100%; display: grid; place-items: center; border: 0; background: none; color: var(--brand); cursor: pointer; }
.stepper button:hover { background: var(--sunken); }
.stepper .icon { width: 16px; height: 16px; }
.stepper input { flex: 1; min-width: 0; width: 48px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--sunken); }
.stepper--lg { height: var(--h-lg); }
.stepper--lg button { width: 50px; }
.stepper--lg input { width: 64px; font-size: 17px; }

/* list view */
@media (min-width: 640px) {
  .grid--list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .grid--list .pcard { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .grid--list .pcard:hover { box-shadow: none; background: var(--surface); }
  .grid--list .pcard__media { width: 84px; height: 105px; flex: none; aspect-ratio: auto; margin: 12px 0; border-radius: var(--radius-sm); }
  .grid--list .pcard__media > a { position: absolute; inset: 0; }
  .grid--list .badges { left: 4px; top: 4px; }
  .grid--list .badge { font-size: 10px; padding: 2px 5px; }
  .grid--list .fav { display: none; }
  .grid--list .ph__text { display: none; }
  .grid--list .pcard__body { flex-direction: row; align-items: center; gap: 24px; padding: 12px 16px; }
  .grid--list .pcard__info { flex: 1; }
  .grid--list .pcard__desc { -webkit-line-clamp: 1; }
  .grid--list .pcard__foot { margin: 0; flex: none; flex-direction: row; align-items: center; gap: 16px; }
  .grid--list .price { width: 130px; justify-content: flex-end; text-align: right; }
  .grid--list .buy { width: 150px; }
  .grid--list .variants { max-width: 230px; }
}

/* skeletons */
.pcard--skeleton .pcard__media, .skeleton, .pcard--skeleton i, .skeleton-lines i {
  background: linear-gradient(90deg, var(--sunken) 0%, #F8F7F3 50%, var(--sunken) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.pcard--skeleton:hover { box-shadow: none; }
.pcard--skeleton i, .skeleton-lines i { display: block; height: 12px; margin-bottom: 10px; border-radius: 6px; }
.pcard--skeleton i:nth-child(2) { width: 75%; }
.pcard--skeleton i:nth-child(3) { width: 100%; height: 40px; margin-top: 18px; border-radius: var(--radius-sm); }
.skeleton-lines i { height: 22px; } .skeleton-lines i:nth-child(1) { width: 70%; height: 40px; } .skeleton-lines i:nth-child(3) { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.page-loader { min-height: 60vh; }

/* ===== Page head ===== */
.page-head { padding: 28px 0 8px; }
.page-head h1 { margin: 10px 0 6px; font-size: clamp(30px, 4.2vw, 48px); }
.page-head .lead { margin: 0; font-size: 16px; color: var(--muted); }
.page-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.page-body { padding-top: 20px; padding-bottom: 80px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink-2); }

/* ===== Catalog ===== */
.catalog { padding-top: 12px; padding-bottom: 80px; }
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20; display: grid; gap: 10px; padding: 12px 0;
  grid-template-columns: minmax(0, 1fr);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: var(--h-md); padding: 0 16px 0 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.toolbar__filters { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.toolbar__filters::-webkit-scrollbar { display: none; }
.toggle { position: relative; flex: none; cursor: pointer; }
.toggle input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.toggle span {
  display: inline-flex; align-items: center; gap: 6px; height: var(--h-sm); padding: 0 14px; white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; font-weight: 500; transition: all .15s;
}
.toggle span .icon { width: 15px; height: 15px; }
.toggle input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.toggle--sale input:checked + span { background: var(--red); border-color: var(--red); }
.toggle--premium input:checked + span { background: #0E2E1F; border-color: #C9A35E; color: #E6CF9E; }
.toggle input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.select { position: relative; flex: none; }
.view-toggle { display: none; flex: none; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.view-toggle button { width: 34px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--faint); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.view-toggle .icon { width: 17px; height: 17px; }
@media (min-width: 640px) { .view-toggle { display: inline-flex; } }
@media (min-width: 900px) { .toolbar__filters { flex-wrap: wrap; overflow: visible; } .toolbar__filters .select--sort { margin-left: auto; } }

.catalog__status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 32px; margin: 6px 0 14px; }
.catalog__found { margin: 0; font-size: 13.5px; color: var(--muted); }
.catalog__reset { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s; }
.catalog__reset[hidden] { display: none; }
.catalog__reset:hover { border-color: var(--brand); color: var(--brand); }
.catalog__reset .icon { width: 14px; height: 14px; }
.catalog__more { min-height: 40px; display: flex; justify-content: center; padding-top: 28px; }
.spinner { width: 26px; height: 26px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { max-width: 460px; margin: 0 auto; padding: 56px 16px; text-align: center; color: var(--muted); }
.empty > .icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--faint); }
.empty h2 { font-size: 22px; }
.empty--page { padding: 72px 16px 96px; }
.empty__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2); }
.empty__icon .icon { width: 30px; height: 30px; stroke-width: 1.5; }

/* ===== Product page ===== */
.product { padding-top: 20px; padding-bottom: 80px; }
.product__grid { display: grid; gap: 28px; margin-top: 18px; }
@media (min-width: 900px) {
  .product__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 24px); }
}
.gallery__main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sunken); }
.gallery__main .badges { left: 16px; top: 16px; }
.gallery__main .badge { font-size: 13px; padding: 4px 10px; }
.gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 72px; height: 72px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sunken); cursor: pointer; }
.gallery__thumbs button.is-active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product__info .pcard__cat { font-size: 13px; white-space: normal; }
.product__labels { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.product__info .pcard__brand { font-size: 14px; }
.product__info a.pcard__brand:hover { color: var(--brand); text-decoration: underline; }
.product__info h1 { margin: 8px 0 18px; font-size: clamp(28px, 3.4vw, 42px); }
.product__price .price span { font-size: 32px; font-weight: 600; }
.product__price .price s { font-size: 15px; }
.sale-note { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 4px 10px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 13px; font-weight: 600; }
.product__price .price--request span { font-size: 20px; }
.product__info .wholesale { margin-top: 8px; font-size: 13.5px; }
.buybox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.buybox .btn--primary { flex: 1; min-width: 180px; }
.buybox__note { flex-basis: 100%; min-height: 1.5em; display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 14px; font-weight: 500; color: var(--ok); }
.buybox__note:empty { display: none; }
.buybox__note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .buybox .stepper--lg { flex: 1; } .buybox .btn--primary { flex-basis: 100%; order: 3; } }
.facts { display: grid; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.facts dd a { text-decoration: underline; text-underline-offset: 3px; }
.product__details { display: grid; gap: 36px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .product__details { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.product__details h2 { font-size: 22px; }
.prose { color: var(--ink-2); font-size: 16.5px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 45%; padding-right: 16px; font-weight: 400; color: var(--muted); }
.specs td { font-weight: 500; }

.lightbox { max-width: min(92vw, 900px); max-height: 92vh; padding: 0; overflow: visible; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(17, 17, 16, .85); }
.lightbox img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: -50px; right: 0; color: #fff; background: rgba(255, 255, 255, .12); }
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }

/* Certificates */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 560px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.cert { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.cert__img { display: grid; place-items: center; aspect-ratio: 3 / 4; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.cert__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert:hover .cert__img, .cert:focus-visible .cert__img { border-color: var(--brand); box-shadow: 0 6px 20px rgba(19, 62, 41, .08); }
.cert:focus-visible { outline: none; }
.cert__title { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink-2); }
.lightbox--certs figure { margin: 0; }
.lightbox--certs img { width: auto; max-width: 100%; margin: 0 auto; background: #fff; display: block; max-height: 82vh; }
.lightbox--certs figcaption { margin-top: 10px; color: #fff; text-align: center; font-size: 15px; }
.lightbox--certs figcaption:empty { display: none; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; color: #fff; background: rgba(255, 255, 255, .12); }
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav--prev { left: -60px; }
.lightbox__nav--prev svg { rotate: 180deg; }
.lightbox__nav--next { right: -60px; }
@media (max-width: 1060px) {
  .lightbox__nav { top: auto; bottom: -56px; translate: none; }
  .lightbox__nav--prev { left: calc(50% - 52px); }
  .lightbox__nav--next { right: calc(50% - 52px); }
  .lightbox--certs img { max-height: 74vh; }
}

/* ===== Cart ===== */
.cart { display: grid; gap: 28px; padding: 16px 0 80px; }
@media (min-width: 960px) { .cart { grid-template-columns: 1fr 360px; align-items: start; gap: 48px; } }
.cart-list { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.cart-item {
  display: grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "img info remove" "img qty sum";
  gap: 8px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item__img { grid-area: img; align-self: start; width: 72px; height: 72px; overflow: hidden; border-radius: var(--radius-sm); background: var(--sunken); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { grid-area: info; min-width: 0; }
.cart-item__name { font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.cart-item__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-item__meta { margin-top: 2px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cart-item__info .wholesale { margin-top: 6px; font-size: 12px; }
.cart-item__warn { margin: 4px 0 0; font-size: 13.5px; font-weight: 500; color: var(--danger); }
.cart-item__qty { grid-area: qty; }
.cart-item__qty .stepper { width: 132px; }
.cart-item__sum { grid-area: sum; text-align: right; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart-item__remove { grid-area: remove; justify-self: end; width: var(--h-sm); height: var(--h-sm); color: var(--faint); }
.cart-item__remove:hover { color: var(--danger); background: var(--red-soft); }
.cart-item.is-blocked .cart-item__img, .cart-item.is-blocked .cart-item__name { opacity: .45; }
@media (min-width: 640px) {
  .cart-item { grid-template-columns: 88px 1fr 136px 110px 40px; grid-template-areas: "img info qty sum remove"; }
  .cart-item__img { align-self: center; width: 88px; height: 88px; }
}
.summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.summary h2 { font-size: 20px; }
.summary__rows { margin: 0 0 12px; }
.summary__rows div { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-2); }
.summary__rows dd { margin: 0; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary__total { margin-top: 6px; padding-top: 14px !important; border-top: 1px solid var(--line); }
.summary__total dt { font-weight: 500; color: var(--ink); }
.summary__total dd { font-size: 24px; font-weight: 600 !important; letter-spacing: -0.02em; color: var(--brand); }
.summary__note { font-size: 13.5px; color: var(--muted); }
@media (max-width: 959px) { .summary { position: static; } }

/* ===== Order history ===== */
.orders { display: grid; gap: 14px; }
@media (min-width: 900px) { .orders { grid-template-columns: 1fr 1fr; } }
.order-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.order-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 12px; }
.order-card__head strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--brand); }
.order-card__head small { font-size: 13px; color: var(--muted); }
.order-card__total { font-size: 18px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-card__items { list-style: none; margin: 0; padding: 0 18px; display: grid; gap: 8px; }
.order-card__items li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.order-card__img { flex: none; width: 36px; height: 36px; overflow: hidden; border-radius: 8px; background: var(--sunken); }
.order-card__img img { width: 100%; height: 100%; object-fit: cover; }
.order-card__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.order-card__qty { white-space: nowrap; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.order-card__more { padding-left: 46px; font-size: 13.5px; color: var(--muted); }
.order-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 18px; font-size: 13.5px; color: var(--muted); }

/* ===== Dialog / checkout ===== */
.dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--surface); }
.dialog::backdrop { background: rgba(17, 17, 16, .45); backdrop-filter: blur(2px); }
.dialog[open] { animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.dialog__head { display: flex; align-items: center; justify-content: space-between; margin: -6px -8px 16px 0; }
.dialog__head h2 { margin: 0; font-size: 22px; }
.checkout { padding: 24px; }
@media (min-width: 640px) { .checkout { padding: 28px 32px 30px; } }
.field { display: flex; flex-direction: column; margin-bottom: 14px; }
.field label { margin-bottom: 6px; font-size: 13.5px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input { height: var(--h-lg); padding-top: 0; padding-bottom: 0; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin-top: 4px; font-size: 13px; color: var(--danger); }
.field__error:empty { display: none; }
.form-error { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--red-soft); color: var(--danger); font-size: 14px; font-weight: 500; }
.checkout__note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.checkout--success { padding-bottom: 28px; text-align: center; }
.checkout--success .dialog__head { margin-bottom: 0; }
.checkout--success .btn--text { margin-top: 8px; }
.checkout--success h2 { font-size: 24px; }
.checkout--success p { color: var(--muted); }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 50%; color: var(--ok); }
.success-icon .icon { width: 30px; height: 30px; stroke-width: 2.2; }

/* ===== 404 ===== */
.notfound { padding: 96px 16px 128px; text-align: center; }
.notfound__code { margin: 0; font: 600 110px/1 var(--font); letter-spacing: -0.04em; color: var(--gold-light); }
.notfound p { color: var(--muted); }

/* ===== Footer ===== */
.footer { margin-top: auto; padding: 56px 0 0; background: var(--brand-deep); color: rgba(255, 255, 255, .66); font-size: 14.5px; }
.footer a { color: rgba(255, 255, 255, .86); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 40px; }
.footer__brand p { max-width: 34ch; margin: 14px 0 16px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.footer__contacts { display: grid; gap: 12px; align-content: start; }
.footer__contacts a, .footer__contacts span { display: inline-flex; align-items: flex-start; gap: 10px; }
.footer__contacts .icon { width: 16px; height: 16px; margin-top: 3px; opacity: .7; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-sm); }
.socials a:hover { border-color: rgba(255, 255, 255, .5); }
.socials .icon { width: 18px; height: 18px; }
.footer__bottom { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .45); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } .footer__nav { grid-template-columns: 1fr; } }

/* ===== Floating WhatsApp & toast ===== */
/* Floating WhatsApp button in the bottom-right corner. */
.fabs {
  position: fixed; right: 18px; bottom: calc(18px + var(--tabbar-h)); z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.fab {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease), background .15s;
}
.fab[hidden] { display: none; }
.fab:hover { transform: translateY(-2px); }
.fab--wa:hover { background: #25D366; }
.fab .icon { width: 25px; height: 25px; }
@media (max-width: 899px) {
  .fabs { right: 12px; bottom: calc(12px + var(--tabbar-h)); gap: 8px; }
  .fab { width: 48px; height: 48px; }
  .fab .icon { width: 23px; height: 23px; }
}

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h)); z-index: 60; width: max-content; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), var(--shadow-lg);  /* readable on white pages and on the dark footer */ opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--action { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; text-align: left; }
.toast--action.is-visible { pointer-events: auto; }
.toast__undo {
  flex: none; padding: 6px 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14);
  color: var(--gold-light); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s;
}
.toast__undo:hover { background: rgba(255, 255, 255, .24); }
/* Phones: keep clear of the round Instagram/WhatsApp buttons on the right. */
@media (max-width: 899px) { .toast { max-width: calc(100% - 140px); bottom: calc(16px + var(--tabbar-h)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== Dropdowns (assets/js/dropdown.js) ===== */
.dd { position: relative; display: inline-flex; max-width: 100%; vertical-align: middle; }
.dd__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd__btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; height: var(--h-sm);
  padding: 0 12px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  font: 500 14px/1 var(--font); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.dd__btn:hover { border-color: var(--brand); }
.dd__btn:focus-visible, .dd.is-open .dd__btn { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.dd__btn:disabled { opacity: .55; cursor: not-allowed; }
.dd__text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dd__arrow { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); }
.dd.is-open .dd__arrow { transform: rotate(180deg); color: var(--brand); }
.dd__list {
  position: fixed; z-index: 100; max-width: min(360px, calc(100vw - 16px)); overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: dd-in .14s var(--ease);
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.dd__option { display: flex; align-items: center; gap: 8px; padding: 9px 12px 9px 8px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.dd__option.is-active { background: var(--sunken); }
.dd__option[aria-selected="true"] { font-weight: 500; color: var(--brand); }
.dd__option[aria-disabled="true"] { opacity: .45; cursor: default; }
.dd__check { flex: none; width: 16px; height: 16px; visibility: hidden; }
.dd__option[aria-selected="true"] .dd__check { visibility: visible; }
.select .dd { max-width: 240px; }
