/* فونت وزیرمتن — روی سرور خودمان میزبانی می‌شود.
   قبلاً از cdnjs می‌آمد ولی آن آدرس اصلاً وجود ندارد (۴۰۴) و سایت روی فونت
   پیش‌فرض سیستم می‌افتاد؛ روی موبایل نتیجه‌اش بد بود. فایل variable یک فایل
   است و همه‌ی وزن‌های ۱۰۰ تا ۹۰۰ را پوشش می‌دهد. */
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ═══════════ سیستم طراحی مهر نور ═══════════
   برند: فیروزه‌ای (لامپ) + سرخابی (کویل‌ها).
   سرخابی = کنش اصلی (CTA)، فیروزه‌ای = هویت و لهجه. */
:root {
  --bg: #f5fafb;
  --surface: #ffffff;
  --surface-2: #eef6f8;
  --ink: #0f1b24;
  --ink-2: #33454f;
  --mut: #6b7c86;
  --brand: #12a3bf;          /* فیروزه‌ای تیره‌تر برای متن/دکمه (کنتراست کافی) */
  --brand-light: #5bc2d4;    /* فیروزه‌ای لوگو — لهجه و درخشش */
  --brand-ink: #ffffff;
  --pink: #e5195e;           /* کنش اصلی */
  --pink-dark: #c4134f;
  --stroke: #e2ebef;
  --stroke-2: #d4e1e6;
  --success: #10925a;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 2px 8px rgba(15, 27, 36, .05);
  --shadow: 0 10px 30px -10px rgba(15, 27, 36, .14);
  --shadow-brand: 0 14px 34px -12px rgba(18, 163, 191, .45);
  --shadow-pink: 0 12px 28px -10px rgba(229, 25, 94, .5);
  --sp: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  line-height: 1.75;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { line-height: 1.35; }
::selection { background: var(--brand-light); color: #04252c; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mut); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #dbe7ec; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; gap: 12px; flex-wrap: wrap; }
.topbar a { opacity: .92; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--brand-light); opacity: 1; }
.topbar svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
header.site-header {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--stroke);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 21px; letter-spacing: -.2px; }
.brand .brand-logo { width: 40px; height: 47px; flex: none; }
.brand .brand-logo img, .brand .brand-logo svg { width: 100%; height: 100%; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-name b { color: var(--ink); }
.brand .brand-name b i { color: var(--pink); font-style: normal; }
.brand small { font-weight: 400; font-size: 10.5px; color: var(--mut); letter-spacing: 0; }

nav.main-nav { display: flex; gap: 6px; font-size: 15px; font-weight: 600; }
nav.main-nav a { padding: 8px 13px; border-radius: 10px; color: var(--ink-2); }
nav.main-nav a:hover { color: var(--brand); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--pink); color: #fff; border: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-pink); transition: transform .15s, box-shadow .2s; }
.cart-link:hover { transform: translateY(-1px); color: #fff; }
.cart-link svg { width: 19px; height: 19px; }
.cart-count { background: #fff; color: var(--pink); border-radius: 999px; min-width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; padding: 0 5px; }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--stroke); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 12px; padding: 13px 26px; font-weight: 800; cursor: pointer; font-size: 15px; transition: transform .15s, box-shadow .2s, background .2s; min-height: 46px; }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.24); }
.btn-whatsapp:hover { background: #1faf54; color: #fff; transform: translateY(-2px); }
.contact-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-brand:hover { background: #0e8ba3; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--stroke-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: 24px; border-radius: 26px;
  background: linear-gradient(135deg, #06323d 0%, #0c5468 55%, #0e6d80 100%);
  color: #fff; isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 88% 15%, rgba(91,194,212,.55), transparent 60%),
    radial-gradient(45% 70% at 10% 100%, rgba(229,25,94,.35), transparent 60%);
}
.hero .container { padding: 66px 30px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 7px 15px; border-radius: 999px; font-size: 13px; margin-bottom: 18px; color: #d6f4fa; font-weight: 600; }
.hero-badge svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 14px; font-weight: 900; letter-spacing: -.5px; }
.hero h1 span { color: var(--brand-light); }
.hero p { color: #cfe6ec; max-width: 540px; margin: 0 0 26px; font-size: 16.5px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.trust-item .ti-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--surface-2); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.trust-item svg { width: 22px; height: 22px; }
.trust-item b { display: block; font-size: 14px; }
.trust-item span { font-size: 12px; color: var(--mut); }
@media (max-width: 820px){ .trust-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Blog callout ---------- */
.blog-callout { margin-top: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: stretch; background: linear-gradient(120deg,#fff6ea,#fff); border: 1px solid #f1d9ad; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.blog-callout-main { display: flex; flex-direction: column; gap: 10px; }
.blog-callout-tag { display: inline-flex; align-items: center; gap: 7px; width: fit-content; background: #ffe6b0; color: #8a5a00; font-weight: 800; font-size: 12.5px; padding: 6px 14px; border-radius: 999px; }
.blog-callout-tag svg { width: 15px; height: 15px; }
.blog-callout-main h2 { margin: 4px 0 0; font-size: clamp(20px, 2.6vw, 27px); font-weight: 900; letter-spacing: -.3px; }
.blog-callout-main p { margin: 0; color: var(--mut); max-width: 480px; }
.blog-callout-btn { margin-top: 8px; width: fit-content; }
.blog-callout-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.blog-callout-item { background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; transition: transform .18s, box-shadow .2s; }
.blog-callout-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bci-img { height: 90px; background: var(--surface-2); }
.bci-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bci-title { font-size: 12.5px; font-weight: 700; padding: 8px 10px; line-height: 1.5; }
@media (max-width: 900px) { .blog-callout { grid-template-columns: 1fr; } .blog-callout-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .blog-callout-list { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.section-head h2 { font-size: clamp(20px, 3vw, 26px); margin: 0; font-weight: 900; letter-spacing: -.3px; position: relative; padding-inline-start: 16px; }
.section-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 24px; border-radius: 4px; background: linear-gradient(var(--brand-light), var(--pink)); }
.section-head a { color: var(--brand); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.section-head a:hover { color: var(--pink); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cat-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; text-align: center; transition: transform .18s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-light); }
.cat-card .cat-img { height: 130px; background: linear-gradient(160deg, var(--surface-2), #fff); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.cat-card .cat-img svg { width: 46px; height: 46px; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-title { padding: 14px 12px; font-weight: 700; font-size: 14.5px; }

/* ---------- Product grid/card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-light); }
.product-card .p-img { aspect-ratio: 1/1; background: linear-gradient(160deg, var(--surface-2), #fff); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .p-img img { transform: scale(1.05); }
.badge-discount { position: absolute; top: 12px; left: 12px; background: var(--pink); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow-pink); }
.badge-oos { position: absolute; inset: 0; background: rgba(255,255,255,.78); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--danger); }
.product-card .p-body { padding: 15px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .p-title { font-size: 14.5px; font-weight: 600; flex: 1; color: var(--ink-2); }
.p-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price .now { font-weight: 900; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-price .was { text-decoration: line-through; color: var(--mut); font-size: 13px; }
.toman::after { content: " تومان"; font-size: 11.5px; font-weight: 500; color: var(--mut); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 26px; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 22px; } }
.gallery-main { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 66px; height: 66px; object-fit: cover; border-radius: 12px; border: 2px solid var(--stroke); cursor: pointer; transition: border-color .15s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--brand); }
.pd-title { font-size: clamp(22px, 4vw, 28px); font-weight: 900; margin: 0 0 10px; letter-spacing: -.3px; }
.pd-price { font-size: 28px; font-weight: 900; margin: 16px 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-price .was { font-size: 17px; margin-inline-start: 10px; color: var(--mut); }
.stock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 13px; border-radius: 999px; }
.stock-badge svg { width: 15px; height: 15px; }
.stock-badge.in { background: #e6f7ef; color: var(--success); }
.stock-badge.out { background: #fdeaea; color: var(--danger); }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 22px 0; flex-wrap: wrap; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--stroke-2); border-radius: 12px; overflow: hidden; }
.qty-stepper button { width: 42px; height: 46px; background: var(--surface-2); border: none; font-size: 20px; cursor: pointer; color: var(--brand); font-weight: 700; }
.qty-stepper button:hover { background: var(--brand); color: #fff; }
.qty-stepper input { width: 46px; height: 46px; text-align: center; border: none; background: none; font-weight: 700; font-size: 16px; }
.specs-table { width: 100%; border-collapse: collapse; margin-top: 28px; }
.specs-table tr { border-bottom: 1px solid var(--stroke); }
.specs-table td { padding: 12px 6px; font-size: 14px; }
.specs-table td:first-child { color: var(--mut); width: 40%; }

/* ---------- Cart / Checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: right; font-size: 13px; color: var(--mut); padding: 10px 6px; border-bottom: 1px solid var(--stroke); font-weight: 600; }
.cart-table td { padding: 16px 6px; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
.cart-item-row { display: flex; align-items: center; gap: 12px; }
.cart-item-row img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--stroke); }
.remove-link { color: var(--danger); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.remove-link:hover { text-decoration: underline; }
.summary-box { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 92px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; }
.summary-row.total { font-weight: 900; font-size: 18px; border-top: 1px dashed var(--stroke-2); margin-top: 10px; padding-top: 16px; color: var(--ink); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--mut); }
.empty-state svg { width: 64px; height: 64px; color: var(--stroke-2); margin: 0 auto 14px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--stroke-2); border-radius: 12px; padding: 13px 15px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; min-height: 46px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18,163,191,.15); }

.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; margin-top: 22px; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.card-panel { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); }

.alert { padding: 13px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.alert-error { background: #fdeaea; color: var(--danger); }
.alert-success { background: #e6f7ef; color: var(--success); }

.result-box { text-align: center; padding: 64px 20px; max-width: 500px; margin: 0 auto; }
.result-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.result-icon svg { width: 40px; height: 40px; }
.result-icon.ok { background: #e6f7ef; color: var(--success); }
.result-icon.no { background: #fdeaea; color: var(--danger); }
.order-code { display: inline-block; background: var(--surface-2); border: 1px dashed var(--stroke-2); padding: 11px 22px; border-radius: 12px; font-weight: 900; letter-spacing: 1px; margin: 16px 0; font-variant-numeric: tabular-nums; }

.track-result { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; padding: 24px; margin-top: 20px; box-shadow: var(--shadow-sm); }
.status-steps { display: flex; justify-content: space-between; margin: 22px 0; position: relative; }
.status-steps .step { flex: 1; text-align: center; font-size: 12px; color: var(--mut); position: relative; }
.status-steps .step.done { color: var(--brand); font-weight: 800; }
.status-steps .dot { width: 14px; height: 14px; border-radius: 999px; background: var(--stroke-2); margin: 0 auto 8px; }
.status-steps .step.done .dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(18,163,191,.18); }

/* ---------- Footer ---------- */
footer.site-footer { background: linear-gradient(180deg, #0f1b24, #0a141b); color: #a9bcc4; margin-top: 70px; padding: 48px 0 22px; }
footer.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 28px; }
/* نماد اعتماد الکترونیکی — تصویر از سرور اینماد می‌آید و اندازه‌اش ثابت نیست */
footer.site-footer .trust-seals { display: flex; gap: 12px; flex-wrap: wrap; }
footer.site-footer .trust-seals img { width: 100px; height: auto; background: #fff;
  border-radius: 10px; padding: 6px; display: block; }
@media (max-width: 1000px){ footer.site-footer .container { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (max-width: 720px){ footer.site-footer .container { grid-template-columns: 1fr; } }
footer.site-footer .f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
footer.site-footer .f-brand .brand-logo { width: 38px; height: 45px; }
footer.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; font-weight: 800; }
footer.site-footer p { font-size: 13.5px; margin: 8px 0; }
footer.site-footer a { display: inline-flex; align-items: center; gap: 7px; }
footer.site-footer a:hover { color: var(--brand-light); }
footer.site-footer svg { width: 16px; height: 16px; opacity: .8; }
.footer-bottom { text-align: center; font-size: 12.5px; opacity: .55; margin-top: 34px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }
.floating-contact { position: fixed; z-index: 70; left: 20px; bottom: 20px; display: flex; gap: 8px; direction: rtl; }
.floating-contact a { min-height: 44px; padding: 11px 17px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 10px 28px rgba(13,31,41,.18); transition: transform .15s, box-shadow .2s; }
.floating-contact a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 13px 32px rgba(13,31,41,.24); }
.floating-call { background: var(--pink); }
.floating-whatsapp { background: #25d366; }
@media (max-width: 560px) {
  .floating-contact { left: 12px; right: 12px; bottom: 12px; }
  .floating-contact a { flex: 1; text-align: center; padding-inline: 12px; }
  .contact-actions { width: 100%; }
  .contact-actions .btn { flex: 1; padding-inline: 14px; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  nav.main-nav { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; background: var(--surface); flex-direction: column; gap: 4px; padding: 76px 18px 18px; box-shadow: -10px 0 40px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .28s ease; z-index: 60; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { font-size: 16px; padding: 13px 14px; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: rgba(6,20,25,.5); z-index: 55; }
  .nav-scrim.open { display: block; }
}
@media (min-width: 861px){ .nav-scrim { display: none; } }
@media (max-width: 480px){
  .cart-link span:not(.cart-count){ display: none; }
  .cart-link { padding: 10px 14px; }
  .brand .brand-logo { width: 34px; height: 40px; }
  .brand { font-size: 18px; }
  .hero .container { padding: 44px 22px; }
  .topbar { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

/* ═══════════ مقالات (بلاگ) ═══════════ */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.art-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.art-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}
.art-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-2), #dceef2);
  display: grid;
  place-items: center;
  color: var(--brand);
}
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-cover svg { width: 54px; height: 54px; opacity: .5; }
.art-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.art-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.art-body p {
  margin: 0; color: var(--mut); font-size: .92rem; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.art-meta {
  margin-top: auto; display: flex; gap: 7px; align-items: center;
  color: var(--mut); font-size: .82rem;
}

.pager { display: flex; gap: 8px; justify-content: center; margin: 30px 0 10px; flex-wrap: wrap; }
.pager a {
  min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-2); text-decoration: none;
}
.pager a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.crumbs { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; color: var(--mut); font-size: .88rem; margin: 20px 0 6px; }
.crumbs a { color: var(--mut); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs b { color: var(--ink-2); font-weight: 500; }

.article {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 30px clamp(18px, 4vw, 44px) 34px;
  margin: 12px 0 26px;
  max-width: 820px;
  box-shadow: var(--shadow-sm);
}
.art-head h1 { margin: 0 0 12px; font-size: clamp(1.35rem, 3.4vw, 1.95rem); line-height: 1.55; }
.art-lead {
  margin: 14px 0 0; padding: 14px 16px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: .98rem; line-height: 1.9;
}
.art-hero { width: 100%; border-radius: var(--radius-sm); margin: 22px 0 4px; }

.art-content { margin-top: 24px; font-size: 1.02rem; line-height: 2.05; color: var(--ink-2); }
.art-content h2 {
  margin: 34px 0 12px; font-size: 1.28rem; color: var(--ink);
  padding-right: 13px; border-right: 4px solid var(--brand-light); line-height: 1.6;
}
.art-content h3 { margin: 26px 0 10px; font-size: 1.08rem; color: var(--ink); }
.art-content h4 { margin: 20px 0 8px; font-size: 1rem; color: var(--ink); }
.art-content p { margin: 0 0 15px; }
.art-content ul, .art-content ol { margin: 0 0 17px; padding-right: 22px; }
.art-content li { margin-bottom: 8px; }
.art-content strong { color: var(--ink); }
.art-content code {
  background: var(--surface-2); padding: 2px 6px; border-radius: 6px;
  font-size: .9em; font-family: inherit; direction: ltr; display: inline-block;
}
.art-content blockquote {
  margin: 18px 0; padding: 12px 16px;
  border-right: 4px solid var(--brand); background: var(--surface-2);
  border-radius: var(--radius-sm); color: var(--ink-2);
}
.art-content a { color: var(--brand); }
.article-visual { margin: 30px 0; }
.article-visual img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  border: 1px solid var(--stroke); background: #0d1217;
}
.article-visual figcaption {
  margin-top: 9px; text-align: center; color: var(--muted); font-size: .85rem;
}

/* ═══════════ بازطراحی ۱۴۰۵ — فروشگاه روشنایی مدرن ═══════════ */
:root {
  --bg: #f7fafc;
  --surface-2: #eff7f8;
  --ink: #10242b;
  --ink-2: #30464e;
  --mut: #627780;
  --brand: #008fa6;
  --brand-light: #00dfe5;
  --pink: #ed0b5a;
  --pink-dark: #c9094c;
  --stroke: #dce9ec;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 8px 24px rgba(16,36,43,.055);
  --shadow: 0 24px 60px -28px rgba(5,42,52,.30);
}

body { background:
  radial-gradient(circle at 8% 8%, rgba(0,223,229,.08), transparent 25rem),
  radial-gradient(circle at 92% 30%, rgba(237,11,90,.045), transparent 24rem),
  var(--bg);
}
.skip-link { position: fixed; top: 8px; right: 8px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(0,143,166,.32); outline-offset: 3px; }

.topbar { background: #092d36; }
header.site-header { background: rgba(255,255,255,.94); box-shadow: 0 8px 30px rgba(8,43,52,.045); }
.site-header .container { min-height: 78px; }
.brand .brand-logo { width: 44px; height: 56px; display: grid; place-items: center; }
.brand .brand-logo img { object-fit: contain; }
.brand-name b { font-size: 22px; }
.brand small { font-size: 11px; }
nav.main-nav { max-width: 720px; overflow-x: auto; scrollbar-width: none; }
nav.main-nav::-webkit-scrollbar { display: none; }
nav.main-nav a { white-space: nowrap; }
.cart-link { min-height: 46px; }

.hero { min-height: 470px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; padding: clamp(28px,5vw,64px); margin-top: 32px; background: linear-gradient(135deg,#062e38 0%,#07566a 62%,#08798a 100%); box-shadow: 0 34px 80px -34px rgba(4,57,70,.7); }
.hero::after { content:""; position:absolute; inset:0; z-index:-1; opacity:.18; background-image: linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px); background-size:34px 34px; mask-image:linear-gradient(90deg,#000,transparent 82%); }
.hero-copy { max-width: 650px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(36px,6vw,66px); line-height: 1.2; max-width: 650px; }
.hero h1 span { color: #5ff8f4; }
.hero p { font-size: clamp(16px,2vw,19px); max-width: 610px; }
.hero-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
.hero-logo-orbit { width: min(280px,75%); aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.97); box-shadow:0 0 0 18px rgba(255,255,255,.08),0 30px 70px rgba(0,0,0,.22); }
.hero-logo-orbit img { width: 56%; height: 70%; object-fit: contain; }
.light-dot { position:absolute; border-radius:50%; background:#fff; box-shadow:0 0 30px 8px rgba(95,248,244,.75); }
.dot-one { width:10px;height:10px;top:16%;right:8%; }.dot-two { width:7px;height:7px;bottom:18%;left:6%; }.dot-three { width:5px;height:5px;top:26%;left:12%; }

.trust-strip { margin-top: -24px; position: relative; z-index: 4; padding: 0 22px; }
.trust-item { min-height: 86px; box-shadow: 0 18px 45px -28px rgba(5,42,52,.4); }
.trust-item .ti-ic { background: linear-gradient(145deg,#e5fbfc,#f8ffff); }
.section { padding: 64px 0; }
.section-head h2 { font-size: clamp(24px,3vw,32px); }

.cat-grid { grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 18px; }
.cat-card { box-shadow: var(--shadow-sm); }
.cat-card .cat-img { height: 150px; }
.cat-card .cat-title { padding: 17px 12px; font-size: 15px; }

.product-grid { grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 24px; }
.product-card { box-shadow: var(--shadow-sm); }
.product-card .p-img { background: #fff; }
.product-card .p-img img { object-fit: contain; padding: 10px; }
.product-card .p-body { padding: 18px; gap: 12px; }
.product-card .p-title { font-size: 15.5px; line-height: 1.7; }
.product-more { display:flex; align-items:center; justify-content:space-between; min-height:42px; padding:9px 13px; border-radius:12px; background:var(--surface-2); color:var(--brand); font-size:13px; font-weight:800; transition:background .2s,color .2s; }
.product-card:hover .product-more { background:var(--brand); color:#fff; }
.gallery-main img { object-fit: contain; padding: 16px; }

footer.site-footer { background: radial-gradient(circle at 15% 0,rgba(0,223,229,.15),transparent 24rem),linear-gradient(180deg,#0b2831,#071a20); }
footer.site-footer .f-brand .brand-logo { width:48px;height:60px; background:#fff; border-radius:14px; padding:6px; }
footer.site-footer .f-brand img { width:100%;height:100%;object-fit:contain; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 230px; margin-top: 16px; }
  .hero-logo-orbit { width: 190px; }
  .trust-strip { margin-top: 18px; padding: 0; }
}
@media (max-width: 560px) {
  .container { padding-inline: 14px; }
  .site-header .container { min-height: 66px; padding-inline:14px; }
  .brand .brand-logo { width:34px;height:43px; }
  .brand-name small { display:none; }
  .hero { margin-top:16px; border-radius:22px; padding:34px 22px; }
  .hero h1 { font-size:35px; }
  .hero-visual { min-height:190px; }
  .hero-logo-orbit { width:150px; }
  .trust-strip { grid-template-columns:1fr 1fr; gap:10px; }
  .trust-item { min-height:74px; padding:11px; gap:9px; }
  .trust-item .ti-ic { width:36px;height:36px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .product-card .p-body { padding:12px; }
  .product-card .p-title { font-size:13px; }
  .p-price .now { font-size:14px; }
  .product-more { font-size:12px; padding-inline:10px; }
  .section { padding:44px 0; }
}
@media (max-width: 360px) { .product-grid { grid-template-columns:1fr; } }

/* واترمارک خودکار همه تصاویر محصولات — فایل اصلی تصویر دست‌نخورده می‌ماند */
.watermarked-image { position: relative; isolation: isolate; }
.watermarked-image::after {
  content: "";
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  width: clamp(34px, 16%, 64px);
  aspect-ratio: 674 / 880;
  background: rgba(255,255,255,.84) url("/img/logo-brand.png") center / 76% auto no-repeat;
  border: 1px solid rgba(0,143,166,.18);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(9,45,54,.12);
  opacity: .72;
  pointer-events: none;
  z-index: 5;
}
.gallery-thumb { position: relative; display: inline-flex; border-radius: 12px; overflow: hidden; }
.gallery-thumb::after { width: 18px; inset-inline-end: 3px; bottom: 3px; border-radius: 5px; opacity: .66; }
.gallery-thumb img { margin: 0; }
@media (max-width: 560px) {
  .watermarked-image::after { inset-inline-end: 7px; bottom: 7px; width: clamp(28px,18%,44px); border-radius: 8px; }
  .gallery-thumb::after { width: 16px; inset-inline-end: 3px; bottom: 3px; }
}

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.art-tags span {
  background: var(--surface-2); color: var(--ink-2);
  padding: 5px 12px; border-radius: 999px; font-size: .84rem;
}
.art-cta {
  margin-top: 30px; padding: 18px 20px;
  background: var(--surface-2); border-radius: var(--radius);
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.art-cta b { display: block; }
.art-cta span { color: var(--mut); font-size: .9rem; }
