/* ==========================================================================
   آبگین پلاست — Persian RTL agricultural e-commerce demo
   Modern-minimal · flat · single green accent · logical properties (RTL-first)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f7f6f2; --surface: #ffffff; --ink: #1d2b23; --muted: #5c6b61; --line: #e6e3da;
  --brand: #177245; --brand-strong: #0f5a35; --brand-tint: #e4f1e9;
  --accent: #b7791f; --danger: #b3402a; --danger-tint: #fdf3ec;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(29,43,35,.06), 0 8px 24px -12px rgba(29,43,35,.15);
  --container: 1140px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* [hidden] must always win over component display rules (e.g. .product-card is flex) */
[hidden] { display: none !important; }


body {
  margin: 0; font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }
img, svg { vertical-align: middle; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link:focus-visible {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 200;
  width: auto; height: auto; margin: 0; padding: 10px 16px;
  clip: auto; clip-path: none; background: var(--surface);
  color: var(--brand); font-weight: 700; text-decoration: none;
  border: 1px solid var(--brand); border-radius: var(--r-sm); box-shadow: var(--shadow);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: var(--surface); border-block-end: 1px solid var(--line);
}

.site-header__inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px 20px; padding-block: 12px;
}

.brand {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 1px; line-height: 1.35; text-decoration: none; color: var(--ink);
}

.brand__name { font-size: 1.3rem; font-weight: 800; color: var(--brand); }
.brand__tag { font-size: .75rem; color: var(--muted); }

.search { flex: 1 1 240px; min-width: 180px; }

.search__input {
  display: block; width: 100%; min-height: 44px;
  padding-block: 8px; padding-inline: 14px;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s ease, background-color .2s ease;
}
.search__input::placeholder { color: var(--muted); }
.search__input:focus { background: var(--surface); border-color: var(--brand); }

.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  font-size: .95rem; font-weight: 600; color: var(--ink);
  text-decoration: none; border-radius: var(--r-sm);
  transition: background-color .2s ease, color .2s ease;
}
.nav__link:hover { background: var(--brand-tint); color: var(--brand); }

.cart-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px; padding-inline: 14px;
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.cart-button:hover { border-color: var(--brand); color: var(--brand); }

.cart-button__count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px;
  padding-inline: 6px; font-size: .75rem; font-weight: 800;
  font-variant-numeric: tabular-nums; color: #fff;
  background: var(--brand); border-radius: 999px;
}

.noscript-note {
  padding-block: 10px; padding-inline: 20px;
  font-size: .875rem; text-align: center;
  color: var(--danger); background: var(--danger-tint);
  border-block-end: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero { background: var(--brand-tint); padding-block: clamp(56px, 9vw, 96px); }

.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 40px;
}

.hero__copy { max-width: 36rem; }

.kicker {
  display: inline-block; margin-block-end: 10px;
  font-size: .85rem; font-weight: 800; color: var(--brand);
}

.hero h1 {
  margin-block-end: 14px;
  font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.3;
}

.hero__lead { color: var(--muted); font-size: 1.05rem; line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }

.deal-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 24px;
}

.deal-card__badge {
  display: inline-flex; align-items: center; margin-block-end: 12px;
  padding-block: 4px; padding-inline: 12px;
  font-size: .75rem; font-weight: 800; color: #fff;
  background: var(--accent); border-radius: 999px;
}

.deal-card__specs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.deal-card__specs li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); }
.deal-card__specs li::before {
  content: ""; flex: none; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand);
}

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-block-end: 1px solid var(--line); padding-block: 16px; }

.trust__row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 24px;
}

.trust__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--muted);
}
.trust__item svg { flex: none; width: 22px; height: 22px; color: var(--brand); }

/* ---------- Sections & headings ---------- */
.section { padding-block: 72px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px; margin-block-end: 22px;
}
.section-head h2 { font-size: 1.45rem; font-weight: 800; }

.section-head__count {
  padding-block: 2px; padding-inline: 10px;
  font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}

/* ---------- Filter chips ---------- */
.chips {
  display: flex; gap: 10px; overflow-x: auto;
  padding-block-end: 6px; margin-block-end: 26px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}

.chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding-inline: 18px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active, .chip.is-active:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.product-card__media {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 3; background: var(--brand-tint);
}
.product-card__media svg { width: 56px; height: 56px; color: var(--brand); stroke: var(--brand); opacity: .55; }

.product-card__badge {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
  padding-block: 3px; padding-inline: 10px;
  font-size: .72rem; font-weight: 800;
  color: var(--brand); background: var(--brand-tint); border-radius: 999px;
}
.product-card__badge--sale { color: var(--danger); background: var(--danger-tint); }

.product-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px; }
.product-card__cat { font-size: .78rem; color: var(--muted); }
.product-card__title { font-size: .98rem; font-weight: 700; line-height: 1.7; }
.product-card__meta { font-size: .8rem; color: var(--muted); }

.price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-block-start: auto; padding-block-start: 8px;
}

.price { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-old {
  font-size: .85rem; font-variant-numeric: tabular-nums;
  color: var(--muted); text-decoration: line-through;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn--primary { color: #fff; background: var(--brand); }
.btn--primary:hover { background: var(--brand-strong); }
.btn--ghost { color: var(--brand); background: transparent; border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); }
.btn--block { width: 100%; }
.product-card__body .btn { margin-block-start: 12px; }

/* ---------- Empty state ---------- */
.empty-state {
  padding-block: 56px; padding-inline: 20px; text-align: center;
  color: var(--muted); background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--r);
}

/* ---------- Guide (numbered editorial band) ---------- */
.guide { background: var(--surface); border-block: 1px solid var(--line); }

.guide__steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
.guide__steps li { counter-increment: step; }

.guide__steps li::before {
  content: counter(step, persian); display: block; margin-block-end: 8px;
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--brand);
}

.guide__steps strong { display: block; margin-block-end: 6px; font-size: 1.05rem; font-weight: 800; }
.guide__steps p { font-size: .95rem; line-height: 1.9; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.faq__item + .faq__item { margin-block-start: 12px; }

.faq__item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding-block: 14px; padding-inline: 20px;
  font-weight: 700; cursor: pointer; list-style: none;
  transition: color .2s ease;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::marker { content: none; }

.faq__item > summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-inline-end: 2px solid var(--muted); border-block-end: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}

.faq__item > summary:hover { color: var(--brand); }
.faq__item[open] > summary { color: var(--brand); border-block-end: 1px solid var(--line); }
.faq__item[open] > summary::after { transform: rotate(-135deg); }

.faq__answer {
  padding-block: 14px 18px; padding-inline: 20px;
  font-size: .95rem; line-height: 1.9; color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-block-start: 72px; padding-block-start: 56px;
  color: rgba(255,255,255,.85); background: #123324;
}

.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.site-footer__grid h3,
.site-footer__grid h4 { margin-block-end: 12px; font-size: 1rem; font-weight: 800; color: #fff; }

.site-footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__grid p { font-size: .9rem; line-height: 1.9; color: rgba(255,255,255,.65); }

.site-footer a {
  font-size: .9rem; color: rgba(255,255,255,.72);
  text-decoration: none; transition: color .2s ease;
}
.site-footer a:hover { color: #fff; }
.site-footer .brand__name { color: #fff; }

.site-footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
  margin-block-start: 40px; padding-block: 18px;
  font-size: .82rem; color: rgba(255,255,255,.6);
  border-block-start: 1px solid rgba(255,255,255,.14);
}

/* ---------- Cart overlay & drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(29,43,35,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; left: 0; /* physical left by design */
  z-index: 90; display: flex; flex-direction: column;
  width: min(420px, 92vw); height: 100dvh;
  background: var(--surface); box-shadow: var(--shadow);
  transform: translateX(-110%); transition: transform .3s ease;
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer > header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 14px; padding-inline: 20px;
  border-block-end: 1px solid var(--line);
}
.cart-drawer > header h2,
.cart-drawer > header h3 { font-size: 1.1rem; font-weight: 800; }

#cart-close {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  font: inherit; font-size: 1.3rem; line-height: 1; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
#cart-close:hover { color: var(--danger); background: var(--danger-tint); }

.cart-drawer__items { flex: 1; overflow-y: auto; padding-inline: 20px; }
.cart-drawer__empty { padding-block: 56px; text-align: center; color: var(--muted); }

.cart-drawer__footer {
  display: grid; gap: 12px;
  padding-block: 16px; padding-inline: 20px;
  border-block-start: 1px solid var(--line); background: var(--surface);
}

.cart-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* ---------- Cart line items ---------- */
.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding-block: 16px; border-block-end: 1px solid var(--line);
}

.cart-item__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cart-item__title { font-size: .9rem; font-weight: 700; line-height: 1.6; }
.cart-item__price { font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); }

.cart-item__controls { display: flex; align-items: center; gap: 8px; }
.cart-item__controls > span { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.qty-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  font: inherit; font-size: 1rem; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.qty-btn:hover { border-color: var(--brand); color: var(--brand); }

.cart-item__remove {
  align-self: center; min-height: 44px; padding-inline: 8px;
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--danger);
  background: none; border: none; border-radius: var(--r-sm);
  cursor: pointer; transition: background-color .2s ease;
}
.cart-item__remove:hover { background: var(--danger-tint); text-decoration: underline; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; inset-block-end: 24px; left: 50%; z-index: 100;
  max-width: min(420px, 92vw);
  padding-block: 12px; padding-inline: 20px;
  font-size: .9rem; font-weight: 600; text-align: center;
  color: #fff; background: var(--ink); border-radius: 999px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translate(-50%, 150%);
  transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Responsive: ≤900px ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: none; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .guide__steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
}

/* ---------- Responsive: ≥561px — two-row header by design ----------
   ردیف اول: برند + جستجو + سبد؛ ردیف دوم: ناوبری تمام‌عرض.
   جستجو فضای لازم را می‌گیرد و دکمه سبد هرگز به خط بعد نمی‌افتد. */
@media (min-width: 561px) {
  .site-header__inner { row-gap: 8px; }
  .search { order: 2; }
  .cart-button { order: 3; }
  .nav { order: 4; flex: 1 1 100%; }
}

/* تبلت: ناوبری در ردیف دوم با اسکرول افقی (مثل موبایل) تا هدر دو ردیفه بماند */
@media (min-width: 561px) and (max-width: 900px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav__link { flex-shrink: 0; }
}

/* ---------- Responsive: ≤560px ---------- */
@media (max-width: 560px) {
  .site-header__inner { gap: 10px 12px; }
  /* هدر فشرده روی موبایل: برند+سبد در یک ردیف، جستجو تمام‌عرض، ناوبری اسکرول‌شونده */
  .brand { order: 1; }
  .brand__tag { display: none; }
  .cart-button { order: 2; margin-inline-start: auto; }
  .search { order: 3; flex: 1 1 100%; }
  .nav {
    order: 4; flex: 1 1 100%; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav__link { flex-shrink: 0; min-height: 40px; }
  .section { padding-block: 56px; }
  .deal-card { padding: 20px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .product-card:hover { transform: none; }
}

/* ---------- Product photo (progressive: sits over the icon when present) ---------- */
.product-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Tape calculator ---------- */
.calc__intro { max-width: 42rem; margin-block-end: 20px; color: var(--muted); }

.calc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px;
}

.calc__grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: end; }
@media (min-width: 700px) { .calc__grid { grid-template-columns: 1fr 1fr auto; } }

.calc__field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.calc__field span { color: var(--muted); }

.calc__input {
  min-height: 44px; padding-block: 8px; padding-inline: 14px;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s ease, background-color .2s ease;
}
.calc__input:focus { background: var(--surface); border-color: var(--brand); }

.calc__result {
  display: grid; gap: 10px; justify-items: start;
  margin-block-start: 20px; padding: 16px;
  background: var(--brand-tint); border: 1px dashed var(--brand); border-radius: var(--r-sm);
}
#calc-result-text { font-size: 1.05rem; line-height: 1.9; }
.calc__note { font-size: .82rem; color: var(--muted); }

/* ---------- Subpages: breadcrumbs ---------- */
.breadcrumbs { padding-block-start: 14px; font-size: .85rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: '/'; margin-inline-end: 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Product detail page (PDP) ---------- */
.pdp { display: grid; gap: 28px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(280px, 400px) 1fr; align-items: start; } }
.pdp__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1;
  background: var(--brand-tint); border-radius: var(--r); overflow: hidden; color: var(--brand);
}
.pdp__media svg { width: 96px; height: 96px; }
.pdp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp__cat {
  display: inline-block; margin-block-end: 12px; padding-block: 4px; padding-inline: 12px;
  font-size: .8rem; font-weight: 700; color: var(--brand);
  background: var(--brand-tint); border-radius: 999px;
}
.pdp__info h1 { font-size: 1.6rem; line-height: 1.8; margin-block: 0 8px; }
.pdp__lead { color: var(--muted); line-height: 2; margin-block-end: 16px; }
.pdp .price-row { margin-block-end: 16px; }
.pdp__points { margin: 16px 0 0; padding-inline-start: 20px; color: var(--muted); line-height: 2.1; font-size: .92rem; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: right; font-size: .95rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 180px; color: var(--muted); font-weight: 600; background: var(--bg); }

/* ---------- Article prose ---------- */
.prose { max-width: 46rem; }
.prose > h1 { font-size: 1.7rem; line-height: 1.8; margin-block: 0 10px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-end: 20px; color: var(--muted); font-size: .85rem; }
.prose h2 { font-size: 1.3rem; margin-block: 28px 12px; }
.prose h3 { font-size: 1.1rem; margin-block: 20px 8px; }
.prose p { line-height: 2.1; margin-block: 0 14px; }
.prose ul, .prose ol { padding-inline-start: 22px; line-height: 2.1; margin-block: 0 14px; }
.prose li { margin-block-end: 6px; }
.prose .callout {
  margin-block: 20px; padding: 14px 18px;
  background: var(--brand-tint); border-inline-start: 3px solid var(--brand); border-radius: var(--r-sm);
}

/* ---------- Simple page head (blog index & plain pages) ---------- */
.page-head { max-width: 46rem; margin-block-end: 30px; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.8; margin-block-end: 12px; }
.page-head p { color: var(--muted); line-height: 2; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.post-card {
  display: grid; gap: 10px; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.post-card h2, .post-card h3 { font-size: 1.05rem; line-height: 1.8; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.9; }
.post-card .post-meta { margin: 0; }
.post-card a { color: inherit; text-decoration: none; }
.post-card a:hover { color: var(--brand); }

/* ---------- Product card title link ---------- */
.product-card__link { color: inherit; text-decoration: none; }
.product-card__link:hover { color: var(--brand); }

/* ---------- Stock status ---------- */
.stock-badge {
  display: inline-block; padding-block: 2px; padding-inline: 10px;
  font-size: .78rem; font-weight: 600; border-radius: 999px;
  margin-block-end: 8px;
}
.stock-badge--in  { color: var(--brand-strong); background: var(--brand-tint); }
.stock-badge--low { color: var(--accent); background: #fbf3e4; }
.stock-badge--out { color: var(--danger); background: var(--danger-tint); }
.add-to-cart:disabled { opacity: .55; cursor: not-allowed; }
