/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #F5EFE6;
    --green: #00A693;
    --brown: #D99058;
    --dark: #333;
    --light: #fff;
    --gray: #666;
    --light-gray: #eee;
}

body {
    font-family: 'Vazir', sans-serif;
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--brown);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ===== LOGO STYLES ===== */
/* Logo */
.logo a {
    text-decoration: none;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-persian {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
}

.logo-english {
    font-size: 14px;
    font-weight: 800;
    color: var(--background);
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
}


.logo a {
    text-decoration: none;
    color: var(--cream);
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--cream);
    text-decoration: none;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--green);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--green);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    color: var(--cream);
    font-size: 22px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--green);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    background: var(--green);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #5a7a5f;
}

/* Hero Slider */
.hero-slider {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    bottom: 60px;
    right: 60px;
    color: white;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0,0,0,0.8);
}

.slider-prev {
    right: 20px;
}

.slider-next {
    left: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--green);
}

/* Story Section */
.story-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--green);
    margin-bottom: 15px;
}

.title-line {
    width: 100px;
    height: 3px;
    background: var(--brown);
    margin: 0 auto;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-text {
    font-size: 18px;
    line-height: 1.8;
}

.story-text p {
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-read-more:hover {
    background: #5a7a5f;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
    background: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    color: var(--green);
    margin-bottom: 10px;
}

.product-desc {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.product-price {
    margin-bottom: 20px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: var(--brown);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-view {
    flex: 1;
    background: var(--brown);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
}

.btn-view:hover {
    background: #a08562;
}

.btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-view-all {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 12px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-view-all:hover {
    background: #5a7a5f;
}

/* Footer */
.footer {
    background: var(--brown);
    color: var(--cream);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--green);
}

.footer-about {
    margin-bottom: 20px;
    line-height: 1.8;
}

.enamad img {
    max-width: 150px;
    border-radius: 5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--green);
    padding-right: 10px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--green);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.instagram { background: #E1306C; }
.telegram { background: #0088cc; }
.whatsapp { background: #25D366; }
.aparat { background: #FF2D95; }

.newsletter p {
    margin-bottom: 15px;
    font-size: 14px;
}

.subscribe-form {
    display: flex;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    outline: none;
}

.subscribe-form button {
    background: var(--green);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe-form button:hover {
    background: #5a7a5f;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}



/* اضافه به استایل موجود */

/* انیمیشن برای تغییر رنگ */
.color-box {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* بارگذاری برای AJAX */
.loading-spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* نمره هارمونی */
.harmony-score {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 10px;
    vertical-align: middle;
}

/* پیشنهادات ترکیب */
.color-suggestions {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid var(--secondary);
}

.suggestion-title {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 16px;
}

.suggestion-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestion-color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid transparent;
}

.suggestion-color:hover {
    transform: scale(1.2);
    border-color: var(--dark);
}

/* حالت تاریک برای نمایش رنگ‌های روشن */
.color-box.dark-label .color-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.color-box.light-label .color-label {
    background: rgba(255, 255, 255, 0.9);
    color: black;
}

/* ریسپانسیو بهتر برای select */
@media (max-width: 576px) {
    .color-select {
        font-size: 14px;
        padding: 10px;
    }
   
    .color-box {
        width: 100px;
        height: 100px;
    }
   
    .suggestion-color {
        width: 30px;
        height: 30px;
    }
}
/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }
   
    .story-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
   
    .slide-content {
        right: 30px;
        bottom: 30px;
    }
   
    .slide-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
   
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
   
    .hero-slider {
        height: 400px;
    }
   
    .slide-content {
        right: 20px;
        left: 20px;
        text-align: center;
    }
   
    .product-actions {
        flex-direction: column;
    }
   
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        text-align: center;
    }
   
    .nav-menu {
        flex-direction: column;
        text-align: center;
    }
   
    .hero-slider {
        height: 300px;
    }
   
    .slide-content h2 {
        font-size: 22px;
    }
   
    .section-header h2 {
        font-size: 24px;
    }
}
/* ===== HEADER NON-STICKY ON MOBILE ===== */
@media (max-width: 768px) {
    /* غیرفعال کردن sticky در موبایل */
    .header {
        position: relative !important;
        top: auto !important;
        z-index: 100;
    }
   
    /* بهبود اسکرول */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 0;
    }
   
    /* حذف فضای خالی */
    body::before {
        display: none !important;
    }
   
    /* اگر از JavaScript برای sticky استفاده می‌کنی */
    .header.sticky {
        position: relative !important;
        animation: none !important;
    }
   
    /* برای منوهای dropdown اگر داری */
    .nav-menu.active {
        position: relative;
        top: 0;
    }
}

/* در دسکتاپ همچنان sticky باشه */
@media (min-width: 769px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}
/* Responsive Logo */
@media (max-width: 992px) {
    .logo-img { height: 45px; max-width: 130px; }
    .logo-persian { font-size: 16px; }
    .logo-english { font-size: 13px; }
}

@media (max-width: 768px) {
    .logo-img { height: 40px; max-width: 110px; }
    .logo-persian { font-size: 15px; }
    .logo-english { font-size: 12px; }
    .logo { gap: 10px; }
}

@media (max-width: 480px) {
    .logo-img { height: 35px; max-width: 90px; }
    .logo-persian { font-size: 14px; }
    .logo-english { font-size: 11px; }
}

@media (max-width: 360px) {
    .logo-text { display: none; }
    .logo-img { height: 40px; max-width: 100px; }
}


