/*
Theme Name: Avid
Theme URI: https://safiranavid.ir
Author: Moein
Description: قالب اختصاصی آوید
Version: 1.6.0
*/
/* --- متغیرهای تم روشن --- */
:root {
    --bg-light: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.85);
    --primary-red: #cc0000;
    --deep-red: #810000;
    --red-gradient: linear-gradient(135deg, #e60000 0%, #990000 100%);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(20px);
    --text-main: #111827;
    --text-muted: #4b5563;
    --header-bg: rgba(255, 255, 255, 0.82);
    --footer-bg: rgba(255, 255, 255, 0.85);
    --table-header-bg: #f1f5f9;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 30px 60px rgba(204, 0, 0, 0.22);
}

/* --- متغیرهای تم تاریک (Dark Mode) --- */
html[data-theme="dark"] {
    --bg-light: #0d0f12 !important;
    --bg-card: rgba(22, 27, 34, 0.85) !important;
    --primary-red: #e60000 !important;
    --deep-red: #9c0000 !important;
    --red-gradient: linear-gradient(135deg, #cc0000 0%, #800000 100%) !important;
    --glass-border: rgba(255, 255, 255, 0.12) !important;
    --glass-blur: blur(20px) !important;
    --text-main: #f3f4f6 !important;
    --text-muted: #9ca3af !important;
    --header-bg: rgba(18, 22, 29, 0.85) !important;
    --footer-bg: rgba(18, 22, 29, 0.88) !important;
    --table-header-bg: #1a202c !important;
    --card-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    --hover-shadow: 0 30px 60px rgba(230, 0, 0, 0.3) !important;
}

/* ===================================================
   سایر استایل‌ها، کارت‌ها و منوهای سایت در اینجا قرار می‌گیرند...
=================================================== */

/* --- تنظیمات پایه --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body {
    background-color: var(--bg-light) !important;
    color: var(--text-main) !important;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(204, 0, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(230, 0, 0, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* --- انیمیشن‌های اختصاصی تم --- */
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(230, 0, 0, 0.2); }
    50% { transform: scale(1.03); box-shadow: 0 0 35px rgba(230, 0, 0, 0.45); }
}

@keyframes floatHeroOrb {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(4deg); }
}

@keyframes floatHeaderLogo {
    0%, 100% { transform: scale(1.18) translateY(-2px); }
    50% { transform: scale(1.18) translateY(-6px); }
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1250px;
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.header-logo-img {
    height: 42px;
    width: 42px;
    object-fit: cover;
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
    border: 2px solid rgba(230, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease, border-color 0.4s ease;
}

.header-logo-link:hover .header-logo-img {
    animation: floatHeaderLogo 2.5s ease-in-out infinite;
    border-color: var(--primary-red);
    filter: drop-shadow(0 6px 15px rgba(230, 0, 0, 0.7));
}

.logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text span { color: var(--primary-red); }

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item { position: relative; padding: 10px 0; }

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.nav-item:hover .nav-link {
    color: var(--primary-red);
    transform: translateY(-2px) scale(1.08);
}

.nav-item.active .nav-link { color: var(--primary-red) !important; font-weight: 800; }

.glass-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.nav-item.has-dropdown:hover .glass-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px) scale(1);
}

.glass-dropdown ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }

.glass-dropdown a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 12px;
    display: block;
    transition: all 0.25s ease;
}

.glass-dropdown a:hover {
    background: rgba(204, 0, 0, 0.08);
    color: var(--primary-red);
    transform: translateX(-5px);
}

/* --- سرچ زنده انیمیشنی و سوییچ تم --- */
.search-box { 
    position: relative; 
    display: flex; 
    align-items: center; 
}

.search-input {
    width: 170px;
    height: 40px;
    padding: 0 16px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    width: 230px;
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.2);
}

.search-btn { 
    position: absolute; 
    left: 12px; 
    background: none; 
    border: none; 
    font-size: 0.95rem; 
    cursor: pointer; 
    pointer-events: none; 
}

/* منوی کشویی نتایج سرچ زنده شیشه‌ای */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1300;
    max-height: 380px;
    overflow-y: auto;
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* هر آیتم از فهرست نتایج */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s ease;
    margin-bottom: 4px;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-item:hover {
    background: rgba(204, 0, 0, 0.08);
    transform: translateX(-4px);
}

/* تصویر مینیاتوری بارگذاری‌شده */
.search-result-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.search-result-title {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.search-result-item:hover .search-result-title {
    color: var(--primary-red);
}

.search-result-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.search-no-result {
    padding: 16px 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* اسکرول‌بار اختصاصی منو */
.search-results-dropdown::-webkit-scrollbar {
    width: 5px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(204, 0, 0, 0.3);
    border-radius: 10px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle-btn:hover {
    font-weight: 800;
    transform: scale(1.05);
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.6);
    color: var(--primary-red);
}

.btn-red {
    background: var(--red-gradient);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-red:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.5);
}

/* ===================================================
   استایل‌های اختصاصی صفحه تک مقاله (SINGLE POST PAGE)
=================================================== */
.single-page-wrapper {
    max-width: 900px;
    margin: 150px auto 60px auto;
    padding: 0 20px;
}

/* باکس تصویر شاخص */
.single-post-media-outer {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 35px auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
}

.single-post-featured-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* نوار متاداده شیشه‌ای با حاشیه بلر روی تصویر */
.single-post-media-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 24px;
    background: rgba(15, 20, 28, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
}

.single-post-media-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.single-post-media-bar a:hover {
    color: var(--primary-red);
}

/* باکس مجزای مطالب مقاله */
.single-post-card-box {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 45px;
    box-shadow: var(--card-shadow);
    margin-bottom: 35px;
}

.single-post-content {
    font-size: 1.08rem;
    line-height: 2.1;
    color: var(--text-main);
}

.single-post-content p {
    margin-bottom: 24px;
    text-align: justify;
}

.single-post-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 40px 0 20px 0;
    color: var(--primary-red);
    border-right: 4px solid var(--primary-red);
    padding-right: 12px;
}

.single-post-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 30px 0 15px 0;
}

.single-post-content ul, .single-post-content ol {
    margin: 20px 0 25px 30px;
    line-height: 1.9;
}

.single-post-content li { margin-bottom: 10px; }

.single-post-content blockquote {
    background: rgba(204, 0, 0, 0.05);
    border-right: 4px solid var(--primary-red);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* بخش اطلاعات نویسنده در سمت راست پایین باکس مطلب */
.single-post-footer-meta {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.author-info-right {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* باکس مجزای دیدگاه‌ها */
.single-post-comments-box {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

/* ===================================================
   استایل‌های اختصاصی صفحه آرشیو مقالات (ARCHIVE PAGE)
=================================================== */
.archive-page-wrapper {
    max-width: 1250px;
    margin: 150px auto 60px auto;
    padding: 0 20px;
}

/* هدر شیشه‌ای عنوان آرشیو */
.archive-header-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    margin-bottom: 45px;
    box-shadow: var(--card-shadow);
}

.archive-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 12px;
}

.archive-title span {
    color: var(--primary-red);
}

.archive-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* شبکه‌بندی (Grid) مقالات */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* کارت فردی مقاله در صفحه آرشیو */
.archive-post-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease, border-color 0.35s ease;
}

.archive-post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(230, 0, 0, 0.3);
}

.archive-card-thumb-link {
    position: relative;
    width: 100%;
    height: 220px;
    display: block;
    overflow: hidden;
}

.archive-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-post-card:hover .archive-card-thumb-img {
    transform: scale(1.08);
}

.archive-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.4);
    z-index: 2;
}

.archive-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 12px;
}

.archive-card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

.archive-card-title a:hover {
    color: var(--primary-red);
}

.archive-card-excerpt {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.archive-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* صفحه‌بندی (Pagination) */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.archive-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    background: var(--red-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.4);
}

/* --- دکمه شناور نئونی بازگشت به بالا (تمامی صفحات) --- */
.back-to-top-btn {
    position: fixed;
    bottom: 35px;
    left: 35px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.3s ease, 
                color 0.3s ease, 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* حالت hover نئونی جذاب - فقط روی دستگاه‌هایی که ماوس واقعی دارن (نه لمسی) */
@media (hover: hover) and (pointer: fine) {
    .back-to-top-btn:hover {
        background: var(--red-gradient);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-6px) scale(1.15);
        box-shadow: 0 0 25px rgba(230, 0, 0, 0.8), 0 10px 30px rgba(230, 0, 0, 0.5);
    }
}

/* اعمال حاشیه قرمز دور دکمه فقط در حالت تم روشن */
html.light .back-to-top-btn,
body.light-theme .back-to-top-btn,
body.light .back-to-top-btn,
.light-theme .back-to-top-btn {
    border: 2px solid #d90429 !important;
}

/* --- سایر بخش‌های صفحه اصلی --- */
section { max-width: 1250px; margin: 0 auto; padding: 80px 20px; }

.section-title { text-align: center; font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; color: var(--text-main); }
.section-title span { color: var(--primary-red); }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 50px; font-size: 0.95rem; }

/* =========================================================
   HERO SECTION
   DESKTOP = 1025px به بالا
   MOBILE / TABLET / IPAD = 1024px و پایین
   ========================================================= */


/* =========================================================
   DESKTOP VERSION
   ========================================================= */

.hero {
    padding-top: 160px;
    padding-bottom: 40px;
}

.hero-brand-center {
    text-align: center;
    margin-bottom: 35px;
    transition: transform 0.1s linear, opacity 0.1s linear;
    will-change: transform, opacity;
}

.hero-brand-logo {
    width: 120px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 10px 25px rgba(230, 0, 0, 0.35));
}

.hero-brand-title {
    font-size: 1.75rem;
    font-weight: 800;
}

.hero-brand-title span {
    color: var(--primary-red);
}


/* Hero Banner (قاب اصلی) */
.hero-banner {
    background: var(--bg-card, rgba(255, 255, 255, 0.06));
    backdrop-filter: var(--glass-blur, blur(18px));
    -webkit-backdrop-filter: var(--glass-blur, blur(18px));

    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
    border-radius: 35px;

    padding: 60px;

    display: grid;

    /* ستون راست = متن | ستون چپ = تصویر */
    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;

    min-height: 520px;

    overflow: hidden;

    direction: rtl;
}


/* =========================
   بخش متن — فقط سمت راست
========================= */

.hero-text {
    grid-column: 1;

    width: 100%;
    max-width: 520px;

    margin: 0 !important;

    text-align: right;

    position: relative;
    z-index: 5;
    transform: translateX(-30px);
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}


/* =========================
   بخش تصویر — فقط سمت چپ
========================= */

.hero-interactive {
    grid-column: 2;

    width: 100%;
    max-width: none !important;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 4;

    overflow: visible;
}


/* =========================
   تصویر
========================= */

.hero-orb-img {
    width: 110% !important;
    max-width: 600px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;

    position: relative;
    transform: translateY(-120px) !important;

    filter: drop-shadow(0 25px 45px rgba(230, 0, 0, 0.25));
}


/* در صورت استفاده از liquid-orb به‌جای تصویر */
.liquid-orb {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 30% 30%, #e60000, #810000);
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5.5rem;
    animation: floatHeroOrb 4s ease-in-out infinite;
    margin: 0 auto;
}


/* =========================================================
   مدیریت نسخه‌ها
   ========================================================= */

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: grid !important;
}


/* =========================================================
   MOBILE / TABLET / IPAD
   تا عرض 1024px
   ========================================================= */

@media (max-width: 1024px) {

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
    }

    .hero {
        padding-top: 15px !important;
        padding-bottom: 25px !important;
        overflow-x: hidden !important;
    }

    .hero-banner {
        display: none !important;
    }

    .hero-brand-center {
        display: none !important;
    }

    .hero-mobile-img-wrap {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 20px !important;
    }

    .hero-mobile-img {
        width: 140% !important;
        max-width: 610px !important;
        height: auto !important;
        object-fit: contain !important;
        filter:
            drop-shadow(
                0 20px 25px rgba(0, 0, 0, 0.35)
            ) !important;
        transform: none !important;
        display: block !important;
    }

    .hero-mobile-card {
        background: var(--bg-card) !important;
        backdrop-filter: var(--glass-blur) !important;
        -webkit-backdrop-filter: var(--glass-blur) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 24px !important;
        padding: 30px 20px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 420px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.4),
            0 5px 15px rgba(230, 0, 0, 0.05) !important;
    }

    .hero-mobile-card h1 {
        font-size: 1.45rem !important;
        font-weight: 900 !important;
        line-height: 1.4 !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important;
    }

    .hero-mobile-card p {
        font-size: 0.88rem !important;
        color: var(--text-muted) !important;
        line-height: 1.8 !important;
        margin-top: 0 !important;
        margin-bottom: 25px !important;
    }

    .hero-mobile-card .btn-red {
        display: inline-block !important;
        width: auto !important;
        padding: 12px 28px !important;
        font-size: 0.9rem !important;
        border-radius: 14px !important;
        box-shadow:
            0 8px 20px rgba(230, 0, 0, 0.35) !important;
    }
}


/* =========================================================
   دسکتاپ: اطمینان از مخفی بودن نسخه موبایل
   ========================================================= */

@media (min-width: 1025px) {

    .desktop-only {
        display: grid !important;
    }

    .mobile-only {
        display: none !important;
    }
}

/* Grid & Cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.comparison-container { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 30px; padding: 40px; }
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th, .comp-table td { padding: 18px; text-align: center; border-bottom: 1px solid var(--glass-border); }
.comp-table th.highlight { background: var(--red-gradient); border-radius: 15px 15px 0 0; color: #fff; }

.ai-section { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 30px; padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ai-tabs { display: flex; flex-direction: column; gap: 12px; }
.ai-tab-btn {
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 16px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-tab-btn:hover, .ai-tab-btn.active {
    background: var(--red-gradient);
    color: white;
    border-color: transparent;
    transform: translateX(-5px);
}

.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.app-card:hover { transform: translateY(-5px); }
.app-logo-placeholder { font-size: 2.5rem; margin-bottom: 10px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.review-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 24px; padding: 30px; }
.reviewer-info { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar-ph { width: 42px; height: 42px; border-radius: 50%; background: var(--red-gradient); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* Footer */
footer {
    background: var(--footer-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    max-width: 1250px;
    width: 92%;
    margin: 80px auto 40px auto;
    padding: 50px 40px 20px 40px;
}

.footer-top-banner { background: var(--red-gradient); border-radius: 20px; padding: 22px 30px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; color: #fff; }
.footer-content { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); text-decoration: none; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--primary-red); }
.footer-bottom { text-align: center; border-top: 1px solid var(--glass-border); padding-top: 20px; color: var(--text-muted); font-size: 0.82rem; }

/* Responsive */
@media (max-width: 768px) {
    header nav { display: none; }
    header { top: 15px; }
    .hero-banner, .ai-section { grid-template-columns: 1fr; text-align: center; padding: 30px; }
    .footer-content { grid-template-columns: 1fr; }
    .single-page-wrapper, .archive-page-wrapper { margin-top: 120px; }
    .single-post-featured-img { height: 260px; }
    .single-post-media-bar { padding: 10px 16px; font-size: 0.78rem; }
    .single-post-card-box, .single-post-comments-box, .archive-header-card { padding: 25px; }
    .archive-posts-grid { grid-template-columns: 1fr; }
    .back-to-top-btn { bottom: 20px; left: 20px; width: 46px; height: 46px; }
}

/* ------------ استایل بخش مقالات زیر هدر ------------ */
.avid-latest-posts-section {
    padding: 50px 20px;
    direction: rtl;
}

.avid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.avid-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.avid-section-header h2 {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 8px;
}

.avid-section-header .highlight {
    color: var(--primary-red);
}

.avid-section-header p {
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    font-size: 0.95rem;
}

/* ردیف ۱: دقیقاً ۲ مقاله بزرگ کنار هم */
.avid-featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.avid-featured-card {
    background: rgba(20, 24, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.avid-featured-card:hover {
    transform: translateY(-5px);
    border-color: rgba(204, 0, 0, 0.4);
    box-shadow: 0 12px 30px rgba(204, 0, 0, 0.2);
}

.featured-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.avid-featured-card:hover .featured-img-wrapper img {
    transform: scale(1.05);
}

.featured-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.featured-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-title a:hover {
    color: var(--primary-red);
}

.featured-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.avid-btn-primary {
    align-self: flex-start;
    background: var(--primary-red);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.avid-btn-primary:hover {
    background: var(--deep-red);
    transform: scale(1.03);
}

/* ردیف ۲: دقیقاً ۴ مقاله کوچک در یک ردیف */
.avid-older-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.avid-simple-card {
    background: rgba(15, 18, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.avid-simple-card:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 0, 0, 0.3);
    background: rgba(25, 30, 42, 0.8);
}

.simple-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.simple-img-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.simple-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.avid-simple-card:hover .simple-img-wrapper img {
    transform: scale(1.08);
}

.simple-title {
    padding: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
    text-align: center;
    transition: color 0.2s;
}

.avid-simple-card:hover .simple-title {
    color: var(--primary-red);
}

/* پاسخگویی موبایل و تبلت */
@media (max-width: 992px) {
    .avid-older-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .avid-featured-posts-grid,
    .avid-older-posts-grid {
        grid-template-columns: 1fr;
    }
}
/* ===================================================
   استایل‌های برگه فروشگاه (page-shop.php)
=================================================== */
.shop-page-wrapper {
    max-width: 1250px;
    margin: 150px auto 60px auto; /* ایجاد فاصله از هدر ثابت */
    padding: 0 20px;
}

.shop-top-bar {
    text-align: center;
    margin-bottom: 40px;
}

.shop-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-main);
}

.shop-title span {
    color: var(--primary-red);
}

/* سوئیچ دیجیتال / فیزیکی */
.store-type-switch {
    display: inline-flex;
    gap: 10px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 30px;
}

.store-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.store-tab-btn.active, .store-tab-btn:hover {
    background: var(--red-gradient);
    color: #fff;
}

/* شبکه دسته‌بندی‌ها */
.shop-categories-container {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 30px;
    margin-bottom: 40px;
}

.categories-heading {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.cat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.cat-card:hover, .cat-card.active {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-4px);
}

.cat-icon {
    font-size: 1.5rem;
}

/* پانل محصولات */
.store-content-panel {
    display: none;
}

.store-content-panel.active {
    display: block;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* کارت محصول شیشه‌ای */
.glass-product-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 22px;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.glass-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.product-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--red-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

.product-image-box {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-quick-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.product-rating {
    color: #ffb800;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-variants {
    margin-bottom: 20px;
    font-size: 0.82rem;
}

.product-variants label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.variant-options {
    display: flex;
    gap: 8px;
}

.v-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.78rem;
}

.v-btn.active {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.product-footer-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-red);
}

.current-price span {
    font-size: 0.75rem;
}

.add-to-cart-btn {
    background: var(--red-gradient);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
}
/* ===================================================
   استایل دکمه دایره‌ای حالت شب و روز (Avid Theme)
=================================================== */
#themeToggleBtn.theme-toggle-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    
    /* افکت شیشه‌ای مدرن */
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    
    /* چیدمان آیکون در مرکز */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#themeToggleBtn.theme-toggle-btn:hover {
    transform: scale(1.08);
    border-color: var(--primary-red);
    box-shadow: 0 0 12px rgba(230, 0, 0, 0.3);
}

/* تنطیم اندازه و فونت آیکون داخل دکمه */
#themeIcon {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-block;
    margin: 0 !important;
    padding: 0 !important;
}
/* ===================================================
   استایل کپسول هدر با منوی دقیقاً مرکزچین
=================================================== */

.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
}

/* 1. بخش لوگو (راست) */
.header-inner .logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

/* 2. بخش منو (مرکز ریاضی کپسول) */
.header-inner .main-nav {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-inner .nav-list {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 3. بخش ابزارها (چپ) */
.header-inner .header-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}
/* ===================================================
   اصلاح چیدمان صفحه محصول اختصاصی آوید و منو
=================================================== */

.avid-single-wrapper {
    padding: 30px 0;
}

.avid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.avid-product-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    align-items: flex-start !important;
}

/* کپسول راست (گالری عکس) */
.avid-capsule-gallery {
    flex: 0 0 360px !important;
    width: 360px !important;
    position: sticky !important;
    top: 90px !important;
    background: var(--bg-card, rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: var(--card-shadow, none);
}

.avid-main-img {
    width: 100% !important;
    height: auto !important;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

.gallery-thumbs img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 8px;
    object-fit: cover;
}

/* کپسول چپ (توضیحات و اسکرول) */
.avid-capsule-details {
    flex: 1 !important;
    background: var(--bg-card, rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75vh;
    box-shadow: var(--card-shadow, none);
}

/* اسکرول داخلی متن */
.details-scroll-content {
    overflow-y: auto !important;
    padding-left: 10px;
}

.details-scroll-content::-webkit-scrollbar {
    width: 5px;
}
.details-scroll-content::-webkit-scrollbar-thumb {
    background: var(--primary-red, #cc0000);
    border-radius: 10px;
}

.product-title {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: var(--text-main, #fff);
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.product-full-desc {
    color: var(--text-muted, #ddd);
    line-height: 1.8;
}

/* مخفی کردن المان‌های تزریقی مزاحم ووکامرس */
.avid-capsule-details img,
.avid-capsule-details .woocommerce-product-gallery {
    display: none !important;
}

/* کپسول خرید در پایین */
.avid-buy-box-inner {
    background: var(--bg-card-inner, rgba(15, 15, 20, 0.9));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
    border-radius: 14px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.avid-add-to-cart-btn {
    background: var(--primary-red, #cc0000);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* شبکه ۶ ستونه برای محصولات فیزیکی */
.compact-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 25px;
}

/* کارت‌های کپسولی فشرده */
.avid-product-card.compact-card {
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.avid-product-card.compact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-red, #cc0000);
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.25);
}

.compact-card .product-thumb-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.compact-card .product-card-title {
    font-size: 0.85rem;
    margin: 8px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main, #fff);
}

.compact-card .product-price-box {
    font-size: 0.8rem;
    color: var(--primary-red, #cc0000);
    margin-bottom: 8px;
}

.avid-btn-buy-mini {
    display: block;
    background: var(--primary-red, #cc0000);
    color: #fff;
    padding: 4px 0;
    border-radius: 6px;
    font-size: 0.75rem;
    text-decoration: none;
}

/* ریسپانسیو شبکه محصولات */
@media (max-width: 1200px) {
    .compact-grid-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .compact-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .compact-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
/* رفع مشکل لایه‌بندی و کلیک‌پذیری سوییچر */
.shop-type-switcher {
    position: relative;
    z-index: 999 !important; /* قرارگیری فوقانی‌ترین لایه برای کلیک‌خور شدن */
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.shop-type-switcher button.switch-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 24px;
    border-radius: 20px;
    color: #a0a0a0;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.shop-type-switcher button.switch-btn.active {
    background: var(--primary-red) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
}
/* تنظیم چیدمان منو */
.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-item {
    position: relative;
}

.main-nav .nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ۱. خط زیرین برای صفحه فعال (کاملاً متقارن و مرکزچین) */
.main-nav .nav-item.active > .nav-link {
    color: var(--primary-red);
}

.main-nav .nav-item.active > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* طول خط دقیقاً ۸۰ درصد عرض نوشته */
    height: 3px;
    background: var(--primary-red);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.5);
}

/* ۲. انیمیشن هوور متقارن برای سایر آیتم‌ها */
.main-nav .nav-item:not(.active) > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-red);
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav .nav-item:not(.active) > .nav-link:hover::after {
    width: 80%; /* در هوور هم متقارن از مرکز باز می‌شود */
}
/* ================================
   اصلاحیه نهایی تماس با ما (آوید)
================================ */

.avid-contact-wrapper {
    padding: 120px 20px 60px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.avid-glass-card {
    width: 100% !important;
    max-width: 1050px !important;
    background: rgba(23, 25, 29, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 32px !important;
    padding: 45px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 40px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
}

.card-right-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: right !important;
}

.badge-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

.badge-line {
    width: 24px !important;
    height: 3px !important;
    background-color: var(--primary-red) !important;
    border-radius: 4px !important;
}

.badge-title h2 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.hero-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin: 0 0 20px 0 !important;
}

.description-text p {
    font-size: 0.92rem !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 4px 0 !important;
}

.contact-links-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin-top: 20px !important;
}

.contact-item {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    direction: ltr !important;
}

.phone-number { color: #ffffff !important; }
.email-address { color: var(--primary-red) !important; }

/* بخش تصویر سمت چپ */
.card-left-thumb {
    position: relative !important;
    width: 250px !important;
    height: 210px !important;
    max-width: 250px !important;
    max-height: 210px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* بیضی نقطه‌چین */
.card-left-thumb::before {
    content: '' !important;
    position: absolute !important;
    width: 280px !important;
    height: 240px !important;
    border: 2px dashed rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    z-index: 1 !important;
    transform: rotate(-12deg) !important;
    pointer-events: none !important;
}

.image-box {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    z-index: 2 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.contact-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
/* کانتینر اصلی بخش مقالات صفحه اصلی */
.avid-latest-posts-section {
    position: relative; /* برای اینکه لایه بلر دقیقاً روی همین بخش فیکس شود */
}

/* لایه بلر شیشه‌ای که روی مقالات می‌افتد */
.avid-posts-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4); /* تیرگی ملایم پس‌زمینه */
    backdrop-filter: blur(12px); /* افکت بلر */
    -webkit-backdrop-filter: blur(12px);
    z-index: 99; /* قرار گرفتن روی مقالات */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    pointer-events: auto; /* مسدود کردن کلیک روی مقالات زیرین */
    padding: 20px;
}

/* باکس متن «به زودی» وسط بخش بلر شده */
.avid-blur-message-box {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--card-shadow);
}

.avid-blur-message-box h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.avid-blur-message-box p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}
/* کانتینر آیکون‌ها */
.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

/* ظاهر پایه دکمه‌های آیکون */
.footer-social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
}

/* ۱. اینستاگرام (پیش‌فرض قرمز، هاور صورتی/بنفش نئونی) */
.footer-social-links .social-icon.instagram {
    color: #ff2a5f;
}
.footer-social-links .social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    box-shadow: 0 0 15px #bc1888, 0 0 25px rgba(220, 39, 67, 0.5);
    border-color: #dc2743;
}

/* ۲. تلگرام (پیش‌فرض آبی، هاور آبی نئونی) */
.footer-social-links .social-icon.telegram {
    color: #00d2ff;
}
.footer-social-links .social-icon.telegram:hover {
    background-color: #00d2ff;
    color: #fff;
    box-shadow: 0 0 15px #00d2ff, 0 0 25px rgba(0, 210, 255, 0.5);
    border-color: #00d2ff;
}

/* ۳. ایمیل (پیش‌فرض قرمز، هاور قرمز نئونی) */
.footer-social-links .social-icon.email {
    color: #ff3333;
}
.footer-social-links .social-icon.email:hover {
    background-color: #ff3333;
    color: #fff;
    box-shadow: 0 0 15px #ff3333, 0 0 25px rgba(255, 51, 51, 0.5);
    border-color: #ff3333;
}
/* آیکون‌های برند ایتا و روبیکا - نمایش کامل رنگی، بدون تغییر رنگ بین تم‌ها */
.footer-social-links .social-icon-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.footer-social-links .social-icon-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* هاور: بزرگ‌نمایی ملایم + سایه‌ی نرم، بدون تغییر رنگ خود لوگو */
.footer-social-links .social-icon-brand:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
}

/* هماهنگی با تم روشن: کمی کنتراست بیشتر برای دیده شدن بهتر روی پس‌زمینه‌ی سفید */
html.light .footer-social-links .social-icon-brand,
html[data-theme="light"] .footer-social-links .social-icon-brand,
body.light-theme .footer-social-links .social-icon-brand,
[data-theme="light"] .footer-social-links .social-icon-brand {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.02);
}

html.light .footer-social-links .social-icon-brand:hover,
html[data-theme="light"] .footer-social-links .social-icon-brand:hover,
body.light-theme .footer-social-links .social-icon-brand:hover,
[data-theme="light"] .footer-social-links .social-icon-brand:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.25);
}

/* متغیرهای تم روشن و تاریک */
:root {
    --bg-modal: rgba(255, 255, 255, 0.85);
    --text-color: #333333;
    --border-color: #cccccc;
    --input-bg: #f9f9f9;
    --primary-btn: #2563eb;
}

[data-theme="dark"] {
    --bg-modal: rgba(30, 41, 59, 0.85);
    --text-color: #f8fafc;
    --border-color: #475569;
    --input-bg: #0f172a;
    --primary-btn: #3b82f6;
}

/* استایل پاپ‌آپ شیشه‌ای (Glassmorphism) */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-container {
    background: var(--bg-modal);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
    box-sizing: border-box;
}
/* ===================================================
   استایل‌های کامل پاپ‌آپ ورود/ثبت‌نام (هماهنگ با تم Avid)
=================================================== */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--card-shadow);
    color: var(--text-main);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.auth-modal-overlay.active .auth-modal-container {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 18px;
    left: 18px; /* سازگار با قالب راست‌چین */
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: var(--primary-red);
}

/* افکت جذاب برای انتخاب آواتارها در پاپ‌آپ */
.selectable-avatar {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.selectable-avatar:hover,
.selectable-avatar.selected {
    transform: scale(1.08);
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
}
/* متغیرهای تم روشن و تاریک */
:root {
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(255, 255, 255, 0.4);
    --text-color: #1e293b;
    --text-muted: #64748b;
    --input-bg: rgba(255, 255, 255, 0.6);
    --input-border: #cbd5e1;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body.dark-mode, [data-theme="dark"] {
    --bg-glass: rgba(15, 23, 42, 0.75);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(30, 41, 59, 0.6);
    --input-border: #475569;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

.avid-dashboard-wrapper {
    max-width: 750px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
    font-family: inherit;
}

/* فلش بازگشت */
.avid-back-home-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
.avid-back-home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.3s;
}
.avid-back-home-link:hover {
    color: #ef4444;
}

/* کپسول بلر شیشه‌ای */
.avid-glass-capsule {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px var(--shadow-color);
    margin-bottom: 25px;
    transition: background 0.3s, border 0.3s;
}

/* بخش آواتار */
.avid-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}
.avid-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
}
.avid-avatar-box {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ef4444;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.avid-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avid-edit-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* سطرهای اطلاعاتی کپسول */
.avid-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 10px 20px;
}
.avid-field-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-color);
    width: 35%;
}
.avid-field-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 65%;
    position: relative;
}
.avid-glass-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 0.95rem;
    padding: 6px 0;
}
.avid-field-edit-icon, .avid-lock-icon {
    cursor: pointer;
    font-size: 15px;
    color: var(--text-muted);
    transition: 0.2s;
}
.avid-field-edit-icon:hover {
    color: #ef4444;
}

/* دکمه اعمال تغییرات (بیضی شکل، قرمز با انیمیشن و سایه نئونی) */
.avid-submit-container {
    text-align: center;
    margin-top: 30px;
}
.avid-save-changes-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 12px 45px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.avid-save-changes-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

/* منوهای کپسول دوم */
.avid-menu-capsule {
    padding: 20px;
}
.avid-menu-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.avid-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 12px;
    transition: 0.2s;
}
.avid-menu-item:hover, .avid-menu-item.active {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.avid-menu-icon {
    font-size: 20px;
}
.avid-support-submenu {
    margin-top: 15px;
    border-top: 1px solid var(--input-border);
    padding-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.avid-submenu-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.avid-submenu-link:hover {
    color: #ef4444;
}

/* پنل‌های محتوایی */
.avid-content-pane {
    display: none;
}
.avid-content-pane.active-pane {
    display: block;
}
.avid-section-heading {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #ef4444;
    padding-bottom: 8px;
    display: inline-block;
}

/* فیلتر سفارش‌ها */
.avid-orders-filter-capsule {
    display: flex;
    gap: 10px;
    background: var(--input-bg);
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow-x: auto;
}
.avid-filter-tab {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.2s;
    white-space: nowrap;
}
.avid-filter-tab.active, .avid-filter-tab:hover {
    background: #ef4444;
    color: #fff;
}
.avid-orders-list-capsule {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
}
.avid-order-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--input-bg);
    border-radius: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
}
.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.badge-ongoing { background: #3b82f6; color: #fff; }
.badge-completed { background: #10b981; color: #fff; }
.badge-returned { background: #f59e0b; color: #fff; }

/* تراکنش‌ها */
.avid-transaction-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 12px;
    color: var(--text-color);
}
.t-details { display: flex; flex-direction: column; gap: 4px; }
.t-subject { font-weight: bold; font-size: 0.95rem; }
.t-meta { font-size: 0.78rem; color: var(--text-muted); }
.t-financial { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.t-amount { font-weight: bold; font-size: 0.95rem; }
.t-status { font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; font-weight: bold; }
.t-status.success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.t-status.refund { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.t-status.failed { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* علاقه‌مندی‌ها و پیام‌ها */
.avid-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.avid-wishlist-capsule {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 15px;
    border-radius: 16px;
    color: var(--text-color);
}
.avid-message-box, .avid-ticket-item-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 12px;
    color: var(--text-color);
}
.msg-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.msg-body { font-size: 0.9rem; color: var(--text-muted); }

/* مدال آواتار */
.avid-avatar-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.avid-avatar-modal-content {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 25px;
    border-radius: 20px;
    width: 320px;
}
.avid-avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}
.avid-selectable-avatar {
    width: 100%;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: 0.2s;
}
.avid-selectable-avatar:hover {
    border-color: #ef4444;
    transform: scale(1.05);
}
.avid-close-modal-btn {
    width: 100%;
    padding: 8px;
    background: #64748b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.ai-mobile-progress {
    display: none;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}
.ai-mobile-progress-bar {
    height: 100%;
    width: 100%;
    background: var(--red, #e53935);
}
@media (max-width: 768px) {
    .ai-mobile-progress { display: block; }
}
/* =========================================================
   صفحه سبد خرید - آوید
========================================================== */

.avid-cart-wrapper {
    max-width: 1200px;
    margin: 140px auto 80px;
    padding: 0 20px;
}

.avid-cart-header {
    margin-bottom: 30px;
    text-align: right;
}

.avid-cart-page-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px;
}

.avid-cart-page-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* چیدمان دو ستونه: راست = محصولات / چپ = پرداخت */
.avid-cart-columns {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 28px;
}

.avid-cart-items-col {
    flex: 1 1 65%;
    min-width: 0;
}

.avid-cart-summary-col {
    flex: 1 1 32%;
    position: sticky;
    top: 100px;
}

/* -------- لیست محصولات (باکس شیشه‌ای) -------- */
.avid-cart-items-list {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 15px 35px var(--card-shadow);
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.avid-cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto 40px;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.25s ease;
}

.avid-cart-item:last-child {
    border-bottom: none;
}

.avid-cart-item:hover {
    background: rgba(230, 57, 70, 0.04);
}

.avid-cart-item-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: block;
}

.avid-cart-item-name a {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.avid-cart-item-name a:hover {
    color: var(--primary-red);
}

.avid-cart-item-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

.avid-cart-item-unit-price {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* کنترل تعداد */
.avid-cart-item-qty .quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
}

.avid-cart-item-qty input.qty {
    width: 46px;
    height: 38px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 700;
    -moz-appearance: textfield;
     appearance: textfield;
    
}

.avid-cart-item-qty input.qty::-webkit-outer-spin-button,
.avid-cart-item-qty input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.avid-cart-item-subtotal {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}

.avid-remove-item-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.avid-remove-item-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.08);
}

.avid-remove-item-btn svg {
    width: 16px;
    height: 16px;
}

/* دکمه‌ها و کوپن زیر لیست */
.avid-cart-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.avid-cart-update-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 11px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.avid-cart-update-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.avid-cart-coupon {
    display: flex;
    gap: 8px;
}

.avid-coupon-input {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 11px 16px;
    color: var(--text-main);
    font-size: 0.88rem;
    min-width: 160px;
}

.avid-coupon-apply-btn {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.avid-coupon-apply-btn:hover {
    filter: brightness(1.1);
}

/* -------- باکس جزئیات پرداخت (سمت چپ) -------- */
.avid-cart-summary-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 15px 35px var(--card-shadow);
    padding: 26px;
}

.avid-summary-title {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 20px;
}

.avid-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 10px 0;
}

.avid-summary-row span:last-child {
    color: var(--text-main);
    font-weight: 600;
}

.avid-summary-discount span:last-child {
    color: #22c55e;
}

.avid-summary-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 12px 0;
}

.avid-summary-total {
    font-size: 1.05rem;
    padding-top: 4px;
}

.avid-summary-total span {
    color: var(--text-main) !important;
    font-weight: 800 !important;
}

.avid-summary-total span:last-child {
    color: var(--primary-red) !important;
    font-size: 1.2rem;
}

/* دکمه تکمیل خرید (خروجی خودکار ووکامرس) */
.avid-cart-summary-box .wc-proceed-to-checkout {
    margin-top: 20px;
    padding: 0;
}

.avid-cart-summary-box .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary-red);
    color: #fff !important;
    padding: 15px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.avid-cart-summary-box .checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.4);
}

/* -------- سبد خرید خالی -------- */
.avid-empty-cart {
    max-width: 480px;
    margin: 160px auto 100px;
    text-align: center;
    padding: 50px 30px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 45px var(--card-shadow);
}

.avid-empty-cart-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.08);
    color: var(--primary-red);
}

.avid-empty-cart-icon svg {
    width: 42px;
    height: 42px;
}

.avid-empty-cart-title {
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.avid-empty-cart-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 26px;
}

.avid-empty-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.avid-empty-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.4);
}

/* -------- ریسپانسیو -------- */
@media (max-width: 900px) {
    .avid-cart-columns {
        flex-direction: column;
    }
    .avid-cart-summary-col {
        position: static;
        width: 100%;
    }
    .avid-cart-item {
        grid-template-columns: 70px 1fr;
        grid-template-areas:
            "thumb info"
            "thumb qty"
            "thumb subtotal"
            "remove remove";
        row-gap: 8px;
    }
    .avid-cart-item-thumb { grid-area: thumb; }
    .avid-cart-item-info { grid-area: info; }
    .avid-cart-item-qty { grid-area: qty; }
    .avid-cart-item-subtotal { grid-area: subtotal; }
    .avid-cart-item-remove { grid-area: remove; justify-self: start; }
}

/* ===================================================
   بخش دیدگاه‌ها (COMMENTS) - به انتهای style.css اضافه شود
=================================================== */
.avid-comments {
    --cm-av: 42px;           /* اندازه آواتار */
    --cm-indent: 54px;       /* فاصله پاسخ‌ها از دیدگاه اصلی */
    --cm-gap: 18px;          /* فاصله عمودی بین دیدگاه و پاسخ‌ها */
    --cm-line: rgba(230, 0, 0, 0.45);
    --cm-card: var(--table-header-bg);
}

/* ---------- عنوان ---------- */
.avid-comments-head { margin-bottom: 22px; }
.avid-comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}
.avid-comments-count {
    background: var(--red-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- باکس نوشتن دیدگاه ---------- */
.avid-comments .comment-respond { margin-bottom: 30px; }
.avid-composer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}
.avid-composer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
    flex-shrink: 0;
}
.avid-composer-avatar--guest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cm-card);
    border-color: var(--glass-border);
}
.avid-cancel-reply a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
    margin-right: 6px;
}
.avid-cancel-reply a:hover { text-decoration: underline; }

.avid-comment-form { position: relative; }

.avid-comment-form .avid-field textarea {
    display: block;
    width: 100%;
    min-height: 64px;
    max-height: 420px;
    resize: none;
    overflow: hidden;                     /* بدون اسکرول‌بار */
    scrollbar-width: none;
    padding: 18px 20px 18px 74px;         /* فضای دکمه ارسال در سمت چپ */
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-main);
    background: var(--bg-light);
    border: 1.5px solid var(--glass-border);
    border-radius: 22px;
    outline: none;
}
.avid-comment-form .avid-field textarea::-webkit-scrollbar { display: none; }
.avid-comment-form .avid-field textarea::placeholder { color: var(--text-muted); }
.avid-comment-form .avid-field textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.12);
}

.avid-comment-form .form-submit {
    position: absolute;
    left: 10px;
    bottom: 10px;
    margin: 0;
}
.avid-send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--red-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.avid-send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(204, 0, 0, 0.5);
}
.avid-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}
.avid-send-btn.is-sending svg { animation: avidSendPulse 0.8s ease-in-out infinite; }
@keyframes avidSendPulse {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* ---------- پیام لزوم ورود (مهمان) ---------- */
.avid-login-required {
    text-align: center;
    padding: 28px 20px;
    background: var(--cm-card);
    border: 1.5px dashed var(--glass-border);
    border-radius: 22px;
}
.avid-login-required-icon { font-size: 1.8rem; margin-bottom: 6px; }
.avid-login-required p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
}
.avid-login-required-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 30px;
    background: var(--red-gradient);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.3);
    transition: transform 0.2s ease;
}
.avid-login-required-btn:hover { transform: translateY(-2px); }

/* ---------- لیست دیدگاه‌ها ---------- */
.avid-comment-list,
.avid-comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* هر دیدگاه اصلی + تمام پاسخ‌هایش = یک باکس؛ دیدگاه‌های اصلی از هم جدا */
.avid-comment-list > .avid-comment {
    background: var(--cm-card);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.avid-comment-list > .avid-comment:hover { border-color: rgba(230, 0, 0, 0.3); }

/* ساختار داخلی هر دیدگاه/پاسخ (بدون کادر مجزا) */
.avid-comment-card {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.avid-comment-side {
    width: var(--cm-av);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.avid-comment-avatar {
    width: var(--cm-av);
    height: var(--cm-av);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}
/* خط عمودی زیر آواتار؛ فقط اگر دیدگاه پاسخ داشته باشد */
.avid-rail { display: none; }
.avid-comment:has(> .children) > .avid-comment-card .avid-rail {
    display: block;
    flex: 1;
    width: 2px;
    margin-top: 4px;
    background: var(--cm-line);
    border-radius: 2px;
}

.avid-comment-main { flex: 1; min-width: 0; }
.avid-comment-meta {
    min-height: var(--cm-av);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.avid-comment-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
}
.avid-badge-author {
    background: var(--red-gradient);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 12px;
}
.avid-comment-date {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.avid-comment-body {
    margin-top: 8px;
    color: var(--text-main);
    font-size: 0.93rem;
    line-height: 2;
    overflow-wrap: anywhere;
}
.avid-comment-body p { margin: 0 0 6px; }
.avid-comment-body p:last-child { margin-bottom: 0; }
.avid-comment-pending {
    font-size: 0.8rem;
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    padding: 6px 12px;
    border-radius: 10px;
    margin-bottom: 8px !important;
}
.avid-comment-actions { margin-top: 10px; }
.avid-comment-actions .comment-reply-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.avid-comment-actions .comment-reply-link:hover {
    color: #fff;
    background: var(--red-gradient);
    border-color: transparent;
}

/* ---------- پاسخ‌ها: تورفتگی + خط اتصال L شکل ---------- */
.avid-comment-list .children { padding-right: var(--cm-indent); }
.avid-comment-list .children > .avid-comment {
    position: relative;
    padding-top: var(--cm-gap);
}
/* بازوی L: از خط زیر آواتار والد پایین می‌آید و به آواتار پاسخ می‌رسد */
.avid-comment-list .children > .avid-comment::before {
    content: '';
    position: absolute;
    top: 0;
    right: calc(-1 * (var(--cm-indent) - var(--cm-av) / 2 + 1px));
    width: calc(var(--cm-indent) - var(--cm-av) / 2 - 3px);
    height: calc(var(--cm-gap) + var(--cm-av) / 2);
    border-right: 2px solid var(--cm-line);
    border-bottom: 2px solid var(--cm-line);
    border-bottom-right-radius: 14px;
    pointer-events: none;
}
/* ادامه خط عمودی برای پاسخ‌های بعدی (به جز آخرین پاسخ) */
.avid-comment-list .children > .avid-comment:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--cm-gap) + var(--cm-av) / 2);
    bottom: 0;
    right: calc(-1 * (var(--cm-indent) - var(--cm-av) / 2 + 1px));
    border-right: 2px solid var(--cm-line);
    pointer-events: none;
}

/* فرم پاسخی که زیر یک دیدگاه باز می‌شود */
.avid-comment > .comment-respond {
    margin: var(--cm-gap) 0 0 0;
    padding-right: calc(var(--cm-av) + 12px);
}

/* ---------- حالت‌های خالی و بسته ---------- */
.avid-comments-empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-muted);
}
.avid-comments-empty span { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.avid-comments-closed {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 10px 0 24px;
}

/* ---------- صفحه‌بندی ---------- */
.avid-comments-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.avid-comments-pagination .page-numbers {
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
}
.avid-comments-pagination .page-numbers.current {
    background: var(--red-gradient);
    color: #fff;
    border-color: transparent;
}

/* ---------- موبایل ---------- */
@media (max-width: 600px) {
    .avid-comments { --cm-av: 36px; --cm-indent: 44px; --cm-gap: 14px; }
    .avid-comment-list > .avid-comment { padding: 14px; border-radius: 18px; }
    .avid-comment > .comment-respond { padding-right: 0; }
}


/* ===================================================
   نوار متای تصویر شاخص: تاریخ+ساعت | زمان مطالعه | دسته‌بندی
=================================================== */
.single-post-media-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 12px;
}
.single-post-media-bar .media-bar-right {
    justify-self: start;       /* در RTL یعنی سمت راست */
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.single-post-media-bar .media-bar-center {
    justify-self: center;
    text-align: center;
    white-space: nowrap;
}
.single-post-media-bar .media-bar-left {
    justify-self: end;         /* در RTL یعنی سمت چپ */
}
.single-post-media-bar .media-bar-sep { opacity: 0.5; }

@media (max-width: 600px) {
    .single-post-media-bar {
        grid-template-columns: 1fr 1fr;
        row-gap: 6px;
    }
    .single-post-media-bar .media-bar-center {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}


/* ===================================================
   صفحه مقالات: نوار دسته‌بندی + تکمیل کارت‌ها
=================================================== */
.blog-cat-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -15px 0 40px;
}
.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 30px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.blog-cat-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 0, 0, 0.45);
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.18);
}
.blog-cat-pill.is-active {
    background: var(--red-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(204, 0, 0, 0.4);
}
.blog-cat-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(128, 128, 128, 0.18);
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.blog-cat-pill.is-active .blog-cat-count { background: rgba(255, 255, 255, 0.25); }

/* کارت بدون تصویر شاخص */
.archive-card-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-gradient);
    color: rgba(255, 255, 255, 0.85);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
}
.archive-card-title { overflow-wrap: anywhere; }
.archive-card-footer a, .archive-card-footer span { white-space: nowrap; }

/* صفحه‌بندی: فلش‌ها و سه‌نقطه */
.archive-pagination .page-numbers.dots { background: transparent; border: none; box-shadow: none; }

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.blog-empty span { font-size: 2.2rem; display: block; margin-bottom: 8px; }

@media (max-width: 768px) {
    /* روی موبایل نوار دسته‌بندی یک ردیف افقی قابل اسکرول می‌شود */
    .blog-cat-bar {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        margin: -10px -20px 30px;
        padding-inline: 20px;
        scrollbar-width: none;
    }
    .blog-cat-bar::-webkit-scrollbar { display: none; }
    .blog-cat-pill { white-space: nowrap; flex-shrink: 0; }
}

/* =========================================================
   فونت اختصاصی برند (پنجره) - فقط برای نام «آوید / AVID»
   فایل‌های فونت باید داخل پوشه‌ی fonts در کنار style.css باشند:
   wp-content/themes/<نام-پوشه-قالب>/fonts/
   ========================================================= */
@font-face {
    font-family: 'Panjare';
    src: url('fonts/Panjare-WOFF2.woff2') format('woff2'),
         url('fonts/Panjare-WOFF.woff') format('woff'),
         url('fonts/Panjare-TTF.ttf') format('truetype'),
         url('fonts/Panjare-OTF.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* فقط حروف فارسی/عربی با این فونت نمایش داده شوند؛ حروف انگلیسی (AVID) با فونت قبلی بمانند */
    unicode-range: U+0600-06FF, U+0750-077F, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
    --avid-brand-font: 'Panjare', 'Vazirmatn', sans-serif;
}

/* لوگوی متنی هدر و فوتر */
.logo-text,
.logo-text span,
/* عنوان بزرگ «آوید» در صفحه‌ی اصلی */
.avid-floating-brand-title {
    font-family: var(--avid-brand-font) !important;
    font-weight: normal;
    font-synthesis: none;
}


/* =========================================================
   آیکون‌های یکسان سایت (جایگزین ایموجی‌ها / نمادهای متنی)
   SVG خطی؛ رنگ از currentColor و اندازه از font-size
========================================================= */
.avid-i {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.14em;
    overflow: visible;
    pointer-events: none;
}
.nav-link .avid-i,
.avid-nav-caret {
    width: 0.8em;
    height: 0.8em;
    margin-inline-start: 0;
    vertical-align: -0.08em;
    opacity: 0.85;
}
.search-btn .avid-i { width: 1.15rem; height: 1.15rem; vertical-align: middle; }
.back-to-top-btn .avid-i { width: 22px; height: 22px; stroke-width: 2.4; }
.avid-mobile-nav-arrow .avid-i { width: 18px; height: 18px; }
.card-icon-box { font-size: 2.1rem; line-height: 1; margin-bottom: 14px; color: var(--primary-red); }
.card-icon-box .avid-i { width: 1em; height: 1em; vertical-align: top; stroke-width: 1.8; }
.badge-check { display: inline-flex; align-items: center; justify-content: center; }
.badge-check .avid-i { width: 1.15em; height: 1.15em; stroke-width: 2.6; vertical-align: middle; }
.ai-tab-btn .avid-i { width: 1.2em; height: 1.2em; margin-inline-end: 0.5em; vertical-align: -0.22em; }
.featured-meta .avid-i { margin-inline-end: 4px; vertical-align: -0.16em; }
.avid-ct-toast .avid-i { width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-inline-end: 2px; }
.avid-login-bar-x .avid-i,
.avid-addr-x .avid-i { width: 16px; height: 16px; vertical-align: middle; }
.avid-shop-more .avid-i,
.avid-co-back .avid-i { width: 1em; height: 1em; vertical-align: -0.15em; margin-inline: 3px; }
.avid-comment-pending .avid-i,
.comment-reply-link .avid-i,
.avid-vp-error .avid-i { vertical-align: -0.15em; margin-inline-end: 3px; }
.page-numbers .avid-i { width: 1.1em; height: 1.1em; vertical-align: middle; }
