/* ==========================================================================
   یوفی ایران — design system
   Mirrors eufy.com (Anker "ipc" theme): white ground, near-black ink, light
   grey sections, black pill CTAs, blue links, orange "NEW" tags, 16/24px radii,
   1440/1200/960 containers — flipped to RTL with Vazirmatn.
   ========================================================================== */
:root {
  --ink: #111111; --ink-2: #555555; --ink-3: #8a8a8a; --ink-4: #b3b3b3;
  --line: #e6e6e6; --line-2: #d4d4d4;
  --bg: #ffffff; --bg-2: #f5f5f7; --bg-3: #ececee;
  --dark: #0d0d0f; --dark-2: #1b1b1f;
  --accent: #0b6cf5; --accent-strong: #0855c4; --accent-soft: #e8f0fe;
  --new: #ff6a00; --hot: #e11d48; --sale: #d92d20; --ok: #12805c; --star: #ffb400;
  --container-lg: 1440px; --container-md: 1200px; --container-sm: 960px; --content: 720px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px; --radius-sm: 12px; --pill: 999px;
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --fs-body: 16px; --lh-body: 1.85;
  --header-h: 64px; --announce-h: 40px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.25); --shadow-sm: 0 6px 24px -12px rgba(0, 0, 0, 0.2);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 70px); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
table { border-collapse: collapse; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { top: 8px; }
::selection { background: var(--accent-soft); color: var(--accent-strong); }
[dir="ltr"] { unicode-bidi: isolate; }

/* ---------- layout ---------- */
.container-lg, .container-md, .container-sm, .container-xs { width: min(100% - var(--gutter) * 2, var(--container-lg)); margin-inline: auto; }
.container-md { max-width: var(--container-md); }
.container-sm { max-width: var(--container-sm); }
.container-xs { max-width: var(--content); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--dark { background: var(--dark); color: #fff; }
.section--gray { background: var(--bg-2); }
.section__head { text-align: center; max-width: 820px; margin-inline: auto; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--start { text-align: start; margin-inline: 0; max-width: none; }
.section__head h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; }
.section__head p { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); margin-top: 12px; }
.section--dark .section__head p { color: rgba(255, 255, 255, 0.7); }
.section__foot { text-align: center; margin-top: clamp(28px, 4vw, 44px); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.section--dark .eyebrow { color: #7fb3ff; }
.display { font-size: clamp(36px, 5.6vw, 76px); font-weight: 900; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.5vw, 22px); color: var(--ink-2); }
.section--dark .lead, .story .lead { color: rgba(255, 255, 255, 0.72); }
.muted { color: var(--ink-2); }
.page-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-bottom: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.empty { text-align: center; padding: 48px 16px; }
.empty h3 { font-size: 22px; margin-bottom: 16px; }

/* ---------- buttons & badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 26px; border-radius: var(--pill); font-weight: 600; font-size: 15px; line-height: 1; border: 1.5px solid transparent; transition: background 0.22s var(--ease), color 0.22s, border-color 0.22s, transform 0.22s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #333; border-color: #333; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: #e8e8ea; border-color: #e8e8ea; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.18); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn--lg { min-height: 54px; padding-inline: 34px; font-size: 16px; }
.btn--sm { min-height: 38px; padding-inline: 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.link-arrow::after { content: "←"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(-4px); }
.link-danger { color: var(--sale); font-size: 14px; }
.badge { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff; }
.badge--new { background: var(--new); }
.badge--hot { background: var(--hot); }
.badge--sale { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- announce bar (eufy: light-blue rotating) ---------- */
.announce { height: var(--announce-h); background: #c9defa; color: #000; font-size: 14px; font-weight: 500; display: flex; align-items: center; overflow: hidden; }
.announce__track { position: relative; height: 100%; }
.announce__item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce__item.is-active { opacity: 1; transform: none; }
.announce__item:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; }
.logo__word { font-weight: 900; font-size: 30px; letter-spacing: -0.03em; line-height: 1; font-family: "Helvetica Neue", Arial, var(--font); }
.logo__fa { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.nav__list { display: flex; gap: 4px; justify-content: center; }
.nav__link { display: inline-flex; align-items: center; height: var(--header-h); padding: 0 16px; font-size: 15px; font-weight: 600; position: relative; }
.nav__link--sale { color: var(--hot); }
.nav__link::after { content: ""; position: absolute; inset-inline: 16px; bottom: 14px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease); }
.nav__item:hover .nav__link::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 2px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--pill); position: relative; transition: background 0.2s; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 5px; inset-inline-start: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-count.is-empty { display: none; }
.header__burger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.header__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mega menu */
.mega { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s 0.22s; }
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-block: 32px 36px; }
.mega__inner--links { grid-template-columns: repeat(3, max-content); gap: 96px; }
.mega__col h4 { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 12px; }
.mega__series { display: flex; flex-direction: column; padding: 10px 12px; margin-inline: -12px; border-radius: var(--radius-sm); transition: background 0.2s; }
.mega__series:hover { background: var(--bg-2); }
.mega__series strong { font-size: 16px; }
.mega__series small { color: var(--ink-2); font-size: 13px; }
.mega__products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; }
.mega__product { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); transition: background 0.2s; }
.mega__product:hover { background: var(--bg-2); }
.mega__product img { width: 60px; height: 60px; object-fit: contain; flex: none; background: var(--bg-2); border-radius: 10px; padding: 4px; }
.mega__product span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega__product strong { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mega__product small { color: var(--ink-2); font-size: 12px; }
.mega__product .badge { font-size: 10px; padding: 3px 6px; }
.mega__links { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.mega__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega__inner--links .mega__links { margin-top: 0; }

/* drawer (mobile nav) */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer[aria-hidden="false"] { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.3s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(88vw, 400px); background: #fff; padding: 24px; overflow-y: auto; transform: translateX(100%); transition: transform 0.35s var(--ease); }
.drawer[aria-hidden="false"] .drawer__panel { transform: none; }
.drawer[aria-hidden="false"] .drawer__backdrop { opacity: 1; }
.drawer details, .drawer__link { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer__link { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; font-size: 22px; color: var(--ink-3); }
.drawer details[open] summary::after { content: "–"; }
.drawer details a { display: flex; align-items: center; gap: 8px; padding: 9px 0 9px 12px; color: var(--ink-2); font-size: 15px; }
.drawer details a:last-of-type { padding-bottom: 16px; }
.drawer__foot { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; font-weight: 600; }

/* search overlay */
.search { position: fixed; inset: 0; z-index: 300; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px); visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0s 0.25s; }
.search[aria-hidden="false"] { visibility: visible; opacity: 1; transition-delay: 0s; }
.search__panel { padding-top: 12vh; }
.search__form { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.search__form svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search__form input { flex: 1; border: 0; background: none; font-size: clamp(22px, 3vw, 34px); font-weight: 600; outline: none; }
.search__close { font-size: 22px; padding: 8px; }
.search__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
.search__cols h3 { font-size: 13px; color: var(--ink-3); font-weight: 700; margin-bottom: 12px; }
.search__cols li { padding: 7px 0; font-size: 17px; }
.search__cols li.is-hidden { display: none; }

/* flash */
.flash { padding: 12px 0; font-size: 15px; font-weight: 500; }
.flash--ok { background: #e7f6ef; color: var(--ok); }
.flash--error { background: #fdecec; color: var(--sale); }
.flash--inline { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.flash ul { padding-inline-start: 18px; list-style: disc; }

/* ---------- hero (eufy: full-bleed banner) ---------- */
.hero { position: relative; height: min(calc(100svh - var(--header-h) - var(--announce-h)), 820px); min-height: 600px; overflow: hidden; background: var(--bg-2); color: var(--ink); }
.hero__slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease), visibility 0s 0.8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero__slide--dark { color: #fff; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 7s linear; }
.hero__slide.is-active .hero__bg img { transform: scale(1); }
.hero__product { position: absolute; inset-inline-end: clamp(16px, 6vw, 96px); bottom: 0; top: 0; width: 42%; display: grid; place-items: center; z-index: 1; }
.hero__product img { width: min(100%, 620px); max-height: 82%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero__content { position: relative; z-index: 2; width: min(100% - var(--gutter) * 2, var(--container-lg)); margin-inline: auto; grid-column: 1 / -1; padding-bottom: 80px; max-width: none; }
.hero__content > * { max-width: 560px; }
.hero__content .eyebrow { color: inherit; opacity: 0.75; }
.hero__content h1 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 900; line-height: 1.15; }
.hero__content p { font-size: clamp(17px, 1.6vw, 22px); margin-top: 14px; opacity: 0.85; }
.hero__price { margin-top: 18px; }
.hero__slide.is-active .hero__content > * { animation: rise 0.9s var(--ease) both; }
.hero__slide.is-active .hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__slide.is-active .hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__slide.is-active .hero__content > :nth-child(4) { animation-delay: 0.24s; }
.hero__slide.is-active .hero__content > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__dots { position: absolute; bottom: 28px; inset-inline: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; padding-inline: var(--gutter); }
.hero__dot { display: flex; flex-direction: column; gap: 8px; width: 150px; padding: 0; font-weight: 600; font-size: 14px; opacity: 0.55; transition: opacity 0.3s; text-align: start; color: var(--ink); mix-blend-mode: difference; color: #fff; }
.hero__dot.is-active, .hero__dot:hover { opacity: 1; }
.hero__dot i { display: block; height: 3px; background: currentColor; opacity: 0.3; position: relative; overflow: hidden; border-radius: 3px; }
.hero__dot i::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: right; }
.hero__dot.is-active i { opacity: 1; }
.hero__dot.is-active i::after { animation: progress var(--hero-duration, 6s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

/* slogan */
.slogan { text-align: center; }
.slogan .lead { max-width: 720px; margin: 14px auto 0; }

/* promo tiles (eufy mlg-block) */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); background: var(--bg-2); overflow: hidden; min-height: 380px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.promo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promo--wide { grid-column: span 2; grid-template-rows: none; grid-template-columns: 1fr 1fr; align-items: center; background: linear-gradient(135deg, #eef2f7, #dfe6ef); }
.promo__text { padding: 28px 28px 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.promo--wide .promo__text { padding: 40px; }
.promo__text h3 { font-size: 24px; font-weight: 800; }
.promo--wide .promo__text h3 { font-size: 32px; }
.promo__text p { color: var(--ink-2); font-size: 15px; }
.promo__price { font-weight: 700; margin-top: 6px; }
.promo__price del { color: var(--ink-3); font-weight: 400; font-size: 13px; margin-inline-start: 6px; }
.promo__text .link-arrow { margin-top: 10px; }
.promo img { width: 100%; height: 100%; object-fit: contain; padding: 16px 24px 24px; max-height: 260px; align-self: end; transition: transform 0.6s var(--ease); }
.promo--wide img { max-height: 340px; }
.promo:hover img { transform: scale(1.04); }

/* series cards */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.series-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: #fff; min-height: 460px; display: flex; align-items: flex-end; isolation: isolate; }
.series-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 0.8s var(--ease); }
.series-card:hover img { transform: scale(1.05); }
.series-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 65%); z-index: -1; }
.series-card__body { padding: 28px; }
.series-card__k { font-size: 48px; font-weight: 900; line-height: 1; opacity: 0.4; display: block; font-family: "Helvetica Neue", Arial, var(--font); }
.series-card__body h3 { font-size: 24px; font-weight: 800; margin-top: 6px; }
.series-card__title { font-weight: 600; opacity: 0.9; margin-top: 4px; }
.series-card__body p:not(.series-card__title) { font-size: 14px; opacity: 0.75; margin-top: 8px; }
.series-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.series-card li { font-size: 12px; padding: 4px 10px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, 0.35); }
.series-card .link-arrow { color: #fff; margin-top: 14px; }

/* technology cards (eufy accordion cards) */
.tech-cards { display: flex; gap: 14px; height: 520px; }
.tech-card { position: relative; flex: 1; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); cursor: pointer; transition: flex 0.6s var(--ease); isolation: isolate; }
.tech-card.is-active { flex: 3; }
.tech-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; z-index: -1; transition: transform 0.8s var(--ease); }
.tech-card.is-active img { transform: scale(1.02); }
.tech-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1) 60%); z-index: -1; }
.tech-card__body { position: absolute; inset-inline: 0; bottom: 0; padding: 28px; }
.tech-card__body h3 { font-size: 20px; font-weight: 700; }
.tech-card:not(.is-active) .tech-card__body h3 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 18px; max-height: 320px; }
.tech-card__body span { display: block; font-size: 13px; opacity: 0.7; margin-top: 6px; }
.tech-card__body p { font-size: 15px; opacity: 0.85; margin-top: 10px; max-width: 46ch; }
.tech-card:not(.is-active) .tech-card__body span, .tech-card:not(.is-active) .tech-card__body p { display: none; }

/* capsule tabs */
.tabs-center { text-align: center; }
.capsule-tabs { display: inline-flex; gap: 4px; background: var(--bg-3); border-radius: var(--pill); padding: 4px; margin-bottom: 40px; }
.capsule-tabs button { padding: 9px 22px; border-radius: var(--pill); color: var(--ink-3); font-weight: 600; font-size: 14px; transition: background 0.25s, color 0.25s; }
.capsule-tabs button.is-active { background: var(--ink); color: #fff; }
.capsule-tabs button:not(.is-active):hover { color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- product cards (eufy listing card) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__tags { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.product-card__media { background: var(--bg-2); aspect-ratio: 1; display: grid; place-items: center; padding: 20px; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card__series { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.product-card h3 { font-size: 17px; font-weight: 700; margin-top: 2px; line-height: 1.5; }
.product-card__bullets { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); flex: 1; }
.product-card__bullets li { display: flex; gap: 6px; }
.product-card__bullets li::before { content: "•"; color: var(--accent); }
.product-card .price { margin-top: 12px; }
.product-card__actions { display: flex; gap: 8px; margin-top: 14px; }
.product-card__actions form { flex: 1; }
.product-card__actions .btn { min-height: 40px; padding-inline: 16px; font-size: 14px; width: 100%; }
.product-card--compact h3 { font-size: 15px; }
.stars { display: inline-flex; align-items: center; gap: 1px; font-size: 14px; color: var(--ink-4); margin-top: 4px; }
.stars i { font-style: normal; }
.stars i.on { color: var(--star); }
.stars small { color: var(--ink-3); margin-inline-start: 6px; font-size: 12px; }

/* price */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-weight: 700; font-size: 17px; }
.price__toman small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.price del { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.price__save { font-size: 12px; font-weight: 700; color: var(--sale); }
.price__usd { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.price--big { font-size: 28px; }
.price--big .price__toman small { font-size: 15px; }
.price--big del { font-size: 17px; }
.price--big .price__save, .price--big .price__usd { font-size: 14px; }
.price--hero { font-size: 22px; }
.hero__slide--dark .price__toman small, .hero__slide--dark .price del, .hero__slide--dark .price__usd { color: rgba(255, 255, 255, 0.7); }

/* row scroll */
.row-scroll { position: relative; }
.row-scroll__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.row-scroll__track::-webkit-scrollbar { display: none; }
.row-scroll__track > * { flex: 0 0 min(78vw, 330px); scroll-snap-align: start; }
.row-scroll__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.row-scroll__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.row-scroll__nav button:hover { border-color: var(--ink); background: var(--bg-2); }
.row-scroll__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* cta band */
.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; background: var(--accent-soft); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; }
.cta-band p { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.cta-band .btn-row { margin: 0; }

/* video tiles */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 13; background: var(--dark); color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 0.8s var(--ease); }
.video:hover img { transform: scale(1.05); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%); z-index: -1; }
.video__play { position: absolute; top: 16px; inset-inline-start: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); display: grid; place-items: center; }
.video__play::after { content: ""; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--ink); transform: scaleX(-1); margin-inline-start: -3px; }
.video__body { padding: 20px; }
.video__body h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.video__body span { font-size: 12px; opacity: 0.75; }

/* perks */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perks--4 { grid-template-columns: repeat(4, 1fr); }
.perk { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff; }
.perk svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.perk h3 { font-size: 17px; font-weight: 700; }
.perk p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.post { display: flex; flex-direction: column; }
.post__media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-3); margin-bottom: 14px; }
.post__media--hero { aspect-ratio: 16 / 8; border-radius: var(--radius); margin-block: 20px 28px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__cat { font-size: 12px; font-weight: 700; color: var(--accent); }
.post h3 { font-size: 17px; font-weight: 700; margin-top: 4px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post p { font-size: 14px; color: var(--ink-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post--featured { grid-column: span 2; grid-row: span 2; }
.post--featured .post__media { aspect-ratio: 16 / 10; }
.post--featured h3 { font-size: 26px; }
.prose { font-size: 17px; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-inline-start: 22px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- newsletter + footer (eufy: "Stay Up to Date") ---------- */
.newsletter { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 80px); }
.newsletter__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; }
.newsletter p { color: var(--ink-2); margin-top: 8px; }
.newsletter__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter__form input { min-height: 50px; padding: 0 20px; border: 1.5px solid var(--line-2); border-radius: var(--pill); background: #fff; outline: none; }
.newsletter__form input:focus { border-color: var(--ink); }
.newsletter__form small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; }
.newsletter__form small a { text-decoration: underline; text-underline-offset: 3px; }

.footer { background: #fff; padding-block: 0 32px; font-size: 14px; }
.footer__perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.footer__perks a { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.footer__perks svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.footer__grid { display: grid; grid-template-columns: repeat(5, 1fr) 1.6fr; gap: 32px 24px; padding-top: 48px; }
.footer__col h2 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer__col li { padding: 4px 0; color: var(--ink-2); }
.footer__col li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer__stores { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.store-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.store-badge svg { width: 18px; height: 18px; fill: currentColor; }
.store-badge--light { background: #fff; color: var(--ink); }
.footer__region { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 7px 14px; font-weight: 600; margin-bottom: 16px; }
.footer__region svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer__contact { display: block; font-weight: 700; font-size: 16px; padding: 2px 0; }
.footer__hours { color: var(--ink-3); margin-top: 6px; }
.footer__rate { margin-top: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg-2); font-size: 13px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: background 0.2s; }
.socials a:hover { background: var(--bg-2); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 13px; }
.footer__bottom ul { display: flex; gap: 18px; flex-wrap: wrap; }
.payments { display: flex; gap: 6px; flex-wrap: wrap; }
.payments span { border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font-size: 12px; }

.region-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); padding: 24px; visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0s 0.25s; }
.region-modal[aria-hidden="false"] { visibility: visible; opacity: 1; transition-delay: 0s; }
.region-modal__panel { position: relative; background: #fff; border-radius: var(--radius); padding: 40px; width: min(100%, 860px); }
.region-modal__close { position: absolute; top: 16px; inset-inline-end: 16px; font-size: 20px; padding: 8px; }
.region-modal h3 { font-size: 22px; margin-bottom: 22px; }
.region-modal__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.region-modal h4 { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.region-modal__cols a { display: block; padding: 5px 0; font-size: 15px; }
.region-modal__cols a:hover { color: var(--accent); }

.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translate(50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--pill); font-size: 14px; font-weight: 600; opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s; z-index: 500; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(50%, 0); transition-delay: 0s; }
.to-top { position: fixed; bottom: 24px; inset-inline-end: 24px; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s; z-index: 90; box-shadow: var(--shadow-sm); }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > :nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.in > :nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > :nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.in > :nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.in > :nth-child(6) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; } .hero__bg img, .hero__product img { animation: none; transition: none; } }

/* ==========================================================================
   COLLECTION (eufy: /collections/robot-vacuums)
   ========================================================================== */
.collection-hero { background: var(--bg-2); padding-block: clamp(32px, 5vw, 64px); }
.collection-hero h1 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 900; }
.collection-hero p { color: var(--ink-2); font-size: clamp(15px, 1.3vw, 18px); margin-top: 10px; max-width: 70ch; }
.series-tabs { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.series-tabs a { padding: 9px 20px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.series-tabs a.is-active, .series-tabs a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.collection { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.filters__head a { font-size: 13px; color: var(--accent); }
.filters details { border-bottom: 1px solid var(--line); }
.filters summary { list-style: none; display: flex; justify-content: space-between; padding: 14px 0; font-weight: 700; cursor: pointer; font-size: 15px; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; color: var(--ink-3); }
.filters details[open] summary::after { content: "–"; }
.filters__opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.filters__opt:last-of-type { padding-bottom: 14px; }
.filters__opt i { width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; flex: none; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.filters__opt.is-on { color: var(--ink); font-weight: 600; }
.filters__opt.is-on i { background: var(--ink); border-color: var(--ink); }
.filters__opt.is-on i::after { content: "✓"; color: #fff; font-size: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--ink-2); font-size: 14px; gap: 12px; flex-wrap: wrap; }
.toolbar select { border: 1.5px solid var(--line-2); border-radius: var(--pill); padding: 8px 14px; background: #fff; font-size: 14px; }

/* ==========================================================================
   PRODUCT PAGE (eufy PDP)
   ========================================================================== */
.pdp { padding-block: 20px 48px; }
.pdp__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery__thumbs button { width: 76px; height: 76px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-2); padding: 6px; transition: border-color 0.2s; }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main { position: relative; background: var(--bg-2); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 32px; overflow: hidden; }
.gallery__main .badge { position: absolute; top: 16px; inset-inline-start: 16px; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s; }
.buybox__series { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.buybox h1 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; margin-top: 4px; }
.buybox__tagline { color: var(--ink-2); margin-top: 6px; font-size: 16px; }
.buybox__rating { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.buybox__rating a { font-size: 13px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.buybox__price { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.buybox__rate { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.choice { margin-top: 22px; }
.choice h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.choice__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice__opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.choice__opt:hover { border-color: var(--ink); }
.choice__opt.is-active { border-color: var(--ink); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--ink); }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.choice__opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice__opt strong { font-size: 14px; }
.choice__opt small { font-size: 12px; color: var(--ink-2); }
.choice__opt em { font-style: normal; font-size: 13px; font-weight: 700; }
.buybox__qty { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.buybox__qty label { font-weight: 600; font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--pill); overflow: hidden; }
.qty button { width: 40px; height: 40px; font-size: 20px; display: grid; place-items: center; }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 48px; height: 40px; text-align: center; border: 0; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty span { width: 40px; text-align: center; font-weight: 600; }
.qty--sm button, .qty--sm span { width: 34px; height: 34px; font-size: 16px; line-height: 34px; }
.buybox__stock { font-size: 13px; font-weight: 600; }
.buybox__stock.in { color: var(--ok); }
.buybox__stock.out { color: var(--sale); }
.buybox__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.buybox__perks { margin-top: 20px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); }
.buybox__perks li { display: flex; align-items: center; gap: 10px; }
.buybox__perks svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.buybox__features { margin-top: 24px; }
.buybox__features h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.buybox__features li { position: relative; padding-inline-start: 18px; font-size: 14px; color: var(--ink-2); padding-block: 3px; }
.buybox__features li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }

.buybar { position: sticky; top: var(--header-h); z-index: 80; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.buybar__inner { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.buybar__name { font-weight: 800; font-size: 16px; white-space: nowrap; }
.buybar__links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.buybar__links a:hover { color: var(--ink); }
.buybar__cta { display: flex; align-items: center; gap: 14px; }
.buybar__price { font-weight: 700; font-size: 15px; white-space: nowrap; }

.ksp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ksp__item { text-align: center; padding: 24px 14px; border-radius: var(--radius); background: var(--bg-2); }
.ksp__item strong { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; line-height: 1.1; }
.ksp__item span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; }
.split p { margin-top: 16px; color: var(--ink-2); max-width: 48ch; font-size: 17px; }
.section--dark .split p { color: rgba(255, 255, 255, 0.72); }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.section--dark .split__media { background: var(--dark-2); }

.app-cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--dark); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.app-cta h2 { font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; }
.app-cta p { color: rgba(255, 255, 255, 0.72); margin-top: 12px; font-size: 17px; }
.app-cta__stores { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.app-cta__phone { aspect-ratio: 9 / 16; max-width: 260px; margin-inline: auto; border-radius: 36px; background: #1b1b1f; border: 6px solid #333; box-shadow: var(--shadow); overflow: hidden; }
.app-cta__phone img { width: 100%; height: 100%; object-fit: cover; }

.dims { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dim { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 28px; }
.dim > img { width: 100%; max-width: 360px; margin-inline: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.dim h3 { font-size: 20px; font-weight: 800; margin-block: 12px 8px; }
.dim p { color: var(--ink-2); font-size: 15px; }
.box-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 15px; color: var(--ink-2); }
.box-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.table-wrap--plain { border: 0; border-radius: 0; }
.spec { width: 100%; min-width: 640px; font-size: 14px; }
.spec th, .spec td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { background: #fff; font-size: 16px; font-weight: 800; }
.spec thead th img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 6px; }
.spec thead th small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12px; }
.spec tbody th { font-weight: 600; color: var(--ink-2); background: var(--bg-2); width: 190px; position: sticky; inset-inline-start: 0; }
.spec tbody tr:last-child td, .spec tbody tr:last-child th { border-bottom: 0; }
.spec .is-this { background: var(--accent-soft); }
.spec .is-best { color: var(--accent-strong); font-weight: 700; }
.spec--single { min-width: 0; }
.spec--single th { width: 40%; }
.spec--sticky-head thead th { position: sticky; top: var(--header-h); z-index: 1; }

.kol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kol { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.kol__body { padding: 22px 24px 24px; }
.kol__body blockquote { font-size: 15px; line-height: 1.8; margin-top: 8px; }
.kol__body cite { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-style: normal; font-size: 13px; color: var(--ink-2); }
.kol__body cite i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #7fb3ff); flex: none; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 700; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 11px; height: 11px; border-inline-end: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); flex: none; transition: transform 0.3s var(--ease); margin-bottom: 6px; }
.accordion details[open] summary::after { transform: rotate(-135deg); margin-bottom: -6px; }
.accordion .acc__body { padding: 0 0 22px; color: var(--ink-2); max-width: 75ch; font-size: 15px; }

/* ==========================================================================
   COMPARE / QUIZ
   ========================================================================== */
.quiz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quiz__q { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quiz__q h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.quiz__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__opts button { padding: 8px 16px; border-radius: var(--pill); border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.quiz__opts button.is-active, .quiz__opts button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.quiz__result { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--accent-soft); }
.quiz__pick { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.quiz__pick img { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); }
.quiz__pick h3 { font-size: 24px; font-weight: 800; }
.quiz__pick p { color: var(--ink-2); }
.quiz__pick strong { display: block; margin-top: 6px; }

/* ==========================================================================
   CART / CHECKOUT / ORDER
   ========================================================================== */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line__img { background: var(--bg-2); border-radius: var(--radius-sm); aspect-ratio: 1; display: grid; place-items: center; padding: 10px; }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-line__body h3 { font-size: 17px; }
.cart-line__body p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.cart-line__ctrl { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.cart-line__total { text-align: end; font-size: 17px; white-space: nowrap; }
.cart-line__total small { font-size: 12px; color: var(--ink-2); }
.cart-line__total del { display: block; color: var(--ink-3); font-size: 13px; font-weight: 400; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.summary h2 { font-size: 18px; margin-bottom: 14px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; color: var(--ink-2); }
.summary__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px !important; font-weight: 800; color: var(--ink) !important; font-size: 17px !important; }
.summary .btn { margin-top: 12px; }
.summary__note { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.summary__perks { margin-top: 14px; font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.summary__perks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.summary__lines { display: grid; gap: 10px; margin-bottom: 12px; }
.summary__lines li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.summary__lines img { width: 44px; height: 44px; object-fit: contain; background: var(--bg-2); border-radius: 8px; flex: none; }
.summary__lines span { flex: 1; display: flex; flex-direction: column; }
.summary__lines small { color: var(--ink-3); font-size: 12px; }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 24px; margin: 0 0 20px; }
legend { font-weight: 800; padding: 0 8px; font-size: 17px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12px; color: var(--ink-3); }
.field input, .field select, .field textarea { min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; outline: none; transition: border-color 0.2s; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field--full { grid-column: 1 / -1; }
.form-stack { max-width: 480px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid__foot { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--bg-2); }
.pay-opt input { accent-color: var(--ink); width: 18px; height: 18px; }
.pay-opt span { display: flex; flex-direction: column; }
.pay-opt small { color: var(--ink-2); font-size: 12px; }
.order-head { text-align: center; margin-bottom: 28px; }
.order-head h1 { margin-bottom: 6px; }
.status { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--bg-3); }
.status--pending { background: #fff4e5; color: #b25e00; }
.status--paid, .status--delivered { background: #e7f6ef; color: var(--ok); }
.status--processing, .status--shipped { background: var(--accent-soft); color: var(--accent-strong); }
.status--cancelled { background: #fdecec; color: var(--sale); }
.paybox { border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.paybox h2 { font-size: 20px; margin-bottom: 8px; }
.paybox__card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; background: #fff; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 22px; font-weight: 800; letter-spacing: 0.06em; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 8px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; margin-bottom: 20px; }
.card h2 { font-size: 18px; margin-bottom: 14px; }
.card dl > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--ink-2); }

/* ==========================================================================
   SUPPORT / ABOUT
   ========================================================================== */
.support-hero { background: var(--dark); color: #fff; padding-block: clamp(56px, 8vw, 104px); text-align: center; }
.support-hero h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 900; }
.support-hero p { color: rgba(255, 255, 255, 0.7); margin-top: 10px; }
.support-search { display: flex; margin: 28px auto 0; max-width: 640px; background: #fff; border-radius: var(--pill); padding: 6px 6px 6px 22px; color: var(--ink); gap: 8px; }
.support-search input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; min-width: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { padding: 28px; border-radius: var(--radius); border: 1.5px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease); }
.cat:hover { border-color: var(--ink); transform: translateY(-4px); }
.cat svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.cat h3 { font-size: 18px; font-weight: 800; }
.cat p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.manuals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.manual { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.manual img { width: 56px; height: 56px; object-fit: contain; background: var(--bg-2); border-radius: 10px; }
.manual strong { display: block; font-size: 15px; }
.manual span { font-size: 12px; color: var(--ink-3); }
.manual a { margin-inline-start: auto; font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section--gray .value { border: 0; }
.value h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.value p { color: var(--ink-2); font-size: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact { padding: 28px; border-radius: var(--radius); background: var(--bg-2); text-align: center; }
.contact strong { display: block; font-size: 20px; margin-bottom: 4px; }
.contact span { color: var(--ink-2); font-size: 14px; display: block; }
.contact .btn { margin-top: 18px; }
.story { background: var(--dark); color: #fff; }
.story__hero { min-height: 60svh; display: grid; place-items: center; text-align: center; padding-block: 88px; position: relative; overflow: hidden; }
.story__hero::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(55% 45% at 50% 60%, rgba(11, 108, 245, 0.35), transparent 70%); }
.story__hero > * { position: relative; max-width: 780px; }
.story__hero .lead { margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: var(--bg-2); }
.stat strong { display: block; font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 14px; }

/* ==========================================================================
   ADMIN
   ========================================================================== */
body.is-admin { background: var(--bg-2); }
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin__side { background: #fff; border-inline-end: 1px solid var(--line); padding: 24px 20px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; }
.admin__nav { display: flex; flex-direction: column; gap: 2px; }
.admin__nav a { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.admin__nav a:hover { background: var(--bg-2); color: var(--ink); }
.admin__nav a.is-active { background: var(--ink); color: #fff; }
.admin__logout { margin-top: auto; }
.admin__main { padding: 32px clamp(16px, 3vw, 40px); min-width: 0; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stats--admin { margin-bottom: 20px; }
.stats--admin .stat { background: #fff; border: 1px solid var(--line); }
.stats--admin .stat strong { font-size: clamp(20px, 2vw, 28px); }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--bg-2); padding: 24px; }
.login__box { background: #fff; border-radius: var(--radius); padding: 40px; width: min(100%, 420px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.login__box h1 { font-size: 22px; }
.table { width: 100%; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.table tfoot th, .table tfoot td { border-bottom: 0; font-weight: 700; }
.table .thumb { width: 44px; height: 44px; object-fit: contain; background: var(--bg-2); border-radius: 8px; float: inline-start; margin-inline-end: 10px; }
.table td small { display: block; font-size: 12px; }
.table--edit input:not([type="checkbox"]) { width: 120px; min-height: 38px; padding: 6px 10px; border: 1.5px solid var(--line-2); border-radius: 8px; }
.table--edit input.w-sm { width: 80px; }
.table--edit input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); }
.table .is-sub td { background: #fafafa; font-size: 13px; color: var(--ink-2); }
.table .is-off td { opacity: 0.5; }
.table .num { font-weight: 700; white-space: nowrap; }
.table .up { color: var(--sale); font-weight: 700; }
.table .down { color: var(--ok); font-weight: 700; }
.rate-form__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.rate-form__grid .check { grid-column: 1 / -1; }
.rate-form__live { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 14px; margin-top: 4px; }
.rate-form__live strong { font-size: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chips a { padding: 7px 14px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; }
.chips a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; background: var(--bg-3); padding: 2px 6px; border-radius: 4px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .mega__products { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__col--contact { grid-column: span 3; }
  .blog-grid, .video-grid, .perks--4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .ksp, .stats, .region-modal__cols { grid-template-columns: repeat(2, 1fr); }
  .tech-cards { height: auto; flex-direction: column; }
  .tech-card { min-height: 120px; }
  .tech-card.is-active { min-height: 360px; }
  .tech-card:not(.is-active) .tech-card__body h3 { writing-mode: horizontal-tb; transform: none; }
  .rate-form__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .nav { display: none; }
  .header__burger { display: flex; }
  .logo { justify-self: center; }
  .hero { height: auto; min-height: 0; }
  .hero__slide { position: relative; grid-template-columns: 1fr; display: none; }
  .hero__slide.is-active { display: grid; }
  .hero__product { position: relative; width: 100%; inset: auto; order: -1; padding: 32px var(--gutter) 0; }
  .hero__product img { max-height: 320px; }
  .hero__content { padding-block: 16px 80px; }
  .hero__content > * { max-width: none; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo--wide { grid-column: auto; grid-template-columns: 1fr; }
  .series-grid, .kol-grid, .quiz, .cat-grid, .contact-grid, .manuals, .values, .perks { grid-template-columns: 1fr; }
  .product-grid, .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .newsletter__inner, .app-cta, .dims, .cart, .checkout, .order-grid, .admin-grid, .cta-band { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .collection { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pdp__grid { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .buybar__links { display: none; }
  .summary { position: static; }
  .footer__perks { grid-template-columns: repeat(2, 1fr); }
  .admin { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin__nav { flex-direction: row; flex-wrap: wrap; }
  .admin__logout { margin: 0; }
  .form-grid, .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --fs-body: 15px; }
  .product-grid, .product-grid--4, .blog-grid, .video-grid, .perks--4, .ksp, .stats, .box-list, .choice__grid, .region-modal__cols, .footer__perks { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--contact { grid-column: span 2; }
  .newsletter__form { grid-template-columns: 1fr; }
  .search__cols { grid-template-columns: 1fr; }
  .hero__dot { width: 60px; }
  .hero__dot span { display: none; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 auto; }
  .capsule-tabs { width: 100%; overflow-x: auto; }
  .capsule-tabs button { flex: 1; padding-inline: 10px; }
  .post--featured { grid-column: auto; grid-row: auto; }
  .post--featured h3 { font-size: 20px; }
  .cart-line { grid-template-columns: 90px 1fr; }
  .cart-line__total { grid-column: 2; text-align: start; }
  .buybox__cta { grid-template-columns: 1fr; }
  .video { aspect-ratio: 4 / 5; }
  .rate-form__grid { grid-template-columns: 1fr; }
  .to-top { bottom: 84px; }
}

/* Add to cart — Amazon's yellow, so the primary purchase action reads the same way shoppers already know. */
.btn--cart { background: #ffd814; color: #0f1111; border-color: #fcd200; box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.5); }
.btn--cart:hover { background: #f7ca00; border-color: #f2c200; color: #0f1111; }
.btn--cart:focus-visible { outline: 2px solid #008296; outline-offset: 2px; }
