/*
Theme Name: Pirmor
Theme URI: https://pirmor.com
Author: Pirmor
Description: Custom WooCommerce theme for Pirmor
Version: 1.0.0
Text Domain: pirmor
*/

/* ==========================================================================
   ۱. تنظیمات پایه و عمومی (Base & Reset)
   ========================================================================== */
html, body {
    overflow-x: clip; /* جلوگیری از اسکرول افقی اضافی در کل سایت */
    margin: 0;
    padding: 0;
}

body {
    padding-top: 80px; /* جبران فضای اشغال شده توسط هدر چسبان (Fixed) */
}
@font-face {
    font-family: 'PirmorFont';
    src: url('fonts/Far_Roya.woff2') format('woff2'); /* اگر فرمت ttf است، format('truetype') بنویس */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به کل سایت */
body, h1, h2, h3, h4, h5, h6, input, button, select, textarea, .btn {
    font-family: 'PirmorFont', Tahoma, sans-serif !important;
}


/* ==========================================================================
   ۲. هدر سایت (Header - Desktop)
   ========================================================================== */
.site-header {
    background-color: #FFFFFF !important;
    width: 100% !important;
    border-bottom: 1px solid #F1E6D3;
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    transition: box-shadow 0.3s ease;
}

/* افکت سایه برای زمانی که صفحه اسکرول می‌شود (توسط جاوااسکریپت اضافه می‌شود) */
.site-header.is-sticky {
    box-shadow: 0 4px 12px rgba(41, 37, 33, 0.05);
    border-bottom: 1px solid transparent;
}

.site-header .header-container {
    max-width: 1200px;
    min-height: 80px;
    margin: 0 auto; /* وسط‌چین کردن کادر محتوا */
    padding: 0 24px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* --- ساختار ۳ بخشی هدر --- */
.header-logo {
    flex: 1; 
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-menu {
    flex: 2; /* اختصاص فضای بیشتر به منوی وسط */
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-actions {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px; /* فاصله بین آیکون‌های اکشن */
}

/* --- لوگوی هدر --- */
.header-logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo .site-logo {
    max-height: 32px; /* ارتفاع ظریف برای لوگوی پریمیوم */
    width: auto;
    display: block;
}

/* --- منوی اصلی (Navigation) --- */
.header-menu .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px; /* فاصله زیاد برای ایجاد فضای تنفس و حس لوکس */
}

.header-menu .nav-list li a {
    text-decoration: none;
    color: #292521;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap; /* جلوگیری از دو خطی شدن متن */
}
.header-menu .nav-list li a:hover {
    color: #4A3428; 
}

/* --- آیکون‌های اکشن هدر (جستجو، حساب کاربری و...) --- */
.header-actions .action-icon {
    color: #292521;
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0.65;
    transition: all 0.3s ease;
}

.header-actions .action-icon:hover {
    color: #4A3428;
    opacity: 1; 
    transform: translateY(-2px); /* حرکت ظریف به سمت بالا */
}

/* --- نوار اعلان بالای هدر --- */
.top-bar {
    background-color: #292521;
    color: #F1E6D3;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 500;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* اصلاح فاصله بدنه به دلیل افزایش ارتفاع هدر ثابت */
body {
    padding-top: 116px !important; /* ۸۰ پیکسل هدر + ۳۶ پیکسل تاپ‌بار */
}

/* ==========================================================================
   ۳. آیکون سبد خرید در هدر (Header Cart Icon)
   ========================================================================== */
.header-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #292521;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-right: 16px; 
}

.header-cart-link:hover {
    color: #4A3428;
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px; /* تنظیم برای سایت‌های راست‌چین */
    background-color: #292521;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* ==========================================================================
   ۴. فرم جستجوی کشویی (Search Overlay)
   ========================================================================== */
.site-header {
    position: relative; /* پیش‌نیاز برای قرارگیری درست باکس جستجو */
}

.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    border-bottom: 1px solid #F1E6D3;
    padding: 24px;
    box-sizing: border-box; /* اضافه شد */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    box-sizing: border-box; /* اضافه شد */
}

.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #292521; 
}

.search-field {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    background: transparent;
    color: #292521;
}

.search-field::placeholder {
    color: #292521;
    opacity: 0.5;
}

.search-submit, .close-search {
    background: none;
    border: none;
    cursor: pointer;
    color: #292521;
}

.close-search {
    font-size: 32px;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-search:hover {
    color: #4A3428;
}


/* ==========================================================================
   ۵. هدر و منوی موبایل (Mobile Header & Navigation)
   ========================================================================== */
/* مخفی کردن دکمه همبرگری در حالت دسکتاپ */
.header-mobile-toggle {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: #292521; 
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* مخفی کردن پنل موبایل در دسکتاپ */
.mobile-menu-overlay,
.mobile-menu-container {
    display: none;
}

@media (max-width: 768px) {
    /* --- تنظیمات هدر برای موبایل --- */
    .site-header .header-container {
        padding: 0 16px !important;
        min-height: 64px !important;
    }
    
body {
        padding-top: 110px !important; /* جبران ارتفاع بیشتر هدر به خاطر دو خطی شدن نوار */
    }
    
    .top-bar {
        padding: 8px 16px;
    }
    
    .top-bar-inner {
        flex-direction: column; /* قرار دادن شماره زیر متن ارسال رایگان */
        justify-content: center;
        align-items: center;
        font-size: 11px;
        gap: 6px; /* فاصله بین دو متن */
    }
    
    .top-bar-phone {
        display: block; /* نمایش مجدد شماره تماس */
        direction: ltr; /* برای نمایش صحیح خط تیره در شماره تلفن */
    }
	


    .header-menu {
        display: none !important; 
    }

    /* تنظیمات ستون‌های هدر در موبایل */
    .header-mobile-toggle {
        display: flex !important;
        flex: 1; 
        justify-content: flex-start;
        align-items: center;
    }

    .header-logo {
        flex: 1; 
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-actions {
        flex: 1; 
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 16px;
    }

    /* --- استایل‌های پنل کشویی موبایل --- */
    .mobile-menu-overlay {
        display: block; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(41, 37, 33, 0.5);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-container {
        display: flex; 
        position: fixed;
        top: 0;
        right: -350px; 
        width: 280px;
        height: 100vh;
        background-color: #FFFFFF;
        z-index: 10001;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding: 24px;
        flex-direction: column;
    }

    .mobile-menu-container.active {
        right: 0; 
    }

    .close-mobile-menu {
        background: none;
        border: none;
        font-size: 32px;
        color: #292521;
        cursor: pointer;
        align-self: flex-end; 
        margin-bottom: 32px;
        padding: 0;
        line-height: 1;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .mobile-nav-list li a {
        text-decoration: none;
        color: #292521;
        font-size: 16px;
        font-weight: 500;
        display: block;
    }
	
		.search-overlay {
        padding: 16px;
    }
    
    .search-container {
        gap: 12px;
    }
}


/* ==========================================================================
   ۶. اسلایدر اصلی (Hero Slider)
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh; 
    min-height: 500px;
    overflow: hidden;
    background-color: #292521;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* لایه تاریک روی عکس برای افزایش خوانایی متن */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 37, 33, 0.4); 
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #FFFFFF;
    padding: 0 24px;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 32px;
}

.btn.btn-primary {
    display: inline-block;
    background-color: #FFFFFF;
    color: #292521;
    padding: 12px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn.btn-primary:hover {
    background-color: #4A3428;
    color: #FFFFFF;
}

/* --- دکمه‌های ناوبری اسلایدر --- */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: background 0.3s ease;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-nav.prev { right: 24px; }
.slider-nav.next { left: 24px; }

/* نقاط راهنمای پایین اسلایدر */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background-color: #FFFFFF;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-slider { height: 60vh; }
    .slide-content h2 { font-size: 32px; }
    .slider-nav { display: none; } /* مخفی کردن فلش‌ها در موبایل */
}


/* ==========================================================================
   ۷. بخش دسته‌بندی‌ها (Categories Section)
   ========================================================================== */
.categories-section {
    padding: 80px 24px;
    background-color: #FFFFFF;
}

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

.section-title {
    text-align: center;
    font-size: 32px;
    color: #292521;
    margin-bottom: 48px;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4; /* تناسب مستطیل عمودی برای لباس */
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(41,37,33, 0.9), transparent);
    padding: 40px 24px 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.category-overlay h3 {
    color: #FFFFFF;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .categories-section { padding: 48px 16px; }
    .section-title { font-size: 24px; margin-bottom: 32px; }
    .categories-grid { grid-template-columns: 1fr; gap: 16px; } 
    .category-card { aspect-ratio: 4/3; } /* افقی‌تر شدن در موبایل */
}


/* ==========================================================================
   ۸. اسلایدرهای دوگانه محصولات (Dual Product Sliders)
   ========================================================================== */
.dual-products-section {
    padding: 40px 24px 80px;
    background-color: #F9F8F6;
}

.dual-sliders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.column-title {
    font-size: 24px;
    color: #292521;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
}

.product-carousel {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px 0; 
    box-shadow: 0 4px 12px rgba(41, 37, 33, 0.03);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: 0;
    padding: 0;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%; 
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 16px;
}

.slide-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
}

.slide-info {
    padding-top: 20px;
}

.prod-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #292521;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.prod-title:hover {
    color: #4A3428;
}

.prod-keywords {
    font-size: 13px;
    color: #666;
    margin: 0;
    opacity: 0.8;
}

.prod-keywords a {
    color: #666;
    text-decoration: none;
}

/* --- دکمه‌های ناوبری کاروسل --- */
.nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    color: #292521;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 5;
}

.nav-btn:hover {
    background: #4A3428;
    color: #FFFFFF;
    border-color: #4A3428;
}

.nav-btn.next-btn { left: 16px; }
.nav-btn.prev-btn { right: 16px; }

@media (max-width: 768px) {
    .dual-sliders-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* ==========================================================================
   ۹. بنرهای تبلیغاتی (Promo Banners)
   ========================================================================== */
.promo-banners {
    padding: 0 24px 80px;
    background-color: #F9F8F6;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.promo-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16/9;
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 37, 33, 0.5); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    color: #FFFFFF;
}

.promo-content h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px 0;
}

.btn-text {
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid #FFFFFF;
    padding-bottom: 4px;
    transition: color 0.3s, border-color 0.3s;
}

.promo-card:hover img {
    transform: scale(1.05);
}

.promo-card:hover .btn-text {
    color: #D1C7B7;
    border-color: #D1C7B7;
}

@media (max-width: 768px) {
    .promo-grid { grid-template-columns: 1fr; }
    .promo-banners { padding: 0 16px 48px; }
    .promo-content h3 { font-size: 24px; }
}


/* ==========================================================================
   ۱۰. نوار ویژگی‌ها (Features Bar)
   ========================================================================== */
.features-bar {
    padding: 56px 24px;
    background-color: #FFFFFF;
    border-top: 1px solid #F1E6D3;
    border-bottom: 1px solid #F1E6D3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    color: #4A3428;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #292521;
    margin: 0 0 8px 0;
}

.feature-text p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* ==========================================================================
   ۱۱. صفحه فروشگاه ووکامرس (Shop Archive)
   ========================================================================== */
.shop-page {
    padding: 40px 24px 80px;
    background-color: #F9F8F6;
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.shop-sidebar {
    background: #FFFFFF;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #F1E6D3;
    align-self: start; 
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-header h1 {
    font-size: 28px;
    color: #292521;
    margin: 0;
}

/* --- شبکه محصولات ووکامرس --- */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.products li.product {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid #F1E6D3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100% !important; 
    margin: 0 !important;
}

ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(41, 37, 33, 0.08);
}

ul.products li.product img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    color: #292521;
    margin: 0 0 8px 0;
}

ul.products li.product .price {
    color: #4A3428;
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-bottom: 16px;
}

ul.products li.product .button {
    display: inline-block;
    background: #292521;
    color: #FFFFFF;
    padding: 8px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s ease;
}

ul.products li.product .button:hover {
    background: #4A3428;
    color: #FFFFFF;
}

@media (max-width: 992px) {
    .shop-container { grid-template-columns: 1fr; }
    ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    ul.products { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ۱۲. صفحه تکی محصول (Single Product)
   ========================================================================== */
.pirmor-single-product {
    padding: 40px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* خنثی کردن عرض پیش‌فرض ووکامرس برای پر کردن کامل ستون گرید */
.single-product-container .woocommerce-product-gallery,
.single-product-container .summary.entry-summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.single-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 48px;
    margin-bottom: 64px;
}

/* --- گالری محصول --- */
.product-gallery .woocommerce-product-gallery__image {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #F1E6D3;
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- اطلاعات محصول --- */
.product-summary h1.product_title {
    font-size: 32px;
    color: #292521;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.product-summary .price {
    font-size: 24px;
    font-weight: 700;
    color: #4A3428;
    display: block;
    margin-bottom: 24px;
}

.product-summary .woocommerce-product-details__short-description {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* فرم افزودن به سبد خرید */
.product-summary form.cart {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.product-summary form.cart .qty {
    width: 70px;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

.product-summary form.cart .single_add_to_cart_button {
    background-color: #292521;
    color: #FFFFFF;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.product-summary form.cart .single_add_to_cart_button:hover {
    background-color: #4A3428;
}

/* تب‌های توضیحات */
.product-data-tabs {
    border-top: 1px solid #F1E6D3;
    padding-top: 40px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.woocommerce-tabs ul.tabs li a {
    text-decoration: none;
    font-size: 18px;
    color: #777;
    font-weight: 600;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #292521;
    border-bottom: 2px solid #292521;
    padding-bottom: 4px;
}

@media (max-width: 768px) {
    .single-product-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* ==========================================================================
   ۱۳. سبد خرید کشویی (Mini Cart Sidebar)
   ========================================================================== */
.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 37, 33, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mini-cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px; 
    width: 350px;
    max-width: 100%;
    height: 100vh;
    background: #FFFFFF;
    z-index: 9999;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.mini-cart-sidebar.active {
    left: 0; 
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #F1E6D3;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 18px;
    color: #292521;
    font-weight: 700;
}

.close-mini-cart {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-mini-cart:hover {
    color: #292521;
}

.mini-cart-content {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

/* --- ساختار داخلی محصولات سبد کشویی --- */
.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F9F8F6;
    position: relative;
}

.woocommerce-mini-cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 16px;
}

.woocommerce-mini-cart-item a:not(.remove) {
    text-decoration: none;
    color: #292521;
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

/* دکمه حذف محصول */
.woocommerce-mini-cart-item a.remove {
    position: absolute;
    top: 0;
    left: 0; 
    color: #D9534F;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.woocommerce-mini-cart-item a.remove:hover {
    color: #C9302C;
    background: transparent;
}

.woocommerce-mini-cart .quantity {
    font-size: 14px;
    color: #777;
}

.woocommerce-mini-cart__total {
    border-top: 2px solid #F1E6D3;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: #292521;
}

.woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.woocommerce-mini-cart__buttons .button {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.woocommerce-mini-cart__buttons .button:not(.checkout) {
    background: #F9F8F6;
    color: #292521;
}

.woocommerce-mini-cart__buttons .button.checkout {
    background: #292521;
    color: #FFFFFF;
}

.woocommerce-mini-cart__buttons .button.checkout:hover {
    background: #4A3428;
}


/* ==========================================================================
   ۱۴. فوتر سایت (Footer)
   ========================================================================== */
.site-footer {
    background-color: #F9F8F6;
    color: #292521;
    padding-top: 64px;
    border-top: 1px solid #F1E6D3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 16px;
    display: block;
}

.footer-desc, .footer-contact p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin: 0 0 8px 0;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
    color: #292521;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    text-decoration: none;
    color: #292521;
    opacity: 0.8;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    opacity: 1;
    color: #4A3428;
    padding-right: 4px; /* افکت ظریف حرکت به جلو */
}

.trust-badges {
    margin-top: 24px;
}

.badge-placeholder {
    width: 80px;
    height: 80px;
    background-color: #FFFFFF;
    border: 1px dashed #D1C7B7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 8px;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #F1E6D3;
    padding: 24px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 16px;
    }
    
    .footer-title {
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   ۱۵. صفحه سبد خرید اصلی (Cart Page)
   ========================================================================== */
/* ۱. خنثی کردن فلوت‌ها و استایل‌های مخرب پیش‌فرض ووکامرس */
.woocommerce-cart .woocommerce::before, 
.woocommerce-cart .woocommerce::after { 
    display: none !important; 
}

.woocommerce-cart .woocommerce {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

/* ۲. تنظیم عرض فرم محصولات (ستون راست) */
.woocommerce-cart form.woocommerce-cart-form {
    flex: 1 1 60%;
    width: 100% !important;
}

/* ۳. تنظیم باکس فاکتور (ستون چپ) */
.woocommerce-cart .cart-collaterals {
    flex: 1 1 30%;
    width: 100% !important;
    max-width: 400px;
    float: none !important;
    margin: 0 !important;
    background: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #F1E6D3;
    box-shadow: 0 4px 12px rgba(41, 37, 33, 0.03);
}

/* --- ۴. استایل‌دهی به جدول محصولات --- */
.woocommerce-cart .shop_table.cart {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.woocommerce-cart .shop_table.cart th {
    background: #F9F8F6;
    padding: 16px;
    text-align: right;
    font-weight: 600;
    color: #292521;
    border: none;
    border-radius: 4px;
}

.woocommerce-cart .shop_table.cart td {
    padding: 24px 16px;
    border-bottom: 1px solid #F1E6D3;
    vertical-align: middle;
}

.woocommerce-cart .product-thumbnail img {
    width: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.woocommerce-cart .product-name a {
    color: #292521;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.woocommerce-cart .product-name a:hover {
    color: #4A3428;
}

/* دکمه حذف محصول */
.woocommerce-cart .product-remove a.remove {
    color: #D9534F !important;
    font-size: 28px !important;
    text-decoration: none;
    font-weight: 400;
}

.woocommerce-cart .product-remove a.remove:hover {
    color: #C9302C !important;
    background: transparent !important;
}

/* دکمه بروزرسانی */
.woocommerce-cart .actions {
    padding: 24px 0 !important;
}

.woocommerce-cart .actions .button {
    background: #F9F8F6 !important;
    color: #292521 !important;
    border: 1px solid #E5E5E5 !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

.woocommerce-cart .actions .button:hover {
    background: #E5E5E5 !important;
}

.woocommerce-cart .coupon {
    display: none !important; /* مخفی کردن کادر تخفیف برای سادگی ظاهر */
}

/* --- ۵. جزئیات داخلی فاکتور --- */
.woocommerce-cart .cart-collaterals h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #F1E6D3;
    padding-bottom: 16px;
    color: #292521;
}

.woocommerce-cart .cart-collaterals .shop_table th,
.woocommerce-cart .cart-collaterals .shop_table td {
    padding: 16px 0;
    border-bottom: 1px solid #F9F8F6;
    text-align: right;
}

.woocommerce-cart .cart-collaterals .shop_table td[data-title="جمع کل"] strong {
    font-size: 20px;
    color: #4A3428;
}

.woocommerce-cart .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #292521 !important;
    color: #FFFFFF !important;
    padding: 16px !important;
    margin-top: 32px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

.woocommerce-cart .checkout-button:hover {
    background: #4A3428 !important;
}

/* --- ۶. ریسپانسیو (موبایل) --- */
@media (max-width: 992px) {
    .woocommerce-cart .woocommerce {
        flex-direction: column;
        gap: 32px;
    }
    .woocommerce-cart form.woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* ==========================================================================
   ۱۶. صفحه تسویه حساب (Checkout Page)
   ========================================================================== */
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

/* ۱. خنثی کردن المان‌های مخفی ووکامرس که گرید را خراب می‌کنند */
.woocommerce-checkout form.checkout::before,
.woocommerce-checkout form.checkout::after {
    display: none !important;
}

/* ۲. شبکه‌بندی دقیق المان‌ها (۶۰٪ راست، ۳۵٪ چپ) */
.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 62% 33%;
    justify-content: space-between;
    align-items: start;
}

/* ستون راست (ردیف ۱ تا ۳): فرم اطلاعات مشتری */
.woocommerce-checkout #customer_details {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 100%;
}

/* ستون چپ (ردیف ۱): عنوان سفارش شما */
.woocommerce-checkout #order_review_heading {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background: #FFFFFF;
    padding: 32px 32px 0;
    margin: 0;
    border-radius: 8px 8px 0 0;
    border: 1px solid #F1E6D3;
    border-bottom: none;
    font-size: 20px;
    color: #292521;
}

/* ستون چپ (ردیف ۲): باکس فاکتور و پرداخت */
.woocommerce-checkout #order_review {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: #FFFFFF;
    padding: 0 32px 32px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #F1E6D3;
    border-top: none;
    box-shadow: 0 4px 12px rgba(41, 37, 33, 0.03);
}

/* ریسپانسیو (موبایل و تبلت) */
@media (max-width: 992px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}


/* ==========================================================================
   ۱۷. پنل کاربری (My Account) - نسخه نهایی و مستقل از کلاس بادی
   ========================================================================== */
/* ساختار دربرگیرنده اصلی برای هر دو حالت */
.woocommerce-account .woocommerce {
    display: flex !important;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
    direction: rtl;
    text-align: right;
    align-items: flex-start;
}

/* =========================================
   ۱. حالت وارد شده (داشبورد)
   ========================================= */
/* سایدبار منوها */
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: #F9F8F6;
    border-radius: 8px;
    padding: 24px;
    margin: 0 !important;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none; padding: 0; margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block; padding: 12px 16px; color: #292521; text-decoration: none; font-weight: 600; border-radius: 4px; transition: all 0.3s ease; text-align: right;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #292521; color: #FFFFFF;
}

/* باکس محتوا */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #F1E6D3;
    box-shadow: 0 4px 12px rgba(41, 37, 33, 0.03);
    margin: 0 !important;
    box-sizing: border-box;
}
.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 15px; color: #4A3428; line-height: 1.8; margin-top: 0; text-align: right;
}

/* =========================================
   ۲. حالت خارج از حساب (فرم‌های ورود و ثبت‌نام)
   ========================================= */
.woocommerce-account #customer_login {
    width: 100%;
    display: flex !important;
    flex-direction: row;
    gap: 40px;
    margin: 0 !important;
    align-items: flex-start;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
    flex: 1;
    float: none !important;
    margin: 0 !important;
    background: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #F1E6D3;
    box-shadow: 0 4px 12px rgba(41, 37, 33, 0.03);
    box-sizing: border-box;
}
.woocommerce-account #customer_login h2 {
    font-size: 20px; margin-top: 0; margin-bottom: 24px; color: #292521; border-bottom: 2px solid #F1E6D3; padding-bottom: 16px; text-align: right;
}

/* =========================================
   ۳. استایل‌های عمومی (فیلدها، دکمه‌ها، جداول)
   ========================================= */
.woocommerce-account .form-row { margin-bottom: 16px; width: 100%; text-align: right; }
.woocommerce-account .form-row label { display: block; margin-bottom: 8px; font-weight: 600; color: #292521; font-size: 14px; }
.woocommerce-account input[type="text"], 
.woocommerce-account input[type="email"], 
.woocommerce-account input[type="password"] { 
    width: 100%; padding: 12px 16px; border: 1px solid #E5E5E5; border-radius: 4px; box-sizing: border-box; font-family: inherit; 
}
.woocommerce-account .button { 
    background: #292521 !important; color: #FFFFFF !important; padding: 14px !important; border-radius: 4px !important; font-weight: 600 !important; font-size: 16px; margin-top: 16px; cursor: pointer; transition: background 0.3s; border: none; width: 100%;
}
.woocommerce-account .button:hover { background: #4A3428 !important; }

.woocommerce-account .woocommerce-MyAccount-content .shop_table { width: 100%; border-collapse: collapse; margin-top: 16px; text-align: right; }
.woocommerce-account .woocommerce-MyAccount-content .shop_table th { background: #F9F8F6; padding: 12px 16px; text-align: right; border-radius: 4px; border: none; }
.woocommerce-account .woocommerce-MyAccount-content .shop_table td { padding: 16px; border-bottom: 1px solid #F1E6D3; vertical-align: middle; }
.woocommerce-account .woocommerce-MyAccount-content .button { width: auto; font-size: 14px; padding: 8px 16px !important; background: #F9F8F6 !important; color: #292521 !important; border: 1px solid #E5E5E5 !important; display: inline-block; margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content .button:hover { background: #E5E5E5 !important; }

/* =========================================
   ریسپانسیو (موبایل و تبلت)
   ========================================= */
@media (max-width: 992px) {
    .woocommerce-account .woocommerce-MyAccount-navigation { flex: 1 1 100%; }
    .woocommerce-account .woocommerce-MyAccount-content { flex: 1 1 100%; }
    .woocommerce-account #customer_login { flex-direction: column; }
}


/* ==========================================================================
   ۱۸. آرشیو محصولات و فروشگاه (Shop / Archive)
   ========================================================================== */
.woocommerce-archive-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
    direction: rtl;
    text-align: right;
    align-items: flex-start;
}

/* --- سایدبار فیلترها --- */
.shop-sidebar {
    flex: 0 0 260px;
    background: #F9F8F6;
    padding: 24px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* --- محتوای اصلی و مرتب‌سازی --- */
.shop-content {
    flex: 1;
    min-width: 0;
}

.woocommerce-products-header__title {
    font-size: 28px;
    color: #292521;
    margin-top: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #F1E6D3;
    padding-bottom: 16px;
}

.woocommerce-result-count {
    float: right;
    margin: 0 0 24px;
    color: #666;
    font-size: 14px;
}

.woocommerce-ordering {
    float: left;
    margin: 0 0 24px;
}

.woocommerce-ordering select {
    padding: 8px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    background: #FFFFFF;
    color: #292521;
    font-family: inherit;
}

/* --- شبکه‌بندی (Grid) محصولات --- */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important; /* حذف فلوت‌های مخرب ووکامرس */
}

/* --- کارت محصول --- */
.woocommerce ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: #FFFFFF;
    border: 1px solid #F1E6D3;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(41, 37, 33, 0.06);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 16px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    color: #292521;
    margin: 0 0 8px;
    font-weight: 600;
}

.woocommerce ul.products li.product .price {
    display: block;
    color: #4A3428;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* دکمه افزودن به سبد خرید در آرشیو */
.woocommerce ul.products li.product .button {
    display: block;
    background: #F9F8F6 !important;
    color: #292521 !important;
    padding: 10px !important;
    border-radius: 4px !important;
    font-size: 14px;
    font-weight: 600 !important;
    text-decoration: none;
    border: 1px solid #E5E5E5 !important;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    background: #292521 !important;
    color: #FFFFFF !important;
    border-color: #292521 !important;
}

/* --- صفحه‌بندی (Pagination) --- */
.woocommerce nav.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
}

.woocommerce nav.woocommerce-pagination ul li {
    border-left: 1px solid #E5E5E5;
}

.woocommerce nav.woocommerce-pagination ul li:last-child {
    border-left: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: block;
    padding: 8px 16px;
    color: #292521;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #292521;
    color: #FFFFFF;
}

/* --- ریسپانسیو --- */
@media (max-width: 992px) {
    .woocommerce-archive-wrapper {
        flex-direction: column;
    }
    .shop-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
}


/* ==========================================================================
   ۱۹. قالب اختصاصی تماس با ما
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
    direction: rtl;
    align-items: start;
}

.contact-info {
    background: #F9F8F6;
    padding: 32px;
    border-radius: 8px;
    color: #292521;
}

.contact-info h1 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #F1E6D3;
    padding-bottom: 16px;
}

.contact-info .info-item {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.8;
}

.contact-info .info-item:last-child {
    margin-bottom: 0;
}

.contact-info .info-item strong {
    display: block;
    color: #4A3428;
    margin-bottom: 8px;
}

.contact-form {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #F1E6D3;
    box-shadow: 0 4px 12px rgba(41, 37, 33, 0.03);
}

/* هماهنگ‌سازی استایل فرم‌های داخل ادیتور (مثل Contact Form 7) */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    margin-bottom: 16px;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form input[type="submit"] {
    background: #292521 !important;
    color: #FFFFFF !important;
    padding: 14px 24px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form input[type="submit"]:hover {
    background: #4A3428 !important;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   ۲۰. قالب درباره ما
   ========================================================================== */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
    direction: rtl;
    align-items: center; /* تراز کردن متن و عکس در مرکز عمودی */
}

.about-text h1 {
    font-size: 32px;
    color: #292521;
    margin-top: 0;
    margin-bottom: 24px;
}

.about-content {
    font-size: 16px;
    line-height: 1.9;
    color: #4A3428;
}

.about-content p {
    margin-bottom: 16px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(41, 37, 33, 0.05);
    display: block;
}

@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-image {
        grid-row: 1; /* در موبایل عکس بالای متن قرار می‌گیرد */
    }
    .about-text {
        grid-row: 2;
    }
}


/* ==========================================================================
   ۲۱. سوالات متداول (FAQ)
   ========================================================================== */
.faq-wrapper {
    max-width: 800px; /* عرض کمتر برای خوانایی بهتر متن‌های طولانی */
    margin: 40px auto 80px;
    padding: 0 24px;
    direction: rtl;
}

.faq-wrapper h1 {
    font-size: 32px;
    color: #292521;
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    border-bottom: 1px solid #F1E6D3;
    margin-bottom: 8px;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 24px 0;
    font-size: 16px;
    font-weight: 600;
    color: #292521;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    transition: color 0.3s;
}

.faq-question:hover,
.faq-question.active {
    color: #4A3428;
}

.faq-icon {
    font-size: 24px;
    font-weight: 400;
    color: #292521;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* انیمیشن نرم باز شدن */
}

.faq-answer p {
    padding-bottom: 24px;
    margin: 0;
    color: #4A3428;
    line-height: 1.9;
    font-size: 15px;
}

/* ==========================================================================
   ۲۳. اصلاحات لایت‌باکس ووکامرس (PhotoSwipe)
   ========================================================================== */
.pswp {
    z-index: 100000 !important; /* قرار گرفتن کامل لایت‌باکس روی هدر سایت */
}

.pswp__bg {
    background-color: rgba(41, 37, 33, 0.9) !important; /* استفاده از رنگ قهوه‌ای تیره سایت با ۹۰ درصد شفافیت */
    opacity: 1 !important;
}