/* --- General Reset --- */
:root {
    --primary: #1a2a6c;
    --accent: #fdbb2d;
    --accent-light: #ffd166;
    --bg: #f8f9fa;
    --text: #333;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Vazirmatn', sans-serif; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.6; 
    overflow-x: hidden; 
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    padding-top: 56px; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Header --- */
header {
    background: rgba(26, 42, 108, 0.98);
    backdrop-filter: blur(15px);
    color: white;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(253, 187, 45, 0.1);
}

.container { 
    width: 92%; 
    max-width: 1300px; 
    margin: 0 auto; 
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
}

/* Logo */
.logo h1 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 900; 
    font-size: 1.3rem;
    letter-spacing: 1px; 
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #fdbb2d, #fff);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    margin: 0;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Desktop Nav */
.desktop-nav { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
    margin-right: auto;
}

.desktop-nav a { 
    font-weight: 600; 
    transition: 0.3s; 
    position: relative; 
    font-size: 1rem; 
    padding: 5px 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.desktop-nav a:hover::after { width: 100%; }
.desktop-nav a:hover { color: var(--accent); }

/* Actions */
.actions { 
    display: flex; 
    align-items: center; 
    gap: 22px; 
    margin-left: 0;
}

.icon-btn { 
    font-size: 1.3rem; 
    cursor: pointer; 
    transition: 0.3s; 
    color: white; 
    position: relative; 
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.icon-btn:hover { 
    color: var(--accent); 
    background: rgba(253, 187, 45, 0.15);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute; 
    top: -5px; 
    right: -5px;
    background: var(--accent); 
    color: var(--primary);
    width: 20px; 
    height: 20px; 
    border-radius: 50%;
    font-size: 0.75rem; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Search Box */
.search-wrapper {
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%;
    background: white; 
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    display: none; 
    align-items: center; 
    justify-content: center;
    z-index: 999; 
    animation: slideDown 0.3s ease; 
    border-radius: 0 0 25px 25px;
}

.search-wrapper.active { display: flex; }

.search-input {
    width: 100%; 
    max-width: 650px;
    padding: 12px 25px; 
    border: 2px solid #eef2ff;
    border-radius: 50px; 
    outline: none; 
    font-size: 1rem;
    transition: 0.3s;
    background: #f8fafc;
}

.search-input:focus { 
    border-color: var(--primary); 
    background: white;
    box-shadow: 0 5px 15px rgba(26, 42, 108, 0.1);
}

.search-results {
    position: absolute; 
    top: 65px; 
    width: 90%; 
    max-width: 650px;
    background: white; 
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    max-height: 350px; 
    overflow-y: auto;
    display: none; 
    z-index: 1000;
    border: 1px solid #f1f5f9;
}

.search-results.active { display: block; }

.search-item {
    display: flex; 
    align-items: center; 
    gap: 15px;
    padding: 12px 20px; 
    border-bottom: 1px solid #f1f5f9;
    color: #333; 
    cursor: pointer; 
    transition: 0.2s;
}

.search-item:hover { 
    background: #f8fafc; 
    transform: translateX(-5px);
}

.search-item:last-child { border-bottom: none; }

.search-item img { 
    width: 55px; 
    height: 55px; 
    border-radius: 10px; 
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

/* Mobile Menu Button */
.hamburger { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    margin-right: 15px; 
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.hamburger:hover { 
    background: rgba(253, 187, 45, 0.15);
    color: var(--accent);
}

/* --- Preloader Style --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #1d3a8a 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    opacity: 1;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.logo-spinner {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
}

.logo-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url('https://i.postimg.cc/x1KSx6j6/1765090045665.jpg') center/cover no-repeat;
    box-shadow: 
        0 0 0 10px rgba(253, 187, 45, 0.2),
        0 0 0 20px rgba(253, 187, 45, 0.1),
        0 0 40px rgba(253, 187, 45, 0.3),
        inset 0 0 40px rgba(26, 42, 108, 0.5);
    animation: spin 20s linear infinite, pulseBorder 3s ease-in-out infinite alternate;
    overflow: hidden;
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 42, 108, 0.7) 0%, rgba(253, 187, 45, 0.4) 100%);
    border-radius: 50%;
    z-index: 1;
}

.logo-circle::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    background: conic-gradient(transparent, var(--accent), transparent);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    opacity: 0.5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseBorder {
    0% { 
        box-shadow: 
            0 0 0 10px rgba(253, 187, 45, 0.2),
            0 0 0 20px rgba(253, 187, 45, 0.1),
            0 0 40px rgba(253, 187, 45, 0.3),
            inset 0 0 40px rgba(26, 42, 108, 0.5);
    }
    100% { 
        box-shadow: 
            0 0 0 15px rgba(253, 187, 45, 0.3),
            0 0 0 30px rgba(253, 187, 45, 0.15),
            0 0 60px rgba(253, 187, 45, 0.4),
            inset 0 0 50px rgba(26, 42, 108, 0.6);
    }
}

.loader-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 900; 
    font-size: 2rem; 
    letter-spacing: 2px;
    color: white; 
    text-transform: uppercase;
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: fadeInOut 2s infinite alternate;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('https://i.postimg.cc/W3BQ5JCT/1765090045665.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 20px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 0 0 20px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h2 {
    font-family: 'Segoe UI', sans-serif;
    font-size: 3.5rem; 
    font-weight: 900; 
    margin-bottom: 0.5rem; 
    letter-spacing: 2px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    color: #f0f0f0;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8); 
    font-weight: 500;
}

.btn-hero {
    background: var(--accent); 
    color: var(--primary);
    padding: 15px 40px; 
    border-radius: 50px;
    font-weight: bold; 
    font-size: 1.1rem;
    box-shadow: 0 5px 25px rgba(253, 187, 45, 0.5);
    display: inline-block; 
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-hero:hover { 
    background: white; 
    transform: translateY(-3px); 
}

@media (max-width: 768px) {
    .hero { 
        height: 350px; 
    }
    
    .hero-content h2 { 
        font-size: 2.5rem; 
    }
}

/* --- Content Layout --- */
.main-bg { 
    background: var(--bg); 
    position: relative; 
    padding-bottom: 60px; 
    margin-top: 0;
    flex: 1;
}

.section-title { 
    text-align: center; 
    margin: 2.5rem 0 2rem;
    font-size: clamp(1.5rem, 3vw, 1.8rem); 
    color: var(--primary); 
    position: relative; 
    font-weight: 900;
    padding-bottom: 15px;
}

.section-title:first-of-type { 
    margin-top: 2.5rem;
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 80px; 
    height: 4px; 
    background: linear-gradient(to right, var(--accent), #ffd166); 
    margin: 15px auto; 
    border-radius: 10px; 
    animation: widthPulse 2s infinite alternate;
}

@keyframes widthPulse {
    0% { width: 80px; }
    100% { width: 120px; }
}

/* اسلایدر افقی - ترکیبی (دستی + اتوماتیک) */
.slider-container { 
    position: relative; 
    padding: 0 50px; 
    margin-bottom: 4rem;
    overflow: hidden;
}

.slider {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 25px 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    transition: scroll 0.3s ease;
}

.slider::-webkit-scrollbar { display: none; }

/* دکمه‌های اسلایدر */
.arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 45px; 
    height: 45px; 
    background: white; 
    color: var(--primary); 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 10; 
    font-size: 1.2rem; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0.9;
    transition: all 0.3s;
}

.arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    background: var(--primary);
    color: white;
}

.arrow.right { right: 0; } 
.arrow.left { left: 0; }

/* نقاط نشانگر اسلایدر */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.slider-dot:hover {
    background: var(--primary);
}

/* کارت اسلایدر */
.slider-card {
    min-width: 300px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

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

.slider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    z-index: 2;
}

.slider-card-img {
    height: 240px;
    width: 100%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    cursor: pointer;
    position: relative;
}

.slider-card-img::after {
    content: '\f00e';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(26, 42, 108, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: 0.3s;
    z-index: 3;
}

.slider-card-img:hover::after { opacity: 1; }

.slider-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.5s;
    z-index: 2;
    position: relative;
}

.slider-card-img:hover img {
    transform: scale(1.08);
}

.slider-card-body {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.slider-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1e293b;
    line-height: 1.4;
    min-height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Grid محصولات - دو ردیفی در موبایل */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

/* در موبایل: 2 محصول در هر ردیف (از 768px به پایین) */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }
    
    .slider-container {
        padding: 0 40px;
    }
    
    .slider-card {
        min-width: 280px;
    }
    
    .slider-card-img {
        height: 200px;
    }
    
    .slider-card-title {
        font-size: 1.1rem;
    }
    
    /* نمایش دکمه‌های اسلایدر در موبایل */
    .arrow {
        display: flex !important;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        opacity: 0.8;
    }
    
    .arrow.right {
        right: 5px;
        transform: translateY(-50%) scale(0.9);
    }
    
    .arrow.left {
        left: 5px;
        transform: translateY(-50%) scale(0.9);
    }
    
    .arrow:active {
        transform: translateY(-50%) scale(0.85);
    }
    
    .slider-dots {
        margin-top: 20px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    body { 
        padding-top: 56px; 
    }
}

/* در تبلت: 3 محصول در هر ردیف */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* در دسکتاپ: 4 محصول در هر ردیف */
@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .arrow {
        display: flex;
    }
}

/* کارت محصول در گرید */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

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

.product-card-img {
    height: 200px;
    width: 100%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
    cursor: pointer;
    position: relative;
}

@media (max-width: 768px) {
    .product-card-img {
        height: 150px;
    }
}

.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.5s;
}

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

.product-card-body {
    padding: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.4;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .product-card-title {
        font-size: 0.9rem;
        min-height: 2.6em;
    }
}

/* ستاره‌ها */
.stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 8px 0;
    direction: ltr;
}

.star {
    color: #ffc107;
    font-size: 0.9rem;
}

.star.empty {
    color: #ddd;
}

/* وضعیت موجودی */
.stock-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* قیمت با تخفیف */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}

.discounted-price {
    color: #b21f1b;
    font-weight: 800;
    font-size: 1.1rem;
}

.discount-badge {
    background: linear-gradient(to right, var(--accent), #ffd166);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.btn-add {
    width: 100%; 
    padding: 12px; 
    border: none; 
    margin-top: auto;
    background: var(--primary); 
    color: white;
    border-radius: 10px; 
    font-weight: bold; 
    cursor: pointer;
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

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

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

@media (max-width: 768px) {
    .btn-add {
        padding: 10px;
        font-size: 0.85rem;
    }
}

.btn-add:hover:not(:disabled) {
    background: #0d1f5c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 42, 108, 0.3);
}

.btn-add:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Footer --- */
footer { 
    background: var(--primary); 
    color: white; 
    padding: 3rem 1rem 2.5rem; 
    text-align: center; 
    position: relative;
    margin-top: auto;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent), #ffd166);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.phone-numbers {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.phone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.phone-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    transition: all 0.3s;
}

.phone-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    transition: color 0.3s;
    direction: ltr;
    text-decoration: none;
}

.phone-link:hover {
    color: var(--accent);
}

.phone-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* Social Icons in Footer */
.social-icons { 
    margin-bottom: 25px; 
    display: flex; 
    justify-content: center; 
    gap: 25px;
}

.social-icons a { 
    color: white; 
    transition: 0.3s; 
    font-size: 1.8rem; 
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-icons a:hover { 
    color: var(--accent); 
    background: rgba(253, 187, 45, 0.2);
    transform: scale(1.15); 
}

.trust-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.trust-icons img { 
    height: 50px; 
    background: white; 
    padding: 5px; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: transform 0.3s;
}

.trust-icons img:hover { 
    transform: translateY(-3px);
}

.trust-icons a img { 
    background: none; 
    padding: 0; 
}

/* --- Mobile Nav Overlay --- */
.mobile-nav {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 280px; 
    height: 100%;
    background: white; 
    z-index: 3000; 
    padding: 2rem;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2); 
    transition: 0.3s ease;
    display: flex; 
    flex-direction: column; 
    gap: 20px;
}

.mobile-nav.open { right: 0; }

.mobile-nav-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--accent); 
    padding-bottom: 10px; 
}

.close-nav { 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: #333; 
    transition: 0.3s;
}

.close-nav:hover { 
    color: var(--accent); 
    transform: rotate(90deg);
}

.mobile-link { 
    font-size: 1.1rem; 
    color: #333; 
    font-weight: 600; 
    padding: 12px 0; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    transition: 0.3s;
}

.mobile-link:hover { 
    color: var(--primary); 
    padding-right: 10px;
}

.overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 2999; 
    display: none; 
    backdrop-filter: blur(3px); 
}

.overlay.active { display: block; }

/* --- Page Product Section --- */
.product-page {
    display: none;
    padding: 20px 0 60px 0;
    background: var(--bg);
}

.product-page.active {
    display: block;
}

.back-to-shop {
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: 0.3s;
}

.back-btn:hover {
    background: #f8fafc;
    transform: translateX(-5px);
}

.product-detail-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hover-shadow);
    border: 1px solid #f1f5f9;
}

.product-detail-row {
    display: flex;
    flex-wrap: wrap;
}

.product-gallery-col {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #f8fafc;
    border-left: 1px solid #e5e7eb;
}

.product-info-col {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

/* Swiper Gallery */
.gallery-main-slider {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-main-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.gallery-main-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
}

.gallery-thumb-slider {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.gallery-thumb-slider .swiper-slide {
    width: 100px;
    height: 80px;
    opacity: 0.4;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb-slider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--accent);
}

.gallery-thumb-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 5px;
}

.product-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.product-details {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
}

.product-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.product-detail-item:last-child {
    border-bottom: none;
}

.product-detail-label {
    color: #666;
    font-weight: 600;
}

.product-detail-value {
    color: #333;
    font-weight: 700;
}

.product-price-section {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-final-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #b21f1b;
}

.product-original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.product-discount-badge {
    background: linear-gradient(to right, var(--accent), #ffd166);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.product-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-action-btn {
    flex: 1;
    min-width: 200px;
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-action-btn-primary {
    background: var(--primary);
    color: white;
}

.product-action-btn-primary:hover {
    background: #0d1f5c;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 42, 108, 0.3);
}

.product-action-btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.product-action-btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* --- بخش گزینه‌های متنی در صفحه محصول --- */
.product-colors-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.product-colors-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-colors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* استایل گزینه‌های متنی */
.color-option {
    min-width: 120px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.color-option:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(253, 187, 45, 0.1);
}

.color-option.selected {
    border-color: var(--accent);
    background: rgba(253, 187, 45, 0.1);
    color: var(--primary);
    font-weight: bold;
}

.color-option.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.selected-color-display {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* --- Modals --- */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 4000; 
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(5px); 
}

.modal-box { 
    background: white; 
    width: 92%; 
    max-width: 500px; 
    padding: 25px; 
    border-radius: 25px; 
    max-height: 90vh; 
    overflow-y: auto; 
    animation: slideUp 0.3s; 
    border: 1px solid #e5e7eb;
}

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

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

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 15px; 
}

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

.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    font-family: inherit; 
    font-size: 0.95rem; 
    direction: ltr;
    text-align: right;
    transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
    outline: none;
}

/* استایل اختصاصی برای مودال عکس */
#img-modal .modal-box { 
    background: transparent; 
    box-shadow: none; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    max-width: 100%; 
    width: 100%;
    height: 100%;
    padding: 20px; 
    position: relative;
}

#img-modal img { 
    max-width: 95%; 
    max-height: 90vh; 
    border-radius: 15px; 
    object-fit: contain; 
    box-shadow: 0 0 40px rgba(0,0,0,0.8); 
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn { 
    from {transform: scale(0.8); opacity: 0;} 
    to {transform: scale(1); opacity: 1;} 
}

.close-zoom {
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    font-size: 2rem;
    cursor: pointer; 
    z-index: 5000;
    background: rgba(0,0,0,0.5);
    width: 45px; 
    height: 45px;
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: 0.3s;
}

.close-zoom:hover {
    background: rgba(0,0,0,0.7);
    transform: rotate(90deg);
}

.cart-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 12px; 
    border: 1px solid #eee; 
    border-radius: 15px; 
    margin-bottom: 12px; 
    background: #fafafa; 
    transition: 0.3s;
}

.cart-item:hover {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.cart-item img { 
    width: 55px; 
    height: 55px; 
    border-radius: 10px; 
    object-fit: cover; 
    border: 1px solid #e5e7eb;
}

.qty-ctrl { 
    background: white; 
    border: 1px solid #ccc; 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: 0.2s;
}

.qty-ctrl:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* استایل مخصوص پیام افزودن به سبد خرید */
.sweet-alert-custom {
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    border: 1px solid #e5e7eb;
    max-width: 350px;
    width: 90%;
    padding: 20px !important;
}

.sweet-title-custom {
    padding: 15px 0 5px 0 !important;
    margin-bottom: 0 !important;
}

.swal2-timer-progress-bar {
    background: linear-gradient(to right, var(--accent), #ffd166) !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    .logo h1 { font-size: 1.3rem; }
    .hero { 
        height: 350px; 
    }
    .hero-content h2 { 
        font-size: 2.5rem; 
    }
    .header-content { 
        justify-content: space-between; 
        padding: 0 5px; 
    }
    .actions { gap: 15px; }
    .section-title {
        font-size: 1.5rem;
        margin: 2.5rem 0 2rem;
    }
    body { 
        padding-top: 56px; 
    }
    
    /* استایل صفحه محصول در موبایل */
    .product-gallery-col,
    .product-info-col {
        padding: 20px;
    }
    
    .gallery-main-slider {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .product-action-buttons {
        flex-direction: column;
    }
    
    .product-action-btn {
        min-width: 100%;
    }
    
    /* فوتر موبایل */
    .phone-numbers {
        flex-direction: column;
        gap: 20px;
    }
    
    .phone-link {
        font-size: 1.1rem;
    }
    
    .social-icons {
        gap: 20px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .trust-icons {
        gap: 15px;
    }
    
    .trust-icons img {
        height: 40px;
    }
    
    /* استایل گزینه‌های متنی در موبایل */
    .color-option {
        min-width: 100px;
        height: 35px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero { 
        height: 300px; 
    }
    .hero-content {
        padding: 15px;
    }
    .hero-content h2 { 
        font-size: 2rem; 
        margin-bottom: 0.8rem;
    }
    .hero-content p { 
        font-size: 1rem; 
        margin-bottom: 1.5rem;
    }
    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .slider-container {
        padding: 0 35px;
    }
    .logo h1 { font-size: 1.1rem; }
    
    /* فوتر موبایل کوچک */
    .footer-contact {
        gap: 12px;
    }
    
    .phone-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .phone-link {
        font-size: 1rem;
    }
    
    .phone-label {
        font-size: 0.8rem;
    }
    
    /* استایل گزینه‌ها در موبایل کوچک */
    .product-colors-grid {
        justify-content: center;
    }
    
    .color-option {
        min-width: 90px;
        height: 32px;
        font-size: 0.8rem;
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    .hero-content h2 {
        font-size: 1.6rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .icon-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -4px;
        right: -4px;
    }
    
    .color-option {
        min-width: 80px;
        height: 30px;
        font-size: 0.75rem;
        padding: 0 8px;
    }
}

/* --- استایل مودال خدمات ویژه (آموزش و عمده) --- */
.service-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.service-box:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.service-box p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    text-decoration: none;
}

.btn-service:hover {
    background: var(--primary);
    color: white;
}

.course-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.course-btn:hover {
    background: #ffaa00;
    color: black;
}

/* استایل دکمه‌های دوره آموزشی */
.btn-course {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-course:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

/* استایل قیمت دوره */
.course-price {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px dashed #f59e0b;
}

.course-price .original {
    color: #dc2626;
    text-decoration: line-through;
}

.course-price .discounted {
    color: #059669;
    font-size: 1.3rem;
}

/* --- بخش توسعه دهنده (یاسین قلندری) --- */
.developer-credit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    display: flex;
    justify-content: center;
}

.dev-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.dev-name {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #fdbb2d, #ffd166, #fff, #fdbb2d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s infinite linear;
    text-shadow: 0 0 15px rgba(253, 187, 45, 0.4);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    letter-spacing: 1px;
}

.dev-name:hover {
    transform: scale(1.1);
    text-shadow: 0 0 25px rgba(253, 187, 45, 0.8);
}

.dev-partner {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-right: 5px;
}

@media (max-width: 480px) {
    .dev-content {
        flex-direction: column;
        gap: 2px;
        padding: 10px 20px;
        border-radius: 15px;
    }
    
    .service-box {
        padding: 15px;
    }
    
    .btn-course {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* --- استایل‌های اضافی برای بهبود نمایش --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

/* انیمیشن‌های اضافی */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* استایل برای نمایش بهتر قیمت‌ها */
.price-display {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.price-display .toman {
    font-size: 0.8em;
    color: #666;
    margin-right: 3px;
}

/* استایل برای دکمه‌های شبکه‌های اجتماعی */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.telegram:hover { background: #0088cc; }
.social-btn.instagram:hover { background: #E4405F; }
.social-btn.whatsapp:hover { background: #25D366; }
.social-btn.phone:hover { background: #34c759; }

/* استایل برای نمایش برچسب‌ها */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-primary { background: rgba(26, 42, 108, 0.1); color: var(--primary); }

/* استایل برای جداول */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8fafc;
    padding: 12px;
    text-align: right;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.table tr:hover {
    background: #f9fafb;
}

/* استایل برای فرم‌ها */
.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}

/* استایل برای آیکون‌ها */
.icon-sm { font-size: 0.875rem; }
.icon-md { font-size: 1.25rem; }
.icon-lg { font-size: 1.5rem; }
.icon-xl { font-size: 2rem; }

/* استایل برای سایه‌ها */
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* استایل برای border-radius */
.rounded-sm { border-radius: 4px; }
.rounded-md { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

/* استایل برای background */
.bg-primary { background: var(--primary); }
.bg-accent { background: var(--accent); }
.bg-light { background: var(--bg); }
.bg-white { background: white; }
.bg-transparent { background: transparent; }

/* استایل برای text */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: white; }
.text-dark { color: #374151; }
.text-muted { color: #6b7280; }

/* استایل برای فونت‌ها */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* استایل برای spacing */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mr-0 { margin-right: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mx-0 { margin-left: 0; margin-right: 0; }
.my-0 { margin-top: 0; margin-bottom: 0; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pr-0 { padding-right: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.px-0 { padding-left: 0; padding-right: 0; }
.py-0 { padding-top: 0; padding-bottom: 0; }

/* استایل‌های utility اضافی */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline { display: inline !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-screen { width: 100vw; }
.h-screen { height: 100vh; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* استایل‌های جهت‌گیری */
.direction-rtl { direction: rtl; }
.direction-ltr { direction: ltr; }

/* استایل‌های نمایش در دستگاه‌های مختلف */
@media (max-width: 640px) {
    .sm-hidden { display: none !important; }
    .sm-block { display: block !important; }
    .sm-flex { display: flex !important; }
}

@media (min-width: 641px) and (max-width: 768px) {
    .md-hidden { display: none !important; }
    .md-block { display: block !important; }
    .md-flex { display: flex !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .lg-hidden { display: none !important; }
    .lg-block { display: block !important; }
    .lg-flex { display: flex !important; }
}

@media (min-width: 1025px) {
    .xl-hidden { display: none !important; }
    .xl-block { display: block !important; }
    .xl-flex { display: flex !important; }
}