/* طرح رنگی مدرن */
:root {
    --primary: #FFD700;
    --primary-dark: #B8860B;
    --secondary: #2C3E50;
    --accent: #E67E22;
    --light: #F8F9FA;
    --dark: #2C3E50;
    --text: #333333;
    --text-light: #666666;
    --border: #E8E8E8;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ریست استایل */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSansXFaNum', 'Segoe UI', system-ui, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* === هدر مدرن === */
.modern-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* نوار بالایی */
.top-bar {
    background: linear-gradient(135deg, var(--secondary), #2C3E50);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 0.85rem;
    flex-wrap: nowrap;
    min-height: 30px;
}

.contact-info {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    color: white;
    flex-shrink: 0;
    white-space: nowrap;
}

.contact-item i {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.contact-item:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: 20px;
}

.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-1px);
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* ناوبری اصلی */
.main-nav {
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    text-decoration: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.logo-wrapper:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: var(--transition);
}

.logo-wrapper:hover .logo-icon {
    transform: rotate(10deg) scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;
}

/* منوی ناوبری */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    transform: translateY(-2px);
}

/* === اسلایدر === */
.hero-slider {
    margin-top: 140px;
    padding: 0 0 60px 0;
}

.slider-box {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 20px;
}

.carousel-item {
    height: 450px;
    position: relative;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(255, 215, 0, 0.2));
}

.slider-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.caption-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.caption-text {
    font-size: 1.4rem;
    margin-bottom: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* دکمه‌های اقدام زیر اسلایدر */
.slider-actions-below {
    margin-top: 40px;
    text-align: center;
}

.actions-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    white-space: nowrap;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

.btn-primary::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: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 62, 80, 0.1), transparent);
    transition: left 0.5s;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn i {
    font-size: 1.2rem;
}

/* === بخش‌ها === */
.videos-section,
.products-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* === گرید محصولات === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--primary);
    border-radius: 25px;
    transition: var(--transition);
}

.view-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
}

.product-desc {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-actions {
    margin-top: auto;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-details:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* === گرید ویدئوها === */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    transition: var(--transition);
    cursor: pointer;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
}

.video-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
}

.video-desc {
    color: var(--text-light);
    line-height: 1.5;
}

/* استایل‌های عمومی */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

/* === فوتر مدرن === */
.main-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: white;
    padding: 80px 0 0;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    padding-right: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-logo i {
    margin-left: 12px;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.footer-newsletter h6 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    max-width: 400px;
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: #888;
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: var(--dark);
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateX(2px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    animation: fadeInUp 0.8s ease;
}

.footer-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-link {
    color: #b0b0b0;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    padding: 8px 0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(-5px);
    background: rgba(255, 215, 0, 0.1);
    padding-right: 10px;
}

.footer-link i {
    font-size: 0.9rem;
    margin-left: 8px;
    transition: var(--transition);
    width: 16px;
    text-align: center;
}

.footer-link:hover i {
    transform: scale(1.2);
    color: var(--primary);
}

/* استایل‌های بخش تماس در فوتر */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.footer-contact-item:hover .contact-icon {
    transform: scale(1.1);
    rotate: 5deg;
}

.contact-text {
    flex: 1;
}

.contact-text span {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.contact-text small {
    color: #888;
    font-size: 0.8rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    margin: 40px 0;
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
}

.copyright p {
    margin: 0;
}

.golden-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.footer-extras {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    cursor: pointer;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* انیمیشن‌های فوتر */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column.animate-in,
.footer-brand.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* ==================== */
/* استایل‌های ریسپانسیو */
/* ==================== */

/* تبلت و موبایل بزرگ */
@media (max-width: 1024px) {
    .container-fluid {
        max-width: 100%;
        margin: 0 15px;
    }
    
    .slider-box {
        margin: 0 10px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        padding-right: 0;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .newsletter-form {
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .caption-title {
        font-size: 2.5rem;
    }
    
    .carousel-item {
        height: 400px;
    }
}

/* تبلت */
@media (max-width: 768px) {
    /* هدر */
    .top-bar-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .contact-info {
        justify-content: space-around;
        gap: 15px;
        order: 2;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        flex: 1;
        min-width: 100px;
    }
    
    .contact-item span {
        font-size: 0.75rem;
    }
    
    .header-actions {
        justify-content: center;
        order: 1;
        width: 100%;
        margin-left: 0;
    }
    
    .language-switcher {
        justify-content: center;
        width: 100%;
    }
    
    /* ناوبری */
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        padding: 10px;
    }
    
    .toggle-bar {
        width: 25px;
        height: 3px;
        background: var(--dark);
        transition: var(--transition);
    }
    
    .nav-toggle.active .toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active .toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* اسلایدر */
    .hero-slider {
        margin-top: 120px;
        padding: 0 0 40px 0;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .caption-title {
        font-size: 2.2rem;
    }
    
    .caption-text {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .actions-container {
        gap: 15px;
    }
    
    /* بخش‌ها */
    .videos-section,
    .products-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* گریدها */
    .products-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* فوتر */
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-extras {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-footer {
        padding: 60px 0 0;
        margin-top: 80px;
    }
    
    .footer-main {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-logo {
        font-size: 1.8rem;
    }
}

/* موبایل */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* هدر */
    .contact-info {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .contact-item {
        min-width: calc(50% - 10px);
        flex: 0 1 auto;
    }
    
    .contact-item span {
        font-size: 0.7rem;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .lang-text {
        display: none;
    }
    
    .admin-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    /* لوگو */
    .logo-wrapper {
        gap: 8px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .brand-tagline {
        font-size: 0.6rem;
    }
    
    /* اسلایدر */
    .hero-slider {
        margin-top: 110px;
        padding: 0 0 30px 0;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .caption-title {
        font-size: 1.8rem;
    }
    
    .caption-text {
        font-size: 1rem;
    }
    
    .actions-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
    }
    
    .slider-box {
        margin: 0 5px;
    }
    
    /* گریدها */
    .products-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card,
    .video-card {
        max-width: 100%;
    }
    
    /* فوتر */
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-title {
        justify-content: center;
    }
    
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-link {
        justify-content: center;
        padding: 10px;
    }
    
    .footer-link:hover {
        transform: translateY(-2px);
        padding-right: 10px;
    }
    
    .footer-contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-text {
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-extras {
        gap: 15px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .contact-item {
        min-width: 100%;
        margin-bottom: 5px;
    }
    
    .caption-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* بهبود نمایش در حالت RTL */
[dir="rtl"] .footer-link i,
[dir="rtl"] .footer-title i {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .footer-link:hover {
    transform: translateX(5px);
    padding-right: 0;
    padding-left: 10px;
}

[dir="rtl"] .footer-title::after {
    right: auto;
    left: 0;
}

[dir="rtl"] .footer-logo i {
    margin-left: 0;
    margin-right: 12px;
}

[dir="rtl"] .back-to-top {
    left: auto;
    right: 30px;
}

@media (max-width: 576px) {
    [dir="rtl"] .back-to-top {
        right: 20px;
    }
}

/* مخفی کردن آیتم‌ها در موبایل */
.mobile-hidden {
    display: flex !important;
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
}

/* انیمیشن برای دکمه‌های اسلایدر */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-actions-below {
    animation: fadeInUp 0.8s ease-out;
}





.hero-slider {
    margin-top: calc(140px + 60px); /* ارتفاع هدر + فاصله اضافه */
    padding: 0 0 70px 0;
}



/* === اسلایدر === */
.hero-slider {
    margin-top: 160px;
    padding: 0;
}

.slider-box {
    background: white;
    border-radius: var(--radius) var(--radius) 0 0; /* فقط گوشه بالایی گرد */
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 20px 0 20px; /* فقط margin افقی */
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.carousel-item {
    height: 450px;
    position: relative;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(255, 215, 0, 0.2));
}

.slider-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.caption-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.caption-text {
    font-size: 1.4rem;
    margin-bottom: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* دکمه‌های اقدام زیر اسلایدر */
.slider-actions-container {
    background: white;
    padding: 40px 20px;
    margin: 0 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
}

.actions-wrapper {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.action-btn {
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    white-space: nowrap;
    min-width: 220px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.action-btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    border: 2px solid transparent;
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    background: rgba(255,255,255,0.9);
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.action-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: translateX(5px);
}

/* استایل‌های ریسپانسیو برای دکمه‌ها */
@media (max-width: 1024px) {
    .slider-actions-container {
        padding: 35px 20px;
    }
    
    .action-btn {
        padding: 14px 30px;
        font-size: 1.05rem;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .slider-actions-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .actions-wrapper {
        gap: 20px;
    }
    
    .action-btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 576px) {
    .slider-actions-container {
        padding: 25px 15px;
        margin: 0 10px;
    }
    
    .actions-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
    }
}

/* انیمیشن برای دکمه‌ها */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-actions-container {
    animation: slideInUp 0.8s ease-out 0.3s both;
}



/* === اسلایدر === */
.hero-slider {
    margin-top: 160px;
    padding: 0;
}

.slider-box {
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 20px 0 20px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.carousel-item {
    height: 500px; /* ارتفاع ثابت برای اسلایدر */
    position: relative;
    overflow: hidden;
}

.slider-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* این خط باعث میشه عکس کامل پوشش داده بشه */
    object-position: center; /* عکس از مرکز نمایش داده بشه */
    display: block;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(255, 215, 0, 0.2));
    z-index: 1;
}

.slider-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    z-index: 2;
}

.caption-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.caption-text {
    font-size: 1.4rem;
    margin-bottom: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* دکمه‌های اقدام زیر اسلایدر */
.slider-actions-container {
    background: white;
    padding: 40px 20px;
    margin: 0 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
}

.actions-wrapper {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.action-btn {
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    white-space: nowrap;
    min-width: 220px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.action-btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    border: 2px solid transparent;
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    background: rgba(255,255,255,0.9);
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.action-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: translateX(5px);
}

/* استایل‌های ریسپانسیو برای اسلایدر */
@media (max-width: 1024px) {
    .carousel-item {
        height: 450px;
    }
    
    .slider-actions-container {
        padding: 35px 20px;
    }
    
    .action-btn {
        padding: 14px 30px;
        font-size: 1.05rem;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .slider-actions-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .actions-wrapper {
        gap: 20px;
    }
    
    .action-btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .caption-title {
        font-size: 2.5rem;
    }
    
    .caption-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 350px;
    }
    
    .slider-actions-container {
        padding: 25px 15px;
        margin: 0 10px;
    }
    
    .actions-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
    }
    
    .caption-title {
        font-size: 2rem;
    }
    
    .caption-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        height: 300px;
    }
    
    .caption-title {
        font-size: 1.8rem;
    }
    
    .caption-text {
        font-size: 0.9rem;
    }
}

/* انیمیشن برای دکمه‌ها */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-actions-container {
    animation: slideInUp 0.8s ease-out 0.3s both;
}


















/* === گرید ویدئوها === */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa; /* پس‌زمینه روشن به جای مشکی */
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* استایل برای ویدئوهای یوتیوب */
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    background: #f8f9fa; /* پس‌زمینه برای یوتیوب */
}

/* استایل برای ویدئوهای آپلودی */
.video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    background: #f8f9fa; /* پس‌زمینه روشن */
    display: block;
}

/* نمایش تامبنیل برای ویدئوهای آپلودی */
.video-wrapper video[poster] {
    background: transparent; /* اگر poster داره، پس‌زمینه نباشد */
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* overlay نیمه شفاف */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    transition: var(--transition);
    cursor: pointer;
    opacity: 1;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

/* وقتی ویدئو در حال پخش است overlay مخفی شود */
.video-wrapper video:playing + .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
}

.video-desc {
    color: var(--text-light);
    line-height: 1.5;
}

/* استایل برای حالت‌های مختلف ویدئو */
.video-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ریسپانسیو برای ویدئوها */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .play-overlay {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-card {
        max-width: 100%;
    }
    
    .video-thumbnail {
        height: 200px;
    }
}



