/*
Theme Name: Mobin Silver
Theme URI: https://yourwebsite.com/
Author: Your Name (یا نام شرکت شما)
Author URI: https://yourwebsite.com/
Description: یک قالب وردپرس شیک، مینیمال و لوکس که به صورت اختصاصی برای فروشگاه نقره "مبین سیلور" طراحی شده است. این قالب برای عملکرد بهینه با افزونه ووکامرس ساخته شده.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, custom-background, custom-logo, translation-ready, woocommerce
Text Domain: mobinsilver
*/

/* -------------------------------------------------------------------------- */
/*                                 پایه‌های اصلی                             */
/* -------------------------------------------------------------------------- */

body {
    font-family: 'IRANSans', Arial, sans-serif; /* در صورت نیاز، فونت ایران‌سنس را به قالب اضافه کنید */
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9; /* یک خاکستری بسیار روشن برای پس‌زمینه */
    direction: rtl; /* فعال‌سازی راست‌چین */
    text-align: right; /* تراز متن به راست */
}

a {
    color: #087E8B; /* رنگ اصلی برند (آبی درباری / سبزآبی تیره) */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #065c66; /* نسخه تیره‌تر برای هاور */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IRANYekan', 'IRANSans', sans-serif; /* فونت عناوین */
    color: #2c3e50;
    font-weight: 700;
}


/* -------------------------------------------------------------------------- */
/*                                 چیدمان اصلی                              */
/* -------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.main-content {
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}


/* کدهای مربوط به هدر و فوتر در فایل‌های جداگانه بهتر است */
/* اما می‌توان استایل‌های کلی را اینجا قرار داد */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

.site-footer a {
    color: #f1c40f; /* رنگی متضاد و شیک برای لینک‌های فوتر */
}

/* -------------------------------------------------------------------------- */
/*                      استایل‌های اختصاصی صفحه اصلی                         */
/* -------------------------------------------------------------------------- */

/* --- هیرو سکشن (Hero Section) --- */
/* --- هیرو سکشن (Hero Section) --- */
.hero-section {
    position: relative;
    height: 75vh;
    /* 
     * آدرس تصویر را به صورت کامل وارد کنید.
     * می‌توانید تصویر را در رسانه‌های وردپرس آپلود کرده و آدرس آن را اینجا قرار دهید
     * یا مسیر آن را با تابع get_template_directory_uri() بسازید.
     * مثال با یک تصویر آنلاین (برای تست): 
    */
    background: url('https://images.unsplash.com/photo-1611649363943-4b31a83f1d24?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}


.hero-section::after { /* یک لایه تیره برای خوانایی بهتر متن */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInDown 1.5s ease-out; /* انیمیشن ورود */
}

.hero-title {
    font-size: 4rem;
    font-weight: 300; /* فونت نازک برای حس لوکس */
    margin: 0;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 10px;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    background-color: #087E8B; /* رنگ اصلی */
    color: #fff;
    padding: 15px 35px;
    margin-top: 30px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

.hero-button.alt { /* استایل دکمه دوم */
    background-color: transparent;
    border: 2px solid #fff;
}
.hero-button.alt:hover {
    background-color: #fff;
    color: #2c3e50;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- بخش دسته‌بندی‌های محبوب --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}
.section-title::after { /* خط تزیینی زیر عنوان */
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #087E8B;
    margin: 15px auto 0;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

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

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

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background 0.3s ease;
}

.category-card:hover .category-card-overlay {
    background: rgba(8, 126, 139, 0.7); /* رنگ برند */
}

.category-card h3 {
    font-size: 1.5rem;
    color: #fff;
}

/* --- استایل شبکه‌بندی محصولات (نیاز به کلاس‌های ووکامرس دارد) --- */
.products-grid .product,
.woocommerce ul.products li.product {
    text-align: center;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease-out;
}
.products-grid .product:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* --- بنر میانی --- */
.mid-banner {
    /* مثال با یک تصویر آنلاین دیگر */
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('https://images.unsplash.com/photo-1599643477891-739438234537?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover;
    padding: 80px 0;
    color: #fff;
    text-align: center;
    margin: 60px 0;
}
.mid-banner h2 {
    color: #fff;
    font-size: 2.8rem;
}

/* --- بخش مزایای ما --- */
.our-benefits {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    padding: 40px 0;
}
.benefit-item {
    max-width: 250px;
    padding: 20px;
}
.benefit-item i {
    font-size: 3rem;
    color: #087E8B;
    margin-bottom: 15px;
}

/* -------------------------------------------------------------------------- */
/*                        استایل‌های جدید و حرفه‌ای برای هدر                  */
/* -------------------------------------------------------------------------- */

.site-header {
    background-color: #ffffff;
    padding: 0 20px;
    border-bottom: 1px solid #e9e9e9;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px; /* ارتفاع اولیه هدر */
    transition: min-height 0.3s ease;
}

/* استایل لوگو */
.site-branding .custom-logo {
    max-height: 50px; /* حداکثر ارتفاع لوگو */
    width: auto;
}
.site-branding .site-title a {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: bold;
}

/* استایل منوی اصلی */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin: 0 20px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.main-navigation a::after { /* خط زیرین برای هاور */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #087E8B; /* رنگ اصلی برند */
    transition: width 0.3s ease-out;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #087E8B;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}


/* استایل آیکون‌های هدر */
.header-icons {
    display: flex;
    align-items: center;
}

.icon-link {
    color: #555;
    font-size: 1.2rem;
    margin-right: 25px;
    position: relative;
    transition: color 0.3s ease;
}
.icon-link:last-child {
    margin-right: 0;
}

.icon-link:hover {
    color: #087E8B;
}

.cart-contents-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #e74c3c;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-family: sans-serif;
}

/* استایل هدر در حالت اسکرول شده */
.site-header.scrolled .header-container {
    min-height: 60px; /* کاهش ارتفاع هدر */
}

.site-header.scrolled .site-branding .custom-logo {
    max-height: 40px; /* کوچک شدن لوگو */
}
