/* ===========================
   1. تعریف فونت‌ها (از پوشه Font)
   =========================== */
@font-face {
    font-family: 'IRANSansX';
    src: url('Font/IRANSansX-Light.woff') format('woff');
    font-weight: 300;
}
@font-face {
    font-family: 'IRANSansX';
    src: url('Font/IRANSansX-Regular.woff') format('woff');
    font-weight: 400;
}
@font-face {
    font-family: 'IRANSansX';
    src: url('Font/IRANSansX-Medium.woff') format('woff');
    font-weight: 500;
}
@font-face {
    font-family: 'IRANSansX';
    src: url('Font/IRANSansX-Bold.woff') format('woff');
    font-weight: 700;
}
@font-face {
    font-family: 'IRANSansX';
    src: url('Font/IRANSansX-Black.woff') format('woff');
    font-weight: 900;
}

/* ===========================
   2. تنظیمات پایه
   =========================== */
:root {
    --primary: #0ea5e9;       /* آبی روشن اصلی */
    --primary-dark: #0284c7;  /* آبی تیره برای هاور */
    --bg-glass: rgba(255, 255, 255, 0.95);
    --text-main: #0f172a;
    --text-light: #64748b;
    --shadow: 0 8px 30px -5px rgba(14, 165, 233, 0.15); /* سایه آبی ملایم */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IRANSansX', sans-serif;
    text-decoration: none;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f8fafc;
    color: var(--text-main);
}

/* ===========================
   3. نوبار دسکتاپ
   =========================== */
.desktop-header {
    position: fixed;
    top: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
    transition: top 0.3s;
}

.nav-container {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 1100px;
    height: 75px; /* کمی ارتفاع بیشتر برای لوگوی بزرگتر */
    border-radius: 50px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 800; /* Extra Bold */
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

/* استایل آیکون لوگو */
.logo svg {
    stroke-width: 2px;
    filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.3));
}

.desktop-menu {
    display: flex;
    gap: 35px;
}

.desktop-menu a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.desktop-menu a:hover, .desktop-menu a.active {
    color: var(--primary);
}

.desktop-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    color: var(--text-main);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: 0.3s;
}

.btn-icon:hover {
    background-color: #f1f5f9;
    color: var(--primary);
    transform: translateY(-2px);
}

.badge-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.btn-login {
    background-color: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-bottom-nav { display: none; }

/* ===========================
   4. نوبار موبایل (App Bar)
   =========================== */
@media (max-width: 900px) {
    .desktop-header { display: none; }

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: #ffffff;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        z-index: 1000;
        padding: 0 15px;
        padding-bottom: env(safe-area-inset-bottom);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-light);
        font-size: 0.7rem;
        gap: 5px;
        width: 19%;
        transition: 0.3s;
    }

    .nav-item.active {
        color: var(--primary);
        font-weight: 700;
    }
    
    .nav-item.active svg {
        transform: translateY(-3px);
        stroke: var(--primary);
        fill: rgba(14, 165, 233, 0.1); /* پر کردن جزئی آیکون */
    }

    /* استایل دکمه سبد خرید (وسط) */
    .cart-item-mobile {
        position: relative;
    }

    .floating-circle {
        width: 55px;
        height: 55px;
        background: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -35px;
        box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
        border: 4px solid #f8fafc;
        transition: 0.3s;
    }

    .cart-item-mobile span {
        margin-top: 6px;
    }

    .mobile-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        background: #ef4444;
        color: white;
        font-size: 0.7rem;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
    }
    
    .cart-item-mobile:active .floating-circle {
        transform: scale(0.9);
    }
}


/* ===========================
   استایل جستجوی کشویی (Drop-down)
   =========================== */
.search-wrapper {
    position: relative; /* برای اینکه باکس زیر دکمه قرار بگیرد */
}

.search-dropdown {
    position: absolute;
    top: 140%; /* فاصله از دکمه */
    left: -10px; /* تنظیم دقیق موقعیت */
    width: 260px; /* عرض باکس */
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* سایه نرم */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); /* حالت اولیه (کمی بالا) */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); /* انیمیشن نرم */
    z-index: 1001;
    border: 1px solid #f1f5f9;
}

/* فلش کوچک بالای باکس (مثل چت) */
.search-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px; /* موقعیت فلش */
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #f1f5f9;
    border-left: 1px solid #f1f5f9;
}

/* حالت فعال (باز شده) */
.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

/* تغییر رنگ بوردر وقتی فوکوس میشه */
.search-form:focus-within {
    border-color: var(--primary);
    background: white;
}

.search-input-small {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px 5px;
    font-size: 0.85rem;
    color: var(--text-main);
    outline: none;
}

.search-submit {
    background: var(--primary);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* ===========================
   بخش هیرو (طراحی سایت و نرم‌افزار)
   =========================== */
.hero-section {
    position: relative;
    padding-top: 145px;
    padding-bottom: 60px;
    overflow-x: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

/* --- محتوای متنی --- */
.hero-content {
    flex: 1;
    max-width: 580px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f9ff;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid #bae6fd;
    box-shadow: 0 4px 10px rgba(186, 230, 253, 0.3);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 25px;
}

.highlight {
    color: var(--primary);
    position: relative;
    white-space: nowrap;
}

/* خط هایلایتر زیر متن */
.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -5px;
    width: 105%;
    height: 15px;
    background-color: rgba(14, 165, 233, 0.1);
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 4px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 40px;
    max-width: 90%;
}

/* دکمه‌ها */
.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(14, 165, 233, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
}

.trust-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.stat-box strong {
    display: block;
    font-size: 1.6rem;
    color: var(--text-main);
    font-weight: 900;
}

.stat-box span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.divider {
    width: 1px;
    height: 45px;
    background-color: #cbd5e1;
}

/* --- بخش بصری (گرافیک) --- */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.visual-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.computer-graphic {
    width: 100%;
    max-width: 500px;
    z-index: 2;
    filter: drop-shadow(0 25px 50px rgba(14, 165, 233, 0.2));
    animation: float-main 5s ease-in-out infinite;
}

/* کارت‌های شناور */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    min-width: 190px;
    border: 1px solid white;
}

.card-top {
    top: 60px;
    right: 10px;
    animation: float-card 3s ease-in-out infinite;
}

.card-bottom {
    bottom: 80px;
    left: 0;
    animation: float-card 4s ease-in-out infinite reverse;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* رنگ آیکون‌ها */
.bg-telegram {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    box-shadow: 0 5px 15px rgba(42, 171, 238, 0.3);
}

.bg-wp {
    background: linear-gradient(135deg, #21759b, #135e96);
    box-shadow: 0 5px 15px rgba(33, 117, 155, 0.3);
}

.card-title {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.card-sub {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* انیمیشن‌ها */
@keyframes float-main {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- ریسپانسیو (موبایل) --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 10px;
        gap: 30px;
        margin-top: -30%;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }

    .hero-btns {
        justify-content: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .trust-stats {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        height: 350px;
        width: 100%;
    }
    
    .computer-graphic {
        max-width: 320px;
    }
    
    .float-card {
        transform: scale(0.85);
    }
    
    .card-top { right: 0; }
    .card-bottom { left: 0; }
}


/* ===========================
   بخش پکیج‌ها: اسلایدر با دکمه
   =========================== */
.packages-section {
    padding: 60px 0;
    background-color: #f8fafc;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.section-badge {
    background: #e0f2fe;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

/* رپر اصلی که دکمه‌ها را نگه می‌دارد */
.slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px; /* فضای دکمه‌ها */
}

/* مسیر حرکت اسلایدر */
.packages-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth; /* حرکت نرم */
    padding: 20px 10px 40px 10px; /* فضای پایین برای سایه */
    width: 100%;
    
    /* مخفی کردن اسکرول بار (چون دکمه داریم) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    
    /* اسنپ شدن روی هر کارت */
    scroll-snap-type: x mandatory;
}

/* مخفی کردن اسکرول بار در کروم */
.packages-slider::-webkit-scrollbar {
    display: none;
}

/* دکمه‌های اسلایدر */
.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    z-index: 10;
    flex-shrink: 0; /* جلوگیری از کوچک شدن دکمه */
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* تنظیم موقعیت دکمه‌ها */
.prev-btn { margin-left: 10px; }
.next-btn { margin-right: 10px; }

/* استایل کارت‌ها (همان قبلی) */
.package-card.compact {
    min-width: 260px; /* عرض ثابت کارت */
    max-width: 260px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    
    /* کارت دقیقا وسط بایستد */
    scroll-snap-align: center;
}

.package-card.compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(14, 165, 233, 0.2);
    border-color: #bae6fd;
}

/* سایر استایل‌های داخلی کارت (کپی از قبل) */
.popular-border { border: 2px solid var(--primary) !important; background: #f0f9ff; }
.popular-badge { position: absolute; top: 10px; right: 10px; background: var(--primary); color: white; font-size: 0.65rem; padding: 2px 8px; border-radius: 6px; }
.card-icon { width: 45px; height: 45px; background: #f8fafc; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; color: var(--text-main); }
.card-icon.blue { background: white; color: var(--primary); }
.pkg-title { font-size: 1rem; font-weight: 800; margin-bottom: 10px; color: var(--text-main); }
.pkg-price-small { font-size: 1.1rem; font-weight: 900; color: var(--primary); margin-bottom: 15px; background: white; border: 1px solid #e2e8f0; width: 100%; padding: 6px 0; border-radius: 10px; }
.pkg-price-small small { font-size: 0.7rem; color: var(--text-light); }
.pkg-features-small { margin-bottom: 20px; width: 100%; text-align: right; padding: 0 5px; list-style: none; }
.pkg-features-small li { font-size: 0.75rem; color: var(--text-light); margin-bottom: 6px; }
.pkg-features-small li.off { color: #cbd5e1; text-decoration: line-through; }
.btn-small { width: 100%; padding: 8px 0; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.85rem; color: var(--text-main); font-weight: 700; transition: 0.2s; margin-top: auto; background: white; }
.btn-small:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn-small.filled { background: var(--primary); color: white; border: none; }
.btn-small.filled:hover { background: var(--primary-dark); }

/* --- ریسپانسیو --- */
@media (max-width: 768px) {
    /* در موبایل دکمه‌ها را مخفی می‌کنیم تا کاربر با انگشت بکشد (راحت‌تر است) */
    .slider-btn { display: none; }
    .slider-wrapper { padding: 0; }
    .packages-slider { padding: 20px; } /* فضای کناری برای دیده شدن اولین کارت */
    .package-card.compact { min-width: 240px; }
}




/* ===========================
   بخش فروشگاه اسلایدری (Infinite Slider)
   =========================== */
.shop-slider-section {
    padding: 80px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.shop-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding: 0 20px;
}

.shop-badge {
    background: #fee2e2;
    color: #ef4444;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
}

.pulse-red { animation: pulseRed 2s infinite; }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* دکمه‌های ناوبری */
.shop-controls { display: flex; gap: 10px; }
.shop-nav {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-main);
}
.shop-nav:hover { background: var(--text-main); color: white; border-color: var(--text-main); }

/* --- ترک اسلایدر (مهم) --- */
.shop-track-container {
    width: 100%;
    /* پدینگ برای سایه کارت‌ها */
    padding: 20px 20px 50px 20px; 
    overflow: hidden;
}

.shop-track {
    display: flex; /* چیدمان خطی */
    gap: 30px; /* فاصله بین کارت‌ها */
    overflow-x: auto; /* اسکرول افقی */
    scroll-behavior: smooth;
    
    /* جلوگیری از شکستن خط (زیر هم نیامدن) */
    flex-wrap: nowrap; 
    
    /* مخفی کردن اسکرول بار */
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}
.shop-track::-webkit-scrollbar { display: none; }

/* --- کارت محصول اسلایدری --- */
.shop-card-slide {
    /* عرض ثابت و قطعی تا کوچک نشود */
    min-width: 280px;
    max-width: 280px;
    
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.shop-card-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(14, 165, 233, 0.2);
    border-color: #bae6fd;
}

/* بخش بالای کارت (عکس) */
.card-upper {
    height: 180px;
    background: #f8fafc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-box svg {
    width: 90px; height: 90px;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
}

.shop-card-slide:hover .img-box svg {
    transform: scale(1.2) rotate(-5deg);
}

.off-badge, .new-badge {
    position: absolute; top: 15px; right: 15px;
    padding: 4px 10px; border-radius: 8px;
    font-size: 0.75rem; font-weight: 700; color: white;
}
.off-badge { background: #ef4444; }
.new-badge { background: #10b981; }

/* بخش پایین کارت */
.card-lower {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prod-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate { font-size: 0.8rem; color: #f59e0b; }
.price { font-size: 1.1rem; font-weight: 900; color: var(--text-main); }
.price.text-blue { font-size: 0.9rem; color: var(--primary); }

/* دکمه خرید */
.btn-buy {
    width: 100%;
    padding: 12px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-buy:hover {
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.btn-buy.outline {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}
.btn-buy.outline:hover {
    background: var(--text-main);
    color: white;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .shop-header-flex { flex-direction: column; align-items: flex-start; gap: 15px; }
    .shop-controls { display: none; /* در موبایل با دست اسکرول میکنن */ }
    
    /* در موبایل کارت‌ها همون سایز می‌مونن و فقط افقی اسکرول میشن */
    .shop-track { padding-right: 20px; /* فضا برای اولین کارت */ }
}



/* ===========================
   بخش نظرات (نسخه Premium)
   =========================== */
.testimonials-section {
    padding: 100px 0;
    position: relative;
    background-color: #f8fafc;
    overflow: hidden;
}

/* توپ‌های رنگی پس‌زمینه (Blobs) */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.3);
    animation: moveBlob 10s infinite alternate;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(56, 189, 248, 0.3);
    animation: moveBlob 8s infinite alternate-reverse;
}

@keyframes moveBlob {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.relative-z {
    position: relative;
    z-index: 1; /* محتوا روی توپ‌ها بیاید */
}

/* هدر سکشن */
.text-gradient {
    background: linear-gradient(to right, #0ea5e9, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pulse-badge {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    animation: pulse-blue 2s infinite;
}

/* اسلایدر نظرات */
.reviews-slider-container {
    margin-bottom: 80px;
    perspective: 1000px; /* برای افکت 3D */
}

.reviews-track {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* کارت شیشه‌ای */
.review-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px); /* ماتی شیشه */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* افکت هاور خفن */
.review-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 30px 60px -15px rgba(14, 165, 233, 0.25);
    border-color: #bae6fd;
    background: rgba(255, 255, 255, 0.9);
}

/* کارت وسطی کمی خاص‌تر */
.highlight-card {
    border: 2px solid rgba(14, 165, 233, 0.3);
    transform: scale(1.05);
    z-index: 2;
}

.highlight-card:hover {
    transform: scale(1.05) translateY(-15px);
}

.quote-mark {
    font-size: 5rem;
    color: #e0f2fe;
    font-family: serif;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    opacity: 0.5;
}

.review-text {
    font-size: 1rem;
    color: #334155;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

/* فوتر کارت */
.review-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* گرادینت‌های آواتار */
.gradient-1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gradient-2 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.gradient-3 { background: linear-gradient(135deg, #10b981, #059669); }

.user-details h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.user-details span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.stars {
    margin-right: auto;
    color: #f59e0b;
    letter-spacing: 2px;
}

/* --- انیمیشن برندها (Marquee) --- */
.brands-marquee {
    text-align: center;
    margin-top: 50px;
}

.brands-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.marquee-content {
    display: flex;
    gap: 60px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* ماسک برای محو شدن لبه‌ها */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 10px 0;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 900;
    color: #cbd5e1; /* رنگ طوسی روشن */
    font-family: sans-serif; /* فونت انگلیسی برای لوگوها */
    cursor: default;
    transition: 0.3s;
    /* انیمیشن حرکت */
    animation: scrollText 20s linear infinite;
    display: inline-block;
}

.brand-item:hover {
    color: var(--primary); /* رنگی شدن با هاور */
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.4); /* درخشش */
}

/* انیمیشن حرکت افقی */
@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* حرکت به سمت چپ */
}

/* توقف انیمیشن وقتی موس روی آن است */
.marquee-content:hover .brand-item {
    animation-play-state: paused;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .highlight-card { transform: scale(1); }
    .reviews-track { flex-direction: column; align-items: center; }
    .review-card { width: 100%; }
}



/* ===========================
   بخش وبلاگ اسلایدر (Modern Slider)
   =========================== */
.blog-slider-section {
    padding: 80px 0;
    background-color: #f8fafc;
    overflow: hidden;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding: 0 20px;
}

.highlight-text {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(14, 165, 233, 0.2);
    z-index: -1;
    transform: rotate(-2deg);
}

/* دکمه‌های کنترل */
.slider-controls {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* کانتینر اسلایدر */
.blog-slider-wrapper {
    width: 100%;
    overflow: hidden; /* مخفی کردن اسکرول بار */
    padding: 20px 20px 50px 20px; /* فضای پایین برای سایه کارت‌ها */
}

.blog-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* فایرفاکس */
    -ms-overflow-style: none; /* IE */
    padding-bottom: 20px;
}

.blog-track::-webkit-scrollbar {
    display: none; /* کروم */
}

/* کارت مقاله مدرن */
.blog-card-modern {
    min-width: 320px;
    max-width: 320px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* افکت هاور خفن */
.blog-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.15);
    border-color: #bae6fd;
}

/* تصویر */
.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card-modern:hover .card-image svg {
    transform: scale(1.1); /* زوم تصویر */
}

/* تگ دسته بندی */
.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(14, 165, 233, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.category-tag.purple { background: rgba(139, 92, 246, 0.9); }
.category-tag.green { background: rgba(16, 185, 129, 0.9); }
.category-tag.orange { background: rgba(249, 115, 22, 0.9); }

/* بدنه کارت */
.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.card-title {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 1.1rem;
}

.card-title a {
    color: var(--text-main);
    font-weight: 800;
    transition: 0.3s;
}

.card-title a:hover {
    color: var(--primary);
}

/* لینک ادامه مطلب */
.read-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.read-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .blog-card-modern {
        min-width: 280px;
    }
}


/* ===========================
   فوتر (Footer) - نسخه نهایی و فیکس
   =========================== */
.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 50px;
    position: relative;
    font-size: 0.9rem;
    overflow: hidden;
}

.footer-top-border {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #a855f7, #ec4899);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

.container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

/* شبکه اصلی فوتر در دسکتاپ */
.footer-grid {
    display: grid;
    /* ستون برند | رپر لینک‌ها (که خودش دوتاست) | ستون نمادها */
    grid-template-columns: 1.2fr 2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

/* رپر لینک‌ها در دسکتاپ هم کنار هم هستند */
.footer-links-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
    gap: 30px;
}

/* --- استایل برند --- */
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.3rem; font-weight: 800; color: white;
    margin-bottom: 15px;
}
.footer-desc {
    line-height: 1.6; margin-bottom: 20px; font-size: 0.85rem;
}
.social-links { display: flex; gap: 10px; }
.social-btn {
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: white; transition: 0.3s;
}
.social-btn:hover { background: var(--primary); transform: translateY(-3px); }

/* --- استایل لینک‌ها --- */
.footer-title {
    color: white; font-weight: 700; margin-bottom: 15px;
    font-size: 1rem; position: relative; padding-bottom: 8px;
    display: inline-block;
}
.footer-title::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 30px; height: 2px; background: var(--primary);
}

.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; transition: 0.2s; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); padding-right: 5px; }

/* --- استایل نمادها --- */
.trust-badges { display: flex; gap: 10px; margin-bottom: 20px; }
.trust-item {
    background: white; width: 75px; height: 75px;
    border-radius: 12px; padding: 8px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.9; transition: 0.3s;
}
.trust-item:hover { opacity: 1; transform: scale(1.05); }
.trust-item img { width: 100%; height: 100%; object-fit: contain; }

.contact-info-row {
    display: flex; flex-direction: column; gap: 10px;
    font-size: 0.9rem; color: white;
}
.contact-info-row i { color: var(--primary); margin-left: 5px; }

.footer-bottom {
    background: #020617; padding: 15px; text-align: center;
    font-size: 0.8rem; color: #64748b; border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===========================
   موبایل (جادوی کنار هم بودن)
   =========================== */
@media (max-width: 768px) {
    .main-footer { padding-top: 30px; text-align: center; }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* ۱. برند: وسط چین */
    .footer-logo { justify-content: center; }
    .social-links { justify-content: center; }
    .footer-desc { font-size: 0.8rem; margin-bottom: 15px; }

    /* ۲. لینک‌ها: اینجا کنار هم می‌شینن */
    .footer-links-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
        gap: 15px; /* فاصله بین دو ستون */
        border-top: 1px solid rgba(255,255,255,0.05);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 20px 0;
    }

    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    .footer-title::after {
        right: 50%; transform: translateX(50%); /* خط وسط چین */
    }

    /* لینک‌ها کمی ریزتر برای موبایل */
    .footer-links a { font-size: 0.85rem; }
    .footer-links a:hover { padding-right: 0; color: white; }

    /* ۳. نمادها و تماس */
    .trust-badges { justify-content: center; }
    .trust-item { width: 65px; height: 65px; }
    
    .contact-info-row {
        flex-direction: row; /* شماره و آدرس کنار هم اگر جا بشه */
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.85rem;
    }
}






/* کانتینر دکمه‌ها */
.shop-controls {
    display: flex;
    align-items: center;
    gap: 12px; /* فاصله بین دو دکمه */
}

/* استایل کلی دکمه‌ها */
.shop-nav {
    width: 45px;
    height: 45px;
    border-radius: 50%; /* کاملا گرد */
    background-color: white;
    border: 1px solid #e2e8f0; /* کادر طوسی کمرنگ */
    color: #1e293b; /* رنگ فلش */
    
    /* وسط‌چین کردن آیکون SVG داخل دکمه */
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    transition: all 0.3s ease; /* انیمیشن نرم */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* تنظیم سایز آیکون SVG */
.shop-nav svg {
    width: 22px;
    height: 22px;
}

/* استایل هاور (وقتی موس میره روش) */
.shop-nav:hover {
    background-color: #0ea5e9; /* آبی (رنگ اصلی سایت) */
    color: white; /* سفید شدن فلش */
    border-color: #0ea5e9;
    transform: translateY(-2px); /* کمی بالا رفتن */
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3); /* سایه رنگی */
}

/* استایل کلیک (وقتی کلیک میشه) */
.shop-nav:active {
    transform: scale(0.95); /* کمی کوچک شدن موقع کلیک */
}





