/* ── فروشگاه: هدر، هیرو، محصولات، حساب، فوتر ────────────────
   همه رنگ‌ها از توکن‌های معنایی — تم تیره/روشن خودکار اعمال می‌شود. */

/* ═══ هدر ═══ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

/* چیدمان منظم: لوگو چپ | منو وسط | حساب و سبد راست (مطابق سایت اصلی)
   با گرید سه‌ستونه که ستون‌های کناری هم‌عرض‌اند تا منو دقیقاً وسط بیفتد */
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
}
/* روی نمایشگرهای عریض فاصلهٔ بیشتری بین منوی وسط و دو گروه کناری (لوگو و
   حساب/سبد/جستجو) می‌گذاریم تا کنارِ دیواره بنشینند و به منوی وسط نچسبند.
   فقط از ۱۱۸۰px به بالا تا روی آیپدِ عمودی سرریز نشود. */
@media (min-width: 1180px) {
    .header-inner { gap: clamp(1.5rem, 4vw, 4rem); }
}
/* منطقهٔ باریک (مثل آیپد عمودی ۱۰۲۴px): کمی جمع‌تر تا نوشته‌ها همچنان جا شوند
   و هدر سرریز نکند، بدون تبدیل به آیکون. */
@media (min-width: 769px) and (max-width: 1179px) {
    .main-nav { gap: 0.95rem; }
    .main-nav .nav-link { font-size: 0.88rem; }
    .header-btn { padding: 0 0.6rem; }
    .header-btn-text { font-size: 0.85rem; }
    .header-actions { gap: 0.35rem; }
    .header-sep { margin-inline: 0.05rem; }
}
/* grid-row: 1 روی هر سه لازم است: چون ترتیب DOM (لوگو، منو، اکشن‌ها) برعکسِ
   ترتیب ستون‌هاست (۳، ۲، ۱)، الگوریتم چیدمان خودکارِ گرید هر کدام را به یک ردیف
   جدا می‌فرستاد و آیتم‌ها بالا/پایین (سه‌ردیفه) می‌شدند. با تثبیت روی ردیف ۱،
   همه در یک خط افقی می‌نشینند. */
.site-header .logo   { grid-row: 1; grid-column: 3; justify-self: end; }   /* در RTL: لبه چپ */
.main-nav            { grid-row: 1; grid-column: 2; justify-self: center; }
.header-actions      { grid-row: 1; grid-column: 1; justify-self: start; } /* در RTL: لبه راست */

.site-header .logo { color: var(--text); }

/* آیکون‌های هدر */
.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;          /* بدون این، دکمه رنگ خاکستری پیش‌فرض مرورگر می‌گیرد */
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn:focus { outline: none; }
.icon-btn:focus-visible { outline: 2px solid var(--ion-500); outline-offset: 2px; }
.icon-btn svg { width: 1.2rem; height: 1.2rem; }
.icon-btn.is-soon { opacity: 0.45; cursor: default; }
.icon-btn.is-soon:hover { background: none; }

/* دکمه‌های برچسب‌دار هدر: حساب کاربری و سبد خرید (با نوشته کنار آیکون) */
.header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 2.4rem;
    padding: 0 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.header-btn:hover { background: var(--bg-soft); }
.header-btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.header-btn-text { font-size: 0.9rem; font-weight: 500; }
.header-btn-cart { color: var(--signal-white); background: var(--ion-500); border-color: var(--ion-500); }
.header-btn-cart:hover { background: var(--ion-600, #2f5fe0); border-color: var(--ion-600, #2f5fe0); color: var(--signal-white); }

.cart-badge {
    position: absolute;
    top: -0.35rem;
    inset-inline-start: -0.35rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding-inline: 0.22rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--ion-500);
    color: var(--signal-white);
    font-size: 0.66rem;
    line-height: 1;
    border: 2px solid var(--header-bg);
}
.header-btn-cart .cart-badge { background: var(--signal-white); color: var(--ion-500); border-color: var(--ion-500); }

/* جداکنندهٔ باریک بین گروهِ «حساب/سبد» و آیکون‌های «علاقه‌مندی/جستجو» */
.header-sep {
    width: 1px;
    height: 1.5rem;
    background: var(--border);
    margin-inline: 0.15rem;
}
.has-hero-header .header-sep { background: rgba(250,250,250,.28); }
.has-hero-header .site-header.is-scrolled .header-sep { background: var(--border); }

.main-nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 1.75rem; white-space: nowrap; }

.nav-link {
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: color .2s ease;
}
.nav-link.is-active, .nav-link:not(.is-soon):hover { color: var(--text); }

/* زیرمنوی «محصولات» */
.nav-item { position: relative; }
.nav-caret { font-size: 0.7em; }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.9rem);
    inset-inline-start: 50%;
    transform: translateX(50%) translateY(6px);
    min-width: 13rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}
[dir="rtl"] .nav-dropdown { transform: translateX(50%) translateY(6px); }

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

/* پل نامرئی تا هنگام حرکت موس، منو بسته نشود */
.nav-item::after { content: ''; position: absolute; top: 100%; right: 0; left: 0; height: 1rem; }

.nav-dropdown a {
    display: block;
    padding: 0.55rem 0.9rem;
    border-radius: 9px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.92rem;
}
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--text); }
.nav-dropdown a:first-child { color: var(--ion-500); font-weight: 500; }

.header-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 0.5rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ═══ هیرو — در هر دو تم تیره می‌ماند (هویت برند) ═══ */
.hero {
    position: relative;
    min-height: min(58vh, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--graphite-950);
}

/* «افق زمین» با CSS خالص — تا وقتی عکس واقعی زمین از فضا جایگزین شود */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* ستاره‌های ریز */
        radial-gradient(1px 1px at 18% 22%, rgba(250,250,250,.65) 50%, transparent 51%),
        radial-gradient(1px 1px at 72% 14%, rgba(250,250,250,.5) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 86% 38%, rgba(250,250,250,.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 34% 44%, rgba(250,250,250,.45) 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 8%,  rgba(250,250,250,.55) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 8% 58%, rgba(250,250,250,.35) 50%, transparent 51%),
        /* درخشش آبیِ افق سیاره در پایین کادر */
        radial-gradient(ellipse 130% 46% at 50% 118%, rgba(59, 110, 246, 0.38) 0%, rgba(22, 35, 58, 0.65) 42%, transparent 72%),
        radial-gradient(ellipse 120% 34% at 50% 112%, rgba(11, 18, 32, 1) 0%, transparent 68%);
}

/* خط باریک روشنِ لبه افق */
.hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -42vw;
    width: 160vw;
    height: 50vw;
    transform: translateX(-50%);
    border-radius: 50%;
    box-shadow: 0 -2px 28px rgba(120, 160, 255, 0.55);
    pointer-events: none;
}

/* اگر عکس واقعی «زمین از فضا» در public/assets/img/hero-earth.jpg آپلود شود،
   کلاس has-image خودکار فعال می‌شود و جای گرافیک CSS را می‌گیرد */
.hero.has-image { background: url('../img/hero-earth.jpg') center / cover no-repeat; }
.hero.has-image::before {
    background:
        radial-gradient(ellipse 60% 55% at 50% 46%, rgba(5, 7, 13, 0.42) 0%, transparent 100%),
        linear-gradient(to top, rgba(5, 7, 13, 0.8) 0%, rgba(5, 7, 13, 0.22) 55%, rgba(5, 7, 13, 0.45) 100%);
}
.hero.has-image::after { content: none; }

.hero.has-image .hero-title    { text-shadow: 0 2px 22px rgba(5, 7, 13, 0.75); }
.hero.has-image .hero-subtitle { color: var(--titanium-200); text-shadow: 0 1px 14px rgba(5, 7, 13, 0.8); }
.hero.has-image .hero-lead     { color: var(--titanium-300); text-shadow: 0 1px 12px rgba(5, 7, 13, 0.85); }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 46rem;
    padding: 3.5rem 1.25rem;
}

.hero-title {
    color: var(--signal-white);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.9rem;
}

.hero-subtitle {
    color: var(--titanium-300);
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    margin: 0 0 1rem;
}

.hero-lead {
    color: var(--titanium-500);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin: 0 0 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

/* ═══ سکشن‌ها ═══ */
.section { padding-block: var(--section-gap); }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
}

.section-hint { color: var(--text-muted); font-size: 0.9rem; }

/* ═══ گرید محصولات ═══ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(5, 7, 13, .04);
    transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
}
/* تحرک ملایم و مدرن هنگام هاور: کمی بالا می‌آید، سایه نرم می‌گیرد و تصویر
   خیلی کم بزرگ‌نمایی می‌شود — بدون زیاده‌روی */
.product-card:hover {
    box-shadow: 0 14px 30px -12px rgba(5, 7, 13, .22);
    border-color: var(--ion-500);
    transform: translateY(-4px);
}

.product-media {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-media img { transform: scale(1.045); }

.product-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-latin);
    font-weight: 700;
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.product-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 1.1rem 1.25rem 1.4rem; }
.product-body .product-price { margin-top: auto; }

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.7rem;
}

.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem;
}
.price-final { font-weight: 700; color: var(--text); }
/* قیمت اصلی (قبل از تخفیف): قرمز و خط‌خورده — قیمت نهایی مشکی می‌ماند */
.price-old {
    font-size: 0.85rem;
    color: #e0453f;
    text-decoration: line-through;
    text-decoration-color: #e0453f;
}

.empty-state {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}

/* ═══ فهرست محصولات و صفحه محصول ═══ */
.catalog-section, .product-page { padding-block: 2.5rem var(--section-gap); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .current { color: var(--text); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.25rem; }

.chip {
    padding: 0.4rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.88rem;
    transition: border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--text-muted); color: var(--text); }
.chip.is-active { background: var(--ion-500); border-color: var(--ion-500); color: var(--signal-white); }

.pagination { display: flex; gap: 0.4rem; }
.catalog-pagination { margin-top: 2.5rem; justify-content: center; }
.pagination a, .pagination span {
    padding: 0.3rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.85rem;
    border: 1px solid var(--border); color: var(--text-soft); text-decoration: none;
}
.pagination .is-current { background: var(--ion-500); border-color: var(--ion-500); color: var(--signal-white); }

/* صفحه محصول */
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.gallery-main {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

/* لایت‌باکس تصویر محصول */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(5, 7, 13, .92);
    animation: lbFade .2s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage {
    max-width: 92vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .25s ease;
}
.lightbox img.is-zoomed { transform: scale(2.3); cursor: zoom-out; }
.lightbox-close {
    position: fixed;
    top: 1.1rem;
    inset-inline-end: 1.1rem;
    width: 2.7rem;
    height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }

.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.gallery-thumb {
    width: 4.2rem; height: 4.2rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    background: var(--bg-soft);
    cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active { border-color: var(--ion-500); box-shadow: 0 0 0 1px var(--ion-500); }

.product-title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; color: var(--text); margin-bottom: 0.9rem; }
.product-short { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1.75rem; }

.price-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.75rem;
}
.price-line { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.3rem; }
.discount-badge {
    background: rgba(220, 60, 60, .1);
    color: #e05252;
    border-radius: var(--radius-pill);
    padding: 0.05rem 0.8rem;
    font-size: 0.8rem;
}
.price-main { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.stock-note { display: block; font-size: 0.85rem; margin-bottom: 1.4rem; }
.stock-note.in { color: #1f9d5c; }
:root[data-theme="dark"] .stock-note.in { color: #86efac; }
.stock-note.out { color: var(--text-muted); }

.price-box .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.price-box .btn-block { display: block; width: 100%; text-align: center; }

.product-details { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
.panel-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
}
.panel-block h2 { font-size: 1.1rem; margin: 0 0 1rem; color: var(--text); }
.product-description { color: var(--text-soft); line-height: 2.1; }

.attr-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.attr-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.attr-table tr:last-child td { border-bottom: 0; }
.attr-table .attr-key { color: var(--text-muted); width: 34%; }

.related-block { margin-top: 3.5rem; }

@media (max-width: 860px) {
    .product-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ═══ حساب کاربری ═══ */
.account-section { min-height: 60vh; }

.account-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.account-sub { color: var(--text-muted); margin: 0.4rem 0 0; }

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.75rem;
}

.account-card h3 { font-size: 1.05rem; margin-bottom: 0.9rem; color: var(--text); }
.account-card.is-disabled { opacity: 0.65; }
.account-card a { color: var(--ion-500); text-decoration: none; }

.account-info { list-style: none; padding: 0; margin: 0; }
.account-info li { padding: 0.3rem 0; font-size: 0.95rem; color: var(--text-soft); }
.account-info li span { color: var(--text-muted); margin-inline-end: 0.4rem; }

.muted { color: var(--text-muted); }

/* ═══ نوار اعتماد ═══ */
.trust-section { padding-block: 0 var(--section-gap); }

.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.6rem 1.25rem;
}
.trust-item + .trust-item { border-inline-start: 1px solid var(--border); }

.trust-icon {
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ion-500);
}
.trust-icon svg { width: 1.7rem; height: 1.7rem; }

.trust-item h3 { font-size: 0.98rem; font-weight: 700; color: var(--text); margin: 0; }
.trust-item p { font-size: 0.82rem; color: var(--text-muted); margin: 0.15rem 0 0; }

/* ═══ فوتر — تم‌پذیر؛ لوگو سمت چپ ═══ */
.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    padding-block: 3.5rem;
    margin-top: var(--section-gap);
}

.footer-inner {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-footer { color: var(--text); }
.footer-tagline { color: var(--text-muted); margin: 0.5rem 0 0; font-size: 0.9rem; }
.footer-copy { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ═══ واکنش‌گرایی ═══ */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3) { border-inline-start: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .account-grid { grid-template-columns: 1fr; }

    .trust-bar { grid-template-columns: 1fr; }
    .trust-item { justify-content: flex-start; }
    .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--border); }

    .header-actions .is-soon:not(.cart-btn) { display: none; } /* جا برای موبایل */

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 1.25rem 1rem;
    }
    .main-nav.is-open { display: flex; }
    .main-nav .nav-link { padding: 0.7rem 0; }

    /* موبایل: زیرمنو به‌صورت باز و ساده زیر «محصولات» */
    .nav-item { width: 100%; }
    .nav-item::after { content: none; }
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        box-shadow: none;
        background: none;
        padding: 0 1rem 0.4rem;
        min-width: 0;
    }

    .nav-toggle { display: flex; }

    .hero { min-height: min(48vh, 460px); }
}

@media (max-width: 420px) {
    .product-grid { grid-template-columns: 1fr; }
}

.footer-version { opacity: .6; font-size: .78em; margin-inline-start: .6rem; direction: ltr; display: inline-block; }

/* روی موبایلِ باریک، دکمه‌های «حساب کاربری/سبد خرید» فقط آیکون می‌شوند تا هدر
   جمع‌وجور بماند؛ روی تبلت و دسکتاپ (که کاربر استفاده می‌کند) نوشته‌ها می‌مانند. */
@media (max-width: 640px) {
    .header-btn-text { display: none; }
    .header-btn { padding: 0; width: 2.4rem; justify-content: center; border-color: transparent; }
    .header-btn-cart { border-color: var(--ion-500); }
    .header-actions { gap: 0.35rem; }
    .header-sep { display: none; }
}

/* ═══ کارت‌های دسترسی سریع دسته‌ها (زیر هیرو) ═══ */
/* ═══ کارت‌های دسته‌بندی — طرح مرجع (در بخش روشن زیر هیرو) ═══ */
.cat-quick-section { padding: 3.5rem 0 0; }

.cat-quick-title {
    text-align: center;
    color: var(--text);
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 700;
    margin: 0 0 2.25rem;
}
.cat-quick-title::after {
    content: '';
    display: block;
    width: 2.5rem; height: 3px;
    background: var(--ion-500);
    border-radius: 2px;
    margin: 0.7rem auto 0;
}

.cat-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 1.5rem;
}

/* دو ستون کنار هم بدون هم‌پوشانی: متن سمت راست (RTL)، تصویر سمت چپ */
.cat-quick-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    min-height: 14.5rem;
    overflow: hidden;
    background: var(--bg-soft);              /* پس‌زمینه خاکستری روشن مطابق مرجع */
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem 2rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cat-quick-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

.cat-quick-text { flex: 1 1 50%; min-width: 0; }
.cat-quick-text h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 0 0 0.35rem; line-height: 1.5; }
.cat-quick-text p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

.cat-quick-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem; height: 2.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    margin-top: 1.25rem;
    color: var(--text-soft);
    background: var(--surface);
    font-size: 1rem;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cat-quick-card:hover .cat-quick-arrow { background: var(--ion-500); border-color: var(--ion-500); color: var(--signal-white); }

/* تصویر در ستون چپ کارت — هم‌اندازه، بدون پوشاندن متن */
.cat-quick-media {
    flex: 0 0 42%;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-quick-media img { max-width: 100%; max-height: 10.5rem; object-fit: contain; }

/* اگر تصویری نبود، متن تمام عرض را بگیرد */
.cat-quick-card:not(:has(.cat-quick-media)) .cat-quick-text { flex-basis: 100%; }

@media (max-width: 1024px) { .cat-quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cat-quick-grid { grid-template-columns: 1fr; } .cat-quick-card { min-height: 9.5rem; } }

/* ═══ صفحه سبد خرید ═══ */
.cart-section { padding-block: 2.5rem var(--section-gap); }

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: 1.5rem;
    align-items: start;
}

.cart-items { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1rem 1.25rem;
}

.cart-item-media {
    flex: none;
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { display: block; color: var(--text); font-weight: 600; text-decoration: none; font-size: 0.98rem; margin-bottom: 0.25rem; }
.cart-item-unit { font-size: 0.83rem; }
.cart-stock-warn { color: #e05252; font-size: 0.8rem; margin-top: 0.3rem; }

.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.15rem;
}
.qty-btn {
    width: 1.9rem; height: 1.9rem;
    border: 0; border-radius: var(--radius-pill);
    background: none; color: var(--text);
    font-size: 1rem; cursor: pointer;
}
.qty-btn:hover { background: var(--bg-soft); }
.qty-value { min-width: 2rem; text-align: center; font-size: 0.95rem; color: var(--text); }

.cart-line-total { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.cart-remove { background: none; border: 0; color: #e05252; font-family: var(--font-fa); font-size: 0.8rem; cursor: pointer; }

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.6rem;
    position: sticky;
    top: 5.5rem;
}
.cart-summary h2 { font-size: 1.05rem; margin: 0 0 1.2rem; color: var(--text); }
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--text-soft); padding: 0.4rem 0; }
.summary-total { border-top: 1px solid var(--border); margin-top: 0.6rem; padding-top: 0.9rem; font-weight: 700; color: var(--text); }
.cart-summary .btn-block { display: block; width: 100%; text-align: center; margin-top: 1.1rem; }
.cart-summary .btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.cart-feedback { margin-top: 0.8rem; font-size: 0.88rem; border-radius: 10px; padding: 0.55rem 0.9rem; }
.cart-feedback.is-ok  { color: #1f9d5c; background: rgba(34, 160, 90, .08); }
.cart-feedback.is-err { color: #e05252; background: rgba(220, 60, 60, .08); }
:root[data-theme="dark"] .cart-feedback.is-ok { color: #86efac; }

@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* کارت‌های لینک‌شده: بدون زیرخط */
a.product-card, a.product-card * { text-decoration: none; }
/* اما خط‌خوردگیِ قیمت اصلی داخل کارت باید بماند (بازنویسی ریست بالا) */
a.product-card .price-old { text-decoration: line-through; text-decoration-color: #e0453f; }
a.section-hint { text-decoration: none; }
a.section-hint:hover { color: var(--text); }

/* ═══ هدر یکپارچه با هیرو (صفحه اصلی) ═══ */
.has-hero-header .site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.has-hero-header .site-header .logo,
.has-hero-header .main-nav .nav-link,
.has-hero-header .icon-btn { color: var(--signal-white); }
.has-hero-header .main-nav .nav-link { color: rgba(250,250,250,.82); }
.has-hero-header .main-nav .nav-link.is-active,
.has-hero-header .main-nav .nav-link:not(.is-soon):hover { color: var(--signal-white); }
/* دکمهٔ حساب: شفاف با متن سفید؛ دکمهٔ سبد: آبی می‌ماند */
.has-hero-header .header-btn:not(.header-btn-cart) { color: var(--signal-white); border-color: rgba(250,250,250,.5); }
.has-hero-header .icon-btn:hover,
.has-hero-header .header-btn:not(.header-btn-cart):hover { background: rgba(250,250,250,.12); }
.has-hero-header .nav-toggle span { background: var(--signal-white); }

/* بعد از اسکرول، هدر پس‌زمینه می‌گیرد و به رنگ عادی برمی‌گردد */
.has-hero-header .site-header.is-scrolled {
    position: fixed;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: headerDrop .25s ease;
}
@keyframes headerDrop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.has-hero-header .site-header.is-scrolled .logo,
.has-hero-header .site-header.is-scrolled .main-nav .nav-link,
.has-hero-header .site-header.is-scrolled .icon-btn { color: var(--text); }
.has-hero-header .site-header.is-scrolled .main-nav .nav-link { color: var(--text-muted); }
.has-hero-header .site-header.is-scrolled .main-nav .nav-link.is-active,
.has-hero-header .site-header.is-scrolled .main-nav .nav-link:not(.is-soon):hover { color: var(--text); }
.has-hero-header .site-header.is-scrolled .header-btn:not(.header-btn-cart) { color: var(--text); border-color: var(--border); }
.has-hero-header .site-header.is-scrolled .nav-toggle span { background: var(--text); }

/* هیرو صفحه اصلی زیر هدر شفاف شروع می‌شود */
.has-hero-header .hero { margin-top: -4.25rem; padding-top: 4.25rem; }

/* ═══ نوار جستجوی هدر ═══ */
.search-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    border-top: 1px solid transparent;
}
.search-panel.is-open {
    max-height: 6rem;
    border-top-color: var(--border);
    background: var(--surface);
    /* بدون این، پیشنهادهای زندهٔ جستجو (که با موقعیت مطلق زیر کادر ظاهر می‌شوند)
       توسط overflow پنل بریده می‌شدند و اصلاً دیده نمی‌شدند */
    overflow: visible;
}
.has-hero-header .search-panel.is-open { background: var(--graphite-900); }
.search-panel form { display: flex; gap: 0.6rem; padding: 0.9rem 0; }
.search-panel input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-fa);
    font-size: 0.95rem;
}
.search-panel input:focus { outline: none; border-color: var(--ion-500); }

.search-page-form { display: flex; gap: 0.6rem; max-width: 34rem; margin-bottom: 2.5rem; }
.search-page-form input {
    flex: 1; padding: 0.7rem 1.1rem; border: 1px solid var(--border);
    border-radius: var(--radius-pill); background: var(--surface); color: var(--text);
    font-family: var(--font-fa); font-size: 0.95rem;
}
.search-page-form input:focus { outline: none; border-color: var(--ion-500); }

/* ═══ دکمه علاقه‌مندی (قلب) ═══ */
.product-card-wrap { position: relative; height: 100%; }
.fav-btn {
    position: absolute;
    top: 0.7rem;
    inset-inline-end: 0.7rem;
    z-index: 3;
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.9);
    color: var(--titanium-500);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(5,7,13,.12);
    transition: color .2s ease, transform .2s ease;
}
.fav-btn:hover { transform: scale(1.08); color: #e0447a; }
.fav-btn svg { width: 1.15rem; height: 1.15rem; fill: none; }
.fav-btn.is-fav { color: #e0447a; }
.fav-btn.is-fav svg { fill: #e0447a; }

.fav-btn-lg {
    position: static;
    width: 3.3rem; height: 3.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
    flex: none;
}
.fav-btn-lg svg { width: 1.4rem; height: 1.4rem; }

.product-actions { display: flex; gap: 0.75rem; align-items: stretch; }
.product-actions .btn-lg { flex: 1; text-align: center; }

/* ═══ فوتر گسترده ═══ */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.footer-col h4 { font-size: 0.95rem; color: var(--text); margin: 0 0 1rem; }
.footer-col a, .footer-contact {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.25rem 0;
}
.footer-col a:hover, a.footer-contact:hover { color: var(--text); }
.footer-about { color: var(--text-muted); font-size: 0.85rem; line-height: 2; margin: 0.75rem 0 0; }

/* لوگوی فوتر: از لبه راست ستون شروع شود (نه چپ) */
.footer-brand { text-align: right; }
.footer-brand .logo-footer { display: inline-block; direction: ltr; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══ تسویه‌حساب و فرم‌ها (سمت فروشگاه) ═══ */
.checkout-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
}
.checkout-form .form-grid .span-2 { grid-column: span 2; }
.checkout-form .field { display: block; }
.checkout-form .field > span { display: block; font-size: 0.88rem; color: var(--text-soft); margin-bottom: 0.35rem; }
.checkout-form .field input, .checkout-form .field textarea {
    width: 100%; box-sizing: border-box; padding: 0.65rem 0.9rem;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--text); font-family: var(--font-fa); font-size: 0.95rem;
}
.checkout-form .field input:focus, .checkout-form .field textarea:focus { outline: none; border-color: var(--ion-500); }
.checkout-gateway-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin: 0.8rem 0 0; }

@media (max-width: 560px) {
    .checkout-form .form-grid { grid-template-columns: 1fr; }
    .checkout-form .form-grid .span-2 { grid-column: span 1; }
}

/* ═══ نتیجه پرداخت ═══ */
.payment-result {
    max-width: 32rem; margin: 2rem auto; text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 3rem 2rem;
}
.payment-icon {
    width: 4.5rem; height: 4.5rem; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill); font-size: 2.2rem; color: #fff;
}
.payment-icon.ok { background: #1f9d5c; }
.payment-icon.fail { background: #e0447a; }
.payment-result h1 { font-size: 1.4rem; margin: 0 0 0.75rem; color: var(--text); }
.payment-result p { color: var(--text-soft); margin: 0 0 0.4rem; }
.payment-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; flex-wrap: wrap; }

/* ═══ سفارش‌های کاربر ═══ */
.orders-list { display: flex; flex-direction: column; gap: 0.85rem; }
.order-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: center;
    gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 1.1rem 1.4rem;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}
.order-row:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.order-num { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; }
.order-num .muted { font-size: 0.75rem; }
.order-num b { color: var(--text); }
.order-total { font-weight: 700; color: var(--text); }
.order-status { font-size: 0.82rem; padding: 0.2rem 0.9rem; border-radius: var(--radius-pill); white-space: nowrap; }
.status-ok   { background: rgba(34,160,90,.12); color: #1f9d5c; }
.status-warn { background: rgba(230,160,30,.14); color: #b9791a; }
.status-err  { background: rgba(220,60,60,.1); color: #e05252; }
.status-muted{ background: var(--bg-soft); color: var(--text-muted); }
:root[data-theme="dark"] .status-ok { color: #86efac; }

@media (max-width: 620px) {
    .order-row { grid-template-columns: 1fr 1fr; }
}

.order-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ═══ کد تخفیف (سبد) ═══ */
.coupon-box { margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.coupon-input { display: flex; gap: 0.5rem; }
.coupon-input input {
    flex: 1; min-width: 0; padding: 0.55rem 0.8rem; border: 1px solid var(--border);
    border-radius: var(--radius-pill); background: var(--bg); color: var(--text); font-family: var(--font-fa); font-size: 0.9rem;
}
.coupon-input input:focus { outline: none; border-color: var(--ion-500); }
.coupon-msg { color: #e05252; font-size: 0.82rem; margin-top: 0.5rem; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem; color: #1f9d5c; }
:root[data-theme="dark"] .coupon-applied { color: #86efac; }
.coupon-remove { background: none; border: 0; color: #e05252; cursor: pointer; font-family: var(--font-fa); font-size: 0.82rem; }

/* ═══ آدرس‌ها ═══ */
.address-list { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.address-card {
    position: relative;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 1.25rem 1.5rem;
}
.address-card.is-default { border-color: var(--ion-500); }
.address-card h3 { font-size: 1rem; margin: 0 0 0.5rem; color: var(--text); }
.address-card p { margin: 0.15rem 0; font-size: 0.9rem; color: var(--text-soft); }
.address-default-badge {
    position: absolute; top: 1.25rem; inset-inline-start: 1.5rem;
    background: var(--ion-500); color: #fff; font-size: 0.72rem; padding: 0.1rem 0.7rem; border-radius: var(--radius-pill);
}
.address-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }

/* انتخاب آدرس در تسویه‌حساب */
.saved-addresses { margin-bottom: 1.5rem; }
.saved-addresses-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.saved-address-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.addr-chip {
    padding: 0.45rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--text-soft); font-family: var(--font-fa); font-size: 0.85rem; cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.addr-chip:hover { border-color: var(--text-muted); color: var(--text); }
.addr-chip.is-selected { background: var(--ion-500); border-color: var(--ion-500); color: #fff; }

/* ═══ پیشنهاد زنده جستجو ═══ */
.search-form { position: relative; }
.search-field { position: relative; flex: 1; }
.search-suggest {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 0.4rem;
    z-index: 70;
    max-height: 22rem;
    overflow-y: auto;
}
.suggest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
}
.suggest-item:hover { background: var(--bg-soft); }
.suggest-item img, .suggest-noimg {
    width: 2.6rem; height: 2.6rem; flex: none; border-radius: 8px;
    object-fit: cover; background: var(--bg-soft); border: 1px solid var(--border);
}
.suggest-noimg { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-family: var(--font-latin); font-weight: 700; }
.suggest-name { flex: 1; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-price { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }

/* در تم تیرهٔ هدرِ روی هیرو، نتایج روشن بمانند */
.has-hero-header .search-suggest { color: var(--text); }

/* ═══ صفحهٔ قوانین و مقررات ═══ */
.container-narrow { max-width: 52rem; }
.legal-page { padding-block: 2.5rem var(--section-gap); }
.legal-header { margin-bottom: 2rem; }
.legal-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; color: var(--text); margin: 0 0 0.5rem; }
.legal-title::after { content: ''; display: block; width: 3rem; height: 3px; background: var(--ion-500); border-radius: 2px; margin-top: 0.9rem; }
.legal-subtitle { color: var(--text-muted); font-size: 0.98rem; margin: 0; }

.legal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    line-height: 2.1;
    color: var(--text-soft);
}
.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin: 2.25rem 0 0.4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 1.6rem 0 0.35rem; }
.legal-content p { margin: 0 0 0.6rem; }
.legal-content ul { margin: 0.2rem 1.2rem 1rem; padding: 0; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content .legal-lead { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.legal-content .legal-note {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: var(--bg-soft);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ═══ چک‌باکس پذیرش قوانین (ثبت‌نام و تسویه) ═══ */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 1rem 0 1.1rem;
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.7;
    cursor: pointer;
}
.terms-check input { margin-top: 0.35rem; width: 1.05rem; height: 1.05rem; accent-color: var(--ion-500); flex: none; }
.terms-link { color: var(--ion-500); font-weight: 600; text-decoration: none; }
.terms-link:hover { text-decoration: underline; }
