:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --alt: #efebe2;
  --ink: #1b2620;
  --muted: #5d6a62;
  --line: #e1dbcf;
  --brand: #1f6b46;
  --brand-ink: #ffffff;
  --brand-soft: #e3efe7;
  --kraft: #c4955a;
  --kraft-soft: #f4e8d6;
  --wa: #1fa855;
  --danger: #b3261e;
  --ill-fill: #f4e8d6;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(27 38 32 / .06), 0 6px 20px rgb(27 38 32 / .06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:lang(ar), :lang(ckb) { --font: 'Vazirmatn', 'Inter', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
:lang(ar) h1, :lang(ckb) h1, :lang(ar) h2, :lang(ckb) h2 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--kraft); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.narrow { max-width: 640px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(247 245 240 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.logo-mark svg { width: 20px; }
.main-nav { display: none; gap: 22px; margin-inline-start: 16px; }
.main-nav a { color: var(--ink); font-weight: 500; }
@media (min-width: 820px) { .main-nav { display: flex; } }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: 5px 10px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.lang-switch a:hover { text-decoration: none; }
@media (max-width: 480px) { .lang-switch a { padding: 5px 7px; font-size: .75rem; } }
.basket-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: .9rem; }
.basket-btn:hover { text-decoration: none; filter: brightness(1.08); }
.basket-btn svg { width: 18px; }
.basket-label { display: none; }
@media (min-width: 640px) { .basket-label { display: inline; } }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--kraft); color: #fff; font-size: .75rem; display: inline-grid; place-items: center; }
.badge[hidden] { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 650; border: 1.5px solid transparent; cursor: pointer; transition: filter .15s, transform .15s; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; } .hero { padding: 80px 0 64px; } }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
:lang(ar) .eyebrow, :lang(ckb) .eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; justify-self: center; width: 100%; }
.hero-tile { background: var(--surface); border-radius: 20px; padding: 18%; box-shadow: var(--shadow); color: var(--brand); aspect-ratio: 1; display: grid; place-items: center; }
.hero-tile.t2 { background: var(--kraft-soft); color: #7a5527; transform: translateY(18px); }
.hero-tile.t3 { background: var(--brand-soft); }
.hero-tile.t4 { transform: translateY(18px); }

/* Trust */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; gap: 18px; padding-block: 22px; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-grid > div { display: flex; gap: 12px; align-items: flex-start; }
.trust-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.tick { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.tick svg { width: 16px; }

/* Sections */
.section { padding: 56px 0; }
.section.tight { padding: 28px 0 56px; }
.section.alt { background: var(--alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: 40px 0 8px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
a.card { color: inherit; transition: transform .15s, border-color .15s; }
a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--kraft); }
.ill { color: var(--brand); background: var(--bg); border-radius: 12px; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14%; }
.ill svg { width: 100%; height: 100%; max-width: 140px; }
.ill.big { aspect-ratio: 1; padding: 18%; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ill.big svg { max-width: 320px; }

.cat-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; align-items: center; }
.cat-card .ill { aspect-ratio: 1; padding: 14px; }
.cat-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.count { font-size: .8rem; color: var(--muted); font-weight: 500; background: var(--alt); border-radius: 999px; padding: 1px 8px; margin-inline-start: 4px; }

.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.product-card { position: relative; padding: 14px; display: flex; flex-direction: column; }
.product-card h3 { margin: 14px 0 6px; }
.product-card p { color: var(--muted); font-size: .9rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .meta { font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.tag { position: absolute; top: 22px; inset-inline-end: 22px; background: var(--kraft-soft); color: #7a5527; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-weight: 600; }

/* CTA */
.cta-band { background: var(--ink); color: #fff; padding: 44px 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band p { color: #c9d2cc; margin: 0; }

/* Filters */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: none; }
.chip-btn { white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .9rem; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-block { margin-bottom: 40px; scroll-margin-top: 90px; }
.cat-block[hidden] { display: none; }

/* Product detail */
.back { display: inline-block; margin-bottom: 18px; font-weight: 600; }
.pdp { display: grid; gap: 32px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1.1fr; align-items: start; } .pdp-media { position: sticky; top: 90px; } }
.note { background: var(--kraft-soft); border-inline-start: 4px solid var(--kraft); padding: 10px 14px; border-radius: 8px; font-size: .92rem; }
.specs { margin: 0 0 22px; display: grid; gap: 10px; }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .9rem; }
.specs dd { margin: 0; font-weight: 600; }
.specs small { font-weight: 400; color: var(--muted); }
@media (max-width: 480px) { .specs div { grid-template-columns: 1fr; gap: 2px; } }

/* Forms */
.add-form, .contact-form { padding: 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.field[hidden] { display: none; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 400; font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.added-msg { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand-soft); padding: 10px; border-radius: 10px; font-weight: 600; }
.added-msg[hidden] { display: none; }
.added-msg svg { width: 18px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-weight: 600; margin: 0; }
.form-error[hidden] { display: none; }
.or { text-align: center; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* Quote */
.quote-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } .contact-form { position: sticky; top: 90px; } }
.basket { display: grid; gap: 12px; }
.basket-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px; align-items: start; }
.basket-item .ill { aspect-ratio: 1; padding: 10px; }
.basket-item h3 { margin: 0 0 4px; font-size: 1rem; }
.basket-item h3 a { color: var(--ink); }
.basket-item ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.basket-item li { font-size: .8rem; background: var(--bg); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.basket-item .notes { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.remove { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: .85rem; font-weight: 600; padding: 4px; }
.empty { padding: 32px; text-align: center; }
.empty[hidden] { display: none; }

/* Thanks */
.thanks-mark { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.thanks-mark svg { width: 36px; }
.ref { font-size: 1.05rem; }
.ref[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 40px; margin-top: 0; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.footer-grid p { color: var(--muted); margin-top: 12px; max-width: 48ch; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-base { border-top: 1px solid var(--line); margin-top: 28px; padding-block: 18px; color: var(--muted); font-size: .85rem; }

.wa-float { position: fixed; bottom: 18px; inset-inline-end: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .2); z-index: 30; }
.wa-float svg { width: 30px; }
body[data-page="quote"] .wa-float { display: none; }

.toast { position: fixed; bottom: 86px; inset-inline: 16px; margin-inline: auto; max-width: 360px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; text-align: center; z-index: 40; box-shadow: var(--shadow); animation: toast 2.6s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
