:root {
    /* رنگ‌های تیره */
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-dark: #0f3460;
    --text-dark: #e6e6e6;
    --text-secondary-dark: #b8b8b8;
    
    /* رنگ‌های روشن */
    --primary-light: #f8f9fa;
    --secondary-light: #e9ecef;
    --accent-light: #4cc9f0;
    --text-light: #212529;
    --text-secondary-light: #495057;
    
    /* رنگ‌های اصلی */
    --gold: #ffd700;
    --blue-gold: #4a6fa5;
    --blue-light: #89c2d9;
    --red-alert: #e63946;
    
    /* انیمیشن‌ها */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.blue-dark-theme {
    --bg-primary: var(--primary-dark);
    --bg-secondary: var(--secondary-dark);
    --bg-accent: var(--accent-dark);
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-secondary-dark);
    --accent-color: var(--blue-gold);
    --gold-color: var(--gold);
    --card-bg: #1e2442;
    --border-color: #2a2f5a;
}

.light-theme {
    --bg-primary: var(--primary-light);
    --bg-secondary: var(--secondary-light);
    --bg-accent: #e3f2fd;
    --text-primary: var(--text-light);
    --text-secondary: var(--text-secondary-light);
    --accent-color: #0d6efd;
    --gold-color: #d4af37;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection {
    background: var(--accent-color);
    color: white;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

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

/* ----- هدر ----- */
header {
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-color);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-weight: 500;
}

nav ul li a:hover, 
nav ul li a.active {
    background: var(--accent-color);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    font-weight: 500;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    background: var(--bg-accent);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--text-primary);
    width: 200px;
    outline: none;
    font-family: 'Vazirmatn', sans-serif;
}

.search-box button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-box button:hover {
    background: var(--blue-light);
}

/* ----- اسلایدر اصلی ----- */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 600px;
    margin-bottom: 50px;
}

.slider-container {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.slide:hover .slide-overlay {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.slide-description {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 500px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-controls button {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
}

.slider-controls button:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--gold-color);
    transform: scale(1.2);
}

/* ----- بخش‌های عمومی ----- */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ----- درباره ما ----- */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.about-text {
    flex: 1;
    font-size: 17px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}

.features {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ----- مقاله علمی ----- */
.blog-section {
    padding: 80px 0;
    background: var(--bg-accent);
}

.blog-post {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.post-title {
    font-size: 28px;
    margin: 25px;
    color: var(--accent-color);
}

.post-meta {
    display: flex;
    gap: 20px;
    padding: 0 25px 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    margin: 20px 0;
}

.warning-box {
    background: rgba(230, 57, 70, 0.1);
    border-left: 4px solid var(--red-alert);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-box strong {
    color: var(--red-alert);
    margin-left: 5px;
}

.post-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-buttons span {
    color: var(--text-secondary);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-accent);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* ----- محصولات ----- */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.new {
    background: #4ade80;
}

.product-badge.sale {
    background: #ef4444;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 20px;
}

.product-rating {
    color: #facc15;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
}

.product-rating span {
    color: var(--text-secondary);
    margin-right: 5px;
}

.card-body p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-new {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-color);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 15px;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

.view-all a {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all a:hover {
    color: var(--accent-color);
    gap: 12px;
}

/* ----- فرم تماس ----- */
.contact-section {
    padding: 80px 0;
    background: var(--bg-accent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-item i {
    font-size: 24px;
    color: var(--accent-color);
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 10px;
}

.info-item h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-accent);
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
}

/* ----- نظرات مشتریان ----- */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.testimonial-rating {
    color: #facc15;
    margin-top: 5px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-date {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ----- فوتر ----- */
footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    gap: 12px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-accent);
    color: var(--text-primary);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    background: var(--bg-accent);
    color: var(--text-primary);
}

.newsletter-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--blue-light);
}

.payment-methods h4 {
    margin: 20px 0 10px;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: var(--text-secondary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.copyright p {
    line-height: 1.6;
}

.copyright span {
    margin: 0 10px;
    color: var(--accent-color);
}

/* ----- دکمه‌ها ----- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn i {
    margin-right: 5px;
}

/* ----- اسکرول به بالا ----- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--blue-light);
    transform: translateY(-5px);
}

/* ----- ریسپانسیو ----- */
@media (max-width: 992px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .about-content,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 350px;
    }
    
    .slide-title {
        font-size: 20px;
    }
    
    .slide-description {
        font-size: 16px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 120px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .post-image {
        height: 250px;
    }
}
