/* سایت چای — main stylesheet (mobile-first, RTL, accessible for all ages) */
/* Estedad (OFL), one variable file for every weight; self-hosted because CDNs are unreliable in Iran. */
@font-face { font-family: "Estedad"; src: url("../fonts/Estedad-VF.805b57e6e9b3.woff2") format("woff2-variations"), url("../fonts/Estedad-VF.805b57e6e9b3.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #FBF7F0;
  --surface: #FFFFFF;
  --surface-2: #F4EDE1;
  --ink: #1E1A16;
  --ink-2: #4A4038;
  --line: #E4D8C6;
  --brand: #1F5A43;
  --brand-dark: #154232;
  --brand-soft: #E2EFE7;
  --accent: #B4531F;
  --accent-dark: #93421A;
  --accent-soft: #FBE9DD;
  --gold: #D9A441;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --success: #1E7B46;
  --success-soft: #E4F3E9;
  --warn: #7A5200;
  --warn-soft: #FFF3D1;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(30, 26, 22, .05), 0 6px 20px rgba(30, 26, 22, .07);
  --shadow-lg: 0 10px 40px rgba(30, 26, 22, .16);
  --tap: 48px;
  --bottom-nav: 68px;
  --font: "Estedad", Tahoma, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Text size (A / A+ / A++) is stored per visitor in localStorage */
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.8; text-rendering: optimizeLegibility; padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .5em; font-weight: 800; color: var(--ink); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* ss20: Estedad draws 0-9 as Persian digits (۰-۹), so numbers typed or stored in Latin digits still read Persian. */
body, button, input, select, textarea { font-feature-settings: "ss20" 1; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.icon { flex: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 820px; }
.narrow-left { max-width: 860px; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.lead { font-size: 1.0625rem; color: var(--ink-2); }
.text-danger { color: var(--danger); }
.span-2 { grid-column: 1 / -1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--tap); padding: .55rem 1.3rem; border-radius: 14px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.4; text-decoration: none; text-align: center; transition: background .15s, color .15s, border-color .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-accent-outline { background: var(--surface); color: var(--accent-dark); border-color: var(--accent); }
.btn-accent-outline:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost.is-active { color: var(--danger); border-color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { min-height: 52px; font-size: 1.0625rem; padding-inline: 1.5rem; }
.btn-sm { min-height: 40px; padding: .3rem .9rem; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-more { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-danger { background: none; border: 0; color: var(--danger); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .4rem; }

/* ---------- topbar & header ---------- */
.topbar { background: var(--brand-dark); color: #fff; font-size: .9rem; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.topbar-call { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar-call:hover { color: #fff; text-decoration: underline; }
.text-size { display: flex; align-items: center; gap: 4px; }
.text-size-label { display: none; }
.text-size button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 800; line-height: 1; display: grid; place-items: center; }
.text-size button:nth-of-type(1) { font-size: 15px; }
.text-size button:nth-of-type(2) { font-size: 19px; }
.text-size button:nth-of-type(3) { font-size: 23px; }
.text-size button[aria-pressed="true"] { background: #fff; color: var(--brand-dark); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo actions" "search search"; gap: 10px 12px; align-items: center; padding-block: 10px 12px; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.logo-text b { font-size: 1.25rem; font-weight: 800; color: var(--brand-dark); }
.logo-text small { font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { grid-area: actions; display: flex; gap: 6px; }
.hdr-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; min-height: 56px; padding: 4px 8px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 700; }
.hdr-btn:hover { background: var(--surface-2); color: var(--brand-dark); }
.badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800; line-height: 1; }
.hdr-btn .badge { position: absolute; top: 0; inset-inline-start: 4px; }

.search { grid-area: search; position: relative; display: flex; }
.search input { width: 100%; min-height: 54px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg); padding: 0 1rem 0 3.6rem; font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.search input::placeholder { color: #6F655B; }
.search > button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.search-inline { max-width: 640px; margin-block: 1rem 1.5rem; }
.suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--surface-2); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.is-active { background: var(--brand-soft); }
.suggest img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.suggest span { display: flex; flex-direction: column; line-height: 1.5; }
.suggest small { color: var(--ink-2); }
.suggest .suggest-all { justify-content: center; font-weight: 700; color: var(--brand); }

.main-nav { border-top: 1px solid var(--surface-2); }
.main-nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.main-nav a i { width: 10px; height: 10px; border-radius: 50%; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.main-nav .nav-guides { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- bottom navigation (mobile) ---------- */
.bottom-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(30,26,22,.08); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--bottom-nav); color: var(--ink-2); text-decoration: none; font-size: .75rem; font-weight: 700; }
.bottom-nav a[aria-current="page"] { color: var(--brand); }
.bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 36px; height: 4px; border-radius: 0 0 4px 4px; background: var(--brand); }
.bottom-nav .badge { position: absolute; top: 6px; inset-inline-end: calc(50% - 26px); min-width: 22px; height: 22px; font-size: .72rem; }

/* ---------- messages / alerts / toast ---------- */
.messages { padding-top: 12px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; margin-bottom: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; border: 1px solid rgba(0,0,0,.04); }
.alert p { margin: 0; flex: 1; }
.alert .icon { margin-top: 3px; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warning { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: #E8F1FB; color: #1D4F86; }
.alert-close { background: none; border: 0; color: inherit; width: 40px; height: 40px; margin: -8px -8px -8px 0; display: grid; place-items: center; border-radius: 10px; }
.toast { position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(var(--bottom-nav) + 12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 16px; box-shadow: var(--shadow-lg); animation: toast-in .25s ease-out; }
.toast-text { margin: 0; flex: 1; font-weight: 700; font-size: .95rem; line-height: 1.6; }
.toast-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--success); display: grid; place-items: center; flex: none; }
.toast.is-error .toast-icon { background: var(--danger); }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } }

/* ---------- breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; padding-block: 12px 0; font-size: .88rem; color: var(--ink-2); }
.breadcrumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: 6px; color: #8B7F72; }
.breadcrumbs a { color: var(--ink-2); }

/* ---------- sections & typography ---------- */
.page { padding-block: 16px 40px; }
.page-title { font-size: 1.5rem; margin-top: .4rem; }
.section { padding-block: 28px; }
.section-tint { background: var(--surface-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); width: 100%; }
.section-lead { color: var(--ink-2); margin-top: -6px; }
.eyebrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent-dark); font-weight: 700; font-size: .92rem; text-decoration: none; margin-bottom: .3rem; }
.prose { font-size: 1.0625rem; line-height: 1.9; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.125rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin-bottom: 1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1em 0; padding: .8em 1.2em; border-inline-start: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.prose img { border-radius: 14px; margin-block: 1em; }
.prose table { margin-block: 1em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5em .8em; }
.seo-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2 { font-size: 1.15rem; }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .8rem; font-weight: 700; line-height: 1.7; }
.tag-green { background: var(--success-soft); color: var(--success); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(120% 120% at 100% 0%, #2B7A5A 0%, var(--brand) 45%, #123A2B 100%); color: #fff; overflow: hidden; }
.hero-grid { display: grid; gap: 8px; padding-block: 28px 18px; align-items: center; }
.hero h1 { color: #fff; font-size: 1.625rem; line-height: 1.5; margin-bottom: .5rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.14); padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; margin-bottom: .8rem; }
.hero-sub { font-size: 1.04rem; color: #E7F2EC; max-width: 34em; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: 1.1rem .8rem; }
.hero-call { color: #fff; display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; text-decoration: none; }
.hero-call:hover { color: #fff; text-decoration: underline; }
.hero-art { justify-self: center; width: min(58vw, 230px); margin-top: -10px; }
.hero-art .steam path { stroke-dasharray: 70; animation: steam 3.2s ease-in-out infinite; }
.hero-art .steam path:nth-child(2) { animation-delay: .6s; }
.hero-art .steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0% { stroke-dashoffset: 70; opacity: 0; } 40% { opacity: .9; } 100% { stroke-dashoffset: -70; opacity: 0; } }

.trust { margin-top: -18px; position: relative; z-index: 2; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-lg); }
.trust-list li { display: flex; align-items: center; gap: 10px; color: var(--brand); }
.trust-list div { display: flex; flex-direction: column; line-height: 1.5; color: var(--ink); }
.trust-list b { font-size: .95rem; }
.trust-list span { font-size: .8rem; color: var(--ink-2); }

.finder { display: grid; gap: 10px; }
.finder-item { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "dot title arrow" "dot text arrow"; align-items: center; column-gap: 14px; padding: 16px 18px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--line); transition: border-color .15s, transform .15s; }
.finder-item:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.finder-item b { grid-area: title; font-size: 1.1rem; }
.finder-item > span:not(.finder-dot) { grid-area: text; color: var(--ink-2); font-size: .92rem; }
.finder-item .icon { grid-area: arrow; color: var(--brand); }
.finder-dot { grid-area: dot; width: 46px; height: 46px; border-radius: 50%; }
.finder-strong .finder-dot { background: radial-gradient(circle at 35% 35%, #E07B3A, #7A2310); }
.finder-light .finder-dot { background: radial-gradient(circle at 35% 35%, #CFE59A, #6E9A3A); }
.finder-herbal .finder-dot { background: radial-gradient(circle at 35% 35%, #F3D27A, #B98516); }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-card { --c: var(--brand); position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 130px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; }
.cat-card::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0; width: 6px; background: var(--c); }
.cat-card:hover { border-color: var(--c); color: var(--ink); }
.cat-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.cat-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; }
.cat-card b { font-size: 1.02rem; margin-top: 6px; }
.cat-card > span:not(.cat-icon) { font-size: .82rem; color: var(--ink-2); line-height: 1.6; }

.steps-simple { display: grid; gap: 10px; counter-reset: s; }
.steps-simple li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.steps-simple b { font-size: 1.05rem; }
.steps-simple p { grid-column: 2; margin: 0; color: var(--ink-2); font-size: .94rem; }
.step-num { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }

.review-grid { display: grid; gap: 12px; }
.review-card { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.review-card blockquote { margin: .6rem 0; font-size: .98rem; }
.review-card figcaption { font-size: .88rem; color: var(--ink-2); }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star-on { color: var(--gold); }
.star-off { color: #D9CFC2; }

.faq-list { display: grid; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; min-height: var(--tap); font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--brand); }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 18px 14px; color: var(--ink-2); }
.faq-answer p:last-child { margin: 0; }
.cta-box { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--brand-soft); padding: 18px; border-radius: var(--radius); }
.cta-box p { margin: 0; font-weight: 800; width: 100%; }

/* ---------- product cards & grids ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pc-media { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.pc-off { background: var(--accent); color: #fff; }
.pc-out { background: var(--ink); color: #fff; inset-inline-start: auto; inset-inline-end: 10px; }
.pc-body { display: flex; flex-direction: column; gap: 2px; padding: 12px; flex: 1; }
.pc-meta { margin: 0; font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-title { font-size: .98rem; line-height: 1.6; margin: 0; min-height: 3.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title a { color: var(--ink); text-decoration: none; }
.pc-title a:hover { color: var(--brand); }
.pc-rating { margin: 0; display: flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--ink-2); }
.pc-price { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pc-price strong { font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.pc-price small { font-size: .78rem; color: var(--ink-2); }
.pc-price del { font-size: .82rem; color: #7A6E62; width: 100%; line-height: 1.2; }
.pc-pack { margin: 0 0 10px; font-size: .78rem; color: var(--ink-2); }
.pc-body form, .pc-body > .btn { margin-top: auto; }
.pc-body .btn { min-height: 48px; font-size: .94rem; padding-inline: .6rem; }

.guide-grid { display: grid; gap: 14px; }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gc-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.gc-media img { width: 100%; height: 100%; object-fit: cover; }
.gc-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.gc-play .icon { margin-inline-start: -4px; transform: scaleX(-1); }
.gc-duration { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(0,0,0,.72); color: #fff; padding: 0 8px; border-radius: 8px; font-size: .82rem; }
.gc-body { padding: 14px 16px 16px; }
.gc-kind { display: inline-flex; align-items: center; gap: .3rem; margin: 0; font-size: .82rem; font-weight: 700; color: var(--accent-dark); }
.gc-title { font-size: 1.05rem; margin: .2rem 0 .3rem; }
.gc-title a { color: var(--ink); text-decoration: none; }
.gc-title a:hover { color: var(--brand); }
.gc-summary { font-size: .92rem; color: var(--ink-2); margin-bottom: .5rem; }
.gc-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-facts li { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 2px 10px; font-size: .82rem; }

/* ---------- listing & filters ---------- */
.listing-head { margin-bottom: 8px; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 10px; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip-link { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.chip-link i { width: 10px; height: 10px; border-radius: 50%; }
.chip-link.is-active, .chip-link:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.filters { margin-bottom: 10px; }
.filters > summary { list-style: none; width: 100%; }
.filters > summary::-webkit-details-marker { display: none; }
.filters-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 10px; display: grid; gap: 14px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-weight: 800; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); font-weight: 700; font-size: .92rem; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; font-weight: 700; }
.check input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
.filters-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-count { color: var(--ink-2); font-size: .92rem; margin-bottom: 10px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.page-info { font-weight: 700; color: var(--ink-2); }
.empty-state { text-align: center; padding: 32px 16px; display: flex; flex-direction: column; align-items: center; }
.empty-state svg { color: var(--brand); margin-bottom: 8px; }
.empty-state p { color: var(--ink-2); max-width: 32em; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.small-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- product page ---------- */
.product-layout { display: grid; gap: 18px; padding-top: 12px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; background: none; flex: none; width: 72px; height: 72px; }
.gallery-thumbs button.is-active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: 1.375rem; margin-bottom: .3rem; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-size: .92rem; margin-bottom: .6rem; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fact-chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 700; color: var(--brand-dark); }
.buy-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.variant-picker { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.variant-picker legend { font-weight: 800; margin-bottom: 8px; }
.variant-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 10px 16px 10px 16px; padding-inline-start: 52px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--bg); }
.variant-option input { position: absolute; inset-inline-start: 16px; width: 24px; height: 24px; accent-color: var(--brand); margin: 0; }
.variant-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.variant-option.is-out { opacity: .55; cursor: not-allowed; }
.vo-title { font-weight: 800; }
.vo-price { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0 12px; }
.price-label { color: var(--ink-2); font-weight: 700; }
.price-box strong { font-size: 1.5rem; font-weight: 800; }
.price-box small { font-size: .9rem; color: var(--ink-2); }
.price-box del { color: #7A6E62; }
.qty-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; font-weight: 800; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.stepper button { width: 52px; height: 52px; border: 0; background: var(--surface-2); color: var(--brand-dark); display: grid; place-items: center; }
.stepper button:hover:not([disabled]) { background: var(--brand-soft); }
.stepper input, .stepper output { width: 56px; height: 52px; border: 0; text-align: center; font-weight: 800; font-size: 1.15rem; background: #fff; display: grid; place-items: center; }
.stepper-sm button { width: 46px; height: 46px; }
.stepper-sm output { width: 44px; height: 46px; }
.low-stock { color: var(--danger); font-size: .88rem; }
.buy-actions { display: grid; gap: 10px; }
.buy-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.buy-extra form, .buy-extra > .btn { flex: 1 1 auto; }
.buy-extra .btn { width: 100%; font-size: .92rem; }
.phone-order { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); color: var(--accent-dark); border-radius: var(--radius); padding: 14px 16px; margin-top: 14px; }
.phone-order p { margin: 0; color: var(--ink); font-size: .92rem; }
.phone-order a { font-weight: 800; font-size: 1.15rem; color: var(--accent-dark); }
.mini-trust { display: grid; gap: 6px; margin-top: 14px; font-size: .92rem; }
.mini-trust li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.mini-trust .icon { color: var(--brand); }
.brew-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.brew-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--accent); }
.brew-card span { color: var(--ink-2); font-size: .88rem; }
.brew-card b { color: var(--ink); font-size: 1.02rem; }
.brew-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.guide-grid-compact { margin-top: 6px; }
.product-details { display: grid; gap: 20px; }
.specs { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.specs th, .specs td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.specs th { width: 38%; background: var(--surface-2); font-weight: 700; color: var(--ink-2); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.review-list { display: grid; gap: 10px; margin-bottom: 16px; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.review-item p { margin: .4rem 0 0; }
.review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .92rem; }
.rating-input { border: 0; padding: 0; margin: 0 0 12px; }
.rating-input legend { font-weight: 800; margin-bottom: 8px; }
.rating-input .chip { display: inline-block; margin: 0 0 6px 4px; }
.sticky-buy { position: fixed; z-index: 45; inset-inline: 0; bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(30,26,22,.1); }
.sticky-price { flex: 1; display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.sticky-price span { font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-price strong { font-size: 1.05rem; }

/* ---------- guide page ---------- */
.guide-page { padding-block: 12px 10px; max-width: 900px; }
.guide-header .lead { margin-bottom: .4rem; }
.guide-meta { font-size: .88rem; }
.guide-media { border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 18px; }
.guide-media video, .guide-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.how-steps { display: grid; gap: 12px; }
.how-steps li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.how-steps .step-num { flex: none; }
.how-steps h3 { margin-bottom: .2rem; }
.how-steps p { margin: 0; color: var(--ink-2); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- cart & checkout ---------- */
.checkout-steps { display: flex; gap: 6px; margin-bottom: 18px; counter-reset: none; }
.checkout-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--ink-2); text-align: center; position: relative; }
.checkout-steps li span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line); font-weight: 800; position: relative; z-index: 1; }
.checkout-steps li:not(:last-child)::after { content: ""; position: absolute; top: 18px; inset-inline-start: calc(50% + 22px); width: calc(100% - 44px); height: 3px; background: var(--line); }
.checkout-steps .is-current { color: var(--brand-dark); }
.checkout-steps .is-current span { background: var(--brand); border-color: var(--brand); color: #fff; }
.checkout-steps .is-done span { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.cart-layout, .checkout-layout { display: grid; gap: 16px; align-items: start; }
.free-ship { display: flex; gap: 12px; align-items: flex-start; background: var(--brand-soft); color: var(--brand-dark); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.free-ship > div { flex: 1; }
.free-ship p { margin: 0 0 8px; color: var(--ink); }
.free-ship.is-done { background: var(--success-soft); }
.progress { height: 10px; border-radius: 999px; background: rgba(31,90,67,.18); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.cl-img img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }
.cl-title { font-size: 1rem; margin: 0; }
.cl-title a { color: var(--ink); text-decoration: none; }
.cl-pack { font-size: .85rem; color: var(--ink-2); margin: 0 0 6px; }
.cl-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cl-total { grid-column: 1 / -1; margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 800; font-size: 1.08rem; text-align: end; }
.summary { position: sticky; top: 16px; }
.summary-list { margin: 0 0 10px; }
.summary-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--surface-2); }
.summary-list dt { color: var(--ink-2); }
.summary-list dd { margin: 0; font-weight: 700; text-align: end; }
.summary-list .is-green dd, .summary-list .is-green dt { color: var(--success); }
.summary-total { border-bottom: 0 !important; font-size: 1.12rem; }
.summary-total dt, .summary-total dd { color: var(--ink) !important; font-weight: 800; }
.summary .btn-block + .btn-block { margin-top: 12px; }
/* Cart summary: one clear main action, a quieter secondary one, with room between them. */
.summary-actions { display: grid; gap: 14px; margin-top: 18px; }
.summary-actions .cart-lead .btn { margin-top: 4px; }
.btn-text { background: transparent; border-color: transparent; color: var(--brand-dark); box-shadow: none; }
.btn-text:hover { background: var(--surface-2); color: var(--brand-dark); }
.coupon { margin-bottom: 14px; }
.coupon summary { cursor: pointer; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.coupon-form { display: flex; gap: 8px; margin-top: 8px; }
.coupon-form .input { flex: 1; min-width: 0; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--success-soft); color: var(--success); padding: 8px 12px; border-radius: 12px; margin-bottom: 14px; font-weight: 700; }
.checkout-section h2 { display: flex; align-items: center; gap: 10px; }
.sec-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1rem; flex: none; }
.saved-addresses { display: grid; gap: 8px; margin-bottom: 14px; }
.saved-addresses p { margin: 0; }
.saved-address { display: flex; align-items: flex-start; gap: 10px; text-align: start; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); }
.saved-address span { display: flex; flex-direction: column; line-height: 1.6; }
.saved-address small { color: var(--ink-2); }
.saved-address.is-active { border-color: var(--brand); background: var(--brand-soft); }
.option-list { display: grid; gap: 10px; margin-bottom: 10px; }
.option-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; min-height: 64px; }
.option-card input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; margin: 0; }
.option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.oc-icon { color: var(--brand); display: grid; }
.oc-body { flex: 1; display: flex; flex-direction: column; line-height: 1.6; }
.oc-body small { color: var(--ink-2); }
.oc-price { font-weight: 800; white-space: nowrap; }
.option-list.has-error .option-card { border-color: var(--danger); }
.mini-lines { display: grid; gap: 8px; margin-bottom: 12px; }
.mini-lines li { display: flex; align-items: center; gap: 10px; }
.mini-lines img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.mini-lines span { flex: 1; display: flex; flex-direction: column; line-height: 1.5; font-size: .92rem; }
.mini-lines small { color: var(--ink-2); }
.mini-lines b { white-space: nowrap; font-size: .92rem; }
.done-page { text-align: center; }
.done-page .checkout-steps { text-align: center; }
.done-icon { width: 104px; height: 104px; border-radius: 50%; margin: 10px auto 14px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.done-icon.is-warn { background: var(--warn-soft); color: var(--warn); }
.order-number { display: flex; flex-direction: column; align-items: center; margin-block: 18px; }
.order-number b { font-size: 2rem; letter-spacing: 2px; color: var(--brand-dark); }
.order-number small { color: var(--ink-2); }
.done-page .summary-list { text-align: start; }
.mock-gateway { text-align: center; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.req { color: var(--danger); }
.input { width: 100%; min-height: var(--tap); padding: .55rem 1rem; border: 2px solid #CDBFAA; border-radius: 14px; background: #fff; font-size: 1rem; line-height: 1.6; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5A43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 20px; padding-inline-end: 2.8rem; }
.has-error .input { border-color: var(--danger); background: #FFFBFA; }
.help { font-size: .86rem; color: var(--ink-2); margin: 6px 0 0; }
.error { display: flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 700; font-size: .92rem; margin: 6px 0 0; }
.form-grid { display: grid; gap: 0 14px; }
.field-check { margin-bottom: 10px; }
.otp-input { font-size: 1.5rem !important; letter-spacing: 10px; text-align: center; font-weight: 800; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
ul[id$="related_products"], div[id$="related_products"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
div[id$="related_products"] label { display: flex; align-items: center; gap: 6px; font-weight: 400; }

/* ---------- auth & account ---------- */
.auth-page { padding-block: 24px 40px; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 480px; padding: 24px 20px; text-align: center; }
.auth-card .field { text-align: start; }
.auth-card h1 { font-size: 1.5rem; }
.auth-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.auth-help { margin: 14px 0 0; font-size: .92rem; color: var(--ink-2); }
.auth-alt { margin: 10px 0 0; font-size: .88rem; }
.auth-secondary { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.account { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.account > * { min-width: 0; }  /* let the scrolling menu scroll instead of widening the page */
.account-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.account-hello { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 4px 6px 10px; }
.account-nav nav { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.account-nav nav a { flex: none; white-space: nowrap; }
.account-nav nav a { display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; background: var(--bg); font-size: .92rem; }
.account-nav nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.account-nav .nav-panel { background: var(--accent-soft); color: var(--accent-dark); }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 128px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.tile .icon { color: var(--brand); }
.tile b { font-size: 1.02rem; }
.tile span { font-size: .85rem; color: var(--ink-2); }
.tile:hover { border-color: var(--brand); color: var(--ink); }
.panel-banner { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; }
.panel-banner span { flex: 1; display: flex; flex-direction: column; line-height: 1.6; }
.panel-banner small { color: #D9CFC2; }
.panel-banner:hover { color: #fff; background: #000; }
.order-list { display: grid; gap: 8px; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.order-row:hover { border-color: var(--brand); color: var(--ink); }
.or-main { flex: 1; display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.or-main small { color: var(--ink-2); font-size: .84rem; }
.status { display: inline-flex; padding: 2px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-processing { background: #E8F1FB; color: #1D4F86; }
.status-shipped { background: var(--accent-soft); color: var(--accent-dark); }
.status-delivered { background: var(--success-soft); color: var(--success); }
.status-canceled { background: var(--danger-soft); color: var(--danger); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order-head .page-title { margin-bottom: 0; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 14px; }
.timeline { display: flex; margin: 16px 0 20px; }
.timeline li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--ink-2); position: relative; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); background: #fff; display: grid; place-items: center; position: relative; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 15px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); }
.timeline .is-done .tl-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline .is-done:not(:last-child)::after { background: var(--success); }
.timeline .is-current { color: var(--brand-dark); }
.timeline .is-current .tl-dot { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.address-list { display: grid; gap: 10px; }
.address-card h2 { font-size: 1.05rem; }
.address-card p { margin-bottom: .3rem; }

/* ---------- call band & footer ---------- */
.call-band { background: var(--accent); color: #fff; margin-top: 24px; }
.call-band-row { display: flex; flex-direction: column; gap: 12px; padding-block: 22px; }
.call-band p { margin: 0; }
.call-band-title { font-size: 1.2rem; font-weight: 800; }
.site-footer { background: #17140F; color: #E8DFD3; padding-top: 32px; }
.footer-grid { display: grid; gap: 24px; }
.site-footer a { color: #F1E9DE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; min-height: 40px; align-items: center; }
.footer-about p { color: #CFC4B5; font-size: .94rem; margin-top: 12px; }
.logo-light .logo-text b { color: #fff; }
.logo-light .logo-text small { color: #CFC4B5; white-space: normal; }
.footer-contact li { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.contact-info .footer-contact { margin-top: 12px; }
.social { display: flex; gap: 8px; margin-top: 10px; }
.social a { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.trust-badge { margin-top: 14px; }
.trust-badge img { background: #fff; border-radius: 10px; padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-block: 16px; font-size: .86rem; color: #B7AB9B; }
.footer-bottom p { margin: 0; }
.contact-grid { display: grid; gap: 16px; align-items: start; }

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .toast { inset-inline: auto 24px; max-width: 460px; }
  .text-size-label { display: inline; margin-inline-end: 4px; }
  .call-band-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 760px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-list { grid-template-columns: repeat(4, 1fr); padding: 18px 22px; }
  .finder { grid-template-columns: repeat(3, 1fr); }
  .finder-item { grid-template-columns: 1fr; grid-template-areas: "dot" "title" "text"; row-gap: 6px; padding: 22px; }
  .finder-item .icon { display: none; }
  .steps-simple { grid-template-columns: repeat(3, 1fr); }
  .steps-simple li { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 6px; padding: 22px; }
  .steps-simple p { grid-column: 1; }
  .step-num { grid-row: auto; }
  .cart-line { grid-template-columns: 96px 1fr auto; align-items: center; }
  .cl-total { grid-column: auto; border-top: 0; padding: 0; }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bottom-nav, .sticky-buy { display: none !important; }
  .toast { bottom: 24px; }
  h1 { font-size: 1.75rem; }
  .page-title { font-size: 1.75rem; }
  .site-header { position: sticky; top: 0; z-index: 40; }
  .header-row { grid-template-columns: auto 1fr auto; grid-template-areas: "logo search actions"; gap: 24px; padding-block: 12px; }
  .search { max-width: 640px; }
  .main-nav a { padding: 0 .85rem; font-size: .88rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; padding-block: 48px 40px; }
  .hero h1 { font-size: 2.125rem; }
  .hero-art { width: 380px; }
  .trust { margin-top: -30px; }
  .section { padding-block: 40px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .product-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
  .brew-cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .brew-card:last-child:nth-child(odd) { grid-column: auto; }
  .guide-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1.05fr 1fr; gap: 36px; padding-top: 20px; }
  .gallery { position: sticky; top: 140px; align-self: start; }
  .product-title { font-size: 1.625rem; }
  .product-details { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .cart-layout { grid-template-columns: 1fr 380px; }
  .checkout-layout { grid-template-columns: 1fr 400px; }
  .summary { top: 150px; }
  .account { grid-template-columns: 290px minmax(0, 1fr); }
  .account-nav { position: sticky; top: 150px; }
  .account-nav nav { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .filters { display: block; }
  .filters > summary { display: none; }
  .filters-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .bottom-nav, .site-footer, .call-band, .sticky-buy, .toast, .guide-actions, .breadcrumbs { display: none !important; }
  body { padding: 0; background: #fff; }
}

/* ---------- article extras (audio, key points, sources) ---------- */
.audio-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.audio-box audio { width: 100%; margin: 8px 0 4px; }
.audio-title { margin: 0; font-weight: 800; display: flex; align-items: center; gap: .4rem; color: var(--brand-dark); }
.audio-box .help { margin: 0; }
.key-points { background: var(--brand-soft); border-inline-start: 5px solid var(--brand); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.key-points h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.key-points ul { display: grid; gap: 6px; }
.key-points li { display: flex; gap: 8px; align-items: flex-start; }
.key-points .icon { color: var(--brand); flex: none; margin-top: 6px; }
.sources { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.sources h2 { font-size: 1rem; }
.sources ul { padding-inline-start: 1.2rem; list-style: disc; }
.prose figure { margin: 1.4em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin: 0; }
.prose figcaption { font-size: .86rem; color: var(--ink-2); text-align: center; margin-top: 6px; }
.prose h3 { margin-top: 1.4em; }
.prose table { display: block; overflow-x: auto; }

/* ---------- cart dialog & lead forms ---------- */
.cart-dialog { border: 0; border-radius: 22px; padding: 0; max-width: 460px; width: calc(100% - 24px); box-shadow: var(--shadow-lg); background: var(--surface); color: var(--ink); }
.cart-dialog::backdrop { background: rgba(20, 14, 10, .55); }
.cd-inner { padding: 22px 20px 18px; position: relative; }
.cd-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.cd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cd-head h2 { margin: 0; font-size: 1.2rem; }
.cd-check { width: 40px; height: 40px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; flex: none; }
.cd-item { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.cd-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.cd-item div { display: flex; flex-direction: column; line-height: 1.5; }
.cd-item span { color: var(--ink-2); font-size: .9rem; }
.cd-summary { margin: 0 0 12px; font-size: .95rem; color: var(--ink-2); }
.cd-lead label { display: block; font-weight: 800; margin-bottom: 4px; }
.cd-lead .help { margin: 0 0 8px; }
.input-lg { min-height: 52px; font-size: 1.0625rem; }
.cd-lead .btn, .cd-actions .btn { margin-top: 12px; }
.cd-lead .btn + .btn, .cd-actions .btn + .btn { margin-top: 12px; }
.cd-lead .input + .error + .btn, .cd-lead .input + .btn { margin-top: 14px; }
.cd-cart-link { display: block; text-align: center; margin-top: 12px; font-weight: 700; }
.cart-lead label { display: block; font-weight: 800; margin-bottom: 6px; }
.cart-lead .help { margin: 6px 0 10px; }
.form-result { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--success-soft); color: var(--success); font-weight: 700; }
.form-result.is-error { background: var(--danger-soft); color: var(--danger); }
.discount-form { display: grid; gap: 10px; }
.df-title { margin: 0; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: .4rem; color: var(--accent-dark); }
.df-sub { margin: 0; color: var(--ink-2); }
.df-row { display: flex; flex-wrap: wrap; gap: 8px; }
.df-row .input { flex: 1 1 200px; }
.offer-band { background: var(--accent-soft); border-radius: var(--radius); padding: 20px; }
.footer-offer { padding-bottom: 8px; }
.footer-offer .discount-form.is-compact { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 16px; }
.footer-offer .df-title { color: #fff; }
.footer-offer .form-result { background: rgba(255,255,255,.12); color: #fff; }
.restock-form { background: var(--warn-soft); border-radius: var(--radius); padding: 16px; margin-top: 12px; display: grid; gap: 8px; }
.rf-title { margin: 0; font-weight: 800; color: var(--warn); display: flex; align-items: center; gap: .4rem; }
.restock-form p { margin: 0; }
@media (min-width: 760px) { .offer-band .discount-form { grid-template-columns: 1fr 1.2fr; align-items: center; } }

/* ---------- listing toolbar (replaces the old filter box) ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 4px 0 12px; }
.toolbar-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; min-height: 44px; }
.toolbar .select { min-height: 44px; width: auto; padding-block: .25rem; font-size: .95rem; }
.toolbar .check { min-height: 44px; }
.toolbar-apply { min-height: 44px; }
html.js .toolbar-apply { display: none; }
@media (max-width: 559px) { .toolbar { gap: 6px 10px; } .toolbar .select { font-size: .9rem; padding-inline: .7rem 2.2rem; } .toolbar-item > span { font-size: .9rem; } }
/* On phones the header strip already lists categories; don't repeat them on the shop page. */
@media (max-width: 959px) { .cat-chips { display: none; } }

/* ---------- author (E-E-A-T) ---------- */
.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 24px; }
.ab-photo { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; text-decoration: none; }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-photo-lg { width: 140px; height: 140px; font-size: 3rem; }
.ab-label { margin: 0; font-size: .82rem; color: var(--ink-2); }
.ab-name { margin: 0; font-weight: 800; }
.ab-name small { display: block; font-weight: 400; color: var(--ink-2); }
@media (max-width: 599px) { .ab-photo-lg { width: 96px; height: 96px; font-size: 2.2rem; } .author-hero { gap: 12px; } }
.ab-bio { margin: 4px 0 0; color: var(--ink-2); font-size: .94rem; }
.ab-review { margin: 6px 0 0; font-size: .88rem; color: var(--success); display: flex; gap: 6px; align-items: center; }
.author-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- card-to-card ---------- */
.card-transfer .done-icon ~ h1, .card-transfer .done-icon ~ .lead, .card-transfer .done-icon ~ .empty-actions { text-align: center; }
.done-icon.is-wait { background: var(--brand-soft); color: var(--brand); }
.ct-box { margin-block: 16px; }
.ct-step { display: flex; align-items: center; gap: 10px; font-weight: 800; margin: 18px 0 8px; }
.ct-step:first-child { margin-top: 0; }
.ct-step span { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.ct-amount { margin: 0; font-size: 1.15rem; }
.ct-amount b { font-size: 2.1rem; color: var(--brand-dark); }
.ct-rial { margin: 2px 0 0; font-size: .92rem; }
.ct-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 14px; background: var(--brand-soft); border: 2px dashed var(--brand); }
.ct-number { font-size: clamp(1.35rem, 6vw, 1.9rem); font-weight: 800; letter-spacing: 2px; color: var(--brand-dark); white-space: nowrap; }
.ct-sheba { font-size: .9rem; word-break: break-all; }
.js-copy.is-copied { border-color: var(--success); color: var(--success); }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 32px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field .choice-row label.option-card { display: flex; align-items: center; gap: 10px; margin: 0; }
.option-card.option-sm { min-height: 52px; padding: 10px 16px; flex: 1 1 90px; font-weight: 700; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
fieldset.field legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.ct-review { border-inline-start: 4px solid var(--warn); }
.ct-review dl { margin: 0 0 12px; }

/* =====================================================================
   Mobile declutter (header, home rails, product buy bar)
   ===================================================================== */
button.hdr-btn { border: 0; background: none; font-family: inherit; cursor: pointer; }
.fs-glyph { font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: var(--brand-dark); }
.fs-glyph sup { font-size: .8rem; }
.hdr-call { color: var(--brand); }

@media (max-width: 959px) {
  /* One compact header row: logo | text size | call. Account & cart are in the bottom menu. */
  .topbar, .hdr-desktop { display: none; }
  .header-row { gap: 8px 6px; padding-block: 8px 10px; }
  .hdr-btn { min-width: 52px; min-height: 48px; padding: 2px 6px; font-size: .75rem; }
  .logo svg { width: 40px; height: 40px; }
  .search input { min-height: 50px; border-radius: 14px; }
  .search > button { width: 42px; height: 42px; }
  /* Category chips only where people browse products; elsewhere the bottom menu is enough. */
  body:not(.page-shop) .main-nav { display: none; }
  .main-nav ul { padding-block: 6px; }
  .main-nav a { min-height: 42px; font-size: .92rem; }
  .section { padding-block: 22px; }

  /* Product page: smaller image so name and price show on the first screen. */
  .product-layout { gap: 12px; padding-top: 4px; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .gallery-thumbs { margin-top: 8px; }
  .gallery-thumbs button { width: 56px; height: 56px; border-width: 2px; }
  .product-title { font-size: 1.3rem; }
  .buy-box .price-box { margin-block: 4px 10px; }
  body.sticky-buy-on { padding-bottom: calc(var(--bottom-nav) + 78px + env(safe-area-inset-bottom)); }
  body.sticky-buy-on .toast { bottom: calc(var(--bottom-nav) + 90px + env(safe-area-inset-bottom)); }
  .sticky-buy { padding: 8px 12px; }
  .sticky-buy .btn { min-height: 52px; padding-inline: 1rem; white-space: nowrap; }
  .sticky-price strong { font-size: 1.15rem; }
}
@media (min-width: 960px) { .hdr-mobile { display: none; } }
@media (max-width: 379px) { .logo-text small { display: none; } .hdr-btn { min-width: 48px; } }

/* Home hero: the illustration is decoration; drop it on phones to bring products up. */
@media (max-width: 759px) {
  .hero-art { display: none; }
  .hero-grid { padding-block: 22px 30px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-actions { margin-block: .9rem .6rem; }
}

/* Swipeable rows on phones (grids again from 760px). The next card peeks out so it is obvious there is more. */
@media (max-width: 759px) {
  .rail {
    --rail-w: 46%;
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: var(--rail-w);
    gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 8px; scroll-padding-inline: 16px;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; min-width: 0; }
  .rail-wide { --rail-w: 80%; }
  .rail-cats { --rail-w: 40%; }
  .rail-cats .cat-card { min-height: 0; padding: 12px; }
  .rail-cats .cat-card img { width: 56px; height: 56px; }
  .rail-cats .cat-card > span:not(.cat-icon) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .rail .gc-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .steps-simple li { padding: 10px 14px; }
  .steps-simple p { font-size: .9rem; }
}

/* Long SEO text: full in the HTML, shortened on phones until «ادامه‌ی متن». */
.seo-more { margin-top: 10px; }
@media (max-width: 759px) {
  html.js .seo-text.is-collapsed { max-height: 18rem; overflow: hidden; position: relative; }
  html.js .seo-text.is-collapsed::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5rem; background: linear-gradient(transparent, var(--surface)); }
}


/* Card buttons: one line («افزودن به سبد») at normal text size; wrap again when the visitor enlarges text. */
.pc-body .btn { white-space: nowrap; gap: .35rem; }
html[data-fs="1"] .pc-body .btn, html[data-fs="2"] .pc-body .btn { white-space: normal; }
@media (max-width: 420px) {
  .pc-body { padding: 10px; }
  .pc-body .btn { font-size: .88rem; padding-inline: .45rem; }
  .pc-body .btn .icon { width: 18px; height: 18px; }
}
/* Product page on phones: the breadcrumb already names the category. */
@media (max-width: 959px) { .buy-box > .eyebrow { display: none; } }

/* =====================================================================
   Desktop + product page declutter
   ===================================================================== */
:root { --hdr-h: 0px; }

/* ---- product buy box ---- */
.buy-box { display: flex; flex-direction: column; }
.buy-box > * { min-width: 0; }
.buy-box .product-lead { margin-bottom: .5rem; }
.buy-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.buy-extra form, .buy-extra > .btn { flex: 0 0 auto; }
.buy-extra .btn { width: auto; }
.buy-extra .btn.is-active { color: var(--accent-dark); border-color: var(--accent); }
.mini-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .9rem; }
.mini-trust li { line-height: 1.5; }
.mini-trust .mt-phone { grid-column: 1 / -1; color: var(--ink); font-weight: 700; }
.mini-trust .mt-phone a { font-weight: 800; color: var(--accent-dark); }
@media (max-width: 959px) {
  /* Phones: price and buttons first, then description, then extras. */
  .buy-box .product-lead, .buy-box .fact-chips { order: 5; }
  .buy-box .product-lead { margin-top: 14px; }
  .buy-box .buy-extra { order: 6; }
  .buy-box .mini-trust { order: 7; }
}

/* ---- in-page section bar ---- */
.section-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 24px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; font-size: .95rem; }
.section-tabs a:hover { background: var(--surface-2); color: var(--brand-dark); }
.section-tabs a[aria-current="true"] { background: var(--brand); color: #fff; }
.page-product .product-details, .page-product #pfaq, .page-product #reviews, .page-product #related, .page-product #about, .page-product #specs { scroll-margin-top: calc(var(--hdr-h) + 84px); }

/* ---- description + specs side card ---- */
.product-details { padding-top: 22px; }
.details-side { display: grid; gap: 14px; align-content: start; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side-card h2, .side-card h3 { font-size: 1.12rem; margin: 0 0 10px; }
.side-card .specs { border: 0; border-radius: 12px; }
.specs .is-brew th { color: var(--accent-dark); }
.specs .is-brew th .icon { vertical-align: -3px; margin-inline-end: 2px; }
.mini-guides { display: grid; gap: 10px; }
.mini-guides a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.55; font-size: .95rem; }
.mini-guides a:hover { color: var(--brand); }
.mini-guides img { width: 96px; height: 60px; object-fit: cover; border-radius: 10px; }
.mini-guides small { display: block; font-weight: 400; color: var(--ink-2); font-size: .8rem; }
@media (max-width: 959px) {
  .details-side { order: -1; }  /* phones: the short specs card before the long description */
}

@media (min-width: 960px) {
  .section-tabs { position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 30; box-shadow: var(--shadow); }
  .product-details { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 40px; }
  .details-side { position: sticky; top: calc(var(--hdr-h) + 84px); }
  .details-main .prose { max-width: 46em; }
  .buy-box .fact-chips { margin-bottom: 16px; }

  /* ---- lighter desktop menu: text links instead of heavy pills ---- */
  .main-nav ul { gap: 2px; padding-block: 4px; }
  .main-nav a { background: transparent; min-height: 44px; border-radius: 10px; font-size: .95rem; font-weight: 700; }
  .main-nav a:hover { background: var(--surface-2); color: var(--brand-dark); }
  .main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
  .main-nav .nav-guides { background: transparent; margin-inline-start: auto; }

  /* ---- home: calmer hero, one row per list ---- */
  .hero-grid { padding-block: 36px 48px; }
  .hero-art { width: 300px; }
  .one-row.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .one-row.product-grid > :nth-child(n+5) { display: none; }
  .one-row.guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .one-row.guide-grid > :nth-child(n+5) { display: none; }
  .one-row.guide-grid .gc-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .one-row.review-grid > :nth-child(n+4) { display: none; }
  .steps-strip { grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .steps-strip li { grid-template-columns: auto 1fr; text-align: start; justify-items: start; border: 0; border-radius: 0; background: none; padding: 18px 22px; column-gap: 14px; }
  .steps-strip li + li { border-inline-start: 1px solid var(--line); }
  .steps-strip p { grid-column: 2; }
}
@media (min-width: 1200px) {
  .one-row.product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .one-row.product-grid > :nth-child(5) { display: flex; }
}
@media (min-width: 760px) and (max-width: 959px) {
  .one-row.product-grid > :nth-child(n+4), .one-row.guide-grid > :nth-child(n+3), .one-row.review-grid > :nth-child(n+3) { display: none; }
  .one-row.guide-grid, .one-row.review-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Home: the discount form is already a band on the page; no second copy in the footer. */
.page-home .footer-offer { display: none; }
/* Long SEO text: shortened on every screen size (full text stays in the HTML). */
@media (min-width: 760px) {
  html.js .seo-text.is-collapsed { max-height: 16rem; overflow: hidden; position: relative; }
  html.js .seo-text.is-collapsed::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5rem; background: linear-gradient(transparent, var(--surface)); }
}
@media (min-width: 960px) { .gallery { top: calc(var(--hdr-h) + 16px); } }
/* Specs card: compact rows; icons inline with their label. */
.side-card .specs th, .side-card .specs td { padding: 8px 12px; line-height: 1.6; font-size: .94rem; }
.side-card .specs th { width: 36%; white-space: nowrap; }
.specs th .icon { display: inline-block; }
.seo-text > :first-child { margin-top: 0; }
@media (min-width: 960px) {
  /* Only pin the side card when the whole card fits on screen (main.js adds .is-pinned). */
  .details-side { position: static; }
  .details-side.is-pinned { position: sticky; }
}
@media (max-width: 459px) { .mini-trust { grid-template-columns: 1fr; gap: 6px; } }
/* Few categories (Iranian black / green): wide cards with the image beside the text on larger screens. */
@media (min-width: 760px) {
  .cat-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cat-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; min-height: 0; padding: 18px 22px; }
  .cat-card img, .cat-card .cat-icon { grid-row: 1 / span 2; width: 72px; height: 72px; }
  .cat-card b { margin-top: 0; font-size: 1.12rem; align-self: end; }
  .cat-card > span:not(.cat-icon) { align-self: start; }
}

/* Hero buttons stay on one line on narrow phones. */
.hero-actions .btn { white-space: nowrap; gap: .45rem; padding-inline: .8rem; }
@media (max-width: 420px) { .hero-actions .btn-light .icon { display: none; } }
/* Dialog title must not run under the close button. */
.cd-head { padding-inline-end: 52px; }
