/* بازرگانی حاضری — سبز کله‌غازی و نقره‌ای */

@font-face {
  font-family: "Abar";
  src: url("../fonts/Abar.woff2") format("woff2"), url("../fonts/Abar.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --goose-950: #062019;
  --goose-900: #0A2B26;
  --goose-800: #0B3A32;
  --goose-700: #0F4F45;
  --goose-600: #16655A;
  --goose-200: #BFD6CF;
  --goose-100: #DCE9E5;
  --silver-600: #6C7A7B;
  --silver-400: #A9B4B6;
  --silver-300: #C4CCCD;
  --silver-200: #DAE0E0;
  --silver-100: #EDF1F1;
  --paper: #F7F9F9;
  --white: #FFFFFF;
  --danger: #B42318;
  --success: #0F6B3A;

  --ink: var(--goose-900);
  --muted: #4B5B59;
  --line: var(--silver-200);
  /* polished silver: alternating bright highlights and grey reflections, like brushed-then-polished metal */
  --metal: linear-gradient(135deg, #9AA4A7 0%, #E6EBED 14%, #FFFFFF 24%, #C2CACD 38%, #F6F9FA 50%, #A9B3B6 64%, #E4E9EB 80%, #FFFFFF 90%, #B8C1C4 100%);
  --silver-polish: linear-gradient(100deg, #A9B3B6 0%, #FFFFFF 14%, #D3DADD 26%, #8F9A9D 40%, #F8FAFB 52%, #C0C8CB 64%, #FFFFFF 76%, #9EA8AB 88%, #E9EEEF 100%);

  --font: "Abar", "Vazirmatn", Tahoma, sans-serif;
  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.375rem;
  --step-5: clamp(2.25rem, 5.2vw, 4.25rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(10, 43, 38, .06), 0 8px 24px -12px rgba(10, 43, 38, .18);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 800; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--goose-600); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.num { font-feature-settings: "tnum"; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6rem 1.5rem;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--step-0); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--goose-700); color: var(--white); }
.btn--primary:hover { background: var(--goose-600); }
.btn--light { background: var(--white); color: var(--goose-900); box-shadow: var(--shadow); }
.btn--light:hover { background: var(--silver-100); }
.btn--ghost { border-color: currentColor; color: var(--goose-800); background: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .7); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: .35rem 1rem; font-size: var(--step--1); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: var(--step-1); white-space: nowrap; }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--goose-700); color: var(--white); display: grid; place-items: center; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
/* with the real logo (green HA), the box is polished silver so the mark reads on every header */
.brand__mark:has(img) {
  width: 46px; height: 46px; padding: 7px; background: var(--metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px -6px rgba(0, 0, 0, .4);
}
.brand__mark:has(img) img { border-radius: 0; }
.footer__logo {
  display: inline-block; padding: 14px 18px; border-radius: var(--r-md); background: var(--metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 24px -12px rgba(0, 0, 0, .6);
}
.footer__logo img { width: 92px; height: auto; display: block; }
.nav { display: flex; gap: .25rem; margin-inline: auto; }
.nav a { position: relative; padding: .5rem .9rem; text-decoration: none; font-weight: 600; border-radius: var(--r-pill); }
.nav a:hover { background: var(--silver-100); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: .9rem; bottom: .15rem; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 6'%3E%3Cpath d='M0 3 q3 -3 6 0 t6 0 t6 0 t6 0' fill='none' stroke='%230F4F45' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x;
  background-size: 12px 6px;
}
.header__actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white);
  text-decoration: none; cursor: pointer;
}
.icon-btn:hover { background: var(--silver-100); }
.badge {
  position: absolute; top: -4px; inset-inline-start: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--goose-700); color: var(--white);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.search { flex: 1; max-width: 560px; position: relative; }
.search input {
  width: 100%; height: 46px; padding: 0 3rem 0 1rem; border: 0; border-radius: var(--r-md);
  background: var(--silver-100);
}
.search input:focus { outline: 2px solid var(--goose-600); background: var(--white); }
.search button { position: absolute; inset-inline-start: 6px; top: 6px; width: 34px; height: 34px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.menu-btn { display: none; }
.catbar { border-top: 1px solid var(--line); }
.catbar ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.catbar a { display: block; padding: .6rem .9rem; white-space: nowrap; text-decoration: none; font-size: var(--step--1); font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.catbar a:hover, .catbar a[aria-current="page"] { color: var(--goose-700); border-bottom-color: var(--goose-700); }
/* subcategory chips on a category page */
.subcats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: 4px; margin-top: .25rem; scrollbar-width: none; }
.subcats a {
  flex: none; padding: .45rem 1.05rem; border-radius: var(--r-pill); border: 1.5px solid var(--goose-200);
  background: var(--white); color: var(--goose-800); font-weight: 700; font-size: var(--step--1); text-decoration: none;
}
.subcats a:hover { border-color: var(--goose-700); }
.subcats a[aria-current="page"] { background: var(--goose-700); border-color: var(--goose-700); color: var(--white); }

/* overlay header on the home hero */
.header--overlay { position: fixed; inset-inline: 0; background: transparent; border-bottom: 0; transition: background-color .3s, box-shadow .3s; }
.header--overlay.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header--overlay .icon-btn { background: rgba(255, 255, 255, .6); border-color: transparent; }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; background: var(--white); padding: .75rem var(--gutter) 1rem; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .menu-btn { display: inline-grid; }
  .header__bar { gap: .6rem; }
  .header__bar .search { order: 10; flex-basis: 100%; max-width: none; margin-bottom: .75rem; }
  .header--shop .header__bar { flex-wrap: wrap; }
  .brand__name { font-size: var(--step-0); }
  .header__login-text { display: none; }
}

/* ---------- flash messages ---------- */
.flash { list-style: none; margin: 1rem auto 0; padding: 0; display: grid; gap: .5rem; }
.flash li { padding: .8rem 1.1rem; border-radius: var(--r-md); background: var(--goose-100); color: var(--goose-900); font-weight: 600; }
.flash .error { background: #FDECEA; color: var(--danger); }

/* ---------- home hero (scroll-driven) ---------- */
/* home hero: the video is pinned as the page background (stage), the content layer (title, then the
   shop / magazine / contact tiles) scrolls over it. The hero's height comes from that content layer. */
.hero { position: relative; --stick: 0px; }
.hero__stage { position: sticky; top: var(--stick); height: calc(100vh - var(--stick)); height: calc(100svh - var(--stick)); overflow: hidden; background: linear-gradient(180deg, #D5DEDE 0%, #EEF2F2 42%, #F7F9F9 58%); }
.hero__sky { position: absolute; inset: 0 0 42% 0; }
.hero__sky .cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); }
.hero__field { position: absolute; inset: 56% 0 0 0; }
.hero__field svg { width: 100%; height: 100%; }
.hero__over { position: relative; z-index: 3; margin-top: -100vh; margin-top: -100svh; padding-bottom: 115vh; }
/* first screen: the title on top, the tiller visible under it, the top of the tiles peeking from the bottom */
.hero__copy {
  min-height: 74vh; min-height: 74svh; padding: clamp(92px, 13vh, 132px) var(--gutter) 0;
  text-align: center;
}
.hero__links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
/* the main way into the shop on the first screen: the one solid button over the video */
.hero__shop {
  display: flex; align-items: center; justify-content: center; gap: .55rem; width: fit-content; margin: 1.25rem auto 0;
  min-height: 58px; padding: 0 1.8rem; border-radius: var(--r-pill);
  background: var(--goose-800); color: var(--white); font-size: var(--step-1); font-weight: 800; text-decoration: none;
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .65);
  transition: transform .2s, background-color .2s;
}
.hero__shop:hover { background: var(--goose-700); transform: translateY(-2px); }
.hero__shop small { padding: .1rem .6rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); font-size: var(--step--1); font-weight: 600; }
@media (max-width: 640px) { .hero__shop { width: min(100%, 330px); min-height: 54px; font-size: var(--step-0); } }
.hero__copy .hero__mag { display: flex; width: fit-content; margin: 0; }
.hero__buy {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 54px; padding: 0 1.4rem; border-radius: var(--r-pill);
  background: var(--metal); color: var(--goose-900); font-weight: 800; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 10px 22px -12px rgba(0, 0, 0, .6);
  transition: transform .2s;
}
.hero__buy:hover { transform: translateY(-2px); }
.hero__buy[hidden] { display: none; }
/* the price on the video's buy button */
.hero__buy { white-space: nowrap; }
.hero__price { display: inline-flex; align-items: center; gap: .4rem; margin-inline-start: .35rem; padding-inline-start: .75rem; border-inline-start: 1px solid rgba(15, 79, 69, .25); }
@media (max-width: 640px) { .hero__buy { min-height: 50px; padding: 0 1.1rem; font-size: var(--step--1); } }
.hero__price[hidden], .hero__price .off[hidden] { display: none; }

/* ---------- home: trust strip, deals, category shortcuts ---------- */
.trust { position: relative; z-index: 1; padding-top: clamp(20px, 3vw, 32px); }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.trust__list li { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; border-radius: var(--r-md); background: var(--glass-strong, var(--white)); border: 1px solid var(--line); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.trust__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--goose-800); color: var(--white); }
.trust__list strong { display: block; font-weight: 800; }
.trust__list small, .trust__list a { font-size: var(--step--1); color: var(--muted); }
.trust__list a { color: var(--goose-700); font-weight: 700; text-decoration: none; }
.home-deals, .home-deals + section { position: relative; z-index: 1; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.shortcut { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .9rem .5rem; border-radius: var(--r-md); text-decoration: none; text-align: center; font-weight: 700; font-size: var(--step--1); background: var(--glass-strong, var(--white)); border: 1px solid var(--line); }
.shortcut:hover { border-color: var(--goose-600); }
.shortcut__img { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--silver-100); overflow: hidden; }
.shortcut__img img { width: 78%; height: 78%; object-fit: contain; }
@media (max-width: 640px) {
  .trust__list { gap: 8px; }
  .trust__list li { padding: .7rem .9rem; }
  .trust__icon { width: 40px; height: 40px; border-radius: 12px; }
  .shortcuts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .shortcut { flex: 0 0 96px; scroll-snap-align: start; padding: .7rem .4rem; }
  .shortcut__img { width: 52px; height: 52px; }
}

/* call button on phones: many farmers would rather ring than order online */
.call-fab { display: none; }
@media (max-width: 640px) {
  .call-fab { position: fixed; z-index: 60; inset-inline-end: 16px; bottom: 20px; display: inline-flex; align-items: center; gap: .4rem; min-height: 50px; padding: 0 1.1rem; border-radius: var(--r-pill); background: var(--white); color: var(--goose-800); font-weight: 800; text-decoration: none; border: 1.5px solid var(--goose-200); box-shadow: 0 12px 28px -10px rgba(6, 32, 25, .5); }
}

/* product picker: glass chips, one per slide */
.hero__picker {
  display: flex; justify-content: center; gap: .6rem; margin: 1.4rem auto 0; padding: 6px; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; width: fit-content;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__pick {
  display: inline-flex; align-items: center; gap: .55rem; flex: none; min-height: 52px; padding: 5px 1.1rem 5px 6px;
  border: 1px solid transparent; border-radius: var(--r-pill); background: transparent; color: var(--white);
  font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.hero__pick img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; background: rgba(255, 255, 255, .85); padding: 3px; }
.hero__pick:hover { background: rgba(255, 255, 255, .12); }
.hero__pick[aria-selected="true"] { background: var(--metal); color: var(--goose-900); border-color: rgba(255, 255, 255, .8); }
@media (max-width: 640px) { .hero__picker { justify-content: flex-start; width: auto; margin-inline: calc(-1 * var(--gutter) + 8px); } }
/* tiles over the video: clear glass, so the tiller and the farm stay visible behind them */
.hero__gates .gate {
  /* smoked glass: a light top-left sheen over a green-black tint, so white text stays readable
     even when a bright part of the video (sky, pale soil) passes behind the tile */
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgba(10, 43, 38, .34) 0%, rgba(6, 32, 25, .5) 100%);
  /* clear glass with a gentle irregular ripple (SVG #glass-wave in home.html refracts what's behind), dimmed a little;
     browsers that can't use an SVG backdrop filter get a light blur instead */
  -webkit-backdrop-filter: blur(3px) saturate(1.2) brightness(.82); backdrop-filter: blur(3px) saturate(1.2) brightness(.82);
  backdrop-filter: url(#glass-wave) saturate(1.2) brightness(.82);
  /* thick glass edge: bright outer rim, a fine inner line, darker hairline outside to lift it off the video */
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: rgba(255, 255, 255, .9); border-inline-end-color: rgba(255, 255, 255, .72);
  border-bottom-color: rgba(255, 255, 255, .34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 2px 2px rgba(255, 255, 255, .6),
    inset 0 -2px 6px rgba(0, 0, 0, .14),
    inset 0 0 30px rgba(255, 255, 255, .1),
    0 0 0 1px rgba(6, 32, 25, .35),
    0 30px 60px -28px rgba(0, 0, 0, .7);
  color: var(--white);
  /* a tight shadow for crisp letter edges plus a soft one for contrast against the moving video */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65), 0 2px 14px rgba(0, 0, 0, .45);
}
/* reflection: a diagonal band of light across the pane (under the text, above the photo) */
.hero__gates .gate::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .05) 28%, transparent 34%,
                                      transparent 62%, rgba(255, 255, 255, .08) 70%, transparent 78%);
}
.hero__gates .gate:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, rgba(10, 43, 38, .28) 0%, rgba(6, 32, 25, .44) 100%);
  border-color: rgba(255, 255, 255, .6);
}
.hero__gates .gate p, .hero__gates .gate__facts, .hero__gates .gate__facts span { color: var(--white); font-weight: 700; }
.hero__gates .gate__go { color: var(--white); font-weight: 800; }
.hero__gates .gate--shop {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(165deg, rgba(10, 43, 38, .4) 0%, rgba(6, 32, 25, .58) 100%);
}
.hero__gates .gate--shop .gate__bg img { opacity: .14; filter: saturate(1.1); }
.hero__gates .gate--shop .gate__bg::after { background: linear-gradient(180deg, rgba(6, 32, 25, .45) 0%, transparent 40%, transparent 62%, rgba(6, 32, 25, .5) 100%); }
.hero__gates .gate__stats li { background: rgba(6, 32, 25, .3); border-color: rgba(255, 255, 255, .28); }
.hero__gates .gate__cta, .hero__gates .gate__icon { text-shadow: none; }

/* tile headings: polished-silver icon + larger type */
.gate__title { display: flex; align-items: center; gap: .7rem; }
.gate__icon {
  width: 58px; height: 58px; flex: none; border-radius: 18px; display: grid; place-items: center;
  background: var(--metal); color: var(--goose-800);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 10px 22px -10px rgba(0, 0, 0, .55);
}
.gate__icon .icon { width: 28px; height: 28px; }
.gate .gate__title { font-size: clamp(2rem, 3.2vw, 2.7rem); }
.gate p { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.8; font-weight: 600; }
.hero__gates .gate p { color: var(--white); }
.gate--shop .gate__head p { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 700; max-width: none; }
.gate .gate__go { font-size: var(--step-1); }
.gate__facts { font-size: var(--step-0); gap: .5rem; }
.gate__facts .icon { width: 1.3em; height: 1.3em; }
/* (scoped to .gate so these win over the base .gate__stats rules further down the file) */
.gate .gate__stats li { padding: .9rem 1rem; gap: 4px; }
.gate .gate__stats strong { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; }
.gate .gate__stats strong .icon { width: 1.05em; height: 1.05em; }
.gate .gate__stats span { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 700; color: var(--white); line-height: 1.5; }
.gate__cta { font-size: var(--step-2); min-height: 62px; }
@media (max-width: 640px) {
  .gate__icon { width: 48px; height: 48px; border-radius: 15px; }
  .gate__icon .icon { width: 24px; height: 24px; }
  .gate p { font-size: var(--step-0); }
}
@media (max-width: 640px) { .hero__copy { min-height: 70svh; } }
.hero__copy h1 { font-size: var(--step-5); letter-spacing: -.01em; max-width: 16ch; margin-inline: auto; color: var(--goose-900); }
.hero__copy p { max-width: 52ch; margin: 1rem auto 0; color: var(--muted); font-size: var(--step-1); }
.hero__machine { position: absolute; left: 50%; bottom: 4%; width: min(76vw, 720px); transform-origin: 50% 100%; z-index: 2; will-change: transform; }
.hero__machine img, .hero__machine svg { width: 100%; height: auto; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* video mode: farm photo under a goose-green veil, cut-out frames on top, silver type.
 * The canvas paints the same layers; this CSS is what shows before it does. */
.hero--video { --hero-bg: #0A2B26; --veil: linear-gradient(180deg, rgba(10, 43, 38, .74) 0%, rgba(14, 64, 56, .48) 45%, rgba(10, 43, 38, .62) 75%, #0A2B26 100%); }
.hero--video .hero__stage { background: var(--veil), var(--hero-photo, none) center / cover no-repeat, var(--hero-bg); }
.hero--video .hero__stage::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(196, 204, 205, .5), transparent);
}
/* polished silver: bright specular bands over darker grey, sheen sweeps across once on load */
.hero--video .hero__copy h1 {
  color: var(--silver-200);
  background: var(--silver-polish);
  background-size: 240% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35));
  animation: silver-sheen 2.6s cubic-bezier(.3, .7, .3, 1) .35s both;
}
@keyframes silver-sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* «برای اولین بار در ایران» */
.hero__copy .hero__badge {
  position: relative; overflow: hidden; display: flex; width: fit-content; align-items: center; gap: .5rem;
  max-width: none; margin: 0 auto 1rem; padding: .4rem 1.1rem;
  border-radius: var(--r-pill); background: var(--metal); color: var(--goose-900);
  font-size: var(--step--1); font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 6px 18px -6px rgba(0, 0, 0, .45);
}
.hero--video .hero__copy .hero__badge { color: var(--goose-900); }  /* beats the light paragraph colour of the video hero */
.hero__flag { width: 28px; height: 16px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .3); }

/* the headline sits in a framed plaque: polished-silver edge, smoky glass inside */
.hero__title-frame {
  display: inline-block; padding: .12em .75em .22em; border-radius: 24px; border: 2px solid transparent;
  /* the inner layer must be opaque, otherwise the silver border layer (border-box) shows through it */
  background: linear-gradient(170deg, #17483F, #0A2B26) padding-box, var(--metal) border-box;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.hero:not(.hero--video) .hero__title-frame { background: linear-gradient(#FFFFFF, #EEF2F2) padding-box, var(--metal) border-box; }
.hero__title-frame h1 { margin: 0; max-width: none; font-weight: 900; font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1.3; letter-spacing: 0; }
.hero--video .hero__title-frame h1 { filter: none; }  /* the dark frame already gives the contrast */

/* link to the smart tiller's video in the magazine */
.hero__mag {
  display: inline-flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .35rem .45rem .35rem 1.1rem;
  border-radius: var(--r-pill); text-decoration: none; text-align: start; color: var(--white);
  background: rgba(10, 43, 38, .55); border: 1px solid rgba(196, 204, 205, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .25s, border-color .25s, transform .25s;
}
.hero__mag:hover { background: rgba(10, 43, 38, .8); border-color: rgba(230, 235, 237, .7); transform: translateY(-2px); }
.hero__mag-play {
  position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--metal); color: var(--goose-800);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px -4px rgba(0, 0, 0, .5);
}
.hero__mag-play .icon { width: 18px; height: 18px; margin-inline-start: 2px; }
.hero__mag-play::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid rgba(230, 235, 237, .6);
  animation: mag-ring 2.4s ease-out infinite;
}
@keyframes mag-ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.hero__mag-text { display: grid; line-height: 1.5; }
.hero__mag-text strong { font-size: var(--step--1); font-weight: 800; }
.hero__mag-text small { font-size: 12px; color: var(--silver-300); }
.hero:not(.hero--video) .hero__mag { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--line); }
.hero:not(.hero--video) .hero__mag-text small { color: var(--muted); }
.hero__copy p { margin-top: .8rem; }
.hero__badge > * { position: relative; z-index: 1; }  /* text stays above the glint */
.hero__badge::after {
  content: ""; position: absolute; z-index: 0; inset: -40% auto -40% -30%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: translateX(-120%) skewX(-18deg); animation: badge-glint 4.5s ease-in-out 1.2s infinite;
}
@keyframes badge-glint { 0%, 62% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(520%) skewX(-18deg); } }
.hero--video .hero__copy p { color: var(--silver-300); }
.hero__scroll-hint {
  position: absolute; bottom: clamp(8px, 2vh, 20px); left: 50%; transform: translateX(-50%); z-index: 5;
  display: inline-flex; flex-direction: column; align-items: center; gap: .55rem;
  border: 0; background: none; padding: .5rem 1rem; cursor: pointer;
  font-size: var(--step--1); font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: opacity .3s;
}
.hero--video .hero__scroll-hint { color: var(--silver-300); }
.hero__mouse { width: 26px; height: 40px; border: 2px solid currentColor; border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.hero__mouse span { width: 4px; height: 8px; border-radius: 2px; background: currentColor; animation: scroll-dot 1.6s ease-in-out infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.hero__scroll-hint.is-hidden { opacity: 0; pointer-events: none; }
/* what the hero fades into: the exploded tiller, soft and faint, fixed behind the sections below */
.home-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .3s; }
.home-backdrop img {
  position: absolute; left: 50%; top: 54%; width: min(72vw, 1040px); max-width: none; height: auto;
  transform: translate(-50%, -50%); opacity: .5; filter: blur(6px) saturate(.85);
}
@media (max-width: 640px) { .home-backdrop img { opacity: .4; } }
.hero__loading { position: absolute; inset-inline: 0; bottom: 0; height: 3px; z-index: 5; background: rgba(255, 255, 255, .08); }
.hero__loading span { display: block; height: 100%; width: 0; background: var(--silver-300); transition: width .2s, opacity .4s; }

/* header over the home video. --hdr-t (0→1, set by hero.js while the tiller fades out) blends it
   gradually into the normal light header, so there is no sudden colour switch at the end of the hero */
.header--overlay.on-dark { color: color-mix(in srgb, var(--white) calc(100% - var(--hdr-t, 0) * 100%), var(--ink)); }
.header--overlay.on-dark .nav a:hover { background: rgba(255, 255, 255, .12); }
.header--overlay.on-dark .nav a[aria-current="page"]::after { filter: brightness(0) invert(calc(1 - var(--hdr-t, 0))); }
/* on the home page the logo box stays polished silver, so nothing swaps when the hero ends */
.header--overlay .brand__mark { background: var(--metal); color: var(--goose-900); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px -6px rgba(0, 0, 0, .4); }
.header--overlay .icon-btn { transition: background-color .5s; }
.header--overlay.on-dark .icon-btn { background: rgba(255, 255, 255, .14); color: inherit; }
.header--overlay.on-dark.is-solid {
  background: color-mix(in srgb, rgba(10, 43, 38, .82) calc(100% - var(--hdr-t, 0) * 100%), rgba(255, 255, 255, .62));
  box-shadow: 0 1px 0 rgba(196, 204, 205, .18);
}
@media (max-width: 860px) { .header--overlay.on-dark .nav { color: var(--ink); } }

@media (max-width: 640px) {
  .hero__machine { width: 108vw; bottom: 6%; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section__head { max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__head h2 { font-size: var(--step-4); }
.section__head p { margin-top: .6rem; color: var(--muted); }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.row-head h2 { font-size: var(--step-3); }
.row-head a { font-weight: 700; color: var(--goose-700); text-decoration: none; white-space: nowrap; }
.row-head a:hover { text-decoration: underline; }

/* ---------- gateways (home) ---------- */
.gates { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.gate {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  min-height: 280px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg);
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: box-shadow .25s;
}
.gate:hover { box-shadow: 0 20px 40px -24px rgba(10, 43, 38, .45); }
.gate h3 { font-size: var(--step-4); }
.gate p { max-width: 38ch; margin-top: .4rem; }
.gate__go { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.gate__go .icon { transition: transform .2s; }
.gate:hover .gate__go .icon { transform: translateX(-4px); }
.gate__bg { position: absolute; inset: 0; z-index: -1; }
.gate__bg img { width: 100%; height: 100%; object-fit: cover; }
.gate--shop { grid-row: span 2; background: var(--goose-800); color: var(--white); min-height: 580px; }
.gate--shop p { color: var(--goose-100); }
.gate--shop .gate__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,32,25,.78) 0%, rgba(6,32,25,.25) 38%, rgba(6,32,25,.2) 60%, rgba(6,32,25,.88) 100%); }
/* shop tile: the real smart tiller on a silver glow, quick facts, and a polished-silver call to action */
.gate--shop { min-height: 620px; gap: .75rem; }
.gate__machine { position: relative; flex: 1; min-height: 250px; display: grid; place-items: center; margin-inline: -12px; }
.gate__machine img {
  position: relative; width: min(100%, 540px); height: auto;
  filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .5));
  transform: rotate(-3deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.gate__machine::after {
  content: ""; position: absolute; bottom: 6%; left: 50%; width: 62%; height: 26px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent);
}
.gate__glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 231, 233, .32), rgba(225, 231, 233, .08) 60%, transparent);
  transition: transform .6s ease;
}
.gate--shop:hover .gate__machine img { transform: rotate(-1deg) scale(1.06) translateY(-8px); }
.gate--shop:hover .gate__glow { transform: scale(1.12); }
.gate__stats { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gate__stats li {
  display: flex; flex-direction: column; gap: 2px; padding: .7rem .85rem; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.gate__stats strong { font-size: var(--step-2); line-height: 1.3; color: var(--white); }
.gate__stats strong .icon { width: 1.25em; height: 1.25em; color: var(--silver-300); }
.gate__stats span { font-size: var(--step--1); color: var(--goose-100); }
.gate__cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; border-radius: var(--r-pill); background: var(--metal); color: var(--goose-900);
  font-size: var(--step-1); font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -2px 0 rgba(0, 0, 0, .15), 0 12px 28px -12px rgba(0, 0, 0, .6);
}
.gate__cta .icon { transition: transform .25s; }
.gate__cta::after {
  content: ""; position: absolute; inset: -50% auto -50% -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: translateX(-160%) skewX(-18deg);
}
.gate--shop:hover .gate__cta::after { animation: cta-glint .9s ease-out; }
.gate--shop:hover .gate__cta .icon { transform: translateX(-6px); }
@keyframes cta-glint { to { transform: translateX(620%) skewX(-18deg); } }
@media (max-width: 860px) { .gate--shop { min-height: 0; } .gate__machine { min-height: 210px; } }
@media (max-width: 420px) { .gate__stats { gap: 6px; } .gate__stats li { padding: .55rem .6rem; } }
.gate--mag { background: var(--metal); color: var(--goose-900); }
.gate--mag p, .gate--contact p { color: var(--muted); }
.gate--contact { background: var(--white); border: 1px solid var(--line); color: var(--goose-900); }
.gate__facts { display: grid; gap: .35rem; font-size: var(--step--1); color: var(--muted); }
.gate__facts span { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 860px) {
  .gates { grid-template-columns: 1fr; }
  .gate--shop { grid-row: auto; min-height: 460px; }
}
/* phones: the shop tile stays full-width but short (the tiller is already in the video behind it);
   magazine and contact sit side by side as small tiles, so the shop is reached in fewer swipes */
@media (max-width: 640px) {
  .hero__over { padding-bottom: 45vh; padding-bottom: 45svh; }
  .gates { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gate--shop { grid-column: 1 / -1; min-height: 0; }
  .gate--shop .gate__machine { display: none; }
  .gate .gate__title { font-size: var(--step-3); }
  .gate--shop .gate__head p { font-size: var(--step-0); }
  .gate .gate__stats strong { font-size: var(--step-3); }
  .gate .gate__stats span { font-size: var(--step--1); }
  .gate__cta { font-size: var(--step-1); min-height: 52px; }
  .gate--mag, .gate--contact { min-height: 0; padding: 1rem; gap: .75rem; }
  .gate--mag .gate__title, .gate--contact .gate__title { font-size: var(--step-1); gap: .5rem; }
  .gate--mag .gate__icon, .gate--contact .gate__icon { width: 40px; height: 40px; border-radius: 12px; }
  .gate--mag p:not(.gate__go), .gate--contact p:not(.gate__go), .gate--contact .gate__facts { display: none; }
  .gate--mag .gate__go, .gate--contact .gate__go { font-size: var(--step--1); }
}

/* ---------- account panel (home) ---------- */
.account-panel { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.account-panel__intro { padding: clamp(28px, 4vw, 48px); background: var(--goose-900); color: var(--white); display: flex; flex-direction: column; gap: 1rem; }
.account-panel__intro h2 { font-size: var(--step-4); }
.account-panel__intro p { color: var(--goose-200); }
.account-panel__intro ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.account-panel__intro li { display: flex; gap: .6rem; align-items: center; }
.account-panel__intro li .icon { color: var(--silver-300); }
.account-panel__admin { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: var(--step--1); color: var(--silver-300); display: flex; gap: .5rem; align-items: flex-start; }
.account-panel__form { padding: clamp(28px, 4vw, 48px); }
@media (max-width: 860px) { .account-panel { grid-template-columns: 1fr; } }

/* ---------- tabs & forms ---------- */
.tabs { display: flex; gap: .25rem; padding: 4px; background: var(--silver-100); border-radius: var(--r-pill); margin-bottom: 1.5rem; }
.tabs button { flex: 1; min-height: 42px; border: 0; border-radius: var(--r-pill); background: none; font-weight: 700; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--goose-900); box-shadow: var(--shadow); }
.form { display: grid; gap: 1rem; }
.form--2 { grid-template-columns: 1fr 1fr; }
.form--2 .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form--2 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: var(--step--1); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1.5px solid var(--silver-300);
  border-radius: var(--r-sm); background: var(--white); line-height: 1.6;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--goose-600); box-shadow: 0 0 0 3px var(--goose-100); }
.field input[inputmode="tel"], .field input[name="phone"], .field input[name="username"], .field input[name="postal_code"] { direction: ltr; text-align: right; }
.field .help { font-size: var(--step--1); color: var(--muted); margin-top: .25rem; }
.field .err, .form-errors { color: var(--danger); font-size: var(--step--1); font-weight: 600; margin-top: .3rem; }
.field--invalid input, .field--invalid textarea { border-color: var(--danger); }
.form__group { margin: .4rem 0 -.3rem; padding-top: .8rem; border-top: 1px solid var(--line); font-weight: 800; color: var(--goose-800); font-size: var(--step--1); }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem; margin: 0; }
.info-list .full { grid-column: 1 / -1; }
.info-list dt { font-size: var(--step--1); color: var(--muted); }
.info-list dd { margin: .15rem 0 0; font-weight: 700; }
.info-list dd.ltr { text-align: right; }
@media (max-width: 560px) { .info-list { grid-template-columns: 1fr; } }
.form-errors { padding: .7rem 1rem; background: #FDECEA; border-radius: var(--r-sm); margin: 0; }
.auth-lead { margin: -.5rem 0 1.25rem; line-height: 1.8; }
/* password sign-in, folded under the texted-code form */
.auth-more { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.auth-more summary { cursor: pointer; font-weight: 700; color: var(--goose-700); font-size: var(--step--1); }
.auth-more[open] summary { margin-bottom: 1rem; }
.auth-alt { margin: 1rem 0 0; text-align: center; font-size: var(--step--1); color: var(--muted); }
.auth-alt a, .linklike { color: var(--goose-700); font-weight: 700; }
.linklike { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s; }
.pcard:hover { box-shadow: var(--shadow); }
.pcard__img { aspect-ratio: 4 / 3; background: var(--silver-100); display: grid; place-items: center; padding: 12px; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.pcard__body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1rem; flex: 1; }
.pcard__cat { font-size: var(--step--1); color: var(--muted); }
.pcard__name { font-size: var(--step-0); font-weight: 700; line-height: 1.55; text-decoration: none; }
.pcard__name::after { content: ""; position: absolute; inset: 0; }
.pcard__price { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: .5rem; padding-top: .5rem; }
.price { font-weight: 800; font-size: var(--step-1); }
.price small { font-weight: 500; font-size: var(--step--1); color: var(--muted); margin-inline-start: .2rem; }
.price-old { font-size: var(--step--1); color: var(--silver-600); text-decoration: line-through; }
.off { display: inline-block; padding: .05rem .5rem; border-radius: var(--r-pill); background: var(--danger); color: var(--white); font-size: 12px; font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; font-size: var(--step--1); }
/* discount code, at checkout */
.summary__hint { margin: 0; font-size: var(--step--1); }
.coupon { display: flex; gap: .5rem; margin-top: .25rem; }
.coupon input { flex: 1; min-width: 0; min-height: 42px; padding: 0 .85rem; border-radius: var(--r-pill); border: 1.5px dashed var(--goose-200); font: inherit; text-transform: uppercase; background: var(--white); }
.coupon input:focus { outline: none; border-style: solid; border-color: var(--goose-600); }
.coupon--applied { align-items: center; justify-content: space-between; padding: .5rem .85rem; border-radius: var(--r-md); background: var(--goose-100); color: var(--goose-800); font-size: var(--step--1); font-weight: 700; }
.coupon-tag { display: inline-block; padding: .05rem .5rem; border-radius: 6px; background: var(--goose-100); color: var(--goose-800); font-size: 12px; font-weight: 800; letter-spacing: .03em; direction: ltr; }
.summary__row--off .num { color: var(--success); font-weight: 800; }

/* «call for price» products */
.price-call { display: inline-flex; align-items: center; gap: .35rem; color: var(--goose-700); font-weight: 800; font-size: var(--step--1); }
.price-call .icon { width: 1.1em; height: 1.1em; }
.price-call--box { display: grid; gap: .3rem; padding: .85rem 1rem; border-radius: var(--r-md); background: var(--goose-100); }
.price-call--box strong { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--step-0); color: var(--goose-800); }
.price-call--box span { color: var(--muted); font-weight: 500; }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
.hscroll--ranked { margin: 0; padding: 0 0 6px; list-style: none; }
.hscroll--ranked > li { display: flex; }
.hscroll--ranked .pcard { flex: 1; }
/* best-sellers list: the position in the ranking */
.pcard__rank { position: absolute; top: 10px; inset-inline-start: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--goose-800); color: var(--white); font-weight: 800; font-size: var(--step--1); }
.row-head__note { margin-inline-start: .5rem; font-size: var(--step--1); font-weight: 700; color: var(--danger); white-space: nowrap; }
.slider + .band { margin-top: clamp(20px, 3vw, 32px); }

/* phones: two products per row and compact cards, so a screen shows several products instead of one huge card */
@media (max-width: 640px) {
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hscroll { grid-auto-columns: 44%; gap: 10px; }
  .pcard__img { padding: 8px; }
  .pcard__body { gap: .2rem; padding: .6rem .7rem .75rem; }
  .pcard__cat { font-size: 11px; }
  .pcard__name { font-size: var(--step--1); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard__price { padding-top: .3rem; }
  .pcard .price { font-size: var(--step-0); }
  .pcard .price-old { font-size: 11px; }
  .pcard__rank { top: 6px; inset-inline-start: 6px; width: 26px; height: 26px; font-size: 12px; }
  .row-head { margin-bottom: .85rem; }
  .row-head h2 { font-size: var(--step-2); }
  .row-head a { font-size: var(--step--1); }
  .section--tight { padding-block: 24px; }
}

/* featured band (like a deals strip) */
.band { background: var(--goose-700); border-radius: var(--r-lg); padding: 20px; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.band__intro { color: var(--white); display: flex; flex-direction: column; justify-content: center; gap: .6rem; padding: 12px; }
.band__intro h2 { font-size: var(--step-3); }
.band__intro p { color: var(--goose-100); font-size: var(--step--1); }
.band__intro a { color: var(--white); font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.band .hscroll { grid-auto-columns: minmax(200px, 220px); }
.band .pcard { border: 0; }
/* minmax(0, …): without it the row of cards widens the band, and the band widens the whole page on phones */
@media (max-width: 700px) { .band { grid-template-columns: minmax(0, 1fr); padding: 14px; } .band__intro { padding: 4px; } }
@media (max-width: 640px) { .band .hscroll { grid-auto-columns: 44%; } .band__intro h2 { font-size: var(--step-2); } }

/* ---------- premium slider ---------- */
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--goose-900); }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem; min-height: 400px; padding: clamp(24px, 4vw, 56px); color: var(--white); position: relative; isolation: isolate; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 25% 60%, rgba(196, 204, 205, .28), transparent 70%); }
.slide__tag { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .8rem; border-radius: var(--r-pill); background: var(--metal); color: var(--goose-900); font-weight: 700; font-size: var(--step--1); }
.slide h3 { font-size: var(--step-4); margin-top: .8rem; }
.slide p { color: var(--goose-200); margin-top: .6rem; max-width: 44ch; }
.slide__price { margin-top: 1.2rem; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.slide__price .price { font-size: var(--step-3); }
.slide__price .price small { color: var(--goose-200); }
.slide__price .price-old { color: var(--silver-400); }
.slide__actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.slide__actions .btn--ghost { color: var(--white); background: transparent; }
.slide__actions .btn--ghost:hover { background: rgba(255,255,255,.1); }
.slide__img { justify-self: center; width: 100%; max-width: 460px; aspect-ratio: 4/3; }
.slide__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.35)); }
.slider__nav { position: absolute; inset-inline-end: 24px; bottom: 20px; display: flex; gap: .5rem; align-items: center; }
.slider__nav button.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.slider__nav button.arrow:hover { background: rgba(255,255,255,.18); }
.slider__dots { display: flex; gap: 6px; margin-inline: .5rem; }
.slider__dots button { width: 10px; height: 10px; padding: 0; border-radius: var(--r-pill); border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s, background-color .25s; }
.slider__dots button[aria-current="true"] { width: 28px; background: var(--silver-300); }
/* the active dot fills up while the slide's time runs, so it's clear the slides change by themselves */
.slider__dots button { position: relative; overflow: hidden; }
.slider__dots button[aria-current="true"] { background: rgba(255, 255, 255, .35); }
.slider__dots button[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--silver-300);
  transform-origin: right center; animation: slide-timer var(--slide-delay, 6s) linear forwards;
}
.slider.is-paused .slider__dots button[aria-current="true"]::after { animation: none; transform: scaleX(1); }
@keyframes slide-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .slider__dots button[aria-current="true"]::after { animation: none; } }
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; min-height: 0; padding-bottom: 84px; gap: 1rem; }
  .slide__img { order: -1; max-width: 300px; }
}
@media (max-width: 640px) {
  .slide { padding: 18px 18px 72px; gap: .5rem; }
  .slide__img { max-width: 180px; }
  .slide h3 { font-size: var(--step-2); margin-top: .5rem; }
  .slide p { font-size: var(--step--1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide__price { margin-top: .75rem; }
  .slide__price .price { font-size: var(--step-2); }
  .slide__actions { margin-top: 1rem; }
  .slide__actions .btn { min-height: 42px; padding-inline: 1rem; font-size: var(--step--1); }
  .slider__nav { inset-inline-end: 16px; bottom: 16px; }
  .slider__nav button.arrow { width: 38px; height: 38px; }
}

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.1rem .75rem; border-radius: var(--r-md); text-decoration: none; background: var(--white); border: 1px solid var(--line); text-align: center; font-weight: 700; }
.cat:hover { border-color: var(--goose-600); }
.cat__img { width: 96px; height: 96px; border-radius: 50%; background: var(--silver-100); display: grid; place-items: center; overflow: hidden; }
.cat__img img { width: 82%; height: 82%; object-fit: contain; }
.cat small { font-weight: 500; color: var(--muted); font-size: var(--step--1); }

.subcat {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: .8rem; padding: .7rem .8rem;
  border-radius: var(--r-md); background: rgba(255, 255, 255, .6); border: 1px solid rgba(15, 79, 69, .1);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.subcat:hover { border-color: var(--goose-600); background: rgba(255, 255, 255, .9); }
.subcat__img { width: 60px; height: 60px; border-radius: 14px; background: var(--glass-soft, var(--silver-100)); display: grid; place-items: center; overflow: hidden; }
.subcat__img img { width: 84%; height: 84%; object-fit: contain; }
.subcat__text strong { display: block; font-weight: 800; }
.subcat__text small { display: block; color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.subcat__count { padding: .2rem .65rem; border-radius: var(--r-pill); background: rgba(15, 79, 69, .1); color: var(--goose-800); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ---------- category browser (Technolife-style): mains on the right, subcategories on the left ---------- */
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.catbar__item { position: relative; }
.catbar a { display: flex; align-items: center; gap: .4rem; }
.catbar a .icon { width: 1em; height: 1em; opacity: .75; }
.catbar__trigger {
  display: flex; align-items: center; gap: .5rem; margin-block: 6px; padding: .45rem 1rem; border: 0; border-radius: 10px;
  background: rgba(15, 79, 69, .09); color: var(--goose-900); font-weight: 700; font-size: var(--step--1); cursor: pointer; white-space: nowrap;
}
.catbar__trigger:hover, .catbar__trigger[aria-expanded="true"] { background: var(--goose-700); color: var(--white); }
.catnav-pop {
  /* top is set by site.js to sit just under the category bar */
  position: fixed; top: 120px; inset-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); z-index: 70;
  width: min(820px, calc(100vw - 2 * var(--gutter))); height: min(540px, 72vh);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(10, 43, 38, .45);
}
.catnav-pop[hidden] { display: none; }
/* while the menu is open: dim the page below the bar (click it to close), and drop the content's blur
   so nothing composites over the pop-up */
body.catnav-open::after {
  content: ""; position: fixed; inset: var(--catnav-top, 120px) 0 0 0; z-index: 60; background: rgba(6, 32, 25, .3);
}
body.catnav-open main *, body.catnav-open .footer { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.catnav-pop.is-open { animation: panel-in .18s ease-out; }

.catnav { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; height: 100%; }
.catnav__mains { list-style: none; margin: 0; padding: 8px; overflow-y: auto; border-inline-end: 1px solid var(--line); background: rgba(237, 241, 241, .55); }
.catnav__main {
  display: flex; align-items: center; gap: .75rem; width: 100%; padding: .55rem .6rem; border: 0; border-radius: 12px;
  background: none; color: var(--ink); font-weight: 700; font-size: var(--step--1); text-align: start; cursor: pointer;
}
.catnav__mains li + li .catnav__main { margin-top: 2px; }
.catnav__main:hover { background: rgba(255, 255, 255, .8); }
.catnav__main[aria-selected="true"] { background: var(--white); color: var(--goose-800); box-shadow: 0 1px 3px rgba(10, 43, 38, .08); }
.catnav__icon {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 6px -3px rgba(10, 43, 38, .2);
}
.catnav__icon img { width: 74%; height: 74%; object-fit: contain; }
.catnav__main[aria-selected="true"] .catnav__icon { border-color: var(--goose-200); background: var(--goose-100); }
.catnav__label { flex: 1; line-height: 1.5; }
.catnav__chev { width: 16px; height: 16px; opacity: 0; color: var(--goose-700); transition: opacity .15s; }
.catnav__main[aria-selected="true"] .catnav__chev { opacity: 1; }

.catnav__pane { padding: 14px 18px; overflow-y: auto; }
.catnav__pane:focus-visible { outline-offset: -3px; }
.catnav__title {
  display: flex; align-items: center; gap: .5rem; padding: .65rem .9rem; border-radius: 12px; margin-bottom: 6px;
  background: rgba(15, 79, 69, .07); text-decoration: none; color: var(--goose-900); font-weight: 800;
}
.catnav__title small { color: var(--goose-700); font-weight: 600; font-size: 12px; margin-inline-start: auto; }
.catnav__title .icon { width: 16px; height: 16px; color: var(--goose-700); }
.catnav__title:hover { background: rgba(15, 79, 69, .13); }
.catnav__subs { list-style: none; margin: 0; padding: 0; }
.catnav__subs a { display: block; padding: .7rem .9rem; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.catnav__subs a:hover { background: var(--silver-100); color: var(--goose-700); }
.catnav__empty { padding: .8rem .9rem; color: var(--muted); font-size: var(--step--1); }

/* inline version on the shop page */
.catnav--inline { border-radius: var(--r-lg); overflow: hidden; }
.catnav--inline .catnav__mains { padding: 10px; }
.catnav--inline .catnav__pane { padding: 18px 20px; }
.catnav--inline .catnav__pane.is-open { animation: panel-in .2s ease-out; }
.catnav__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }

@media (max-width: 860px) {
  /* phones: the menu fills the screen under the bar, like the Technolife app */
  .catnav-pop { position: fixed; inset-inline: 0; bottom: 0; width: auto; height: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  body.catnav-locked { overflow: hidden; }
}
@media (max-width: 640px) {
  .catnav { grid-template-columns: minmax(150px, 46%) 1fr; }
  .catnav__main { flex-direction: row; gap: .55rem; padding: .5rem .45rem; }
  .catnav__icon { width: 38px; height: 38px; }
  .catnav__pane, .catnav--inline .catnav__pane { padding: 10px 10px; }
  .catnav__tiles { grid-template-columns: 1fr; }
  .subcat { grid-template-columns: 48px 1fr; }
  .subcat__img { width: 48px; height: 48px; }
  .subcat__count { grid-column: 2; justify-self: start; }
}
/* ---------- assistant ---------- */
.assist-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--metal); }
.assist-banner h2 { font-size: var(--step-3); }
.assist-banner p { color: var(--muted); margin-top: .25rem; }
.assist-banner__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--goose-800); color: var(--white); display: grid; place-items: center; flex: none; }
.assist-banner__lead { display: flex; align-items: center; gap: 1rem; }

.assist-fab {
  position: fixed; z-index: 60; inset-inline-start: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 54px; padding: 0 1.2rem 0 1.4rem;
  border: 0; border-radius: var(--r-pill); background: var(--goose-800); color: var(--white); font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(6, 32, 25, .6);
}
.assist-fab:hover { background: var(--goose-700); }
.assist-dialog { width: min(440px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(6,32,25,.5); margin: auto 20px 20px auto; }
.assist-dialog::backdrop { background: rgba(6, 32, 25, .35); }
.assist-dialog[open] { display: flex; }
.chat { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--white); }
.chat--page { height: min(720px, calc(100vh - 180px)); min-height: 520px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; background: var(--goose-900); color: var(--white); }
.chat__head strong { display: block; }
.chat__head small { color: var(--goose-200); }
.chat__head .icon-btn { margin-inline-start: auto; background: transparent; color: var(--white); border-color: rgba(255,255,255,.25); width: 40px; height: 40px; }
.chat__avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--metal); color: var(--goose-900); display: grid; place-items: center; }
.chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; background: var(--paper); }
.msg { max-width: 86%; padding: .7rem 1rem; border-radius: 18px; line-height: 1.7; }
.msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-start-start-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--goose-700); color: var(--white); border-start-end-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button { min-height: 40px; padding: .35rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--goose-200); background: var(--white); color: var(--goose-800); font-weight: 700; cursor: pointer; }
.chips button:hover { border-color: var(--goose-700); background: var(--goose-100); }
.ad { display: grid; grid-template-columns: 96px 1fr; gap: .8rem; padding: .7rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.ad__img { width: 96px; height: 80px; border-radius: 10px; background: var(--silver-100); padding: 6px; }
.ad__img img { width: 100%; height: 100%; object-fit: contain; }
.ad a.ad__name { font-weight: 700; text-decoration: none; line-height: 1.5; }
.ad a.ad__name:hover { color: var(--goose-700); }
.ad ul { margin: .25rem 0 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--success); }
.ad__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }
.chat__form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-height: 46px; padding: 0 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--silver-300); }
.chat__form input:focus { outline: none; border-color: var(--goose-600); }
.chat__form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--goose-700); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--silver-400); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.msg__hint { display: block; margin-top: .3rem; color: var(--muted); font-size: var(--step--1); line-height: 1.7; }
.msg--note { align-self: center; max-width: 100%; padding: 0; color: var(--muted); font-size: var(--step--1); }
.msg--expert { align-self: flex-start; background: var(--goose-100); border: 1px solid var(--goose-200); border-start-start-radius: 6px; white-space: pre-line; }
.msg--expert strong { display: block; color: var(--goose-800); font-size: var(--step--1); }
.assist-fab.has-news::after { content: ""; position: absolute; top: 4px; inset-inline-end: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--white); }
/* question for the shop's expert, inside the chat */
.expert { display: grid; gap: .65rem; padding: .85rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.expert__row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.expert__field { display: grid; gap: .3rem; font-size: var(--step--1); font-weight: 700; }
.expert__field input, .expert__field textarea { width: 100%; min-height: 44px; padding: .55rem .8rem; border-radius: 12px; border: 1.5px solid var(--silver-300); font: inherit; font-weight: 400; background: var(--white); }
.expert__field textarea { resize: vertical; line-height: 1.7; }
.expert__field input:focus, .expert__field textarea:focus { outline: none; border-color: var(--goose-600); }
.expert__contact { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0; padding: 0; border: 0; font-size: var(--step--1); }
.expert__contact legend { padding: 0; margin-bottom: .3rem; font-weight: 700; }
.expert__contact label { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; cursor: pointer; }
.expert__contact input { accent-color: var(--goose-700); width: 18px; height: 18px; }
.expert__error { color: var(--danger); font-weight: 400; }
.expert__error:empty { display: none; }
.expert .btn { justify-self: start; }
@media (max-width: 420px) { .expert__row { grid-template-columns: 1fr; } }
/* page behind the expert-answer SMS link */
.expert-answer h1 { font-size: var(--step-3); }
.expert-answer__q, .expert-answer__a { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--r-md); line-height: 1.9; }
.expert-answer__q { background: var(--silver-100); }
.expert-answer__a { background: var(--goose-100); border: 1px solid var(--goose-200); }
.expert-answer__q strong, .expert-answer__a strong { display: block; font-size: var(--step--1); color: var(--goose-800); margin-bottom: .25rem; }
.expert-answer__wait { margin-top: 1.25rem; color: var(--muted); }
.expert-answer__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* ---------- product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--step--1); color: var(--muted); padding-block: 1rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--goose-700); }
.product { display: grid; grid-template-columns: 1.05fr 1fr 320px; gap: 28px; align-items: start; }
.gallery__main { aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; place-items: center; padding: 24px; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { width: 72px; height: 72px; flex: none; padding: 4px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--white); cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--goose-700); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__info h1 { font-size: var(--step-3); }
.product__info .lead { color: var(--muted); margin-top: .6rem; }
.specs { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: var(--step--1); }
.specs th, .specs td { text-align: start; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 600; background: var(--silver-100); }
.buybox { position: sticky; top: 140px; padding: 1.25rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 1rem; }
.buybox__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: var(--step--1); }
.buybox .price { font-size: var(--step-3); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--silver-300); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--silver-100); }
.qty input { width: 44px; height: 40px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.prose { max-width: 72ch; line-height: 2; }
.prose p + p { margin-top: 1rem; }
.page h1 { font-size: var(--step-3); }
.page__date { margin: .25rem 0 1.5rem; font-size: var(--step--1); }
.page__draft { margin: 0 0 1rem; padding: .6rem 1rem; border-radius: var(--r-sm); background: #FEF3C7; color: #8A5A00; font-size: var(--step--1); font-weight: 700; }
.page__body h2 { font-size: var(--step-1); margin: 1.6rem 0 .4rem; }
.page__body ul { margin: .5rem 0; padding-inline-start: 1.25rem; }
.page__body li + li { margin-top: .3rem; }
.detail-block { margin-top: 2.5rem; padding: clamp(20px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.detail-block h2 { font-size: var(--step-2); margin-bottom: 1rem; }
@media (max-width: 1080px) { .product { grid-template-columns: 1fr 1fr; } .buybox { grid-column: 1 / -1; position: static; } }
@media (max-width: 700px) { .product { grid-template-columns: 1fr; } }

/* ---------- list page ---------- */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1.25rem; }
.list-head h1 { font-size: var(--step-3); }
.sort { display: flex; gap: .25rem; flex-wrap: wrap; font-size: var(--step--1); }
.sort a { padding: .35rem .9rem; border-radius: var(--r-pill); text-decoration: none; color: var(--muted); }
.sort a[aria-current="true"] { background: var(--goose-100); color: var(--goose-800); font-weight: 700; }
/* product filters on category, search and offers pages */
.filters { margin-bottom: 1.25rem; }
.filters__toggle { display: none; align-items: center; gap: .45rem; min-height: 42px; padding: 0 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--goose-200); background: var(--white); color: var(--goose-800); font: inherit; font-weight: 700; cursor: pointer; }
.filters__on { padding: .05rem .5rem; border-radius: var(--r-pill); background: var(--goose-700); color: var(--white); font-size: 11px; }
.filters__body { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.5rem; padding: 1rem 1.15rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.filters__group { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; min-width: 0; }
.filters__group legend { width: 100%; margin-bottom: .4rem; padding: 0; font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.filters__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border-radius: var(--r-pill); border: 1.5px solid var(--silver-300); font-size: var(--step--1); font-weight: 600; cursor: pointer; }
.chip-check input:checked + span { border-color: var(--goose-700); background: var(--goose-100); color: var(--goose-800); }
.chip-check input:focus-visible + span { outline: 2px solid var(--goose-600); outline-offset: 2px; }
.filters__price { display: flex; gap: .5rem; }
.filters__price label { display: flex; align-items: center; gap: .35rem; font-size: var(--step--1); }
.filters__price input { width: 8.5rem; min-height: 38px; padding: 0 .7rem; border-radius: 10px; border: 1.5px solid var(--silver-300); font: inherit; background: var(--white); }
.filters__price input:focus { outline: none; border-color: var(--goose-600); }
.filters__check { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; font-size: var(--step--1); cursor: pointer; }
.filters__check input { width: 18px; height: 18px; accent-color: var(--goose-700); }
.filters__actions { display: flex; align-items: center; gap: .9rem; margin-inline-start: auto; font-size: var(--step--1); }
.filters__actions a { color: var(--goose-700); font-weight: 700; }
@media (max-width: 640px) {
  .filters__toggle { display: inline-flex; }
  .filters:not(.is-open) .filters__body { display: none; }
  .filters__body { margin-top: .6rem; flex-direction: column; align-items: stretch; }
  .filters__price input { width: 100%; }
  .filters__price label { flex: 1; }
  .filters__actions { margin-inline-start: 0; }
}

.empty { text-align: center; padding: 3.5rem 1rem; background: var(--white); border: 1px dashed var(--silver-300); border-radius: var(--r-lg); }
.empty h2 { font-size: var(--step-2); }
.empty p { color: var(--muted); margin: .5rem 0 1.25rem; }

/* ---------- cart & checkout ---------- */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart__items { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.citem { display: grid; grid-template-columns: 110px 1fr auto; gap: 1rem; padding: 1.1rem; align-items: center; }
.citem + .citem { border-top: 1px solid var(--line); }
.citem__img { width: 110px; height: 90px; background: var(--silver-100); border-radius: var(--r-sm); padding: 6px; }
.citem__img img { width: 100%; height: 100%; object-fit: contain; }
.citem__name { font-weight: 700; text-decoration: none; }
.citem__actions { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; flex-wrap: wrap; }
.link-btn { border: 0; background: none; padding: .3rem; cursor: pointer; color: var(--danger); font-weight: 600; font-size: var(--step--1); display: inline-flex; gap: .3rem; align-items: center; }
.summary { position: sticky; top: 100px; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: .75rem; }
.summary__row { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); }
.summary__row--total { color: var(--ink); font-weight: 800; font-size: var(--step-1); padding-top: .75rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .citem { grid-template-columns: 80px 1fr; } .citem__img { width: 80px; height: 70px; } .citem > .price { grid-column: 2; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.panel h2 { font-size: var(--step-2); margin-bottom: 1.25rem; }

/* ---------- magazine ---------- */
.mag-hero { background: var(--goose-900); color: var(--white); padding-block: clamp(48px, 7vw, 80px) clamp(28px, 4vw, 40px); }
.mag-hero h1 { font-size: var(--step-5); }
.mag-hero p { color: var(--goose-200); margin-top: .75rem; max-width: 56ch; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.75rem; }
.filters a { padding: .45rem 1.1rem; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.25); text-decoration: none; font-weight: 600; }
.filters a[aria-current="true"] { background: var(--white); color: var(--goose-900); border-color: var(--white); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.post { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.post__cover { position: relative; aspect-ratio: 16/9; background: var(--metal); display: grid; place-items: center; }
.post__cover img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post__cover img.art { width: 55%; }
.post__play { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: rgba(10,43,38,.85); color: var(--white); display: grid; place-items: center; }
.post__dur { position: absolute; inset-inline-end: 10px; bottom: 10px; padding: .1rem .55rem; border-radius: 6px; background: rgba(10,43,38,.85); color: var(--white); font-size: 12px; }
.post__body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .4rem; }
.post__kind { font-size: var(--step--1); font-weight: 700; color: var(--goose-700); }
.post__title { font-size: var(--step-1); font-weight: 800; text-decoration: none; line-height: 1.5; }
.post__title::after { content: ""; position: absolute; inset: 0; }
.post__body p { color: var(--muted); font-size: var(--step--1); }
.post-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
.post-feature .post__cover { aspect-ratio: auto; min-height: 320px; }
.post-feature .post__body { padding: clamp(20px, 3vw, 40px); align-content: center; }
.post-feature .post__title { font-size: var(--step-3); }
@media (max-width: 760px) { .post-feature { grid-template-columns: 1fr; } .post-feature .post__cover { min-height: 0; aspect-ratio: 16/9; } }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--goose-950); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video { object-fit: contain; background: #000; }
.article { max-width: 860px; margin-inline: auto; }
.article h1 { font-size: var(--step-4); margin-top: .5rem; }
.article .prose { margin-top: 1.5rem; }

/* ---------- contact ---------- */
.contact-hero { background: var(--metal); padding-block: clamp(48px, 7vw, 88px); }
.contact-hero h1 { font-size: var(--step-5); }
.contact-hero p { color: var(--muted); margin-top: .75rem; max-width: 52ch; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: -40px; }
.phones { display: grid; gap: 10px; }
.phone { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.phone:hover { border-color: var(--goose-600); }
.phone__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--goose-100); color: var(--goose-700); display: grid; place-items: center; flex: none; }
.phone strong { display: block; }
.phone small { color: var(--muted); }
.phone__num { margin-inline-start: auto; direction: ltr; font-weight: 800; font-size: var(--step-1); color: var(--goose-700); white-space: nowrap; }
.visit { background: var(--goose-900); color: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 1.1rem; align-content: start; }
.visit h2 { font-size: var(--step-2); }
.visit__row { display: flex; gap: .75rem; align-items: flex-start; }
.visit__row .icon { color: var(--silver-300); margin-top: .25rem; }
.visit__row small { display: block; color: var(--goose-200); }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .4rem 1rem; border-radius: var(--r-pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); text-decoration: none; font-weight: 700; }
.social:hover { background: rgba(255,255,255,.18); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; margin-top: -24px; } }

/* ---------- account ---------- */
.orders { display: grid; gap: 12px; }
.order { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.status { padding: .15rem .7rem; border-radius: var(--r-pill); background: var(--goose-100); color: var(--goose-800); font-weight: 700; font-size: var(--step--1); }
.status--canceled { background: #FDECEA; color: var(--danger); }

/* ---------- footer ---------- */
.footer { margin-top: clamp(56px, 8vw, 96px); background: var(--goose-950); color: var(--silver-300); padding-block: 48px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer__grid:has(> :nth-child(5)) { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }  /* «خرید از ما» column */
.footer__trust { margin-top: 1rem; }
.footer__trust img { max-width: 110px; height: auto; background: var(--white); border-radius: 10px; padding: 4px; }
.footer h3 { color: var(--white); font-size: var(--step-0); margin-bottom: .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer .brand { color: var(--white); }
.footer__about { margin-top: .9rem; font-size: var(--step--1); max-width: 36ch; }
.footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--step--1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 860px) { .footer__grid, .footer__grid:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid, .footer__grid:has(> :nth-child(5)) { grid-template-columns: 1fr; } }

/* ==========================================================================
   Glass layer: frosted panels over a blurred, green-veiled farm photo.
   Text stays solid; only the boxes are translucent.
   ========================================================================== */
:root {
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-soft: rgba(255, 255, 255, .38);
  --glass-edge: rgba(255, 255, 255, .72);
  --glass-dark: rgba(10, 43, 38, .72);
  --glass-dark-edge: rgba(196, 204, 205, .22);
  --glass-blur: blur(18px) saturate(1.35);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px -14px rgba(10, 43, 38, .28);
}

body { background: #E4ECE9; }
body::before {
  content: ""; position: fixed; inset: -24px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(232, 240, 237, .55) 0%, rgba(237, 241, 241, .68) 60%, rgba(220, 233, 229, .72) 100%),
    var(--page-photo, url("../img/hero-bg.webp")) center / cover no-repeat;
  filter: blur(10px);
}

/* light glass */
.header, .catnav--inline, .pcard, .cat, .panel, .detail-block, .buybox, .summary, .cart__items, .empty,
.gate--contact, .gate--mag, .account-panel, .chat--page, .assist-banner, .phone, .post, .order,
.gallery__main, .ad, .assist-dialog .chat, .flash li {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.header { background: rgba(255, 255, 255, .62); border-width: 0 0 1px; box-shadow: 0 8px 24px -18px rgba(10, 43, 38, .35); }
/* the header over the home video stays clear until the page scrolls */
.header.header--overlay:not(.is-solid) { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header.header--overlay.is-solid:not(.on-dark) { background: rgba(255, 255, 255, .62); }
.slide .btn--light, .hero .btn--light { background: var(--white); }
.catbar { border-top-color: rgba(255, 255, 255, .55); }
.buybox, .summary, .assist-dialog .chat { background: var(--glass-strong); }
/* the pop-up lives inside the (already blurred) header, where a second blur doesn't apply: keep it solid */
.catnav-pop { background: var(--white); }
.gate--mag { background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(196, 204, 205, .45)); }
.empty { border-style: dashed; border-color: rgba(15, 79, 69, .25); }
.flash li { background: rgba(220, 233, 229, .72); }
.account-panel__form { background: transparent; }

/* inner surfaces become frosted tints instead of solid silver */
.pcard__img, .cat__img, .citem__img, .ad__img, .post__cover, .tabs, .specs th, .search input,
.gallery__thumbs button, .chat__log { background: var(--glass-soft); }
.chat__log { background: rgba(255, 255, 255, .22); }
.msg--bot { background: var(--glass-strong); border-color: var(--glass-edge); }
.field input, .field select, .field textarea, .chat__form input, .qty {
  background: rgba(255, 255, 255, .62); border-color: rgba(15, 79, 69, .18);
}
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus { background: rgba(255, 255, 255, .9); }
.tabs button[aria-selected="true"], .chips button, .icon-btn, .btn--light { background: rgba(255, 255, 255, .78); }
.btn--light:hover, .icon-btn:hover { background: rgba(255, 255, 255, .95); }
.subcats a { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.subcats a[aria-current="page"] { background: var(--goose-700); }
.sort a[aria-current="true"] { background: rgba(220, 233, 229, .8); }
.citem + .citem, .specs th, .specs td, .summary__row--total { border-color: rgba(15, 79, 69, .1); }

/* dark glass */
.gate--shop, .account-panel__intro, .visit, .band, .slider, .mag-hero, .footer, .chat__head {
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.gate--shop { background: linear-gradient(165deg, rgba(15, 79, 69, .78), rgba(6, 32, 25, .88)); border: 1px solid var(--glass-dark-edge); }
.account-panel__intro, .visit { background: var(--glass-dark); border: 1px solid var(--glass-dark-edge); }
.band { background: rgba(15, 79, 69, .74); border: 1px solid var(--glass-dark-edge); box-shadow: var(--glass-shadow); }
.slider { background: linear-gradient(160deg, rgba(15, 79, 69, .82), rgba(6, 32, 25, .9)); border: 1px solid var(--glass-dark-edge); }
.mag-hero { background: rgba(10, 43, 38, .8); }
.contact-hero { background: transparent; }
.footer { background: rgba(6, 32, 25, .86); border-top: 1px solid var(--glass-dark-edge); }
.chat__head { background: rgba(10, 43, 38, .88); }
.band .pcard { background: rgba(255, 255, 255, .8); }

/* browsers without backdrop-filter: fall back to near-solid panels so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, .9); --glass-strong: rgba(255, 255, 255, .95); --glass-dark: rgba(10, 43, 38, .95); }
}
/* low-power phones: lighter blur */
@media (max-width: 640px) {
  :root { --glass-blur: blur(12px) saturate(1.25); --glass: rgba(255, 255, 255, .66); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
