﻿/* ========================================
   Home Page - Modern Elegant Design
   ======================================== */

/* ============ CSS Variables (اختیاری - اگه توی site.css نیست) ============ */
:root {
    --cream-50: #fdfaf5;
    --cream-100: #faf5ec;
    --cream-200: #f5ecdc;
    --cream-300: #ede0c8;
    --brown-100: #e8d9c4;
    --brown-200: #d4bfa3;
    --brown-300: #b99b78;
    --brown-400: #9c7b55;
    --brown-500: #7d5f3e;
    --brown-600: #5e462c;
    --brown-700: #42311e;
    --accent: #c9a97a;
    --accent-dark: #a88a5e;
    --text-dark: #3a2e20;
    --text-muted: #8a7a66;
}


/* ========================================
   1. HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--cream-200) 0%, var(--brown-100) 60%, var(--brown-200) 100%);
    border-radius: 0 0 40px 40px;
    padding: 5rem 0 6rem;
    overflow: hidden;
    margin-bottom: 3rem;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(201, 169, 122, 0.3) 0%, transparent 70%);
        border-radius: 50%;
        animation: float 8s ease-in-out infinite;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -150px;
        left: -100px;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(125, 95, 62, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        animation: float 10s ease-in-out infinite reverse;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: var(--brown-600);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

    .hero-badge i {
        color: var(--accent);
        font-size: 1rem;
    }

/* Hero Title */
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--brown-700);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

    .hero-title span {
        color: var(--accent-dark);
        position: relative;
        display: inline-block;
    }

        .hero-title span::after {
            content: '';
            position: absolute;
            bottom: 5px;
            right: 0;
            width: 100%;
            height: 12px;
            background: rgba(201, 169, 122, 0.4);
            border-radius: 6px;
            z-index: -1;
        }

/* Hero Description */
.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--brown-500) 0%, var(--brown-600) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(125, 95, 62, 0.25);
}

    .btn-hero-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(125, 95, 62, 0.35);
        color: #fff;
    }

.btn-hero-secondary {
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: var(--brown-600);
    border: 1.5px solid rgba(125, 95, 62, 0.2);
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .btn-hero-secondary:hover {
        background: #fff;
        border-color: var(--brown-300);
        color: var(--brown-600);
        transform: translateY(-3px);
    }


/* ========================================
   2. HERO ILLUSTRATION & PHOTO
   ======================================== */

.hero-illustration {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 400px;
}

/* Hero Photo Wrapper (Samira Safari) */
.hero-photo-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-photo-wrapper::before {
        content: '';
        position: absolute;
        inset: -20px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(201, 169, 122, 0.25) 0%, transparent 70%);
        z-index: 0;
        animation: pulseGlow 4s ease-in-out infinite;
    }

    .hero-photo-wrapper::after {
        content: '';
        position: absolute;
        inset: 10px;
        border-radius: 50%;
        border: 2px dashed rgba(201, 169, 122, 0.35);
        z-index: 1;
        animation: rotateRing 30s linear infinite;
    }

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-photo {
    width: 100%;
    height: 100%;
    max-width: 420px;
    max-height: 420px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 6px solid #fff;
    box-shadow: 0 20px 60px rgba(125, 95, 62, 0.25), 0 0 0 12px rgba(201, 169, 122, 0.15);
    transition: transform 0.5s ease;
}

.hero-photo-wrapper:hover .hero-photo {
    transform: scale(1.03);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.65rem 1.1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(125, 95, 62, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brown-600);
    white-space: nowrap;
    z-index: 5;
    border: 1px solid rgba(201, 169, 122, 0.2);
    animation: floatBadge 5s ease-in-out infinite;
}

    .floating-badge i {
        font-size: 1.15rem;
        color: var(--accent);
        flex-shrink: 0;
    }

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-2deg);
    }

    75% {
        transform: translateY(8px) rotate(2deg);
    }
}


/* ========================================
   3. FEATURES BAR
   ======================================== */

.features-bar {
    background: #fff;
    border: 1px solid var(--cream-200);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 20px rgba(125, 95, 62, 0.06);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 14px;
    transition: all 0.3s ease;
}

    .feature-item:hover {
        background: var(--cream-50);
    }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--brown-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon i {
    font-size: 1.4rem;
    color: var(--brown-500);
}

.feature-text h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brown-600);
    margin-bottom: 0.15rem;
}

.feature-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}


/* ========================================
   4. SECTION HEADER
   ======================================== */

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

    .section-header-modern .header-text .eyebrow {
        display: inline-block;
        color: var(--accent-dark);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
    }

    .section-header-modern .header-text h2 {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--brown-600);
        margin-bottom: 0.35rem;
        line-height: 1.4;
    }

    .section-header-modern .header-text p {
        color: var(--text-muted);
        font-size: 0.92rem;
        margin: 0;
    }

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--brown-500);
    border: 1.5px solid var(--brown-200);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .btn-view-all:hover {
        background: var(--brown-500);
        color: #fff;
        border-color: var(--brown-500);
        transform: translateX(-3px);
    }

    .btn-view-all i {
        transition: transform 0.3s ease;
    }

    .btn-view-all:hover i {
        transform: translateX(-3px);
    }


/* ========================================
   5. CATEGORIES SECTION
   ======================================== */

.categories-section {
    padding: 2rem 0 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.category-card-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(125, 95, 62, 0.08);
}

    .category-card-modern:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(125, 95, 62, 0.18);
    }

    .category-card-modern img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .category-card-modern:hover img {
        transform: scale(1.1);
    }

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(58, 46, 32, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

    .category-card-overlay h3 {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.3rem;
    }

    .category-card-overlay .count {
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.82rem;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

.category-card-modern:hover .category-card-overlay {
    background: linear-gradient(180deg, rgba(125, 95, 62, 0.3) 0%, rgba(58, 46, 32, 0.9) 100%);
}


/* ========================================
   6. PRODUCTS SECTION
   ======================================== */

.products-section {
    padding: 4rem 0;
}

    .products-section.alt-bg {
        background: var(--cream-100);
        border-radius: 40px;
        margin: 2rem 0;
    }


/* ========================================
   7. PROMO BANNER
   ======================================== */

.promo-banner {
    background: linear-gradient(135deg, var(--brown-500) 0%, var(--brown-700) 100%);
    border-radius: 30px;
    padding: 3.5rem 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

    .promo-banner::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(201, 169, 122, 0.25) 0%, transparent 70%);
        border-radius: 50%;
    }

    .promo-banner::after {
        content: '';
        position: absolute;
        bottom: -150px;
        left: -100px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
        border-radius: 50%;
    }

.promo-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .promo-badge i {
        color: var(--accent);
    }

.promo-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.promo-content p {
    font-size: 0.98rem;
    line-height: 1.9;
    opacity: 0.9;
    margin-bottom: 1.75rem;
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: #fff;
    color: var(--brown-600);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-promo:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        color: var(--brown-600);
    }

.promo-illustration {
    position: relative;
    z-index: 1;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}


/* ========================================
   8. NEWSLETTER
   ======================================== */

.newsletter-section {
    background: var(--cream-100);
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

    .newsletter-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(201, 169, 122, 0.15) 0%, transparent 70%);
        border-radius: 50%;
    }

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--brown-400) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(201, 169, 122, 0.35);
}

    .newsletter-icon i {
        font-size: 1.8rem;
        color: #fff;
    }

.newsletter-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brown-600);
    margin-bottom: 0.75rem;
}

.newsletter-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 450px;
    margin: 0 auto;
}

    .newsletter-form input {
        flex: 1;
        padding: 0.85rem 1.1rem;
        border: 1.5px solid var(--cream-300);
        border-radius: 12px;
        font-size: 0.92rem;
        background: #fff;
        color: var(--text-dark);
        transition: all 0.25s ease;
    }

        .newsletter-form input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(201, 169, 122, 0.15);
            outline: none;
        }

    .newsletter-form button {
        padding: 0.85rem 1.5rem;
        background: var(--brown-500);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        white-space: nowrap;
    }

        .newsletter-form button:hover {
            background: var(--brown-600);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(125, 95, 62, 0.25);
        }


/* ========================================
   9. RESPONSIVE
   ======================================== */

/* ============ Tablet (≤ 991px) ============ */
@media (max-width: 991px) {
    /* Hero */
    .hero-section {
        padding: 3rem 0 4rem;
        border-radius: 0 0 30px 30px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Hero Photo */
    .hero-illustration {
        min-height: 300px;
        margin-top: 2rem;
    }

    .hero-photo-wrapper {
        max-width: 340px;
        margin-top: 2rem;
    }

    .hero-photo {
        max-width: 300px;
        max-height: 300px;
        border-width: 5px;
    }

    /* Floating Badges */
    .floating-badge {
        font-size: 0.72rem;
        padding: 0.5rem 0.85rem;
        border-radius: 12px;
    }

        .floating-badge i {
            font-size: 1rem;
        }

        .floating-badge.badge-1 {
            top: 5%;
            right: -5%;
        }

        .floating-badge.badge-2 {
            top: 40%;
            right: -8%;
        }

        .floating-badge.badge-3 {
            bottom: 15%;
            left: -5%;
        }

        .floating-badge.badge-4 {
            bottom: 0;
            left: 0;
        }

    /* Promo */
    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .promo-illustration {
        display: none;
    }

    .promo-content h2 {
        font-size: 1.5rem;
    }

    /* Features */
    .features-bar {
        padding: 1rem 0.5rem;
    }

    .feature-item {
        padding: 0.4rem 0.5rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

        .feature-icon i {
            font-size: 1.15rem;
        }
}

/* ============ Mobile (≤ 768px) ============ */
@media (max-width: 768px) {
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }

        .hero-title span::after {
            height: 8px;
            bottom: 2px;
        }

    .hero-actions {
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        flex: 1;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Section Header */
    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
    }

        .section-header-modern .header-text h2 {
            font-size: 1.4rem;
        }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .category-card-overlay {
        padding: 1rem;
    }

        .category-card-overlay h3 {
            font-size: 0.92rem;
        }

        .category-card-overlay .count {
            font-size: 0.72rem;
        }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

        .newsletter-form button {
            justify-content: center;
        }

    /* Products */
    .products-section.alt-bg {
        border-radius: 24px;
    }
}

/* ============ Small Mobile (≤ 576px) ============ */
@media (max-width: 576px) {
    .hero-photo-wrapper {
        max-width: 260px;
    }

    .hero-photo {
        max-width: 230px;
        max-height: 230px;
        border-width: 4px;
    }

    .floating-badge {
        font-size: 0.68rem;
        padding: 0.4rem 0.7rem;
        gap: 0.35rem;
    }

        .floating-badge i {
            font-size: 0.9rem;
        }

        /* در موبایل، badge-4 رو مخفی کن */
        .floating-badge.badge-4 {
            display: none;
        }
}
