/* =============================================
   پارچه‌سرا — هستهٔ مشترک دیزاین
   (استایل‌های اختصاصی هر صفحه: css/pages/*.css)
   ============================================= */

@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;
}

:root {
    --cream: #f5f1ea;
    --cream-dark: #ece6db;
    --paper: #fbf9f5;
    --ink: #23242a;
    --navy: #1b2a41;
    --navy-dark: #14202f;
    --gold: #c8a267;
    --gold-dark: #a9854e;
    --muted: #7c7f87;
    --line: #e3ddd1;
    --success: #2e7d5b;
    --danger: #b23a48;
    --whatsapp: #23a455;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 4px 14px rgba(27, 42, 65, .07);
    --shadow-md: 0 14px 38px rgba(27, 42, 65, .12);
    --shadow-lg: 0 24px 70px rgba(27, 42, 65, .18);
    --container: 1200px;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.85;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

::selection { background: var(--gold); color: var(--navy-dark); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #c9c2b4; border-radius: 10px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 820px; }

main { animation: page-in .4s ease both; }
@keyframes page-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

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

.skip-link {
    position: absolute; top: -48px; right: 1rem; z-index: 200;
    background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 0 0 9px 9px;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: none; border-radius: var(--radius-sm);
    padding: .6rem 1.4rem; font-size: .95rem; font-weight: 650;
    transition: all .22s ease; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: .8rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(27,42,65,.22); }
.btn-primary:hover { background: var(--navy-dark); color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,42,65,.3); }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(200,162,103,.4); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200,162,103,.5); color: #fff; }

.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 6px 16px rgba(35,164,85,.3); }
.btn-whatsapp:hover { background: #1c8a46; color: #fff; transform: translateY(-2px); }

/* ---------- نوار بالایی ---------- */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-block: .4rem; }
.topbar-phone { color: var(--gold); font-weight: 700; letter-spacing: .5px; }
.topbar-phone:hover { color: #fff; }

/* ---------- هدر ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}

/* بلور فقط در دسکتاپ — filter روی والد، مرجعِ position:fixed فرزند (کشوی منو) را خراب می‌کند */
@media (min-width: 821px) {
    .site-header {
        background: rgba(251, 249, 245, .9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }

.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--navy);
    border-radius: 11px;
    box-shadow: inset 0 0 0 1px rgba(200,162,103,.35);
}
.logo-mark svg { width: 26px; height: 26px; display: block; }
.logo-text { font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.site-footer .logo-mark { background: rgba(255,255,255,.06); }

.main-nav { display: flex; gap: 1.75rem; align-items: center; }
.main-nav a {
    font-size: .95rem; font-weight: 600; color: var(--ink);
    padding-block: .35rem; position: relative; transition: color .2s ease;
}
.main-nav a::after {
    content: ''; position: absolute; bottom: 0; right: 0; left: auto;
    width: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(to left, var(--gold), var(--gold-dark));
    transition: width .25s ease;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--navy); }

.nav-close, .nav-contact, .nav-backdrop { display: none; }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; background: none; border: none; width: 42px; height: 42px; position: relative; z-index: 130; }
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--navy);
    margin: 5px auto; border-radius: 2px; transition: all .25s ease;
}

/* ---------- منوی کشویی موبایل ---------- */
@media (max-width: 820px) {
    .nav-toggle { display: block; }

    .main-nav {
        position: fixed; top: 0; bottom: 0; right: 0; left: auto; z-index: 125;
        width: min(320px, 86vw);
        background: var(--paper);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 4.6rem 1.4rem 1.3rem;
        box-shadow: -24px 0 60px rgba(20, 32, 47, .28);
        transform: translateX(105%);
        transition: transform .3s cubic-bezier(.22, .8, .3, 1);
        overflow-y: auto;
    }
    body.nav-open .main-nav, .main-nav.open { transform: none; }

    .main-nav a {
        color: var(--ink); font-size: 1.02rem; font-weight: 650;
        padding: .85rem .25rem;
        border-bottom: 1px solid var(--line);
        display: flex; align-items: center; justify-content: space-between;
    }
    .main-nav a::before { content: '←'; color: var(--line); font-size: .9rem; order: 2; transition: all .2s ease; }
    .main-nav a:hover::before, .main-nav a.active::before { color: var(--gold-dark); }
    .main-nav a::after { display: none; }
    .main-nav a.active { color: var(--gold-dark); }

    .nav-close {
        display: flex; align-items: center; justify-content: center;
        position: absolute; top: 1rem; left: 1.1rem;
        width: 38px; height: 38px; border-radius: 50%;
        border: 1px solid var(--line); background: #fff; color: var(--navy);
        font-size: 1rem; z-index: 126;
    }
    .nav-close:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

    .main-nav::before {
        content: 'منو';
        position: absolute; top: 1.35rem; right: 1.4rem;
        font-weight: 800; color: var(--navy); font-size: 1.02rem;
    }

    .nav-contact { display: flex; flex-direction: column; gap: .6rem; margin-top: auto; padding-top: 1.3rem; }
    /* دکمه‌ها نباید استایل لینک منو را بگیرند (رنگ تیره، فلش، خط زیر) */
    .nav-contact .btn {
        width: 100%; justify-content: center;
        padding: .7rem 1rem; border-bottom: none; font-weight: 650;
    }
    .nav-contact .btn::before { content: none; }
    .nav-contact .btn-primary { color: #fff; }
    .nav-contact .btn-whatsapp { color: #fff; }
    .nav-contact .btn-gold { color: var(--navy-dark); }
    .nav-contact .btn span { color: inherit; }

    /* z-index باید از هدر (۱۰۰) کمتر باشد تا روی کشوی داخل هدر نیفتد */
    .nav-backdrop {
        display: block; position: fixed; inset: 0; z-index: 99;
        background: rgba(20, 32, 47, .55);
        opacity: 0; pointer-events: none; transition: opacity .25s ease;
    }
    body.nav-open .nav-backdrop, .nav-backdrop.show { opacity: 1; pointer-events: auto; }

    body.nav-open { overflow: hidden; }
}

/* ---------- صفحات داخلی ---------- */
.page-hero {
    background:
        radial-gradient(600px 200px at 90% 0%, rgba(200,162,103,.14), transparent 60%),
        linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-bottom: 1px solid var(--line);
    padding-block: 2.6rem;
}
.page-hero-slim { padding-block: 1.2rem; }

.page-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 850; color: var(--navy); }
.page-desc { color: var(--muted); margin-top: .5rem; max-width: 640px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- سکشن‌ها ---------- */
.section { padding-block: 4.5rem; }
.section-alt { background: var(--cream); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--navy);
    position: relative; display: inline-block; padding-bottom: .95rem; margin-bottom: .4rem;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%);
    width: 64px; height: 3px; border-radius: 3px;
    background: linear-gradient(to left, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.section-title::before {
    content: ''; position: absolute; bottom: -2.5px; right: 50%; transform: translateX(50%) rotate(45deg);
    width: 8px; height: 8px; background: var(--gold); border-radius: 2px;
}
.section-desc { color: var(--muted); font-size: .98rem; }
.section-more { text-align: center; margin-top: 2.4rem; }

/* ---------- کارت محصول (مشترک) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.product-grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(200,162,103,.55); }

.product-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.product-card-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,32,47,.08), transparent 30%);
    pointer-events: none;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-media img { transform: scale(1.08); }

.product-card-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--gold-dark);
    background:
        repeating-linear-gradient(45deg, rgba(27,42,65,.05) 0 2px, transparent 2px 12px),
        linear-gradient(150deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.product-card-badge {
    position: absolute; top: .7rem; right: .7rem; z-index: 1;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-dark);
    font-size: .72rem; font-weight: 800; border-radius: 7px; padding: .18rem .6rem;
    box-shadow: 0 4px 12px rgba(200,162,103,.45);
}

.product-card-body { padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card-cat { font-size: .78rem; color: var(--gold-dark); font-weight: 700; }
.product-card-title { font-size: 1.02rem; font-weight: 750; color: var(--navy); line-height: 1.6; }
.product-card-summary {
    font-size: .85rem; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-link {
    margin-top: auto; padding-top: .6rem; font-size: .85rem; font-weight: 700; color: var(--navy);
    transition: color .2s ease, transform .2s ease;
}
.product-card:hover .product-card-link { color: var(--gold-dark); transform: translateX(-4px); }

/* ---------- چیپ ---------- */
.chip {
    background: var(--cream); border: 1px solid var(--line); color: var(--navy);
    font-size: .8rem; font-weight: 700; border-radius: 100px; padding: .25rem .9rem;
    transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-dark); }
.chip-gold { background: rgba(200,162,103,.14); border-color: rgba(200,162,103,.4); color: var(--gold-dark); }

/* ---------- باکس فیلتر/سایدبار (کاتالوگ و وبلاگ) ---------- */
.filter-box {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}
.filter-title { display: block; font-size: .88rem; font-weight: 800; color: var(--navy); margin-bottom: .7rem; }

.search-row { display: flex; gap: .5rem; }
.search-row input { flex: 1; min-width: 0; }

.filter-box input, .filter-box select {
    width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .5rem .8rem; background: var(--paper); font-size: .9rem;
}
.filter-box input:focus, .filter-box select:focus { outline: 2px solid rgba(200,162,103,.4); border-color: var(--gold); }

.filter-cats li { margin-bottom: .15rem; }
.filter-cats a {
    display: block; padding: .4rem .6rem; border-radius: 7px;
    font-size: .9rem; color: var(--ink); transition: all .15s ease;
}
.filter-cats a:hover { background: var(--cream); color: var(--navy); padding-right: .8rem; }
.filter-cats a.active { background: var(--navy); color: #fff; font-weight: 700; }
.filter-cats ul { margin-right: 1rem; border-right: 2px solid var(--line); padding-right: .5rem; }

/* ---------- فرم‌ها ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-field label { font-size: .88rem; font-weight: 700; color: var(--navy); }
.form-field input, .form-field textarea, .form-field select {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .65rem .9rem; background: var(--paper); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,162,103,.22);
}
.field-error { color: var(--danger); font-size: .8rem; }

.hp-field { position: absolute !important; right: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.alert { border-radius: var(--radius-sm); padding: .85rem 1.1rem; font-size: .92rem; margin-bottom: 1.2rem; }
.alert-success { background: rgba(46,125,91,.1); border: 1px solid rgba(46,125,91,.35); color: var(--success); }
.alert-error { background: rgba(178,58,72,.08); border: 1px solid rgba(178,58,72,.3); color: var(--danger); }
.alert-error:empty { display: none; }

/* ---------- صفحه‌بندی ---------- */
.pager { display: flex; justify-content: center; gap: .45rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager .current {
    min-width: 42px; padding: .5rem .8rem; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: .9rem; font-weight: 600; color: var(--ink); transition: all .2s ease;
}
.pager a:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-2px); }
.pager .current { background: var(--navy); border-color: var(--navy); color: #fff; }

.empty-state {
    background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
    text-align: center; padding: 3.5rem 1.5rem; color: var(--muted);
    display: flex; flex-direction: column; gap: 1.2rem; align-items: center;
}

/* ---------- CTA ---------- */
.cta-strip {
    background:
        radial-gradient(800px 300px at 90% -20%, rgba(200,162,103,.3), transparent 60%),
        linear-gradient(150deg, var(--navy-dark), var(--navy));
    color: #fff; padding-block: 3.4rem;
    position: relative; overflow: hidden;
}
.cta-strip::before {
    content: ''; position: absolute; inset: 0; opacity: .35; pointer-events: none;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 1px, transparent 1px 12px);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; }
.cta-inner h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; margin-bottom: .35rem; }
.cta-inner p { color: rgba(255,255,255,.75); }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- متن غنی ---------- */
.rich-text h2, .rich-text h3 { color: var(--navy); margin: 1.6rem 0 .7rem; }
.rich-text p { margin-bottom: 1rem; }
.rich-text a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }
.rich-text ul, .rich-text ol { margin: 0 1.4rem 1rem 0; list-style: disc; }
.rich-text blockquote {
    border-right: 3px solid var(--gold); background: var(--cream);
    padding: .8rem 1.1rem; border-radius: var(--radius-sm); margin-block: 1.1rem;
}
.rich-text img { border-radius: var(--radius); margin-block: 1rem; }

.related-section { margin-top: 4rem; }

/* ---------- فوتر ---------- */
.site-footer {
    background: var(--navy-dark); color: rgba(255,255,255,.78); margin-top: 4rem;
    position: relative;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
    background: linear-gradient(to left, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem;
    padding-block: 3.2rem;
}

.footer-about p { font-size: .9rem; margin-block: 1rem; max-width: 380px; }
.site-footer .logo-text { color: #fff; }

.footer-socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-socials a {
    border: 1px solid rgba(255,255,255,.25); border-radius: 100px;
    font-size: .8rem; padding: .3rem 1rem; transition: all .2s ease;
}
.footer-socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); transform: translateY(-2px); }

.footer-col h3 { color: #fff; font-size: 1rem; font-weight: 750; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .55rem; font-size: .9rem; }
.footer-col ul a { transition: all .2s ease; }
.footer-col ul a:hover { color: var(--gold); padding-right: .3rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.1rem; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------- واتساپ شناور ---------- */
.whatsapp-float {
    position: fixed; bottom: 1.4rem; left: 1.4rem; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--whatsapp); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(35,164,85,.45);
    transition: transform .2s ease;
}
.whatsapp-float::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(35,164,85,.5);
    animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(.9); opacity: 1; }
    70%, 100% { transform: scale(1.35); opacity: 0; }
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- انیمیشن ظهور ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    main { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .whatsapp-float::after { animation: none; }
}

/* ---------- ریسپانسیو مشترک ---------- */
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .header-actions .btn-outline { display: none; }
    .section { padding-block: 3.2rem; }
    .related-section { margin-top: 2.8rem; }
}

@media (max-width: 576px) {
    .container { padding-inline: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2.4rem; }
    .footer-bottom { text-align: center; }
    .header-actions .btn-primary { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar-inner span:first-child { display: none; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { width: 100%; flex-direction: column; }
    .cta-actions .btn { width: 100%; }
    .section { padding-block: 2.75rem; }
    .page-hero { padding-block: 1.9rem; }
    .product-grid, .product-grid-3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
    .product-card-body { padding: .8rem .8rem .9rem; }
    .product-card-title { font-size: .9rem; }
    .product-card-summary { display: none; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 1rem; left: 1rem; }
}

/* ---------- صفحهٔ خطا (۴۰۴ و غیره) ---------- */
.error-page { text-align: center; }

.error-code {
    font-size: clamp(4.5rem, 16vw, 8.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
    opacity: .55;
    letter-spacing: .04em;
}

.error-page h1 { font-size: clamp(1.4rem, 4vw, 2rem); color: var(--navy); margin-top: .4rem; }

.error-message {
    color: var(--muted);
    max-width: 520px;
    margin: .9rem auto 2rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 2.6rem;
}

.error-links { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.error-links > span { color: var(--muted); font-size: .9rem; }

.error-links ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    margin-top: .8rem;
}

.error-links a { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid transparent; }
.error-links a:hover { color: var(--gold-dark); border-bottom-color: var(--gold); }

.error-request-id { margin-top: 2rem; font-size: .8rem; color: var(--muted); }
.error-request-id code { background: var(--cream); padding: .15rem .45rem; border-radius: 5px; }

@media (max-width: 560px) {
    .error-actions .btn { width: 100%; }
}
