﻿/* CSS Reset & Variables */
:root {
    --text-dark: #1F4E6B; /* Navy Blue */
    --text-light: #5a5a5a;
    --accent-gold: #c6a572;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5eee7; /* Cream background */
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(245, 238, 231, 0.95);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
}

    .logo i {
        margin-left: 10px;
        font-size: 1.8rem;
    }

/* Hamburger Styling */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

nav {
    display: flex;
    gap: 30px;
    font-size: 1rem;
    color: #444;
}

    nav a {
        position: relative;
        transition: color 0.3s;
    }

        nav a:hover {
            color: var(--accent-gold);
        }

        nav a.active {
            color: var(--text-dark);
            font-weight: bold;
        }

            nav a.active::after {
                content: '';
                position: absolute;
                bottom: -5px;
                left: 0;
                width: 100%;
                height: 2px;
                background-color: var(--accent-gold);
            }

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
    color: #444;
}

    .header-icons i {
        cursor: pointer;
        transition: transform 0.2s;
    }

        .header-icons i:hover {
            transform: scale(1.1);
            color: var(--text-dark);
        }

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-gold);
    color: white;
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================= */
/* HERO SECTION WITH BACKGROUND IMAGE */
/* ========================================= */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    min-height: 70vh; /* برای دسکتاپ */
    position: relative;
    background-image: url('/img/home-header.png');
    background-size: cover;
    background-position: center center; /* حفظ مرکزیت عکس */
    background-repeat: no-repeat;
}

    /* لایه کرم روی عکس (حذف شد چون کد شما خالی بود، اگر نیاز دارید دوباره اضافه کنید) */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* اگر نیاز به Overlay دارید اینجا مقدار دهید، فعلا حذف شده تا تصویر کامل دیده شود */
        z-index: 1;
    }

    .hero > * {
        position: relative;
        z-index: 2;
    }

.hero-logo-placeholder {
    font-size: 5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    opacity: 0.8;
}

.hero h1 {
    font-size: 5rem;
    color: var(--text-dark);
    font-family: 'Times New Roman', serif;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

    .hero h1 i {
        display: block;
        font-size: 3rem;
        margin-bottom: -20px;
        transform: rotate(-10deg);
    }

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-gold);
    letter-spacing: 5px;
    margin-bottom: 20px;
    font-weight: 300;
}

.slogan {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 15px 0;
    display: inline-block;
    background: rgba(255,255,255,0.3);
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 5px;
}

.cta-btn {
    background-color: var(--text-dark);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 42, 69, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .cta-btn:hover {
        background-color: #2a3a5c;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(30, 42, 69, 0.3);
    }

/* Features Section (Bottom Cards) */
.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 5%;
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .feature-card i {
        font-size: 2.5rem;
        color: #1F4E6B;
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .feature-card h3 {
        font-size: 0.9rem;
        font-weight: bold;
        margin-bottom: 5px;
        color: var(--text-dark);
    }

    .feature-card p {
        font-size: 0.75rem;
        color: #888;
        line-height: 1.4;
    }

/* ========================================= */
/* RESPONSIVE (MOBILE) SETTINGS */
/* ========================================= */
@media (max-width: 992px) {
    header {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* نمایش دکمه همبرگر */
    .hamburger {
        display: block;
    }

    /* مخفی کردن منو در حالت عادی */
    nav.nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* دقیقا زیر هدر */
        left: 0;
        width: 100%;
        background: rgba(245, 238, 231, 0.98);
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        align-items: center;
        gap: 15px;
        border-bottom: 1px solid #ddd;
    }

        /* کلاس برای نمایش منو وقتی همبرگر کلیک می‌شود */
        nav.nav-menu.show-menu {
            display: flex;
        }

    nav a {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }

        nav a.active::after {
            bottom: 5px; /* تنظیم خط زیر منوی فعال در موبایل */
        }

    /* تنظیمات سکشن Hero برای موبایل */
    .hero {
        min-height: 60vh; /* کاهش ارتفاع در موبایل تا عکس بهتر دیده شود */
        padding: 60px 20px 30px;
        background-position: center 20%; /* جابجایی کمی به پایین برای دیدن لباس‌ها */
    }

        .hero h1 {
            font-size: 3.5rem;
        }

    .subtitle {
        font-size: 1.2rem;
    }

    .slogan {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .features-container {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        padding: 10px;
    }

    .feature-card {
        width: 100%;
        max-width: 400px;
        flex-direction: row; /* کارت‌ها در موبایل افقی می‌شوند */
        text-align: right;
        gap: 15px;
        padding: 15px;
    }

        .feature-card i {
            margin-bottom: 0;
            flex-shrink: 0;
            width: 50px;
            height: 50px;
            font-size: 1.8rem;
        }
}
/* ========================================= */
/* تنظیمات عمومی بخش‌های جدید                 */
/* ========================================= */
.section-container {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

    .section-header h2 {
        font-size: 1.8rem;
        color: var(--text-dark);
    }

    .section-header .view-all {
        color: var(--accent-gold);
        font-weight: bold;
        transition: 0.3s;
    }

        .section-header .view-all:hover {
            transform: translateX(-5px);
        }

/* ========================================= */
/* تنظیمات جدید: کارت‌های ۴ گانه (موبایل ۲ ستونه) */
/* ========================================= */
@media (max-width: 768px) {
    .features-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* دو ستون */
        gap: 15px;
        padding: 15px;
        margin-top: -30px;
    }

    .feature-card {
        width: 100%; /* پر کردن فضای ستون */
        max-width: none;
        flex-direction: column; /* برگشت به حالت مربعی/عمودی */
        text-align: center;
        padding: 15px 10px;
        border-radius: 12px;
    }

        .feature-card i {
            margin-bottom: 10px;
            width: 45px;
            height: 45px;
            font-size: 1.5rem;
        }

        .feature-card h3 {
            font-size: 0.85rem;
        }

        .feature-card p {
            font-size: 0.7rem;
        }
}

/* ========================================= */
/* گرید محصولات                               */
/* ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-gold);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.product-info {
    padding: 20px;
    text-align: center;
}

    .product-info h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .product-info .price {
        color: var(--text-dark);
        font-weight: bold;
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

.add-cart-btn {
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    font-family: inherit;
}

    .add-cart-btn:hover {
        background: var(--accent-gold);
    }

/* ========================================= */
/* بنر تبلیغاتی                               */
/* ========================================= */
.promo-banner {
    background: linear-gradient(rgba(30, 42, 69, 0.8), rgba(30, 42, 69, 0.8)), url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
    margin: 60px 0;
}

.promo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.promo-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.promo-btn {
    display: inline-block;
    background: white;
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

    .promo-btn:hover {
        transform: scale(1.05);
        background: var(--accent-gold);
        color: white;
    }

/* ========================================= */
/* دسته‌بندی‌های پرطرفدار                     */
/* ========================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-box {
    height: 250px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    background-size: cover;
    background-position: center;
}

    .category-box:hover {
        transform: scale(1.03);
    }

/* ========================================= */
/* فوتر و دکمه اسکرول به بالا                  */
/* ========================================= */
footer {
    background: var(--text-dark);
    color: #ccc;
    padding: 60px 5% 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}

    .footer-col a:hover {
        color: var(--accent-gold);
        padding-right: 5px;
    }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

    .social-links a {
        font-size: 1.5rem;
    }

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* دکمه اسکرول به بالا */
.scroll-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* در حالت RTL سمت چپ صفحه */
    background: var(--text-dark);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
    z-index: 999;
    display: none; /* پیش‌فرض مخفی است */
}

    .scroll-btn:hover {
        background: var(--accent-gold);
        transform: translateY(-5px);
    }

    .scroll-btn.show {
        display: block;
    }

/* اصلاح ریسپانسیو موبایل برای بخش‌های جدید */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr; /* دو ستونه برای موبایل */
        gap: 15px;
    }

    .product-image {
        height: 200px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-box {
        height: 150px;
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .scroll-btn {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}