/* رنگ‌های اصلی سایت - تون‌های سرمه‌ای و طلایی */
:root {
    --dark-bg: #1a1a2e;
    --dark-secondary: #16213e;
    --dark-tertiary: #0f3460;
    --charcoal: #252535;
    --gold: #d4af37;
    --gold-light: #e6c566;
    --gold-dark: #b89e2e;
    --text-light: #e6e6e6;
    --text-gray: #a0a0b0;
    --border-color: #3a3a5a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'B Nazanin', Tahoma, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== هدر ========== */
header {
    background: linear-gradient(135deg, var(--dark-secondary), var(--charcoal));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-icon {
    font-size: 36px;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    line-height: 1.3;
}

.logo-text span {
    color: var(--gold);
    display: block;
    font-size: 14px;
    font-weight: normal;
    margin-top: -5px;
}

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

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

nav a:hover,
nav a.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

nav a:hover::after {
    width: 80%;
}

.user-cart {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark-secondary);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--gold);
    color: var(--dark-secondary);
    font-weight: bold;
    font-size: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-bg);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* ========== هیرو سکشن ========== */
.hero {
    background: linear-gradient(rgba(10, 15, 30, 0.85), rgba(15, 25, 50, 0.9)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 180px 20px 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 58px;
    margin-bottom: 25px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    background: linear-gradient(to right, var(--gold), var(--gold-light), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 26px;
    margin-bottom: 40px;
    color: var(--text-light);
    opacity: 0.95;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* استایل جدید برای دکمه‌های هیرو */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark-secondary);
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.7);
}

.btn-hero.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-logo {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--dark-secondary);
    transition: var(--transition);
}

.btn-hero:hover .btn-logo {
    background: white;
    transform: scale(1.1);
}

.btn-hero.secondary .btn-logo {
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-hero.secondary:hover .btn-logo {
    background: var(--gold);
    color: var(--dark-secondary);
}

/* حذف خط زیر دکمه‌های هیرو */
.btn-hero {
    border-bottom: none !important;
    text-decoration: none !important;
}

/* ========== بخش‌ها - اصلاح کامل برای نمایش صحیح در همه دستگاه‌ها ========== */
.section-title {
    text-align: center;
    font-size: 38px;
    color: var(--gold);
    margin: 70px auto 50px;
    position: relative;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    display: block;
    padding: 0 15px;
    box-sizing: border-box;
    line-height: 1.3;
    max-width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* اصلاح عنوان محصولات پرفروش */
#featured .section-title {
    font-size: 42px !important;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    margin: 60px auto 45px !important;
}

/* ========== کارت محصولات ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    background: var(--charcoal);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border-color: var(--gold);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.product-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    min-height: 55px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    margin: 18px 0;
    direction: ltr;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.product-price::after {
    content: 'تومان';
    font-size: 16px;
    color: var(--text-gray);
    margin-right: 8px;
    font-weight: 400;
}

.add-to-cart {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark-secondary);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.add-to-cart:active {
    transform: translateY(1px);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== بخش مقالات آموزشی ========== */
.articles-section {
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-tertiary));
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.articles-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.articles-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.article-card {
    background: var(--charcoal);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition);
}

.article-card:hover::before {
    transform: scaleY(1);
}

.article-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--gold);
}

.article-title {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

.article-content {
    color: var(--text-light);
    line-height: 2;
    font-size: 17px;
    margin-bottom: 25px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-gray);
    font-size: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.article-meta i {
    color: var(--gold);
    font-size: 18px;
}

/* ========== گالری اسلایدر حرفه‌ای ========== */
.gallery-section {
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-tertiary));
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.slider-container {
    max-width: 1000px;
    margin: 40px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    height: 500px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 30px;
    text-align: center;
}

.slide-overlay h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--gold);
}

.slide-overlay p {
    font-size: 18px;
    opacity: 0.9;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.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);
}

.dot.active {
    background: var(--gold);
    width: 20px;
    border-radius: 10px;
}

/* ========== فوتر ========== */
footer {
    background: linear-gradient(180deg, var(--dark-secondary), var(--dark-bg));
    padding: 70px 0 30px;
    border-top: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-section a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    padding: 10px 0;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 16px;
}

.footer-section a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    padding-right: 15px;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--gold);
    font-size: 20px;
    margin-top: 3px;
}

.working-hours {
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid var(--gold);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

.working-hours h4 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 18px;
}

.working-hours p {
    color: var(--text-light);
    margin: 5px 0;
    font-size: 15px;
}

.copyright {
    text-align: center;
    padding: 30px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    color: var(--text-gray);
    font-size: 15px;
}

.copyright p {
    margin: 5px 0;
}

/* ========== مودال سبد خرید ========== */
#cartModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#cartModal .modal-content {
    background: var(--charcoal);
    border-radius: 20px;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid var(--gold);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    animation: slideIn 0.4s;
    max-height: 85vh;
    overflow-y: auto;
}

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

#cartModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 25px;
}

#cartModal .modal-header h2 {
    color: var(--gold);
    font-size: 28px;
    margin: 0;
}

#cartModal .close-modal {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#cartModal .close-modal:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(90deg);
}

.cart-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--gold);
    transition: var(--transition);
}

.cart-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.cart-item-name {
    color: var(--text-light);
    font-size: 18px;
    font-weight: bold;
    direction: rtl;
}

.cart-item-actions {
    display: flex;
    gap: 10px;
}

.cart-item-actions button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}

.cart-item-actions button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(238, 90, 36, 0.5);
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.empty-cart i {
    font-size: 64px;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 18px;
    margin-top: 15px;
}

/* ========== کارت‌های اطلاعاتی جدید ========== */
.info-card {
    background: var(--charcoal);
    border-radius: 16px;
    padding: 22px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: 0.6s;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--gold);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 26px;
    color: var(--gold);
    border: 2px solid var(--gold);
    transition: var(--transition);
}

.info-card:hover .card-icon {
    background: rgba(212, 175, 55, 0.25);
    transform: scale(1.08);
}

.card-title {
    font-size: 19px;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
    padding: 0 5px;
}

.card-desc {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 14px;
    opacity: 0.9;
    padding: 0 8px;
}

/* گرید کارت‌های تماس */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 35px;
    width: 100%;
}

/* مودال‌های جدید */
.modal-body {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 17px;
    padding: 20px;
}

.modal-body p {
    margin-bottom: 15px;
    direction: rtl;
}

.modal-body strong {
    color: var(--gold);
}

.modal-body ul {
    padding-right: 25px;
    margin: 15px 0;
    direction: rtl;
}

.modal-body li {
    margin-bottom: 8px;
    color: var(--text-light);
    direction: rtl;
}

/* ریسپانسیو کامل */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 34px;
        margin: 60px 0 45px;
    }
    
    #featured .section-title {
        font-size: 38px !important;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .slide-overlay h3 {
        font-size: 28px;
    }
    
    .slide-overlay p {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 30px;
        margin: 55px 0 40px;
    }
    
    #featured .section-title {
        font-size: 34px !important;
    }
    
    .product-image {
        height: 240px;
    }
    
    .article-card {
        padding: 25px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .cart-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .slide-overlay h3 {
        font-size: 28px;
    }
    
    .slide-overlay p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 12px 0;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-text span {
        font-size: 11px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
        margin: 50px 0 35px;
        padding: 0 10px;
    }
    
    #featured .section-title {
        font-size: 32px !important;
    }
    
    .product-image {
        height: 200px;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .btn-hero {
        padding: 14px 25px;
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-card h3 {
        font-size: 20px;
    }
    
    .contact-card p {
        font-size: 16px;
    }
    
    #cartModal .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-overlay {
        padding: 20px;
    }
    
    .slide-overlay h3 {
        font-size: 24px;
    }
    
    .slide-overlay p {
        font-size: 15px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .contact-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 18px;
    }
    
    .info-card {
        padding: 20px 12px;
        min-height: 150px;
    }
    
    .card-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px !important;
        margin: 40px 0 30px !important;
        padding: 0 8px;
        line-height: 1.4;
    }
    
    #featured .section-title {
        font-size: 28px !important;
    }
    
    .product-image {
        height: 180px;
    }
    
    .article-card {
        padding: 15px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .btn-hero {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-card {
        padding: 22px 15px;
    }
    
    .contact-card h3 {
        font-size: 19px;
    }
    
    .contact-card p {
        font-size: 15px;
    }
    
    #cartModal .modal-content {
        padding: 15px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cart-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .cart-item-actions button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .slider-container {
        height: 280px;
    }
    
    .slide-overlay {
        padding: 15px;
    }
    
    .slide-overlay h3 {
        font-size: 20px;
    }
    
    .slide-overlay p {
        font-size: 14px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .dot.active {
        width: 15px;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 25px 15px;
        min-height: 140px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .card-title {
        font-size: 17px;
    }
    
    .card-desc {
        font-size: 14px;
    }
}

/* ========== تغییرات خاص برای صفحه اصلی ========== */
#featured .section-title {
    font-size: 42px !important;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    margin: 60px auto 45px !important;
}

/* اصلاح اسکرول و مرکزسازی */
body {
    overflow-x: hidden;
}

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

/* اصلاح چینش محتوا */
section {
    width: 100%;
    box-sizing: border-box;
}

/* اصلاح صفحات ورود و ثبت‌نام */
.auth-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
}

.auth-card {
    background: var(--charcoal);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.auth-card h2 {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 30px;
    position: relative;
}

.auth-card h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gold);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 16px;
    direction: rtl;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.auth-form .btn {
    margin-top: 10px;
}

.auth-footer {
    margin-top: 25px;
    color: var(--text-gray);
    font-size: 14px;
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
}

/* اصلاح فرم‌ها */
.form-group {
    width: 100%;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 16px;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* استایل برای مودال مقالات */
#articleModal .modal-content {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-body h3, .modal-body h4 {
    color: var(--gold);
}

.modal-body ul, .modal-body ol {
    padding-right: 25px;
    margin: 15px 0;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.modal-body th, .modal-body td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.modal-body th {
    background: rgba(212, 175, 55, 0.1);
}

.modal-body tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* به‌روزرسانی گرید مقالات */
#articles .articles-container > div {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
}
/* ========== بهینه‌سازی‌های سئو و سرعت ========== */

/* بهینه‌سازی فونت‌ها */
@font-face {
    font-family: 'Vazirmatn';
    font-display: swap;
}

/* بهینه‌سازی تصاویر */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* حالت بارگذاری برای تصاویر */
img.lazyload {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.lazyloaded {
    opacity: 1;
}

/* بهینه‌سازی انیمیشن‌ها برای سرعت بیشتر */
* {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* بهینه‌سازی برای چاپ */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a, a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    .no-print, .no-print * {
        display: none !important;
    }
}

/* بهینه‌سازی برای دستگاه‌های قدیمی */
.no-js img.lazyload {
    display: none;
}