/* ================================================================
   STYLE-PAGES.CSS — بازطراحی مدرن صفحات داخلی
   صنعت سبز طبرستان | مقاله، محصول، صفحات ثابت، لیست محصولات و مقالات
   این فایل را بعد از style.css در header.php لود کنید.
   ================================================================ */

:root {
    --page-radius: 22px;
    --page-radius-sm: 14px;
    --ease: cubic-bezier(.2,.7,.2,1);
    --shadow-soft: 0 10px 40px rgba(15,42,30,.08);
    --shadow-hover: 0 20px 60px rgba(15,42,30,.15);
    --border-soft: 1px solid rgba(26,58,42,.08);
    --brand: #1a8754;
    --brand-2: #2d6a4f;
    --brand-soft: rgba(26,135,84,.08);
    --shadow-sm: 0 4px 14px rgba(15,42,30,.06);
    --shadow-md: 0 10px 30px rgba(15,42,30,.1);
    --shadow-lg: 0 20px 60px rgba(15,42,30,.15);
    --ink: #1a2e1e;
    --ink-2: #2d4633;
    --muted: #5b6f5e;
    --line: rgba(26,58,42,.1);
    --bg-soft: #f4f7f5;
    --radius: 22px;
    --radius-sm: 14px;
    --gold-light: #d4a854;
}

/* ================================================================
   PAGE HERO — هدر داخلی مشترک همه‌ی صفحات
   ================================================================ */
.page-hero {
    position: relative;
    padding: 90px 0 60px;
    background:
        radial-gradient(1000px 400px at 90% -10%, rgba(212,168,84,.18), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(82,183,136,.18), transparent 60%),
        linear-gradient(135deg, #0f2a1e 0%, #1a3a2a 60%, #2d6a4f 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    margin-bottom: 40px;
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 75%);
    z-index: -1;
    animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
    to { background-position: 44px 44px, 44px 44px; }
}
.page-hero .hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(212,168,84,.4);
    color: var(--gold-light);
    border-radius: 50px;
    font-size: .8rem; font-weight: 600;
    backdrop-filter: blur(8px);
    margin-bottom: 1rem;
}
.page-hero h1 {
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: .8rem;
    letter-spacing: -.5px;
}
.page-hero .hero-lead {
    font-size: clamp(.95rem, 1.4vw, 1.1rem);
    color: rgba(255,255,255,.85);
    max-width: 780px;
    line-height: 1.9;
}
.page-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 1.2rem;
    font-size: .85rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }
.page-hero .breadcrumb .active { color: #fff; font-weight: 600; }
.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.4);
}
.page-hero .hero-meta {
    display: flex; flex-wrap: wrap; gap: 1.2rem;
    margin-top: 1.3rem;
    font-size: .9rem;
    color: rgba(255,255,255,.85);
}
.page-hero .hero-meta span {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .9rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50px;
    backdrop-filter: blur(6px);
}
.page-hero .hero-meta i { color: var(--gold-light); }

/* ---- Hero اضافی برای صفحات لیست (از style-listings) ---- */
.page-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero-bg .blob {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4;
}
.page-hero-bg .blob-a { width: 380px; height: 380px; background: #4ade80; top: -120px; inset-inline-start: -100px; }
.page-hero-bg .blob-b { width: 320px; height: 320px; background: #10b981; bottom: -120px; inset-inline-end: -80px; }
.page-hero-bg .grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.page-hero-title {
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin: 0.35rem 0 0.65rem;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.page-hero-lead {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-breadcrumb .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 0.85rem; }
.hero-breadcrumb .breadcrumb-item,
.hero-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.85); text-decoration: none; }
.hero-breadcrumb .breadcrumb-item a:hover { color: #fff; text-decoration: underline; }
.hero-breadcrumb .breadcrumb-item.active { color: #fff; font-weight: 500; }
.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.55); }

.hero-search-inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 0.35rem;
    box-shadow: var(--shadow-md);
    gap: 0.35rem;
}
.hero-search-icon {
    color: var(--muted);
    padding-inline-start: 0.85rem;
    font-size: 0.9rem;
}
.hero-search-inner .form-control {
    border: none; background: transparent; box-shadow: none !important;
    font-size: 0.95rem; padding: 0.5rem 0.5rem;
}
.hero-search-inner .form-control:focus { outline: none; }
.hero-search-inner .btn {
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    background: var(--brand);
    border: none;
}
.hero-search-inner .btn:hover { background: #0f5132; }

.hero-stat-card {
    display: inline-flex; align-items: center; gap: 0.9rem;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius);
    padding: 0.9rem 1.25rem;
    color: #fff;
}
.hero-stat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.2);
    font-size: 1.2rem;
}
.hero-stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.hero-stat-label { font-size: 0.8rem; opacity: 0.85; margin-top: 0.2rem; }

/* ================================================================
   بدنه صفحه
   ================================================================ */
.page-body { padding-bottom: 4rem; }

/* ================================================================
   سایدبار فیلتر (صفحات لیست)
   ================================================================ */
.sticky-sidebar {
    position: sticky;
    top: 90px;
}
.filter-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.filter-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
    border-bottom: 2px solid var(--brand-soft);
    display: flex; align-items: center;
}
.category-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.category-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}
.category-list a:hover {
    background: var(--brand-soft);
    color: var(--brand);
    transform: translateX(-3px);
}
[dir="ltr"] .category-list a:hover { transform: translateX(3px); }
.category-list a.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.category-list .badge {
    background: rgba(15,23,42,0.08);
    color: inherit;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
}
.category-list a.active .badge {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud .tag {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-soft);
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tag-cloud .tag:hover {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: var(--brand);
}
.tag-cloud .tag.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.tag-cloud .tag .badge {
    background: rgba(0,0,0,0.1); color: inherit;
    font-size: 0.7rem; padding: 0.15rem 0.4rem;
    border-radius: 999px;
}
.tag-cloud .tag.active .badge { background: rgba(255,255,255,0.25); }

/* ================================================================
   ردیف اطلاعات نتایج
   ================================================================ */
.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem 1.15rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.results-count { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.results-page { color: var(--muted); font-size: 0.85rem; }

/* ================================================================
   کارت محصول و مقاله (مشترک)
   ================================================================ */
.product-card,
.article-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    transform: translateY(16px);
}
.product-card.visible,
.article-card.visible,
.article-card {
    opacity: 1;
    transform: translateY(0);
}
.product-card:hover,
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.featured-badge {
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    z-index: 2;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.product-card-media,
.article-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
}
.product-card-media img,
.article-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-card-media img,
.article-card:hover .article-card-media img {
    transform: scale(1.06);
}

.article-card-cat {
    position: absolute;
    bottom: 0.65rem;
    inset-inline-start: 0.65rem;
    background: rgba(255,255,255,0.95);
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.product-card-body,
.article-card-body {
    padding: 1.15rem 1.15rem 1.15rem;
    display: flex; flex-direction: column; flex: 1;
}

.product-card-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.product-card-category:hover { text-decoration: underline; }

.product-card-title,
.article-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 0.55rem;
    min-height: 2.9em;
}
.product-card-title a,
.article-card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}
.product-card-title a:hover,
.article-card-title a:hover { color: var(--brand); }

.product-card-desc,
.article-card-excerpt {
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.65;
    margin: 0 0 1rem;
    flex: 1;
}

.article-meta {
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.article-meta .dot { opacity: 0.5; }

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--line);
}
.product-card-views { color: var(--muted); font-size: 0.78rem; }

.product-card-footer .btn-outline-success {
    border-color: var(--brand);
    color: var(--brand);
    font-weight: 600;
}
.product-card-footer .btn-outline-success:hover {
    background: var(--brand);
    color: #fff;
}

.article-card-more {
    display: inline-flex; align-items: center;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: auto;
    transition: gap 0.25s ease;
}
.article-card-more:hover {
    color: #0f5132;
    gap: 0.4rem;
}
.article-card-more i { transition: transform 0.25s ease; }
.article-card-more:hover i { transform: translateX(-4px); }
[dir="ltr"] .article-card-more:hover i { transform: translateX(4px); }

/* ================================================================
   صفحه‌بندی مدرن
   ================================================================ */
.pagination-modern {
    gap: 0.35rem;
    flex-wrap: wrap;
}
.pagination-modern .page-item .page-link {
    border: 1px solid var(--line);
    color: var(--ink-2);
    min-width: 40px;
    height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-weight: 600;
    padding: 0 0.6rem;
    transition: all 0.2s ease;
    background: #fff;
}
.pagination-modern .page-item .page-link:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
    transform: translateY(-2px);
}
.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.pagination-modern .page-item.disabled .page-link {
    background: var(--bg-soft);
    color: var(--muted);
    opacity: 0.6;
}

/* ================================================================
   حالت خالی
   ================================================================ */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.empty-state-icon {
    width: 90px; height: 90px;
    margin: 0 auto 0.75rem;
    display: grid; place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 2.4rem;
    border-radius: 50%;
}
.empty-state h3 { color: var(--ink); font-weight: 700; }

/* ================================================================
   ARTICLE DETAIL — بازطراحی صفحه‌ی مقاله
   ================================================================ */
.article-detail-section { padding: 0 0 80px; }

.article-featured-image {
    border-radius: var(--page-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    aspect-ratio: 16/9;
    background: var(--cream);
    position: relative;
}
.article-featured-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s var(--ease);
}
.article-featured-image:hover img { transform: scale(1.04); }

.article-body-card {
    background: #fff;
    border-radius: var(--page-radius);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.5rem, 3vw, 3rem);
    border: var(--border-soft);
}
.article-content {
    color: var(--text-dark);
    line-height: 2.1;
    font-size: 1.05rem;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 800;
    color: var(--primary);
    margin: 2rem 0 1rem;
    position: relative;
    padding-inline-start: 1rem;
}
.article-content h2::before,
.article-content h3::before,
.article-content h4::before {
    content: "";
    position: absolute;
    inset-inline-start: 0; top: .35em;
    width: 5px; height: .8em;
    background: linear-gradient(180deg, var(--gold), var(--secondary));
    border-radius: 4px;
}
.article-content p { margin-bottom: 1.1rem; }
.article-content a {
    color: var(--primary-light);
    border-bottom: 1px dashed var(--secondary);
}
.article-content a:hover { color: var(--gold); }
.article-content img {
    border-radius: var(--page-radius-sm);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-soft);
}
.article-content blockquote {
    border-inline-start: 4px solid var(--gold);
    background: linear-gradient(135deg, var(--cream), #fff);
    padding: 1.2rem 1.5rem;
    border-radius: var(--page-radius-sm);
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--primary-dark);
}
.article-content ul,
.article-content ol { padding-inline-start: 1.5rem; margin-bottom: 1.1rem; }
.article-content ul li,
.article-content ol li { margin-bottom: .5rem; }

.article-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(26,58,42,.15);
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.article-tags .tag {
    display: inline-block;
    padding: .4rem 1rem;
    background: var(--cream);
    color: var(--primary);
    border-radius: 50px;
    font-size: .85rem; font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}
.article-tags .tag:hover {
    background: var(--primary);
    color: var(--gold-light);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Share buttons */
.article-share {
    margin-top: 2rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
}
.article-share .share-btn {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--primary);
    transition: var(--transition);
    border: 1px solid transparent;
}
.article-share .share-btn:hover {
    background: var(--primary);
    color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15,42,30,.15);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    display: flex; flex-direction: column; gap: 1.2rem;
}
.widget {
    background: #fff;
    border-radius: var(--page-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: var(--border-soft);
    transition: var(--transition);
}
.widget:hover { box-shadow: var(--shadow-hover); }
.widget-title {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--cream);
    display: flex; align-items: center;
    font-size: 1rem;
}
.widget .related-item {
    display: flex; gap: .8rem;
    padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(26,58,42,.1);
}
.widget .related-item:last-child { border: 0; padding: 0; margin: 0; }
.widget .related-item img {
    width: 74px; height: 74px; min-width: 74px;
    object-fit: cover;
    border-radius: 12px;
}
.widget .related-item .related-title {
    color: var(--text-dark);
    font-weight: 700; font-size: .9rem;
    line-height: 1.6;
    display: block;
    transition: var(--transition);
}
.widget .related-item .related-title:hover { color: var(--primary-light); }
.widget .related-item .related-date {
    color: var(--text-muted);
    font-size: .75rem;
    margin-top: .3rem;
    display: inline-flex; align-items: center; gap: .3rem;
}
.author-widget .author-avatar {
    width: 60px; height: 60px; min-width: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(15,42,30,.15);
}

/* ================================================================
   PRODUCT DETAIL — بازطراحی صفحه‌ی محصول
   ================================================================ */
.product-detail-section { padding: 0 0 80px; }

.product-gallery {
    background: #fff;
    border-radius: var(--page-radius);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
    border: var(--border-soft);
    position: sticky;
    top: 100px;
}
.product-gallery .main-image {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--page-radius-sm);
    overflow: hidden;
    background: var(--cream);
    margin-bottom: 1rem;
}
.product-gallery .main-image::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(212,168,84,.08));
    pointer-events: none;
}
.product-gallery .main-image img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform .6s var(--ease);
    padding: 1rem;
}
.product-gallery:hover .main-image img { transform: scale(1.05); }
.product-gallery .thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: .6rem;
}
.product-gallery .thumb {
    aspect-ratio: 1/1;
    background: var(--cream);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    padding: 4px;
}
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery .thumb:hover { transform: translateY(-3px); }
.product-gallery .thumb.active {
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(212,168,84,.3);
}

.product-info {
    background: #fff;
    border-radius: var(--page-radius);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-soft);
    border: var(--border-soft);
}
.product-info h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 1rem;
}
.product-meta {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1.2rem;
    font-size: .85rem;
}
.product-meta span {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .9rem;
    background: var(--cream);
    border-radius: 50px;
    color: var(--primary-dark);
    font-weight: 600;
}
.product-meta a { color: var(--primary-light); }
.product-description {
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: .98rem;
}
.product-description h2,
.product-description h3 {
    font-weight: 800; color: var(--primary);
    font-size: 1.15rem; margin: 1.2rem 0 .6rem;
}

.inquiry-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--page-radius-sm);
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
    border: 1px solid rgba(212,168,84,.3);
    position: relative;
    overflow: hidden;
}
.inquiry-box::before {
    content: "";
    position: absolute;
    inset-inline-end: -30px; top: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,84,.15), transparent 70%);
}
.inquiry-box h6 { font-weight: 800; color: var(--primary); margin-bottom: .4rem; }
.inquiry-box .btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-dark);
    font-weight: 700;
    border: none;
    padding: .7rem 1.4rem;
    box-shadow: 0 8px 20px rgba(212,168,84,.35);
}
.inquiry-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(212,168,84,.45);
    color: var(--primary-dark);
}

/* Specs + Files section */
.section-block {
    background: #fff;
    border-radius: var(--page-radius);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow-soft);
    border: var(--border-soft);
    height: 100%;
}
.section-block h5 {
    font-weight: 800; color: var(--primary);
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--cream);
    display: flex; align-items: center;
}
.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .4rem;
}
.specs-table tr {
    background: var(--cream);
    transition: var(--transition);
}
.specs-table tr:hover { background: rgba(212,168,84,.12); }
.specs-table td {
    padding: .9rem 1.2rem;
    font-size: .95rem;
}
.specs-table td.label {
    font-weight: 700;
    color: var(--primary);
    width: 40%;
    border-radius: 12px 0 0 12px;
}
.specs-table td:not(.label) {
    color: var(--text-dark);
    border-radius: 0 12px 12px 0;
}
[dir="ltr"] .specs-table td.label { border-radius: 0 12px 12px 0; }
[dir="ltr"] .specs-table td:not(.label) { border-radius: 12px 0 0 12px; }

.file-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--cream);
    border-radius: var(--page-radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}
.file-card:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.file-card .btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
}

/* Related products */
.related-products-block {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: var(--page-radius);
    box-shadow: var(--shadow-soft);
    border: var(--border-soft);
}
.related-products-block h5 {
    font-weight: 800; color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex; align-items: center;
}
.related-products-block .product-card {
    border-radius: var(--page-radius-sm) !important;
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
    box-shadow: 0 4px 14px rgba(15,42,30,.06) !important;
}
.related-products-block .product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover) !important;
}
.related-products-block .product-card .card-img-top {
    background: var(--cream);
    padding: 1rem;
    object-fit: contain !important;
    height: 160px !important;
    transition: transform .5s var(--ease);
}
.related-products-block .product-card:hover .card-img-top { transform: scale(1.06); }
.related-products-block .product-card .card-title {
    font-weight: 700;
    color: var(--primary);
    min-height: 2.6em;
}
.related-products-block .product-card .btn {
    border: 1.5px solid var(--primary-light);
    color: var(--primary-light);
    font-weight: 600;
}
.related-products-block .product-card .btn:hover {
    background: var(--primary);
    color: var(--gold-light);
    border-color: var(--primary);
}

/* ================================================================
   PAGE — صفحات ثابت (درباره ما، تماس، ...)
   ================================================================ */
.page-section { padding: 0 0 80px; }

.page-content-card {
    background: #fff;
    border-radius: var(--page-radius);
    padding: clamp(1.5rem, 3vw, 3.5rem);
    box-shadow: var(--shadow-soft);
    border: var(--border-soft);
}
.page-content {
    color: var(--text-dark);
    line-height: 2.1;
    font-size: 1.05rem;
}
.page-content h1,
.page-content h2,
.page-content h3 {
    font-weight: 800; color: var(--primary);
    margin: 1.8rem 0 1rem;
    position: relative;
    padding-inline-start: 1rem;
}
.page-content h1::before,
.page-content h2::before,
.page-content h3::before {
    content: "";
    position: absolute;
    inset-inline-start: 0; top: .35em;
    width: 5px; height: .8em;
    background: linear-gradient(180deg, var(--gold), var(--secondary));
    border-radius: 4px;
}
.page-content img {
    border-radius: var(--page-radius-sm);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-soft);
}
.page-content ul li,
.page-content ol li { margin-bottom: .6rem; }

/* Contact page */
.contact-form-card {
    background: #fff;
    border-radius: var(--page-radius);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-soft);
    border: var(--border-soft);
}
.contact-form-card .form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .4rem;
    font-size: .9rem;
}
.contact-form-card .form-control {
    border: 1.5px solid rgba(26,58,42,.1);
    border-radius: 12px;
    padding: .8rem 1rem;
    background: var(--cream);
    transition: var(--transition);
}
.contact-form-card .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,168,84,.15);
    background: #fff;
}
.contact-form-card .form-control::placeholder { color: rgba(26,58,42,.4); }
.contact-form-card textarea.form-control { min-height: 130px; resize: vertical; }
.contact-form-card .btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--gold-light);
    font-weight: 700;
    border: none;
    padding: .85rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 24px rgba(15,42,30,.25);
    transition: var(--transition);
}
.contact-form-card .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15,42,30,.35);
    color: #fff;
}
.contact-info-card {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--page-radius);
    padding: clamp(1.5rem, 3vw, 2.2rem);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.contact-info-card::before {
    content: "";
    position: absolute;
    inset-inline-end: -50px; bottom: -50px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,84,.25), transparent 70%);
}
.contact-info-card h5 {
    color: var(--gold-light);
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(212,168,84,.3);
    position: relative; z-index: 1;
}
.contact-info-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: .9rem 0;
    position: relative; z-index: 1;
    border-bottom: 1px dashed rgba(255,255,255,.1);
}
.contact-info-item:last-child { border: 0; }
.contact-info-item .icon-wrap {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 12px;
    background: rgba(212,168,84,.15);
    color: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(212,168,84,.3);
}
.contact-info-item strong {
    display: block;
    color: var(--gold-light);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .2rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.contact-info-item .info-value {
    color: rgba(255,255,255,.9);
    font-size: .95rem;
    line-height: 1.7;
    word-break: break-word;
}

.alert {
    border: none;
    border-radius: var(--page-radius-sm);
    padding: 1rem 1.2rem;
    font-weight: 600;
}
.alert-success {
    background: rgba(82,183,136,.15);
    color: #1a3a2a;
    border-inline-start: 4px solid var(--secondary);
}
.alert-danger {
    background: rgba(220,53,69,.1);
    color: #8b1a1a;
    border-inline-start: 4px solid #dc3545;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991.98px) {
    .page-hero { padding: 60px 0 40px; margin-bottom: 24px; }
    .article-sidebar,
    .product-gallery { position: static; }
    .article-body-card,
    .product-info,
    .page-content-card { padding: 1.3rem; }
    .sticky-sidebar { position: static; }
    .page-hero { padding: 2.5rem 0 2rem; }
}
@media (max-width: 767.98px) {
    .page-hero { padding: 2rem 0 1.75rem; margin-bottom: 1.5rem; }
    .page-hero-title { font-size: 1.5rem; }
    .hero-stat-card { padding: 0.7rem 1rem; }
    .hero-stat-value { font-size: 1.25rem; }
    .hero-search-inner .btn { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
    .filter-sidebar { padding: 1rem; }
    .product-card-title, .article-card-title { font-size: 0.95rem; min-height: auto; }
    .results-meta { padding: 0.65rem 0.9rem; font-size: 0.82rem; }
    .pagination-modern .page-item .page-link { min-width: 36px; height: 36px; font-size: 0.85rem; }
}
@media (max-width: 575.98px) {
    .page-hero { padding: 45px 0 32px; }
    .page-hero h1 { font-size: 1.4rem; }
    .page-hero .hero-meta { gap: .5rem; font-size: .8rem; }
    .page-hero .hero-meta span { padding: .3rem .7rem; }
    .page-hero-title { font-size: 1.3rem; }
    .featured-badge { font-size: 0.68rem; padding: 0.25rem 0.55rem; }
    .product-card-footer { flex-direction: row; }
    .article-featured-image { aspect-ratio: 4/3; border-radius: 14px; margin-bottom: 1.2rem; }
    .article-body-card,
    .product-info,
    .page-content-card,
    .contact-form-card { padding: 1.1rem; border-radius: 16px; }
    .widget { padding: 1.1rem; border-radius: 16px; }
    .specs-table td { padding: .7rem .9rem; font-size: .88rem; }
    .related-products-block { padding: 1.2rem; }
    .related-products-block .product-card .card-img-top { height: 130px !important; }
    .product-gallery .thumbnails { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
}

/* ================================================================
   حرکت کاهش‌یافته
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    .product-card, .article-card,
    .product-card:hover, .article-card:hover,
    .product-card-media img, .article-card-media img,
    .category-list a, .article-card-more,
    .pagination-modern .page-item .page-link {
        transition: none !important;
        transform: none !important;
    }
    .product-card, .article-card { opacity: 1; }
}