/* ═══════════════════════════════════════════════════════════
   Geforce.ir — فروشگاه تخصصی قطعات کامپیوتر و گیمینگ
   Dark-first brand system. RTL-native (logical properties only).
   No framework, no build step.

   Shape rule (locked):
     interactive (button, chip, input, pill)  -> --r-pill
     containers  (card, panel, media, drawer) -> --r
   Accent rule (locked): one green. Nothing else is ever colored.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn%5Bwght%5D.woff2')
       format('woff2 supports variations'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn%5Bwght%5D.woff2')
       format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand green, sampled from the logo. */
  --green:       #2FCE55;
  --green-soft:  rgba(47, 206, 85, .14);
  --green-line:  rgba(47, 206, 85, .32);
  --on-green:    #04180B;

  --ink:      #07090A;
  --surface:  #0D1110;
  --surface-2:#131817;
  --line:     rgba(255, 255, 255, .075);
  --line-2:   rgba(255, 255, 255, .14);

  --text:     #E9EDEA;
  --text-mid: #A9B1AC;
  --text-mute:#7E867F;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --shadow-lift: 0 32px 70px -28px rgba(0, 0, 0, .9),
                 0 0 0 1px var(--green-line);

  --r:      14px;
  --r-pill: 999px;

  --wrap: 1320px;
  --pad:  clamp(20px, 4vw, 40px);
  --gap-section: clamp(56px, 8vw, 96px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .5s;

  color-scheme: dark;
}

[data-theme="light"] {
  /* Darkened until every green usage clears AA: white-on-green 5.02:1,
     green text on the page ground 4.67:1. */
  --green:       #178038;
  --green-soft:  rgba(23, 128, 56, .10);
  --green-line:  rgba(23, 128, 56, .30);
  --on-green:    #FFFFFF;

  --ink:      #F5F7F5;
  --surface:  #FFFFFF;
  --surface-2:#EFF2F0;
  --line:     rgba(6, 20, 11, .10);
  --line-2:   rgba(6, 20, 11, .18);

  --text:     #0B1310;
  --text-mid: #444E48;
  --text-mute:#5C655E;

  --shadow: 0 20px 44px -24px rgba(6, 20, 11, .28);
  --shadow-lift: 0 28px 56px -26px rgba(6, 20, 11, .34),
                 0 0 0 1px var(--green-line);

  color-scheme: light;
}

/* ─── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Must beat the display:flex/grid rules below, or [hidden] does nothing. */
[hidden] { display: none !important; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--green);
  color: var(--on-green);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.skip:focus { inset-inline-start: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section__title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.note {
  color: var(--text-mute);
  font-size: .875rem;
  margin-bottom: 4px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;          /* CTA never wraps */
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, opacity .2s;
}
.btn--sm { padding: 9px 18px; font-size: .875rem; }

.btn--primary { --btn-bg: var(--green); --btn-fg: var(--on-green); --btn-bd: var(--green); }
.btn--primary:hover { filter: brightness(1.07); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); }
.btn--ghost:hover { --btn-bd: var(--green-line); background: var(--green-soft); }

.btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn.is-busy { pointer-events: none; opacity: .7; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s, gap .2s var(--ease);
}
.link:hover { border-color: var(--green-line); gap: 14px; }
.link i { font-size: 1.1em; }

.tag {
  display: inline-block;
  align-self: flex-start;   /* flex parent would otherwise stretch it to a bar */
  width: fit-content;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  font-size: .75rem;
  font-weight: 600;
}

/* ─── Navigation — single line, <= 72px ──────────────────── */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--ink) 94%, transparent);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 34px);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--green);
  direction: ltr;
}
.brand__tld { color: var(--text); }
.brand__fa { font-size: .68rem; color: var(--text-mute); font-weight: 500; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  margin-inline-end: auto;
  font-size: .93rem;
  white-space: nowrap;
}
.nav__links a {
  color: var(--text-mid);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__links a:hover { color: var(--text); border-bottom-color: var(--green); }

.nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-mid);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: border-color .2s, color .2s;
}
.nav__phone:hover { color: var(--green); border-color: var(--green-line); }
.nav__phone i { color: var(--green); font-size: 1.05rem; }

.iconbtn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color .2s, border-color .2s, background-color .2s, transform .18s var(--ease);
}
.iconbtn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.iconbtn:active { transform: scale(.94); }

.iconbtn__count {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-start: -4px;
  min-width: 19px; height: 19px;
  display: grid; place-items: center;
  padding-inline: 4px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: var(--on-green);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
}

.nav__burger { display: none; }

/* Drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-start;
}
.drawer__panel {
  width: min(320px, 84vw);
  height: 100%;
  background: var(--surface);
  border-inline-end: 1px solid var(--line);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: drawerIn .32s var(--ease);
}
@keyframes drawerIn { from { transform: translateX(30%); opacity: 0; } }
.drawer__close { align-self: flex-end; margin-bottom: 12px; }
.drawer__panel a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text-mid);
  font-weight: 500;
}
.drawer__panel a:hover { color: var(--green); }
.drawer__phone {
  margin-top: 16px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--green-line) !important;
  border-radius: var(--r-pill);
  justify-content: center;
  color: var(--green) !important;
  font-weight: 600;
}

/* WordPress renders menus as ul/li. Flatten them into the same row the
   static markup produces, so one stylesheet serves both. */
.nav__menu, .drawer__panel .nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links .nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
}
.nav__links .nav__menu a { display: inline-block; }
.drawer__panel .nav__menu { display: flex; flex-direction: column; }
.drawer__panel .nav__menu a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text-mid);
  font-weight: 500;
}
.drawer__panel .nav__menu a:hover { color: var(--green); }

/* Current page marker, using the one accent. */
.nav__links .current-menu-item > a,
.nav__links [aria-current="page"] { color: var(--text); border-bottom-color: var(--green); }

/* ─── Hero — asymmetric split ────────────────────────────── */
.hero {
  position: relative;
  min-height: min(88dvh, 780px);
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 92px);
  overflow: hidden;
}

/* Brand-tinted ambient light, not a neon glow. */
.hero__glow {
  position: absolute;
  inset-inline-end: -12%;
  inset-block-start: -22%;
  width: 78vw; height: 78vw;
  max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle at 50% 50%,
              rgba(47, 206, 85, .16), rgba(47, 206, 85, .05) 42%, transparent 68%);
  pointer-events: none;
}
[data-theme="light"] .hero__glow {
  background: radial-gradient(circle at 50% 50%,
              rgba(23, 138, 56, .12), transparent 66%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;   /* asymmetric, not 50/50 */
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.hero__title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__accent { color: var(--green); display: block; }

.hero__sub {
  color: var(--text-mid);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { margin: 0; }
.hero__media .media { aspect-ratio: 4 / 3; }

/* ─── Media slot + graceful placeholder ──────────────────── */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 16 / 9; }

/* Applied by app.js when the product photo is missing, so the layout
   reads as intentional instead of broken until real photos are dropped in. */
.media.is-empty img { display: none; }
.media.is-empty::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 42%, var(--green-soft), transparent 62%),
    var(--surface-2);
}
.media.is-empty::after {
  content: "";
  position: absolute; inset: 0;
  background: url('assets/brand/logo-mark.png') center / 34% no-repeat;
  opacity: .16;
  filter: grayscale(1) brightness(2);
}
[data-theme="light"] .media.is-empty::after { filter: none; opacity: .22; }

/* ─── Categories — scroll-snap rail ──────────────────────── */
.cats { padding-block: var(--gap-section); }
.cats__rail {
  list-style: none;
  margin: 24px 0 0;
  padding: 4px 0 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.cats__rail > li { scroll-snap-align: start; }

.cat {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .22s, background-color .22s, transform .22s var(--ease);
}
.cat:hover {
  border-color: var(--green-line);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.cat i { font-size: 1.7rem; color: var(--green); }
.cat span { font-weight: 600; font-size: .97rem; }

/* ─── Featured — bento, 3 items / 3 cells ────────────────── */
.featured { padding-block: 0 var(--gap-section); }
.bento {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento__hero {
  grid-row: span 2;
  display: grid;
  grid-template-rows: auto 1fr;
}
.bento__hero, .bento__side {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .22s, transform .22s var(--ease), box-shadow .22s;
}
.bento__hero:hover, .bento__side:hover {
  border-color: var(--green-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.bento__hero .media { border: 0; border-radius: 0; aspect-ratio: 16 / 11; }
.bento__side .media { border: 0; border-radius: 0; }

/* Visual variation across cells: this one carries a brand tint, not plain text. */
.bento__side--tint {
  background:
    linear-gradient(215deg, var(--green-soft), transparent 58%),
    var(--surface);
}

.bento__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.bento__body h3 { font-size: 1.12rem; letter-spacing: -.01em; }
.bento__body p { color: var(--text-mid); font-size: .93rem; }

.bento__foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.specs {
  margin: 0;
  display: flex;
  gap: 0;
  border-block: 1px solid var(--line);   /* one hairline group, not per row */
}
.specs > div {
  flex: 1;
  padding: 10px 12px;
  text-align: center;
}
.specs > div + div { border-inline-start: 1px solid var(--line); }
.specs dt { font-size: .72rem; color: var(--text-mute); margin-bottom: 2px; }
.specs dd { margin: 0; font-size: .88rem; font-weight: 700; }

.price { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; display: block; }
.price small { font-size: .74rem; font-weight: 500; color: var(--text-mute); }

/* ─── Catalog ────────────────────────────────────────────── */
.catalog { padding-block: 0 var(--gap-section); }
.catalog__head { margin-bottom: 22px; }

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-mid);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s, transform .18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip:active { transform: scale(.96); }
.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
}

.search { display: flex; flex-direction: column; gap: 8px; min-width: min(280px, 100%); }
.search__label { font-size: .8rem; color: var(--text-mid); font-weight: 600; }
.search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: border-color .2s;
}
.search__field:focus-within { border-color: var(--green); }
.search__field i { color: var(--text-mute); font-size: 1.1rem; }
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  outline: none;
  min-width: 0;
}
.search input::placeholder { color: var(--text-mute); }
.search input::-webkit-search-cancel-button { filter: grayscale(1) opacity(.6); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .22s, transform .22s var(--ease), box-shadow .22s;
}
.pcard:hover {
  border-color: var(--green-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pcard .media { border: 0; border-radius: 0; }
.pcard__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__body h3 { font-size: 1rem; letter-spacing: -.01em; }
.pcard__foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.pcard.is-out { opacity: .62; }
.pcard.is-out:hover { transform: none; border-color: var(--line); box-shadow: none; }

.stock { font-size: .78rem; font-weight: 600; color: var(--green); }
.stock--low { color: var(--text-mid); }
.stock--out { color: var(--text-mute); }

.pcard.is-hidden { display: none; }

/* Skeletons mirror the real card shape. */
.skel {
  height: 372px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(100deg,
      var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%)
      0 0 / 260% 100%;
  animation: shimmer 1.25s linear infinite;
}
@keyframes shimmer { to { background-position: -260% 0; } }

.empty {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty i { font-size: 2.2rem; color: var(--text-mute); }
.empty h3 { font-size: 1.1rem; }
.empty p { color: var(--text-mute); font-size: .92rem; margin-bottom: 8px; }

/* ─── Prebuilt band — full bleed ─────────────────────────── */
.band {
  position: relative;
  margin-block: 0 var(--gap-section);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
      var(--ink) 6%, color-mix(in srgb, var(--ink) 72%, transparent) 46%, transparent 92%);
}
.band__media.is-empty img { display: none; }
.band__media.is-empty {
  background:
    radial-gradient(80% 120% at 78% 10%, var(--green-soft), transparent 62%),
    var(--surface);
}
/* Keep the 1320px container, then constrain the children so the copy
   sits on the inline-start edge instead of centring in the viewport. */
.band__inner { position: relative; padding-block: 56px; }
.band__inner > * { max-width: 640px; }
.band__inner h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.band__inner p { color: var(--text-mid); margin-bottom: 20px; }

/* ─── Trust — hairline row, no card boxes ────────────────── */
.trust { padding-block: 0 var(--gap-section); }
.trust__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}
.trust__item { padding: 34px 26px; }
.trust__item + .trust__item { border-inline-start: 1px solid var(--line); }
.trust__item i { font-size: 1.55rem; color: var(--green); display: block; margin-bottom: 14px; }
.trust__item h3 { font-size: 1.02rem; margin-bottom: 7px; }
.trust__item p { color: var(--text-mute); font-size: .9rem; }

/* ─── Consult — split copy + form ────────────────────────── */
.consult { padding-block: 0 var(--gap-section); }
.consult__inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.consult__copy p { color: var(--text-mid); margin-top: 12px; max-width: 42ch; }
.consult__tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--green);
}
.consult__tel i { font-size: 1.2rem; }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; }   /* label ABOVE input, always */
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { border-radius: var(--r); resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.field__hint { font-size: .78rem; color: var(--text-mute); }
.field__err { font-size: .8rem; color: var(--green); font-weight: 600; }
.field.is-invalid input,
.field.is-invalid select { border-color: var(--green); }

.form__ok {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: var(--r);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  font-weight: 600;
  font-size: .92rem;
}
.form__ok i { font-size: 1.2rem; }

/* Failure state. Severity reads from the border and weight, not a second hue. */
.form__err {
  padding: 13px 18px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.65;
}

/* ─── Footer ─────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 64px);
}
.foot__about h3 { font-size: 1.15rem; margin-bottom: 10px; }
.foot__about p { color: var(--text-mute); font-size: .9rem; max-width: 38ch; }
.foot__social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.foot__social a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-mid); font-size: .88rem; font-weight: 500;
  transition: color .2s;
}
.foot__social a:hover { color: var(--green); }
.foot__social i { font-size: 1.15rem; color: var(--green); }

.foot__col { display: flex; flex-direction: column; gap: 9px; }
.foot__col h4 { font-size: .95rem; margin-bottom: 5px; }
.foot__col a { color: var(--text-mute); font-size: .88rem; transition: color .2s; }
.foot__col a:hover { color: var(--green); }
.foot__tel { font-size: 1.02rem !important; font-weight: 700; color: var(--green) !important; }
.foot__mute { color: var(--text-mute); font-size: .82rem; }

/* Natural aspect: cropping this clips the tagline's descenders.
   The banner stays dark in light mode by design, as a brand band. */
.foot__band {
  width: 100%;
  border-block: 1px solid var(--line);
}

.foot__legal {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-block: 20px;
  color: var(--text-mute);
  font-size: .82rem;
}

/* ─── WooCommerce shop pages ─────────────────────────────── */
.shop { padding-block: clamp(28px, 4vw, 48px) var(--gap-section); }
.shop__inner { display: block; }

.shop .woocommerce-products-header__title,
.shop .page-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.shop .term-description, .shop .woocommerce-result-count {
  color: var(--text-mute);
  font-size: .875rem;
}

.shop ul.products {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shop ul.products li.product { margin: 0; }

.woocommerce-ordering { margin-bottom: 8px; }
.woocommerce-ordering select {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  outline: none;
}
.woocommerce-ordering select:focus { border-color: var(--green); }

.woocommerce-pagination ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 32px 0 0;
  justify-content: center;
}
.woocommerce-pagination a, .woocommerce-pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .9rem;
}
.woocommerce-pagination .current {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
}

/* Single product */
.shop div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.shop div.product .woocommerce-product-gallery img { border-radius: var(--r); }
.shop div.product .product_title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.shop div.product p.price {
  font-size: 1.35rem;
  font-weight: 800;
  margin-block: 14px;
}
.shop div.product .stock { font-size: .85rem; font-weight: 600; }
.shop div.product .stock.out-of-stock { color: var(--text-mute); }
.shop div.product form.cart { display: flex; gap: 10px; margin-block: 20px; flex-wrap: wrap; }
.shop div.product .quantity input {
  width: 84px;
  padding: 13px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  text-align: center;
  outline: none;
}
.shop div.product .quantity input:focus { border-color: var(--green); }

/* WooCommerce buttons adopt the theme button */
.woocommerce .button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button, .woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .18s var(--ease), filter .2s;
}
.woocommerce .button:hover { filter: brightness(1.07); }
.woocommerce .button:active { transform: translateY(1px) scale(.985); }
.woocommerce .button.alt { background: var(--green); }

/* Woo notices, kept inside the one accent */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none;
  padding: 14px 18px;
  margin: 0 0 20px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: .9rem;
}
.woocommerce-message { border-color: var(--green-line); background: var(--green-soft); }

@media (max-width: 900px) {
  .shop ul.products { grid-template-columns: repeat(2, 1fr); }
  .shop div.product { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shop ul.products { grid-template-columns: 1fr; }
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-start: 24px;
  z-index: 70;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow);
  animation: toastIn .34s var(--ease);
}
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } }

/* ─── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-grid; }
  .nav__actions { margin-inline-start: auto; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__phone { display: none; }
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media .media { aspect-ratio: 16 / 10; }

  .bento { grid-template-columns: 1fr; }
  .bento__hero { grid-row: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }

  .trust__row { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-inline-start: 0; border-top: 1px solid var(--line); }

  .consult__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid { grid-template-columns: 1fr; }
  .cats__rail { grid-auto-columns: minmax(142px, 1fr); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { min-width: 100%; }
  .hero__cta .btn { flex: 1; }
  .foot__grid { grid-template-columns: 1fr; }
  .band__inner { padding-block: 40px; }
  .pcard__foot { flex-direction: column; align-items: stretch; }
  .pcard__foot .btn { width: 100%; }
  .toast { inset-inline: 16px; text-align: center; }
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .skel { animation: none; }
}
