/* ==========================================================
   ========== HOME.CSS - طراحی مدرن 2026 ==========
   ========================================================== */

/* ==========================================================
   ========== ۱. بخش آمار (Stats) – Minimal & Refined ==========
   ========================================================== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 1rem;
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Ambient glow */
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(233, 69, 96, 0.06), transparent 70%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 0.8rem 0.4rem;
    border-radius: 14px;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 1;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.stat-icon {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    display: block;
    margin-bottom: 0.4rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.stat-item:hover .stat-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px currentColor);
}

.stat-icon.primary { color: #E94560; }
.stat-icon.accent  { color: #f0a0a8; }
.stat-icon.gold    { color: #f1c40f; }
.stat-icon.green   { color: #2ecc71; }

.stat-number {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.stat-label {
    color: #9AA6B2;
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    font-weight: 500;
    margin-top: 0.2rem;
}

.stat-sub {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    margin-top: 0.1rem;
    font-weight: 400;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 1rem 0.6rem;
    }
}

/* ==========================================================
   ========== OLED Dark Red Animated Header + Floating Stars ==========
   ========================================================== */
.section-header-center {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    position: relative;
    z-index: 1;
}

/* Red aura behind the title */
.section-header-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(233, 69, 96, 0.12) 0%, transparent 70%);
    opacity: 0;
    animation: headerAuraPulse 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Floating star particles */
.section-header-center::after {
    content: '';
    position: absolute;
    inset: -20px;
    background:
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 85% 80%, rgba(233,69,96,0.8), transparent),
        radial-gradient(1px 1px at 25% 70%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 65% 20%, rgba(233,69,96,0.9), transparent),
        radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 75% 40%, rgba(233,69,96,0.6), transparent),
        radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 92% 10%, rgba(233,69,96,0.8), transparent),
        radial-gradient(1px 1px at 55% 5%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 15% 85%, rgba(233,69,96,0.7), transparent);
    background-size: 200% 200%;
    opacity: 0;
    animation: starsTwinkle 4s ease-in-out infinite, starDrift 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes starsTwinkle {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.5; }
}

@keyframes starDrift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes headerAuraPulse {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.08); }
}

/* Main title */
.section-title {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    position: relative;
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
    transition: text-shadow 0.4s;
}

.section-title:hover {
    text-shadow: 0 0 45px rgba(233, 69, 96, 0.7);
}

/* Animated underline – red to cyan gradient, glowing */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 30%;
    transform: translateX(-50%);
    width: 250px;
    height: 1.5px;
    background: linear-gradient(90deg, #000000, #000000, #E94560);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: underlineSlide 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.8), 0 0 30px rgba(0, 212, 255, 0.4);
}

@keyframes underlineSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Icon – pulsing red glow */
.section-title i {
    color: #E94560;
    font-size: 0.8em;
    filter: drop-shadow(0 0 8px rgba(233,69,96,0.7));
    animation: iconFloat 3s ease-in-out infinite;
    transition: transform 0.3s, filter 0.3s;
}

.section-title:hover i {
    transform: rotate(-5deg) scale(1.15);
    filter: drop-shadow(0 0 18px rgba(233,69,96,1));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Subtitle – subtle fade */
.section-subtitle {
    color: #9AA6B2;
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-top: 0.8rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.section-header-center:hover .section-subtitle {
    opacity: 1;
}

/* ==========================================================
   ========== Categories Grid – AAA+ Gaming Dark Red OLED ==========
   ========================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.3rem;
    position: relative;
    z-index: 1;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 0.9rem;
    background: linear-gradient(145deg, rgba(10,12,18,0.8), rgba(5,7,12,0.9));
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: 24px;
    border: 1px solid rgba(233,69,96,0.1);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    text-decoration: none;
    color: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* Floating stars inside each card */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 85% 70%, rgba(233,69,96,0.8), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 70% 15%, rgba(233,69,96,0.7), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 90% 40%, rgba(233,69,96,0.9), transparent),
        radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 40% 90%, rgba(233,69,96,0.6), transparent);
    background-size: 200% 200%;
    opacity: 0.15;
    animation: cardStarsFloat 10s linear infinite;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s;
}

.category-card:hover::before {
    opacity: 0.4;
}

@keyframes cardStarsFloat {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Animated red border line on hover */
.category-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent 0%, #E94560 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(233,69,96,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), 0 0 30px rgba(233,69,96,0.4);
}

.category-card:hover::after {
    opacity: 1;
}

/* Active state – stronger red glow */
.category-card.active {
    border-color: #E94560;
    background: rgba(233,69,96,0.08);
    box-shadow: 0 0 45px rgba(233,69,96,0.3), inset 0 0 0 1px rgba(233,69,96,0.2);
}

/* Circular image wrapper – deeper red glow */
.cat-image-wrapper {
    width: clamp(75px, 12vw, 100px);
    height: clamp(75px, 12vw, 100px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    transition: border-color 0.3s, box-shadow 0.4s, transform 0.4s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 0 4px rgba(233,69,96,0.05);
    flex-shrink: 0;
    z-index: 1;
}

.category-card:hover .cat-image-wrapper {
    border-color: #E94560;
    transform: scale(1.07);
    box-shadow: 0 0 35px rgba(233,69,96,0.7), 0 0 0 6px rgba(233,69,96,0.2);
}

.category-card.active .cat-image-wrapper {
    border-color: #E94560;
    box-shadow: 0 0 40px rgba(233,69,96,0.8), 0 0 0 8px rgba(233,69,96,0.3);
}

.cat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .cat-image {
    transform: scale(1.1);
}

/* Category name – red accent on hover */
.cat-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.7rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
    transition: color 0.3s, text-shadow 0.3s;
}

.category-card:hover .cat-name {
    color: #ffb3b3;
    text-shadow: 0 0 10px rgba(233,69,96,0.5);
}

.cat-name i {
    font-size: 0.8rem;
    color: #E94560;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.category-card:hover .cat-name i {
    opacity: 1;
    transform: translateX(0);
}

/* Description text */
.cat-desc {
    color: #7a8690;
    font-size: 0.7rem;
    margin-top: 0.2rem;
    z-index: 1;
    transition: color 0.3s;
}

.category-card:hover .cat-desc {
    color: #b0b8c0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .category-card {
        padding: 1.2rem 0.6rem;
        border-radius: 18px;
    }
    .cat-image-wrapper {
        width: 65px;
        height: 65px;
    }
    .cat-name {
        font-size: 0.8rem;
    }
}

/* ----- 3. بخش Tier ----- */
.tier-card-mini {
    position: relative;
    background: var(--glass-bg, rgba(20, 20, 20, 0.55));
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-radius: var(--radius-md, 16px);
    padding: 1.2rem;
    border: 1px solid var(--glass-border, rgba(232, 104, 120, 0.12));
    transition: var(--transition-spring, 0.5s cubic-bezier(0.34, 1.56, 0.64, 1));
    text-align: center;
}

.tier-card-mini:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 104, 120, 0.3);
    box-shadow: var(--shadow-lg, 0 15px 50px rgba(0, 0, 0, 0.5)), var(--neon-glow, 0 0 30px rgba(232, 104, 120, 0.08));
}

.tier-popular-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #000;
    padding: 0.15rem 1rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(241, 196, 15, 0.3);
    white-space: nowrap;
}

.tier-features-mini {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.5rem 0;
    font-size: clamp(0.75rem, 0.85vw, 0.85rem);
    color: var(--text-secondary, #b0a8a8);
}
.tier-features-mini span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tier-features-mini span::before {
    content: '✓';
    color: var(--primary, #e86878);
    font-weight: 700;
}

.tier-price-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--primary, #e86878);
    font-weight: 700;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
}
.tier-price-mini::before {
    content: '$';
    font-size: 0.8em;
    opacity: 0.7;
}

/* ==========================================================
   ========== ۴. بخش محصولات – AAA+ Gaming Dark Red OLED ==========
   ========================================================== */
.items-section {
    margin: clamp(2rem, 4vw, 3.5rem) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.8rem;
}

/* ---- Item Card – Glass Morph + OLED Dark Red Glow ---- */
.item-card {
    background: linear-gradient(145deg, rgba(10,12,18,0.85), rgba(5,7,12,0.95));
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(233,69,96,0.1);
    transition: all 0.4s cubic-bezier(0.2,0.9,0.4,1);
    position: relative;
    box-shadow: 0 12px 32px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* Floating stars inside card */
.item-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 80% 70%, rgba(233,69,96,0.8), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 70% 15%, rgba(233,69,96,0.7), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 90% 40%, rgba(233,69,96,0.9), transparent),
        radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 40% 90%, rgba(233,69,96,0.6), transparent);
    background-size: 200% 200%;
    opacity: 0.15;
    animation: cardStarsFloat 12s linear infinite;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s;
}

.item-card:hover::before {
    opacity: 0.35;
}

@keyframes cardStarsFloat {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Animated red border line on hover */
.item-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent 0%, #E94560 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.item-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 35px rgba(233,69,96,0.35);
    border-color: rgba(233,69,96,0.4);
}

.item-card:hover::after {
    opacity: 1;
}

/* ---- Image Wrapper ---- */
.item-card .item-image-wrapper {
    position: relative;
    height: 220px;
    background: #0a0a0f;
    overflow: hidden;
}

.item-card .item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-card:hover .item-image {
    transform: scale(1.06);
}

/* ---- Badges (قرمز / طلایی / آبی) ---- */
.item-card .category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #E94560;
    color: #fff;
    padding: 0.25rem 0.9rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 15px rgba(233,69,96,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-card .hot-badge {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #000;
    box-shadow: 0 4px 15px rgba(241,196,15,0.4);
}

.item-card .best-seller-badge {
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    color: #f1c40f;
    border: 1px solid rgba(241,196,15,0.3);
}

.item-card .rating-badge {
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    color: #fff;
}

.item-card .new-badge {
    bottom: 12px;
    left: 12px;
    background: #00D4FF;
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,212,255,0.4);
}

/* ---- Card Body ---- */
.item-card .item-body {
    padding: 1rem 1.2rem 1.2rem;
    position: relative;
    z-index: 1;
}

.item-card .item-body h3 {
    color: #fff;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    font-weight: 700;
    transition: color 0.3s, text-shadow 0.3s;
}

.item-card:hover .item-body h3 {
    color: #ffcccc;
    text-shadow: 0 0 10px rgba(233,69,96,0.4);
}

.item-card .item-body .item-description {
    color: #8a929a;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Footer ---- */
.item-card .item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.item-card .item-footer .price {
    color: #E94560;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-card .item-footer .seller {
    color: #9AA6B2;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Buy Button (Red Gradient + Glow) ---- */
.btn-buy {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #E94560, #b3304b);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(233,69,96,0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #f0536e, #c03a50);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233,69,96,0.6), 0 0 25px rgba(233,69,96,0.4);
}

.btn-buy:active {
    transform: scale(0.96);
}

.btn-outline-sm {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    padding: 0.4rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-outline-sm:hover {
    border-color: #E94560;
    color: #E94560;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: #555;
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    color: rgba(255,255,255,0.03);
}

/* Responsive touches */
@media (max-width: 600px) {
    .items-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .item-card .item-image-wrapper {
        height: 180px;
    }
}

/* ==========================================================
   ========== ۵. گالری – AAA+ Gaming Dark Red OLED ==========
   ========================================================== */
.gallery-section {
    margin: clamp(2rem, 4vw, 3.5rem) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(10,12,18,0.8), rgba(5,7,12,0.9));
    border: 1px solid rgba(233,69,96,0.12);
    transition: all 0.4s cubic-bezier(0.2,0.9,0.4,1);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* ستاره‌های شناور درون آیتم */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 80% 70%, rgba(233,69,96,0.7), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 70% 15%, rgba(233,69,96,0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 90% 40%, rgba(233,69,96,0.7), transparent);
    background-size: 200% 200%;
    opacity: 0.15;
    animation: cardStarsFloat 12s linear infinite;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s;
}
.gallery-item:hover::before {
    opacity: 0.35;
}

/* خط قرمز متحرک دور کادر */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent 0%, #E94560 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}
.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), 0 0 30px rgba(233,69,96,0.3);
    border-color: rgba(233,69,96,0.4);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Overlay (در صورت وجود در HTML) */
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.2rem;
    z-index: 2;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(233,69,96,0.9);
    padding: 0.3rem 1.1rem;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(233,69,96,0.5);
}

.gallery-item .overlay small {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

/* Responsive */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* ==========================================================
   ========== ۶. بخش نظرات (Testimonials) – AAA+ OLED Dark Red ==========
   ========================================================== */
.testimonials-section {
    margin: clamp(2rem, 4vw, 3.5rem) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.3rem;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(10,12,18,0.85), rgba(5,7,12,0.95));
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(233,69,96,0.1);
    transition: all 0.4s cubic-bezier(0.2,0.9,0.4,1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* Stars inside card */
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 80% 70%, rgba(233,69,96,0.8), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 70% 15%, rgba(233,69,96,0.7), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 90% 40%, rgba(233,69,96,0.9), transparent);
    background-size: 200% 200%;
    opacity: 0.15;
    animation: cardStarsFloat 12s linear infinite;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s;
}

.testimonial-card:hover::before {
    opacity: 0.35;
}

/* Red border glow on hover */
.testimonial-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent 0%, #E94560 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(233,69,96,0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), 0 0 30px rgba(233,69,96,0.3);
}

.testimonial-card:hover::after {
    opacity: 1;
}

/* User info row */
.testimonial-card .user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-card .user-info .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E94560;
    box-shadow: 0 0 20px rgba(233,69,96,0.4);
}

.testimonial-card .user-info .user-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-card .user-info .stars {
    color: #f1c40f;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    text-shadow: 0 0 6px rgba(241,196,15,0.5);
}

.user-tier {
    font-size: 0.65rem;
    color: #9AA6B2;
    margin-top: -0.1rem;
}

.testimonial-card .testimonial-text {
    color: #b0b8c0;
    font-size: 0.9rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.testimonial-card:hover .testimonial-text {
    color: #d0d5db;
}


/* ==========================================================
   ========== ۷. بخش خبرنامه (Newsletter) – AAA+ OLED Dark Red ==========
   ========================================================== */
.newsletter-section {
    margin: clamp(2rem, 4vw, 3.5rem) 0;
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(145deg, rgba(12,6,8,0.9), rgba(5,5,10,0.95));
    border-radius: 28px;
    border: 1px solid rgba(233,69,96,0.12);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

/* Red ambient glow */
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(233,69,96,0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: newsletterGlow 6s ease-in-out infinite alternate;
}

@keyframes newsletterGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Floating stars in background */
.newsletter-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 80% 40%, rgba(233,69,96,0.7), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 70% 80%, rgba(233,69,96,0.9), transparent),
        radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 90% 10%, rgba(233,69,96,0.8), transparent);
    background-size: 200% 200%;
    opacity: 0.2;
    animation: cardStarsFloat 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #E94560;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 15px rgba(233,69,96,0.7));
    animation: iconFloat 3s ease-in-out infinite;
}

.newsletter-section h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 0 20px rgba(233,69,96,0.3);
}

.newsletter-section h3 i {
    color: #E94560;
}

.newsletter-section p {
    color: #9AA6B2;
    max-width: 500px;
    margin: 0 auto 1.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.85rem 1.3rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.newsletter-form input::placeholder {
    color: #6a7078;
}

.newsletter-form input:focus {
    border-color: #E94560;
    box-shadow: 0 0 25px rgba(233,69,96,0.3);
    background: rgba(255,255,255,0.06);
}

.newsletter-form button {
    background: linear-gradient(135deg, #E94560, #b3304b);
    color: #fff;
    border: none;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 6px 20px rgba(233,69,96,0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #f0536e, #c03a50);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(233,69,96,0.6), 0 0 20px rgba(233,69,96,0.4);
}

.newsletter-form button:active {
    transform: scale(0.96);
}

.newsletter-note {
    font-size: 0.7rem;
    color: #9AA6B2;
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: center;
}

/* ==========================================================
   ========== ۸. بخش ویژه (Featured) – AAA+ OLED Dark Red ==========
   ========================================================== */
.featured-section {
    position: relative;
    margin: clamp(2rem, 4vw, 3.5rem) 0;
    border-radius: 32px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0a0608 0%, #05050a 100%);
    border: 1px solid rgba(233, 69, 96, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(233,69,96,0.1);
    transition: all 0.4s ease;
}

.featured-section:hover {
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 30px 60px rgba(233,69,96,0.2), 0 0 40px rgba(233,69,96,0.3);
}

/* Background image layer */
.featured-section .featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.12;
    transition: opacity 0.5s ease, filter 0.5s;
    filter: blur(1px) brightness(0.7);
}

.featured-section:hover .featured-bg {
    opacity: 0.25;
    filter: blur(0px) brightness(1);
}

/* Red aura glow */
.featured-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(233,69,96,0.15), transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(233,69,96,0.05), transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: featuredAura 5s ease-in-out infinite alternate;
}

@keyframes featuredAura {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Star particles */
.featured-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 85% 70%, rgba(233,69,96,0.8), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 70% 15%, rgba(233,69,96,0.9), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 90% 40%, rgba(233,69,96,0.7), transparent),
        radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 40% 90%, rgba(233,69,96,0.8), transparent);
    background-size: 200% 200%;
    opacity: 0.2;
    animation: cardStarsFloat 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Content container */
.featured-section .featured-content {
    text-align: center;
    z-index: 2;
    max-width: 650px;
    padding: 2rem;
    position: relative;
}

/* Tag badge */
.featured-tag {
    display: inline-block;
    background: rgba(233, 69, 96, 0.2);
    border: 1px solid #E94560;
    color: #ff8a9a;
    padding: 0.3rem 1.3rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 20px rgba(233,69,96,0.3);
}

/* Title */
.featured-section .featured-content h2 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 30px rgba(233,69,96,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.featured-section .featured-content h2 i {
    color: #f1c40f;
    filter: drop-shadow(0 0 10px rgba(241,196,15,0.8));
}

/* Description */
.featured-section .featured-content p {
    color: #cbd5e1;
    margin: 0.8rem auto 1.5rem;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    font-weight: 400;
}

/* Feature list */
.featured-features {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.8rem 0 1.8rem;
}

.featured-features span {
    color: #e2e8f0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-features span i {
    color: #2ecc71;
    filter: drop-shadow(0 0 5px rgba(46,204,113,0.6));
}

/* CTA button */
.btn-featured {
    background: linear-gradient(135deg, #E94560, #b3304b);
    color: #fff;
    padding: 0.9rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 25px rgba(233,69,96,0.5), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-featured:hover {
    background: linear-gradient(135deg, #f0536e, #c03a50);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px rgba(233,69,96,0.7), 0 0 30px rgba(233,69,96,0.5);
    border-color: rgba(255,255,255,0.4);
}

.btn-featured:active {
    transform: scale(0.95);
}

/* ==========================================================
   ========== ۹. بخش برندها (Brands) – AAA+ OLED Dark Red ==========
   ========================================================== */
.brands-section {
    margin: clamp(2rem, 4vw, 3.5rem) 0;
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(145deg, rgba(10,12,18,0.8), rgba(5,7,12,0.9));
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-radius: 28px;
    border: 1px solid rgba(233,69,96,0.12);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 80% 70%, rgba(233,69,96,0.7), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 70% 15%, rgba(233,69,96,0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 90% 40%, rgba(233,69,96,0.7), transparent);
    background-size: 200% 200%;
    opacity: 0.15;
    animation: cardStarsFloat 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.brands-section h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(233,69,96,0.3);
}

.brands-section h3 i {
    color: #E94560;
    filter: drop-shadow(0 0 8px rgba(233,69,96,0.6));
}

.brands-sub {
    text-align: center;
    color: #9AA6B2;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #7a8690;
    font-weight: 700;
    opacity: 0.5;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    cursor: default;
    filter: grayscale(0.6);
}

.brand-item:hover {
    opacity: 1;
    color: #E94560;
    transform: translateY(-6px) scale(1.08);
    filter: grayscale(0);
    text-shadow: 0 0 15px rgba(233,69,96,0.6);
}

.brand-item i {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #5a6570;
    transition: all 0.3s;
    filter: drop-shadow(0 0 5px transparent);
}

.brand-item:hover i {
    color: #E94560;
    filter: drop-shadow(0 0 12px rgba(233,69,96,0.8));
}

/* ==========================================================
   ========== ۱۰. بخش بنر – AAA+ OLED Dark Red Glow ==========
   ========================================================== */
.banner-section {
    margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(145deg, #0a0c12, #05070b);
    border: 1px solid rgba(233, 69, 96, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
}

/* Floating stars */
.banner-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 80% 40%, rgba(233,69,96,0.8), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 70% 80%, rgba(233,69,96,0.9), transparent),
        radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 90% 10%, rgba(233,69,96,0.8), transparent);
    background-size: 200% 200%;
    opacity: 0.2;
    animation: starDrift 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Red border glow on hover */
.banner-container::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent 0%, #E94560 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 3;
}

.banner-container:hover {
    border-color: rgba(233, 69, 96, 0.4);
    box-shadow: 0 25px 55px rgba(233,69,96,0.25), 0 0 40px rgba(233,69,96,0.15), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.banner-container:hover::after {
    opacity: 1;
}

/* Image */
.banner-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1717 / 280;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 0;
}

.banner-container:hover img {
    transform: scale(1.01);
}

@keyframes starDrift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* ==========================================================
   ========== واکنش‌گرایی (Responsive) ==========
   ========================================================== */

@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }
    .stat-number {
        font-size: 1.4rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .cat-image-wrapper {
        width: 70px;
        height: 70px;
    }
    .cat-name {
        font-size: 0.8rem;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    .item-card .item-image-wrapper {
        height: 180px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-section .featured-content h2 {
        font-size: 1.5rem;
    }
    .featured-section {
        padding: 1.5rem 1rem;
        min-height: 200px;
    }
    .featured-features {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    .brands-grid {
        gap: 1.2rem;
    }
    .brand-item {
        font-size: 0.85rem;
    }
    .brand-item i {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.4rem;
    }
    .section-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    .stat-icon {
        font-size: 1.6rem;
    }
    .stat-number {
        font-size: 1.1rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .cat-image-wrapper {
        width: 56px;
        height: 56px;
    }
    .cat-name {
        font-size: 0.7rem;
    }
    .cat-desc {
        font-size: 0.6rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .item-card .item-image-wrapper {
        height: 160px;
    }
    .item-card .item-body {
        padding: 0.8rem;
    }
    .item-card .item-body h3 {
        font-size: 0.95rem;
    }
    .item-card .item-footer .price {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-section {
        padding: 1.5rem 1rem;
    }
    .newsletter-form input {
        min-width: 100%;
    }
    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }

    .brands-grid {
        gap: 0.8rem;
    }
    .brand-item {
        font-size: 0.7rem;
    }
    .brand-item i {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
    .section-subtitle {
        font-size: 0.75rem;
    }

    .featured-section .featured-content h2 {
        font-size: 1.2rem;
    }
    .featured-section .featured-content p {
        font-size: 0.85rem;
    }
    .btn-featured {
        padding: 0.6rem 1.8rem;
        font-size: 0.9rem;
    }

    .banner-container img {
        aspect-ratio: 16 / 10;
    }
}

/* ==========================================================
   ========== REDUCED MOTION (دسترسی‌پذیری) ==========
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    /* توقف تمام انیمیشن‌های تکراری */
    .stats-section::before,
    .stats-section::after,
    .tier-showcase::before,
    .tier-showcase::after,
    .section-header-center::before,
    .section-header-center::after,
    .category-card::before,
    .category-card::after,
    .item-card::before,
    .item-card::after,
    .gallery-item::before,
    .gallery-item::after,
    .testimonial-card::before,
    .testimonial-card::after,
    .newsletter-section::before,
    .newsletter-section::after,
    .featured-section::before,
    .featured-section::after,
    .brands-section::before,
    .banner-container::before,
    .banner-container::after,
    .promo-banner::before,
    .promo-banner::after,
    .tier-popular-tag,
    .newsletter-icon,
    .section-title i {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* حذف transition های متحرک در hover */
    .stat-item,
    .category-card,
    .item-card,
    .gallery-item,
    .testimonial-card,
    .brand-item,
    .btn-buy,
    .btn-featured,
    .btn-tier-mini,
    .btn-outline-sm,
    .promo-glass-btn,
    .tier-card-mini,
    .category-card .cat-image,
    .item-card .item-image,
    .gallery-item img,
    .promo-banner {
        transition-duration: 0.01ms !important;
    }

    /* جلوگیری از جابجایی hover */
    .stat-item:hover,
    .category-card:hover,
    .item-card:hover,
    .gallery-item:hover,
    .testimonial-card:hover,
    .brand-item:hover,
    .tier-card-mini:hover,
    .promo-banner:hover {
        transform: none !important;
    }

    /* حذف بزرگنمایی تصاویر */
    .gallery-item:hover img,
    .item-card:hover .item-image,
    .category-card:hover .cat-image,
    .promo-banner:hover img {
        transform: none !important;
    }

    /* توقف چرخش border */
    .tier-card-mini::after,
    .promo-banner::before,
    .category-card::after,
    .item-card::after {
        animation: none !important;
        opacity: 0 !important;
    }
}