/* =========================================================
   تامین ذوب فولاد ذوالفقاری — استایل جدید (تم سرمه‌ای/آبی/نارنجی)
   نکته: نام کلاس‌های قبلی نگه داشته شده تا با slider.js سازگار بماند؛
   کلاس‌های جدید برای بخش‌های تازه (هیرو، سایدبار، بج وضعیت و...) اضافه شده‌اند.
   ========================================================= */

:root{
  --navy: #0a1730;
  --navy-2: #0f2247;
  --blue: #1e56e8;
  --blue-dark: #163fae;
  --orange: #f5851f;
  --orange-dark: #d96f0f;
  --muted: #565f73;
  --border: #e8ebf2;
  --bg-light: #f5f7fb;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
    font-family: 'Vazirmatn-Black';
    src: url('../fonts/Vazirmatn-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazirmatn-Black', 'Vazirmatn', Tahoma, sans-serif;
    line-height: 1.8;
    color: #24304a;
    font-size: 15px;
    background: #ffffff;
}

h1,h2,h3,h4 { font-weight: 700; color: var(--navy); }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- کلاس مخفی برای برچسب‌های فرم (فقط برای screen reader، اکسسیبیلیتی) --- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- آیکون‌های SVG داخلی (جایگزین Font Awesome) --- */
.icon-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }
.icon-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.topbar { background: var(--navy); color: #c7cfe0; padding: 8px 0; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: flex-start; gap: 24px; }
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar i { color: var(--orange); }

/* --- هدر --- */
header {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 14px rgba(10,23,48,.08);
    position: sticky;
    top: 0;
    z-index: 1200;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; }
.nav-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-consult { padding: 10px 20px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { height: 60px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.35; }
.logo-text strong { font-size: 15.5px; color: var(--navy); font-weight: 800; }
.logo-text small { font-size: 12px; color: var(--muted); font-weight: 600; }

/* --- دکمه همبرگر (منوی موبایل) --- */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-nav ul li { position: relative; }
.main-nav ul li:not(:last-child)::after { content: ""; }
.main-nav ul li a {
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 999px;
    transition: all .2s;
    display: inline-block;
}
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--blue); background: #eef3ff; }

/* --- اسلایدر / هیرو --- */
.slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 480px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(10,23,48,.2);
}
.slide { display: none; width: 100%; height: 100%; position: relative; border-radius: 20px; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(1.05); }
.caption {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; color: #fff;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: right;
    background: linear-gradient(to left, rgba(9,17,38,.94) 0%, rgba(9,17,38,.55) 45%, rgba(9,17,38,.15) 100%);
    padding: 40px 92px 40px 60px;
}
.caption .eyebrow { color: var(--orange); font-weight: 800; font-size: 15px; margin-bottom: 8px; letter-spacing: .5px; }
.caption h1, .caption h2 { font-size: 32px; margin-bottom: 14px; font-weight: 800; color: #fff; max-width: 560px; line-height: 1.4; }
.caption p { font-size: 15.5px; margin-bottom: 22px; font-weight: 400; color: #dbe1ef; max-width: 480px; }

.btn {
    display: inline-block; padding: 12px 28px; background: var(--blue); color: #fff;
    border-radius: 999px; font-weight: 700; transition: transform .2s, background .2s;
    box-shadow: 0 8px 20px rgba(30,86,232,.3); border: none; cursor: pointer; font-size: 14.5px;
}
.btn:hover { transform: translateY(-2px); background: var(--blue-dark); }
.btn.btn-outline { background: transparent; border: 1.5px solid #fff; box-shadow: none; }
.btn.btn-outline:hover { background: #fff; color: var(--navy); }
.btn.btn-outline-navy { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); box-shadow: none; }
.btn.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-danger-sm {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 12px;
    background: #fdeceb; color: #c8382c; border: 1px solid #f7c9c5; border-radius: 999px; box-shadow: none;
}
.btn-danger-sm:hover { background: #c8382c; color: #fff; }
.price-row-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-row-form input[type="password"] {
    width: 130px; padding: 6px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-light);
}

.prev, .next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;
    border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); transition: background .3s, transform .3s;
    padding: 0; font: inherit; -webkit-appearance: none; appearance: none;
}
.prev { right: 20px; } .next { left: 20px; }
.prev:hover, .next:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-50%) scale(1.08); }
.prev svg, .next svg { width: 18px; height: 18px; }

/* --- نوار ویژگی‌ها (زیر هیرو) --- */
/* --- نوار قیمت لحظه‌ای (یکی‌یکی، با محو شدن نرم) --- */
.price-ticker {
    background: var(--navy);
    position: relative;
    z-index: 2;
    padding: 14px 0;
    box-shadow: 0 4px 14px rgba(10,23,48,.15);
}
.price-ticker-track {
    position: relative;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.price-ticker-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
}
.price-ticker-slide.active { opacity: 1; visibility: visible; }
.price-ticker-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(245,133,31,.25);
}
.price-ticker-slide strong { color: var(--orange); font-weight: 800; }
.price-ticker-value { font-weight: 700; }
.price-ticker-slide small { color: #9fabc7; font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
    .price-ticker-slide { transition: none; }
}

.features-bar { margin-top: -45px; position: relative; z-index: 3; }
.features-card {
    max-width: 1200px; margin: 0 auto; background: #fff; border-radius: var(--radius);
    box-shadow: 0 15px 45px rgba(10,23,48,.14); padding: 1.8rem 1.4rem;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.feature-item { text-align: center; }
.feature-icon {
    width: 54px; height: 54px; border-radius: 50%; background: #eaf0ff; color: var(--blue);
    display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 10px;
}
.feature-item .feature-title { margin: 0 0 4px; font-size: 14px; color: var(--navy); font-weight: 700; }
.feature-item small { color: var(--muted); font-size: 12px; }

/* --- عنوان بخش‌ها --- */
.section-heading { text-align: center; margin-bottom: 2.2rem; }
.section-heading h2 { font-size: 24px; }
.section-heading .heading-underline {
    display: block; width: 60px; height: 4px; border-radius: 4px; margin: 12px auto 0;
    background: linear-gradient(90deg, var(--blue), var(--orange));
}
.section-heading p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* --- دسته‌بندی محصولات (کارت‌ها در صفحه اصلی) --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; padding: 0 20px 10px; }
.category-card {
    display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.8rem 1.4rem; text-align: center; transition: .2s;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(10,23,48,.1); border-color: transparent; }
.category-card .cat-icon {
    width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.category-card h3 { font-size: 16px; margin-bottom: 6px; }
.category-card span.count { color: var(--muted); font-size: 12.5px; }

/* --- محصولات --- */
.products-section { padding: 60px 0; text-align: center; background: var(--bg-light); }
.products-section h2 { font-size: 26px; margin-bottom: 8px; color: var(--navy); font-weight: 800; }

.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; text-align: right; align-items: start; }
@media (max-width: 860px){ .products-layout { grid-template-columns: 1fr; } }

.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.1rem; text-align: right; }
.sidebar-box h2 { font-size: 15px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-light); }
.cat-filter-list { list-style: none; }
.cat-filter-list li a { display: flex; justify-content: space-between; padding: 9px 8px; border-radius: 8px; color: #3c4763; font-size: 13.5px; }
.cat-filter-list li a span { color: var(--muted); font-size: 11.5px; }
.cat-filter-list li.active a, .cat-filter-list li a:hover { color: var(--blue); background: #eef3ff; }

.search-box { display: flex; gap: 8px; }
.search-box input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 13.5px; background: var(--bg-light); }
.search-box input:focus { outline: none; border-color: var(--blue); background: #fff; }
.search-box button { background: var(--blue); color: #fff; border: none; border-radius: 10px; padding: 0 16px; cursor: pointer; }

.special-products, .other-products { margin-bottom: 40px; text-align: right; }
.special-products h3, .other-products h3 {
    font-size: 19px; color: var(--navy); margin-bottom: 22px; font-weight: 700;
    border-right: 4px solid var(--orange); padding-right: 12px;
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }

/* --- شبکه محصولات ویژه (بزرگ‌تر) --- */
.product-grid-lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.product-grid-lg .product-card .thumb-wrap { height: 240px; }
.product-grid-lg .product-card img { height: 240px; }
.product-grid-lg .product-card-content { padding: 20px 22px; }
.product-grid-lg .product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-grid-lg .product-cat-tag { font-size: 12.5px; }
.product-grid-lg .badge-status { font-size: 12.5px; padding: 6px 14px; }
.product-grid-lg .product-card .btn { padding: 11px 20px; font-size: 14px; }

/* --- شبکه سایر محصولات (کوچک‌تر) --- */
.product-grid-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.product-grid-sm .product-card .thumb-wrap { height: 110px; }
.product-grid-sm .product-card img { height: 110px; }
.product-grid-sm .product-card-content { padding: 10px 12px; }
.product-grid-sm .product-card h3 { font-size: 13px; margin-bottom: 4px; }
.product-grid-sm .product-cat-tag { font-size: 10px; margin-bottom: 4px; }
.product-grid-sm .badge-status { font-size: 9.5px; padding: 3px 9px; top: 8px; left: 8px; }
.product-grid-sm .product-card .btn { padding: 7px 12px; font-size: 12px; }
.product-grid-sm .price { font-size: 12.5px; margin-bottom: 8px; }

.product-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 8px 24px rgba(10,23,48,.06); transition: transform .25s ease, box-shadow .25s ease; text-align: right;
    position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 18px 35px rgba(10,23,48,.14); }
.product-card .thumb-wrap { position: relative; overflow: hidden; height: 190px; }
.product-card img { width: 100%; height: 190px; object-fit: cover; transition: transform .35s ease; display: block; }
.product-card:hover img { transform: scale(1.07); }
.badge-status {
    position: absolute; top: 12px; left: 12px; background: #1fa96b; color: #fff; font-size: 11.5px;
    font-weight: 700; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(31,169,107,.35);
}
.product-card-content { padding: 16px 18px; }
.product-card h3 { font-size: 16.5px; margin: 0 0 6px; color: var(--navy); }
.product-cat-tag { display: inline-block; color: var(--blue); font-size: 11.5px; font-weight: 700; margin-bottom: 8px; }
.product-features { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.price { color: var(--blue); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.price-date { display: block; color: var(--muted); font-size: 11.5px; margin-top: -10px; margin-bottom: 14px; }
.product-card .btn { display: block; width: 100%; padding: 10px 18px; font-size: 13.5px; text-align: center; background: var(--navy); box-shadow: none; }
.product-card .btn:hover { background: var(--blue); }

/* --- مقالات --- */
.articles-section, .about-section, .contact-section { padding: 55px 0; text-align: center; }
.articles-section h2, .about-section h2, .contact-section h2 { font-size: 25px; margin-bottom: 10px; color: var(--navy); font-weight: 800; }
.articles-header { text-align: center; margin-bottom: 36px; }
.articles-header p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.articles-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; text-align: right; align-items: start; }
@media (max-width: 860px){ .articles-layout { grid-template-columns: 1fr; } }

.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }

.article-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 6px 18px rgba(10,23,48,.06); transition: transform .25s, box-shadow .25s; text-align: right; display: block;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(10,23,48,.12); border-color: transparent; }
.article-card .article-thumb { height: 150px; overflow: hidden; }
.article-card .article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .article-thumb.no-img { background: linear-gradient(135deg, var(--navy), var(--blue-dark)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 26px; }
.article-card-body { padding: 18px; }
.article-card h3 { font-size: 16px; margin: 10px 0 8px; color: var(--navy); }
.article-card:hover h3 { color: var(--blue); }
.article-card p { font-size: 13px; color: var(--muted); margin-bottom: 0; line-height: 1.7; }

.date {
    display: inline-block; color: var(--navy); font-size: 11.5px; font-weight: 700;
    background: #fff3e6; padding: 4px 12px; border-radius: 999px;
}

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state svg { font-size: 2.6rem; width: 2.6rem; height: 2.6rem; display: block; margin: 0 auto 1rem; color: #c3cae0; }

/* --- پیام‌های فلش (موفقیت/خطای فرم‌ها) --- */
.flash-msg { padding: 14px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600; text-align: right; margin-bottom: 10px; }
.flash-success { background: #e8f8f0; color: #0f6b41; border: 1px solid #b9ecd3; }
.flash-error { background: #fdeceb; color: #c8382c; border: 1px solid #f7c9c5; }

/* --- درباره ما --- */
.about-section { text-align: right; background: var(--bg-light); }
.about-section h2 { text-align: center; }
.about-section .container { display: flex; flex-direction: column; align-items: center; }
.about-section p {
    max-width: 850px; margin: 0 auto; font-size: 14.5px; line-height: 2.1; color: #3c4763;
    white-space: pre-line; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px; box-shadow: 0 6px 18px rgba(10,23,48,.05);
}

/* --- تماس با ما --- */
.contact-section .contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; text-align: right; align-items: start; }
@media (max-width: 860px){ .contact-section .contact-layout { grid-template-columns: 1fr; } }
.contact-info-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.contact-info-box .info-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.contact-info-box .info-row:last-child { border-bottom: none; }
.contact-info-box .info-row svg { color: var(--blue); width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.contact-info-box .info-row strong { display: block; color: var(--navy); font-size: 13.5px; margin-bottom: 2px; }
.contact-info-box .info-row span { color: var(--muted); font-size: 13px; }
.contact-section p { display: none; } /* legacy inline phone/email paragraphs replaced by sidebar box */

.contact-section form {
    max-width: 100%; margin: 0; display: flex; flex-direction: column; gap: 15px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem;
    box-shadow: 0 10px 30px rgba(10,23,48,.06); text-align: right;
}
.contact-section input, .contact-section textarea {
    padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px;
    font-family: inherit; background: var(--bg-light);
}
.contact-section input:focus, .contact-section textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.contact-section textarea { height: 120px; resize: vertical; }
.contact-section .btn { align-self: stretch; text-align: center; }

/* --- فوتر --- */
footer { background: var(--navy); color: #c7cfe0; padding: 50px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
    padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: right;
}
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; text-align: center; } }
.footer-col h6 { color: #fff; font-size: 14.5px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.footer-col ul li a { color: #c7cfe0; transition: color .2s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact li svg { flex-shrink: 0; color: var(--orange); }
@media (max-width: 560px){ .footer-contact li { justify-content: center; } }

.footer-brand-col { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
@media (max-width: 560px){ .footer-brand-col { align-items: center; } }
.footer-brand-col p { font-size: 12.5px; color: #8593b3; line-height: 1.9; max-width: 300px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; }
.footer-logo-img { height: 74px; width: auto; display: block; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.4; text-align: right; }
.footer-logo-text strong { color: #fff; font-size: 15px; font-weight: 800; }
.footer-logo-text small { color: #b7c0d9; font-size: 11.5px; font-weight: 600; }
@media (max-width: 560px){ .footer-logo-text { text-align: center; } }
.social-links { display: flex; gap: 8px; }
.social-links a {
    color: #fff; font-size: 16px; width: 38px; height: 38px; display: inline-flex;
    align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transition: all .2s;
}
.social-links a:hover { background: var(--orange); border-color: var(--orange); }
.footer-bottom { text-align: center; font-size: 12px; color: #8593b3; padding: 18px 0; }

/* --- دکمه شناور واتساپ --- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* --- نوار عنوان صفحه + مسیر ناوبری (صفحات داخلی) --- */
.page-header { background: linear-gradient(120deg, var(--navy) 55%, var(--blue-dark)); padding: 34px 0; text-align: right; }
.page-header h1 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.breadcrumb-nav { font-size: 12.5px; color: #b7c0d9; }
.breadcrumb-nav a { color: #b7c0d9; }
.breadcrumb-nav a:hover { color: var(--orange); }
.breadcrumb-nav .sep { margin: 0 8px; opacity: .5; }
.breadcrumb-nav .current { color: var(--orange); font-weight: 700; }

/* --- صفحه جزئیات محصول --- */
.product-detail-card {
    max-width: 980px; margin: 40px auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(10,23,48,.1); padding: 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; text-align: right;
}
@media (max-width: 860px){ .product-detail-card { grid-template-columns: 1fr; } }
.product-detail-image img { width: 100%; height: 340px; object-fit: cover; border-radius: 12px; }
.product-detail-info h2 { font-size: 25px; color: var(--navy); margin-bottom: 8px; }
.product-detail-info .product-cat-tag { margin-bottom: 10px; }
.product-detail-info .price { font-size: 18px; }
.product-description h3 { font-size: 17px; color: var(--blue); margin: 18px 0 8px; }
.product-description h4 { font-size: 15.5px; color: var(--navy); margin: 16px 0 6px; }
.product-description p { color: #3c4763; font-size: 14px; line-height: 1.9; margin-bottom: 8px; }
.product-description ul { padding-right: 20px; margin-bottom: 10px; }
.product-description ul li { color: #3c4763; font-size: 13.5px; line-height: 1.9; }
.product-detail-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.product-detail-actions .btn { background: var(--navy); }
.product-detail-actions .btn:hover { background: var(--blue); }

/* --- جزئیات مقاله --- */
.article-body {
    max-width: 850px; margin: 0 auto; font-size: 14.5px; color: #3c4763; line-height: 2.1;
    background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(10,23,48,.06);
    white-space: pre-line; text-align: right; border: 1px solid var(--border);
}
.articles-section .container > h2 { font-size: 24px; text-align: center; }
.articles-section .container > .date { display: block !important; text-align: center; margin: 0 auto 25px; width: fit-content; }

/* --- روند همکاری (فرآیند خرید) --- */
.process-section { padding: 60px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
.process-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem 1.2rem; text-align: center; transition: .2s; }
.process-step:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(10,23,48,.1); }
.process-num {
    width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; margin: 0 auto 14px;
}
.process-step h3 { font-size: 14.5px; margin-bottom: 6px; color: var(--navy); }
.process-step p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* --- سوالات متداول --- */
.faq-section { padding: 60px 0; background: var(--bg-light); }
.faq-list { max-width: 820px; margin: 0 auto; text-align: right; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
    padding: 16px 20px; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus { font-size: 20px; color: var(--blue); transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary .faq-plus { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 18px; color: #3c4763; font-size: 13.5px; line-height: 1.9; }

/* --- استعلام سریع برای هر محصول (صفحه جزئیات) --- */
.quick-rfq-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.quick-rfq-note svg { color: var(--orange); flex-shrink: 0; }
@media (max-width: 900px) {
    .header-inner { flex-wrap: nowrap; gap: 10px; }
    .nav-toggle { display: flex; }
    .nav-wrap {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
        background: #fff; flex-direction: column; align-items: flex-start; justify-content: flex-start;
        padding: 90px 24px 24px; gap: 20px; box-shadow: -10px 0 30px rgba(10,23,48,.15);
        transition: right .3s ease; z-index: 1100; overflow-y: auto;
    }
    .nav-wrap.open { right: 0; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
    .main-nav ul li { width: 100%; }
    .main-nav ul li a { display: block; width: 100%; }
    .btn-consult { width: 100%; justify-content: center; }
    .slider { height: 360px; }
    .caption { padding: 26px 78px 26px 26px; }
    .caption h1, .caption h2 { font-size: 22px; }
    .caption p { font-size: 13.5px; }
    .features-card { grid-template-columns: repeat(2, 1fr); }
    .topbar .container { flex-wrap: wrap; gap: 10px; justify-content: center; text-align: center; }
}

/* پوششی که هنگام باز بودن منوی موبایل پشت سر منو تیره می‌شه */
.nav-backdrop { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10,23,48,.55); z-index: 1050; }
.nav-backdrop.show { display: block; }
@media (max-width: 900px) {
    body.nav-open-lock { overflow: hidden; }
}

/* --- انیمیشن نرم ظاهر شدن عناصر هنگام اسکرول --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- مقاله: زیرعنوان، جدول و لینک داخل متن --- */
.article-body h2 { font-size: 20px; margin: 26px 0 8px; line-height: 1.8; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 16px; margin: 18px 0 4px; line-height: 1.9; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body .table-wrap { white-space: normal; overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.9; min-width: 560px; }
.article-body th { background: var(--bg-light); color: var(--navy); font-weight: 700; text-align: right; padding: 10px 14px; border-bottom: 2px solid var(--border); }
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body tbody tr:nth-child(even) td { background: #fafbfd; }

/* --- جدول مشخصات محصول، سوالات متداول و مقالات مرتبط --- */
.product-description h5 { font-size: 14.5px; color: var(--navy); margin: 14px 0 4px; line-height: 1.9; }
.product-description a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.spec-table { width: 100%; max-width: 480px; border-collapse: collapse; margin: 8px 0 14px; font-size: 13.5px; border: 1px solid var(--border); }
.spec-table th { background: var(--bg-light); color: var(--navy); font-weight: 700; text-align: right; padding: 9px 14px; border-bottom: 2px solid var(--border); }
.spec-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: #3c4763; }
.spec-table tr:last-child td { border-bottom: 0; }
.related-articles { margin-top: 40px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 12px; }
.related-articles h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.related-articles ul { padding-right: 20px; }
.related-articles li { line-height: 2; font-size: 14px; }
.related-articles a { color: var(--blue); }
