/* --- متغیرهای رنگی متالیک و نئونی (سبز ملایم‌تر و چشم‌نواز) --- */
:root {
    --bg-main: #0b0f17;          
    --bg-card: #131b26;          
    --bg-darker: #070a0f;        
    --metal-border: #233247;     
    --neon-green: #00cc55;       /* سبز نئونی ملایم‌تر و استاندارد صنعتی */
    --neon-blue: #00bfff;        /* آبی نئونی ملایم */
    --whatsapp-color: #25d366;   
    --text-main: #f1f5f9;        
    --text-muted: #94a3b8;       
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 50px 0;
}

.metal-box {
    background: var(--bg-card);
    border: 1px solid var(--metal-border);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.metal-box:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.15);
}

/* --- دکمه‌های کامپکت و استاندارد (کوچک و زیبا در موبایل و دسکتاپ) --- */
.btn-neon, .btn-whatsapp, .btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: bold;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-neon {
    background: transparent;
    border: 1.5px solid var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 6px rgba(0, 204, 85, 0.15);
}

.btn-neon:hover {
    background: var(--neon-green);
    color: var(--bg-main);
    box-shadow: 0 0 12px rgba(0, 204, 85, 0.4);
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: #fff;
    box-shadow: 0 0 6px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    opacity: 0.9;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.5);
}

.btn-call {
    background: transparent;
    border: 1.5px solid var(--neon-blue);
    color: var(--neon-blue);
}

.btn-call:hover {
    background: var(--neon-blue);
    color: var(--bg-main);
}

/* --- هدر و لوگو --- */
.site-header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--metal-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.site-title {
    font-size: 20px;
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 204, 85, 0.3);
}

.site-tagline {
    font-size: 11px;
    color: var(--text-muted);
}

.main-navigation ul {
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: bold;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--neon-blue);
}

/* --- بنر ویدئویی (شفاف‌تر برای دیده‌شدن کامل ویدیو) --- */
.hero-video-section {
    position: relative;
    height: 460px;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 15, 23, 0.45), rgba(11, 15, 23, 0.75)); /* لایه ملایم‌تر برای دیده‌شدن ویدیو */
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay h2 {
    font-size: 34px;
    color: var(--neon-green);
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-overlay p {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* --- گریدهای محصولات و مقالات (۳ ستونه منظم) --- */
.products-grid, .articles-grid, .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.product-card, .article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-img img, .single-product-image img, .single-article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--metal-border);
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 a {
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.card-content h3 a:hover {
    color: var(--neon-blue);
}

.excerpt {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-actions .btn-call, .card-actions .btn-whatsapp {
    flex: 1;
    padding: 6px 8px;
    font-size: 12px;
}

/* --- بخش چرا ما و سوالات متداول --- */
.why-card {
    padding: 25px;
    text-align: center;
}

.why-card .icon-box span {
    font-size: 36px;
    color: var(--neon-green);
    margin-bottom: 12px;
    display: inline-block;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 20px;
}

.faq-item h3 {
    color: var(--neon-blue);
    font-size: 16px;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- صفحات تک محصول و تک مقاله --- */
.single-product-container, .single-article-container {
    padding: 30px;
    margin: 30px 0;
}

.product-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.single-product-image img, .single-article-image img {
    height: 340px;
    border-radius: 8px;
}

.single-title {
    font-size: 26px;
    color: var(--neon-green);
    margin-bottom: 15px;
}

.product-description, .article-content {
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.single-actions {
    display: flex;
    gap: 12px;
}

/* --- فوتر --- */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--metal-border);
    padding: 50px 0 20px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--neon-green);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col p, .contact-list li {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.contact-list a {
    color: var(--text-main);
}

.contact-list a:hover {
    color: var(--neon-blue);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.social-icon {
    color: var(--neon-blue);
    font-size: 13px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--metal-border);
    padding-top: 15px;
    color: var(--text-muted);
    font-size: 12px;
}

/* --- ریسپانسیو موبایل --- */
@media (max-width: 992px) {
    .products-grid, .articles-grid, .why-grid, .footer-grid, .product-single-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-overlay h2 {
        font-size: 24px;
    }
    
    .hero-overlay p {
        font-size: 13px;
    }
    
    .single-product-image img, .card-img img {
        height: 220px;
    }

    .main-navigation {
        display: none; /* در موبایل در صورت نیاز می‌توانید منوی کشویی اضافه کنید */
    }
}

/* --- بهینه‌سازی فونت‌ها و دکمه‌ها برای خوانایی بهتر --- */
.btn-neon, .btn-whatsapp, .btn-call {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    padding: 8px 18px;
}

@media (max-width: 768px) {
    .hero-video {
        max-height: 250px;
    }
    .hero-text-box p {
        font-size: 13px;
        line-height: 1.6;
    }
    .hero-box-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn-neon, .btn-whatsapp, .btn-call {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
/* --- استایل پیشرفته، مدرن و نئونی فوتر --- */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--metal-border);
    padding: 55px 0 20px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 35px;
}

.footer-col h3 {
    color: var(--neon-green);
    margin-bottom: 18px;
    font-size: 17px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 14px;
}

.footer-contact-list li .dashicons {
    color: var(--neon-blue);
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-contact-list li a {
    color: var(--text-main);
    transition: var(--transition);
}

.footer-contact-list li a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 204, 85, 0.4);
}

.footer-contact-list .badge {
    background: rgba(0, 191, 255, 0.1);
    color: var(--neon-blue);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 191, 255, 0.3);
}

.footer-address {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.footer-address .dashicons {
    color: var(--neon-green);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--metal-border);
    color: var(--text-main);
    transition: var(--transition);
}

.footer-social-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.footer-social-btn.instagram:hover {
    border-color: #e1306c;
    color: #e1306c;
    box-shadow: 0 0 10px rgba(225, 48, 108, 0.3);
}

.footer-social-btn.whatsapp:hover {
    border-color: var(--whatsapp-color);
    color: var(--whatsapp-color);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

.footer-social-btn.telegram:hover {
    border-color: #0088cc;
    color: #0088cc;
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.3);
}

.footer-cta-action {
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--metal-border);
    padding-top: 15px;
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* --- استایل نهایی و صددرصد ثابت بنر و متن زیر آن --- */
.hero-video-section {
    padding: 30px 0;
    width: 100%;
}

.hero-video-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #0b0f17;
    border: 1px solid var(--metal-border);
}

.hero-video {
    width: 100%;
    height: auto; /* ارتفاع کاملاً طبیعی بدون برش در دسکتاپ و موبایل */
    display: block;
}

.hero-text-box {
    width: 100%;
    max-width: 1200px;
    margin: 15px auto 0 auto;
    padding: 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--metal-border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-text-box p {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-box-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .hero-box-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn-neon, .btn-whatsapp, .btn-call {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
/* --- اصلاح تناسب و مربعی‌تر شدن تصاویر کارت‌ها و صفحات تکی --- */
.card-img {
    aspect-ratio: 4 / 3; /* تناسب مربعی و استاندارد برای کارت‌ها */
    width: 100%;
    overflow: hidden;
    background: #000;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-product-image img, .single-article-image img {
    aspect-ratio: 4 / 3; /* مربعی‌تر شدن تصویر در صفحه تکی محصول و مقاله */
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
/* --- ۱. جلوگیری از جابجایی و اسکرول افقی صفحه در موبایل --- */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* --- ۲. استانداردسازی باکس جستجوی محصولات در دسکتاپ و موبایل --- */
.product-search-form {
    padding: 15px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--metal-border);
    border-radius: 10px;
}

.product-search-form input[type="text"] {
    flex-grow: 1;
    background: var(--bg-main);
    border: 1px solid var(--metal-border);
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    outline: none;
}

/* --- ۳. کنترل اندازه عکس در صفحات تکی (نه خیلی بزرگ در دسکتاپ، نه خیلی کوچک) --- */
.single-product-image img, .single-article-image img {
    max-height: 380px; /* کنترل ارتفاع در دسکتاپ */
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* --- ۴. تنظیمات مخصوص موبایل (جستجو، فیکس شدن صفحه و چیدمان محصول تکی) --- */
@media (max-width: 768px) {
    /* ریسپانسیو شدن فرم جستجو در موبایل (جلوگیری از بیرون زدن دکمه) */
    .product-search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 12px !important;
        gap: 10px;
    }
    .product-search-form input[type="text"] {
        width: 100% !important;
    }
    .product-search-form button {
        width: 100% !important;
        justify-content: center;
    }

    /* تبدیل صفحه تکی محصول به تک‌ستونه در موبایل (عکس بالا، متن پایین) */
    .product-single-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .single-product-container {
        padding: 15px !important;
    }
    .single-title {
        font-size: 20px !important;
    }
}
/* --- اصلاح قاب و ابعاد عکس مقالات تکی --- */
.single-article-image {
    width: 100%;
    max-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    margin-bottom: 25px;
    border: 1px solid var(--metal-border);
}

.single-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن کادر زیبا بدون دفرمه شدن */
    display: block;
}
/* --- استایل دکمه‌های صفحه‌بندی مقالات --- */
.pagination-container ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.pagination-container ul.page-numbers li span, 
.pagination-container ul.page-numbers li a {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--metal-border);
    color: var(--text-main);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
}

.pagination-container ul.page-numbers li a:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

.pagination-container ul.page-numbers li span.current {
    background: var(--neon-green);
    color: var(--bg-main);
    border-color: var(--neon-green);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 204, 85, 0.4);
}

/* --- اصلاح پس‌زمینه و حذف نوارهای مشکی کناری در عکس مقاله تکی --- */
.single-article-image {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card); /* هماهنگ‌سازی رنگ پس‌زمینه با کادر کلی سایت */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid var(--metal-border);
}

.single-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن کامل قاب بدون ایجاد فضای خالی و نوارهای کناری */
    display: block;
}
/* --- اصلاح و بهینه‌سازی هدر آرشیو محصولات (سبز نئونی، وسط‌چین و ابعاد جمع‌وجور) --- */
.archive-page .archive-header, 
.post-type-archive-product .archive-header,
.archive header.archive-header {
    text-align: center !important;
    margin-bottom: 25px !important;
    padding: 10px 15px !important;
}

.archive-page .archive-header h1.archive-title,
.post-type-archive-product .archive-title {
    color: var(--neon-green) !important;
    font-size: 22px !important; /* ابعاد کوچک‌تر و مناسب برای دسکتاپ */
    margin-bottom: 8px !important;
    text-align: center !important;
    line-height: 1.4;
}

.archive-page .archive-header p.archive-description,
.post-type-archive-product .archive-description {
    color: var(--text-muted) !important;
    font-size: 13px !important; /* ابعاد کوچک‌تر برای خوانایی بهتر */
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 600px;
}

/* تنظیمات مخصوص موبایل برای جلوگیری از شلوغی */
@media (max-width: 768px) {
    .archive-page .archive-header h1.archive-title,
    .post-type-archive-product .archive-title {
        font-size: 18px !important; /* سایز کاملاً فیت و جمع‌وجور در موبایل */
    }
    .archive-page .archive-header p.archive-description,
    .post-type-archive-product .archive-description {
        font-size: 12px !important;
        padding: 0 5px;
    }
}
/* --- حذف خط نازک دور عکس در صفحه تکی مقالات --- */
.single-article-image {
    border: none !important; /* حذف کامل خط دور */
    box-shadow: none !important; /* حذف هرگونه سایه احتمالی که ممکن است شبیه خط باشد */
    padding: 0 !important; /* اگر پدینگ داشت هم حذف می‌کنیم */
}

/* اگر عکس داخل یک تگ a لینک شده باشد */
.single-article-image a {
    border: none !important;
    display: block;
}
/* --- وسط‌چین کردن عنوان‌های صفحات تکی (محصولات و مقالات) در دسکتاپ و موبایل --- */
.single-title, 
.single-article-container h1 {
    text-align: center !important; /* وسط‌چین کردن عنوان */
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
}

/* تنظیمات مخصوص موبایل (ابعاد جمع‌وجور و وسط‌چین) */
@media (max-width: 768px) {
    .single-title, 
    .single-article-container h1 {
        font-size: 20px !important; /* سایز متناسب در موبایل */
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
}
/* --- تنظیمات عمومی منو (دسکتاپ) --- */
.mobile-menu-toggle {
    display: none !important; /* دکمه همبرگری به طور پیش‌فرض در دسکتاپ مخفی است */
}

.main-navigation ul {
    display: flex; /* منوی دسکتاپ همیشه به صورت افقی نمایش داده شود */
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* --- تنظیمات اختصاصی موبایل (عرض کمتر از 768 پیکسل) --- */
@media (max-width: 768px) {
    /* نمایش دکمه همبرگری فقط در موبایل */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--metal-border);
        color: var(--neon-green);
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 20px;
    }

    .main-navigation {
        position: relative;
    }
    
    /* مخفی بودن پیش‌فرض منو در موبایل تا زمانی که کلیک شود */
    .main-navigation ul {
        display: none !important; 
    }

    /* وقتی منوی موبایل با کلیک باز می‌شود */
    .main-navigation.mobile-open {
        display: block !important;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--bg-card);
        border: 1px solid var(--metal-border);
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.9);
        z-index: 99999;
        margin-top: 10px;
    }

    .main-navigation.mobile-open ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-navigation.mobile-open ul li {
        text-align: center;
        border-bottom: 1px solid var(--metal-border);
        padding-bottom: 8px;
    }

    .main-navigation.mobile-open ul li:last-child {
        border-bottom: none;
    }

    .main-navigation.mobile-open ul li a {
        display: block;
        color: var(--text-main);
        font-size: 15px;
        padding: 5px;
    }
    
    .main-navigation.mobile-open ul li a:hover {
        color: var(--neon-green);
    }
}
/* --- تنظیمات ریسپانسیو صفحه درباره ما در موبایل --- */
@media (max-width: 768px) {
    /* تبدیل شبکه کارت‌های مزایا به تک‌ستونی در موبایل */
    .why-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* تنظیم پدینگ باکس اصلی در موبایل برای جلوگیری از چسبیدن متن‌ها به لبه‌ها */
    .site-main .metal-box {
        padding: 20px !important;
    }
    
    /* تنظیم سایز عنوان اصلی در موبایل */
    .site-main h1 {
        font-size: 20px !important;
    }
}
/* --- راه حل قطعی و جامع برای تمام تصاویر محصولات در صفحه آرشیو، صفحه اصلی و همه جا --- */

/* ۱. تمام قاب‌های عکس محصولات در هر کجای سایت */
.product-card .card-img,
.archive .card-img,
.post-type-archive-product .card-img,
.products-grid .card-img,
.archive-product .card-img {
    background: #fff !important;
    height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    border: 1px solid var(--metal-border) !important;
}

/* ۲. تمام تصاویر محصولات در صفحه آرشیو و لیست‌ها (جلوگیری کامل از برش) */
body.archive .product-card img,
body.post-type-archive-product img,
.archive img,
.post-type-archive-product img,
.products-grid img,
.product-card img {
    max-height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important; /* نمایش کامل تصویر بدون هیچ‌گونه برش */
    background: #fff !important;
    padding: 10px !important;
    display: block !important;
}

/* ۳. تصویر صفحه تکی محصول */
.single-product-image img {
    max-height: 380px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    background: #fff !important;
    padding: 10px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}