/* ================================================================
   STYLE.CSS - استایل یکپارچه سایت صنعت سبز طبرستان
   نسخه: 2.0 - تاریخ: ۱۴۰۵/۰۴/۱۸
   ================================================================ */

/* ================================================================
   ۱. متغیرها و ریست
   ================================================================ */
/* @font-face {
    font-family: 'iYekan';
    src: url('../fonts/iYekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
} */

@font-face {
    font-family: "iYekan";
    src:url("../fonts/iYekan.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
:root {
    /* رنگ‌های اصلی */
    --primary: #1a3a2a;
    --primary-light: #2d6a4f;
    --primary-dark: #0f2a1e;
    --secondary: #52b788;
    --accent: #40916c;
    --gold: #d4a854;
    --gold-light: #e8c97a;
    --cream: #f5efe6;
    --light-bg: #f8faf9;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    
    /* سایه‌ها */
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 40px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    
    /* گردی گوشه‌ها */
    --radius: 20px;
    --radius-sm: 12px;
    
    /* transitions */
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===== ریست ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'iYekan' ,'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}
a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================================================
   ۲. کامپوننت‌های عمومی
   ================================================================ */

/* ===== دکمه‌ها ===== */
.btn-gold {
    background: var(--gold);
    color: var(--primary-dark);
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 700;
    border: none;
    transition: var(--transition);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(212, 168, 84, 0.3);
    color: var(--primary-dark);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    padding: 6px 22px;
    font-weight: 600;
    font-size: 0.85rem;
    background: transparent;
    transition: var(--transition);
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: white;
    transform: translateX(5px);
}

/* ===== هدر صفحات ===== */
.page-header,
.products-header,
.articles-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 60px 0 50px;
    color: white;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 40px;
}
.page-header h1,
.products-header h1,
.articles-header h1 {
    font-weight: 800;
    font-size: 2.5rem;
}
.page-header .breadcrumb,
.products-header .breadcrumb,
.articles-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-top: 10px;
}
.page-header .breadcrumb-item a,
.products-header .breadcrumb-item a,
.articles-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.page-header .breadcrumb-item.active,
.products-header .breadcrumb-item.active,
.articles-header .breadcrumb-item.active {
    color: white;
}

/* ===== وضعیت‌ها ===== */
.status-badge {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-badge.published { background: #d4edda; color: #155724; }
.status-badge.draft { background: #fff3cd; color: #856404; }
.status-badge.archived { background: #f8d7da; color: #721c24; }
.status-badge.new { background: #cce5ff; color: #004085; }
.status-badge.in_progress { background: #fff3cd; color: #856404; }
.status-badge.replied { background: #d4edda; color: #155724; }

/* ================================================================
   ۳. هدر و ناوبری
   ================================================================ */

.site-header {
    border-bottom: 3px solid var(--primary-light);
    position: sticky;
    top: 0;
    z-index: 1050;
    background: white;
}
.site-header .navbar {
    padding: 8px 0;
}
.site-header .brand-text {
    font-size: 1.1rem;
    color: var(--primary);
}

/* ===== لوگوی ریسپانسیو ===== */
.site-header .navbar-brand img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: height 0.3s ease;
}
.site-footer .footer-logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* ===== منو ===== */
.site-header .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}
.site-header .nav-link:hover {
    color: var(--primary-light);
    background: rgba(45, 106, 79, 0.08);
}
.site-header .nav-link.active {
    color: var(--primary-light);
    background: rgba(45, 106, 79, 0.12);
}
.site-header .nav-link i {
    margin-left: 8px;
}

/* ===== سوئیچ زبان ===== */
.language-switcher .btn {
    border-radius: 50px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    border-color: var(--primary-light);
    color: var(--primary-light);
}
.language-switcher .btn:hover {
    background: var(--primary-light);
    color: white;
}

/* ================================================================
   ۴. فوتر
   ================================================================ */

.site-footer {
    background: var(--primary-dark) !important;
    border-top: 4px solid var(--primary-light);
}
.site-footer a {
    transition: var(--transition);
}
.site-footer a:hover {
    color: var(--secondary) !important;
}
.hover-text-success:hover {
    color: var(--secondary) !important;
}

/* ================================================================
   ۵. صفحه اصلی (Homepage)
   ================================================================ */

/* ===== هیرو ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/bg-header.webp') center center / cover no-repeat;
    transform: scale(1.02);
    transition: transform 12s ease;
}
.hero-section:hover .hero-bg {
    transform: scale(1.0);
}
.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(13, 40, 24, 0.65);
}
.hero-section .hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 40px 0;
}
.hero-section .hero-badge {
    display: inline-block;
    background: rgba(212, 168, 84, 0.15);
    border: 1px solid rgba(212, 168, 84, 0.3);
    color: var(--gold-light);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-section .hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}
.hero-section .hero-title .highlight {
    color: var(--gold);
    position: relative;
}
.hero-section .hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
    opacity: 0.3;
    border-radius: 2px;
}
.hero-section .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 580px;
    line-height: 1.9;
    margin-bottom: 35px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.hero-section .hero-stats {
    display: flex;
    gap: 45px;
    margin-top: 30px;
}
.hero-section .hero-stats .stat-item {
    text-align: center;
}
.hero-section .hero-stats .stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
    line-height: 1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}
.hero-section .hero-stats .stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 5px;
}
.hero-section .hero-cta {
    display: inline-block;
    padding: 16px 45px;
    background: var(--gold);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(212, 168, 84, 0.25);
}
.hero-section .hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 50px rgba(212, 168, 84, 0.4);
    color: var(--primary-dark);
}
.hero-section .hero-cta-secondary {
    display: inline-block;
    padding: 16px 35px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}
.hero-section .hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* ===== ذرات متحرک ===== */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg) scale(1); opacity: 0; }
}

/* ===== اسکرول ایندیکاتور ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: bounceDown 2.5s ease-in-out infinite;
}
.scroll-indicator .mouse {
    width: 22px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}
.scroll-indicator .mouse .wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}
@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

/* ================================================================
   ۶. بخش‌های عمومی صفحه اصلی
   ================================================================ */

/* ===== بخش ویژگی‌ها ===== */
.features-section {
    padding: 80px 0;
    background: white;
    position: relative;
    margin-top: 40px;
}
.features-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-radius: 30px 30px 0 0;
}
.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    transition: var(--transition);
    background: white;
    border: 1px solid rgba(0,0,0,0.04);
}
.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.feature-item .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(212, 168, 84, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold);
    transition: var(--transition);
}
.feature-item:hover .icon {
    background: var(--gold);
    color: white;
    transform: scale(1.05);
}
.feature-item h5 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== بخش درباره شرکت ===== */
.about-section {
    padding: 80px 0;
    background: var(--cream);
}
.about-section .about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.about-section .about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.about-section .about-image:hover img {
    transform: scale(1.03);
}
.about-section .about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.about-section .about-content h2 .highlight {
    color: var(--gold);
}
.about-section .about-content p {
    color: #555;
    line-height: 1.9;
    font-size: 1.05rem;
}
.about-section .about-content .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.about-section .about-content .about-stats .stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.about-section .about-content .about-stats .stat .number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-light);
}
.about-section .about-content .about-stats .stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== بخش تماس ===== */
.contact-section {
    padding: 60px 0;
    background: var(--primary-dark);
    color: white;
    border-radius: var(--radius);
    margin: 20px auto;
    max-width: 70%;
}
.contact-section h2 {
    font-weight: 800;
    font-size: 2.2rem;
}
.contact-section h2 .highlight {
    color: var(--gold);
}

/* ================================================================
   ۷. کارت‌های محصولات و مقالات
   ================================================================ */

/* ===== سردر بخش‌ها ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header .section-badge {
    display: inline-block;
    background: rgba(212, 168, 84, 0.12);
    color: var(--gold);
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.section-header h2 .highlight {
    color: var(--gold);
}
.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 15px auto 0;
    font-size: 1.1rem;
}

/* ===== کارت محصولات ===== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    opacity: 0;
    transform: translateY(30px);
}
.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}
.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .card-img-top {
    transform: scale(1.04);
}
.product-card .card-body {
    padding: 22px 25px 25px;
}
.product-card .card-title {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}
.product-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}
.product-card .featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

/* ===== کارت مقالات ===== */
.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.article-card .card-body {
    padding: 22px 25px;
}
.article-card .card-title {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}
.article-card .article-meta {
    font-size: 0.8rem;
    color: #adb5bd;
}
.article-card .featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #1a1a2e;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}
.article-card .article-meta .separator {
    margin: 0 6px;
}

/* ================================================================
   ۸. صفحات محصولات و مقالات (لیست)
   ================================================================ */

/* ===== فیلتر سایدبار ===== */
.filter-sidebar {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}
.filter-sidebar .filter-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(45,106,79,0.1);
}
.filter-sidebar .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-sidebar .category-list li {
    margin-bottom: 8px;
}
.filter-sidebar .category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-dark);
    transition: var(--transition);
    text-decoration: none;
}
.filter-sidebar .category-list a:hover,
.filter-sidebar .category-list a.active {
    background: rgba(45,106,79,0.08);
    color: var(--primary-light);
}
.filter-sidebar .category-list .badge {
    background: rgba(45,106,79,0.1);
    color: var(--primary-light);
    font-weight: 600;
}

/* ===== جستجو ===== */
.search-box .form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}
.search-box .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(45,106,79,0.1);
}
.search-box .btn {
    border-radius: 50px;
    padding: 12px 30px;
}

/* ===== صفحه‌بندی ===== */
.pagination-custom .page-link {
    border: none;
    color: var(--text-dark);
    border-radius: 8px;
    margin: 0 3px;
    padding: 8px 16px;
    transition: var(--transition);
}
.pagination-custom .page-link:hover {
    background: rgba(45,106,79,0.08);
    color: var(--primary-light);
}
.pagination-custom .page-item.active .page-link {
    background: var(--primary-light);
    color: white;
}
.pagination-custom .page-item.disabled .page-link {
    color: #adb5bd;
}

/* ===== برچسب‌ها (Tag Cloud) ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud .tag {
    background: white;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #e9ecef;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.tag-cloud .tag:hover,
.tag-cloud .tag.active {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}
.tag-cloud .tag .badge {
    background: rgba(0,0,0,0.1);
    color: inherit;
    font-weight: 600;
}
.tag-cloud .tag:hover .badge {
    background: rgba(255,255,255,0.2);
}

/* ================================================================
   ۹. صفحات جزئیات (محصول و مقاله)
   ================================================================ */

/* ===== جزئیات محصول ===== */
.product-detail-section {
    padding: 40px 0 60px;
}
.product-gallery .main-image {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-gallery .thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}
.product-gallery .thumbnails .thumb {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
.product-gallery .thumbnails .thumb:hover {
    border-color: var(--secondary);
}
.product-gallery .thumbnails .thumb.active {
    border-color: var(--primary-light);
}
.product-gallery .thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info h1 {
    font-weight: 800;
    color: var(--primary);
    font-size: 2rem;
}
.product-info .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.specs-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    width: 100%;
}
.specs-table tr {
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.specs-table tr:last-child {
    border-bottom: none;
}
.specs-table td {
    padding: 12px 20px;
}
.specs-table .label {
    font-weight: 600;
    color: var(--primary);
    background: rgba(45,106,79,0.05);
    width: 35%;
}
.file-card {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.inquiry-box {
    background: #f8faf9;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(45,106,79,0.08);
}

/* ===== جزئیات مقاله ===== */
.article-detail-section {
    padding: 40px 0 60px;
}
.article-detail-section .article-header {
    margin-bottom: 30px;
}
.article-detail-section .article-header h1 {
    font-weight: 800;
    color: var(--primary);
    font-size: 2.2rem;
    line-height: 1.3;
}
.article-detail-section .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}
.article-detail-section .article-meta i {
    color: var(--primary-light);
}
.article-detail-section .article-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.article-detail-section .article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.article-detail-section .article-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-dark);
}
.article-detail-section .article-content h2 {
    font-weight: 700;
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.6rem;
}
.article-detail-section .article-content h3 {
    font-weight: 700;
    color: var(--primary-light);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.3rem;
}
.article-detail-section .article-content ul,
.article-detail-section .article-content ol {
    padding-left: 25px;
    margin: 15px 0;
}
.article-detail-section .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}
.article-detail-section .article-content blockquote {
    background: #f8faf9;
    border-left: 4px solid var(--primary-light);
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-muted);
}

/* ===== سایدبار مقالات ===== */
.article-sidebar .widget {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}
.article-sidebar .widget-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(45,106,79,0.1);
}

/* ===== برچسب‌های مقاله ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
.article-tags .tag {
    background: #f8faf9;
    padding: 6px 18px;
    border-radius: 50px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.article-tags .tag:hover {
    background: var(--primary-light);
    color: white;
}

/* ================================================================
   ۱۰. صفحات ثابت (About, Contact, ...)
   ================================================================ */

.page-section {
    padding: 40px 0 60px;
}
.page-section .page-header {
    margin-bottom: 30px;
}
.page-section .page-header h1 {
    font-weight: 800;
    color: var(--primary);
    font-size: 2.2rem;
}
.page-section .page-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-dark);
}
.page-section .page-content h2 {
    font-weight: 700;
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.page-section .page-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}
.page-section .page-content ul {
    padding-left: 25px;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.contact-form .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
}
.contact-form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(45,106,79,0.1);
}

/* ================================================================
   ۱۱. صفحه ۴۰۴
   ================================================================ */

.error-404-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}
.error-404-section .error-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    text-shadow: 0 4px 20px rgba(45,106,79,0.15);
}
.error-404-section .error-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
}
.error-404-section h1 {
    font-weight: 800;
    color: var(--primary);
    font-size: 2rem;
    margin: 20px 0 15px;
}
.error-404-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
}
.error-404-section .quick-links {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.error-404-section .quick-links a {
    padding: 8px 20px;
    background: #f8faf9;
    border-radius: 50px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}
.error-404-section .quick-links a:hover {
    background: var(--primary-light);
    color: white;
}

/* ================================================================
   ۱۲. انیمیشن‌های عمومی
   ================================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

/* ===== انیمیشن‌های اسکرول ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ================================================================
   ۱۳. شمارنده‌ها
   ================================================================ */

.counter-item .number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-light);
    display: block;
    line-height: 1.1;
}
.counter-item .label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ================================================================
   ۱۴. ریسپانسیو - پاسخگویی کامل
   ================================================================ */

/* ===== تبلت (max-width: 992px) ===== */
@media (max-width: 992px) {
    /* هدر صفحات */
    .page-header h1,
    .products-header h1,
    .articles-header h1 {
        font-size: 2rem;
    }
    
    /* شمارنده */
    .counter-item .number {
        font-size: 2.2rem;
    }
    
    /* کارت‌ها */
    .product-card .card-img-top {
        height: 200px;
    }
    
    /* لوگو */
    .site-header .navbar-brand img {
        height: 38px;
        max-width: 150px;
    }
    .site-header .brand-text {
        font-size: 0.95rem;
    }
    .site-footer .footer-logo-img {
        height: 35px;
        max-width: 140px;
    }
    
    /* فیلتر */
    .filter-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    /* هیرو */
    .hero-section .hero-title {
        font-size: 2.8rem;
    }
    .hero-section .hero-stats {
        gap: 25px;
    }
    
    /* درباره */
    .about-section .about-content .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== موبایل (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* هدر */
    .site-header .brand-text {
        display: none !important;
    }
    .site-header .navbar-brand img {
        height: 32px;
        max-width: 120px;
    }
    .site-header .navbar-brand {
        gap: 6px !important;
    }
    .site-footer .footer-logo-img {
        height: 30px;
        max-width: 120px;
    }
    
    /* هدر صفحات */
    .page-header,
    .products-header,
    .articles-header {
        padding: 40px 0 30px;
    }
    .page-header h1,
    .products-header h1,
    .articles-header h1 {
        font-size: 1.6rem;
    }
    
    /* شمارنده */
    .counter-item .number {
        font-size: 1.8rem;
    }
    
    /* تماس */
    .contact-section {
        padding: 30px 20px;
        text-align: center;
        max-width: 100%;
    }
    
    /* کارت‌ها */
    .product-card .card-img-top {
        height: 180px;
    }
    .article-card .card-img-top {
        height: 180px;
    }
    
    /* هیرو */
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    .hero-section .hero-title {
        font-size: 2rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-section .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .hero-section .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    .scroll-indicator {
        display: none;
    }
    
    /* درباره */
    .about-section .about-content .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* سردر بخش‌ها */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* فرم تماس */
    .contact-form {
        padding: 20px;
    }
    
    /* جزئیات */
    .product-info h1 {
        font-size: 1.5rem;
    }
    .product-gallery .thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* مقاله */
    .article-detail-section .article-header h1 {
        font-size: 1.6rem;
    }
    .article-detail-section .article-content {
        font-size: 0.95rem;
    }
    .article-detail-section .article-content h2 {
        font-size: 1.3rem;
    }
    .article-detail-section .article-meta {
        font-size: 0.8rem;
        gap: 10px;
    }
}

/* ===== موبایل بسیار کوچک (max-width: 576px) ===== */
@media (max-width: 576px) {
    /* لوگو */
    .site-header .navbar-brand img {
        height: 28px;
        max-width: 100px;
    }
    .site-header .brand-text {
        font-size: 0.75rem;
    }
    .site-footer .footer-logo-img {
        height: 26px;
        max-width: 100px;
    }
    
    /* هیرو */
    .hero-section .hero-title {
        font-size: 1.6rem;
    }
    .hero-section .hero-cta {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    /* کارت‌ها */
    .product-card .card-img-top {
        height: 160px;
    }
    .article-card .card-img-top {
        height: 160px;
    }
    
    /* درباره */
    .about-section .about-content .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    .about-section .about-content .about-stats .stat .number {
        font-size: 1.4rem;
    }
    
    /* صفحه ۴۰۴ */
    .error-404-section .error-number {
        font-size: 5rem;
    }
    .error-404-section h1 {
        font-size: 1.5rem;
    }
}

/* ================================================================
   ۱۵. حالت اسکرول (لوگو کوچک‌تر)
   ================================================================ */

.site-header.scrolled .navbar-brand img {
    height: 35px;
}
@media (max-width: 768px) {
    .site-header.scrolled .navbar-brand img {
        height: 28px;
    }
}

/* ================================================================
   ۱۶. پشتیبانی RTL/LTR
   ================================================================ */

html[dir="rtl"] .site-header .navbar-brand {
    margin-left: auto;
    margin-right: 0;
}
html[dir="ltr"] .site-header .navbar-brand {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .page-section .page-content ul,
html[dir="rtl"] .article-detail-section .article-content ul,
html[dir="rtl"] .article-detail-section .article-content ol {
    padding-right: 25px;
    padding-left: 0;
}
html[dir="ltr"] .page-section .page-content ul,
html[dir="ltr"] .article-detail-section .article-content ul,
html[dir="ltr"] .article-detail-section .article-content ol {
    padding-left: 25px;
    padding-right: 0;
}

html[dir="rtl"] .article-detail-section .article-content blockquote {
    border-right: 4px solid var(--primary-light);
    border-left: none;
}
html[dir="ltr"] .article-detail-section .article-content blockquote {
    border-left: 4px solid var(--primary-light);
    border-right: none;
}

html[dir="rtl"] .product-card .featured-badge,
html[dir="rtl"] .article-card .featured-badge {
    right: auto;
    left: 15px;
}