
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Vazirmatn', 'Inter', 'Tahoma', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
    background: linear-gradient(135deg, #e8f4f8 0%, #d4eaf0 50%, #e0f0f5 100%);
    color: #1a2a3a;
    font-size: 14px;
}

.price, .stat-number, .number, .count, .product-price,
.seller-stat .value, .rank-badge {
    font-family: 'Vazirmatn', 'Inter', monospace;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1, h2, h3, .hero h1, .section-title h2 {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-weight: 800;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
}

:root {
    --primary: #00B4B4;
    --primary-dark: #009999;
    --gold: #D4AF37;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
}

/* ========== Header ========== */
.header {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 180, 180, 0.2);
    padding: 4px 0;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 18px;
    color: white;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2a3a;
}

.logo-text .primary {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #4a5a6a;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-seller {
    background: linear-gradient(135deg, var(--gold), #B8960F);
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    color: #1a2a3a;
    font-weight: 700;
    cursor: pointer;
}

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

/* ========== Hero با آمار ========== */
.hero {
    text-align: center;
    padding: 80px 0 40px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a2a3a;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: #5a6a7a;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* آمارهای هیرو */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 60px;
    min-width: 140px;
    border: 1px solid rgba(0, 180, 180, 0.15);
}

.hero-stat .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Vazirmatn', 'Inter', monospace; /* Vazirmatn در اولویت */
    font-feature-settings: "ss01" 1; /* فعال‌سازی ارقام فارسی */
}

.hero-stat .label {
    font-size: 0.7rem;
    color: #6a7a8a;
    margin-top: 5px;
}

/* ========== بنرهای بالایی (6 عدد) ========== */
.banners-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.banner-card {
    background: linear-gradient(135deg, #ffffff, #f8fbfd);
    border-radius: 24px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(0, 180, 180, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.banner-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 30px rgba(0, 180, 180, 0.12);
}

.banner-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.banner-icon i {
    font-size: 28px;
    color: var(--primary);
}

.banner-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.banner-card p {
    font-size: 0.7rem;
    color: #6a7a8a;
}

.banner-discount {
    display: inline-block;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    margin-top: 10px;
}

/* ========== فیلترها ========== */
.filters-section {
    background: white;
    border-radius: 32px;
    padding: 00px 5px;
    margin: 5px 0;
    border: 1px solid rgba(0, 180, 180, 0.15);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item label {
    font-size: 0.7rem;
    color: #6a7a8a;
    font-weight: 500;
}

.filter-item select, .filter-item input {
    background: #f5f7fa;
    border: 1px solid rgba(0, 180, 180, 0.2);
    border-radius: 40px;
    padding: 10px 15px;
    font-family: inherit;
    outline: none;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-range input {
    width: 50%;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn-filter {
    background: var(--primary);
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.btn-reset {
    background: transparent;
    border: 1px solid rgba(0, 180, 180, 0.4);
    padding: 10px 28px;
    border-radius: 40px;
    color: var(--primary);
    cursor: pointer;
}

/* ========== بخش‌های اصلی ========== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 25px;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 i {
    color: var(--primary);
}

.section-title a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
}

/* ========== دسته‌بندی کامل 16 تایی ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.category-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(0, 180, 180, 0.12);
    transition: 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 180, 180, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 24px;
    color: var(--primary);
}

.category-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.category-header p {
    font-size: 0.6rem;
    color: #8a9aaa;
    margin-top: 3px;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.subcategory {
    background: rgba(0, 180, 180, 0.06);
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.6rem;
    color: #4a6a7a;
}

/* ========== رتبه بندی فروشندگان ========== */
.leaderboard-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

/* ========== کارت فروشنده جدید ========== */
.seller-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 180, 180, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.seller-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 180, 180, 0.12);
}

/* ---------- بخش تصویر (مربع) ---------- */
.seller-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* نسبت ۱:۱ (مربع) */
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0; /* جایگزین اگر تصویر نباشد */
    position: relative;
}

/* overlay اطلاعات (پایین تصویر) */
.seller-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px 16px 16px;
    color: white;
}

.seller-overlay h4 {
    font-size: 1.1rem;
    margin: 0 0 6px;
    font-weight: 700;
}

.seller-meta {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* ---------- بخش آمار ---------- */
.seller-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 16px 8px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.seller-stat {
    text-align: center;
    flex: 1;
}

.seller-stat .value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}

.seller-stat .label {
    font-size: 0.65rem;
    color: #8a9aaa;
    margin-top: 2px;
}

/* استایل ظرف جایگزین (اگر عکس نداشته باشیم) */
.seller-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0; /* رنگ پس‌زمینه پیش‌فرض */
    z-index: 0; /* زیر overlay */
}

.seller-image-placeholder i {
    font-size: 3rem;
    color: #aaa;
}

/* اطمینان از اینکه overlay روی آیکون می‌افتد */
.seller-overlay {
    z-index: 1;
    /* سایر استایل‌های قبلی overlay حفظ شود */
}

.btn-follow {
    width: 100%;
    margin-top: 12px;
    background: transparent;
    border: 1px solid var(--primary);
    padding: 7px;
    border-radius: 40px;
    color: var(--primary);
    cursor: pointer;
}


/* ========== کالاهای تخفیف دار ========== */
/* ========== آیکون‌های گرید ========== */
.grid-icons a.grid-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin: 8px 0;
    padding: 8px 6px;
    border-radius: 8px;
    background: #f0f4f5;
    color: #5a6a7a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.grid-icons a.grid-icon.active {
    background: var(--primary);
    color: white;
}

.grid-icons a.grid-icon:hover {
    background: var(--primary);
    color: white;
    opacity: 0.9;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.product-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.product-img {
    width: 70px;
    height: 70px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img i {
    font-size: 35px;
    color: var(--primary);
}

.product-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

/* ========== فرصت خرده فروش‌ها ========== */
.retailer-section {
    background: linear-gradient(135deg, #ffffff, #f0f8fa);
    border-radius: 48px;
    padding: 45px;
    margin: 60px 0;
    border: 1px solid rgba(0, 180, 180, 0.2);
    position: relative;
}

.retailer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
    border-radius: 48px 48px 0 0;
}

.retailer-header {
    text-align: center;
    margin-bottom: 40px;
}

.retailer-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.retailer-header h2 i {
    color: var(--primary);
}

.retailer-header p {
    color: #6a7a8a;
}

.retailer-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(0, 180, 180, 0.12);
    transition: 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 32px;
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.benefit-card p {
    color: #7a8a9a;
    font-size: 0.85rem;
    line-height: 1.6;
}

.register-form {
    background: rgba(0, 180, 180, 0.05);
    border-radius: 32px;
    padding: 30px;
    text-align: center;
}

.register-form h3 {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input {
    background: white;
    border: 1px solid rgba(0, 180, 180, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    width: 250px;
    font-family: inherit;
    outline: none;
}

.form-group button {
    background: var(--primary);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(135deg, #d4e4ec, #c8dce6);
    padding: 50px 0 25px;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 180, 180, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1rem;
}

.footer-col p, .footer-col a {
    color: #5a6a7a;
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.newsletter {
    display: flex;
    margin-top: 12px;
}

.newsletter input {
    flex: 1;
    background: white;
    border: 1px solid rgba(0, 180, 180, 0.2);
    padding: 8px 12px;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.newsletter button {
    background: var(--primary);
    border: none;
    padding: 8px 15px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 180, 180, 0.15);
    color: #7a8a9a;
    font-size: 0.75rem;
}

@media (max-width: 900px) {
    .container {
        padding: 0 0;
    }

    .header {
        position: relative;
        padding: 4px 0;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 15px;
    }

    .hero-stat {
        padding: 10px 18px;
        min-width: 100px;
    }

    .hero-stat .number {
        font-size: 1.2rem;
    }

    .banners-top {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    /*.leaderboard-grid { grid-template-columns: 1fr; }*/
    /*.products-grid { grid-template-columns: 1fr; }*/
    .retailer-section {
        padding: 30px 20px;
    }

    .form-group input {
        width: 100%;
    }
}

/* ========== login ========== */


.header {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 180, 180, 0.2);
    padding: 4px 0;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 20px;
    color: white;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2a3a;
}

.logo-text .primary {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #4a5a6a;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-seller {
    background: linear-gradient(135deg, var(--gold), #B8960F);
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    color: #1a2a3a;
    font-weight: 700;
    cursor: pointer;
}

/* ========== کانتینر ========== */
.container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 60px;
}

/* ========== بخش لاگین ========== */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
}

/* ========== کارت اصلی ========== */
.auth-card {
    background: white;
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ========== سمت فرم ========== */
.form-side {
    padding: 50px 45px;
}

/* تب‌ها */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
    background: #f0f5f7;
    padding: 6px;
    border-radius: 60px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    color: #6a7a8a;
    text-decoration: none;
    display: block;
    background: transparent;
    border: none;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 1rem;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
}

.tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 180, 180, 0.3);
}

/* فرم‌ها */
.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1a2a3a;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
}

.input-wrapper input {
    width: 100% !important;
    padding: 14px 45px 14px 20px;
    border: 1px solid rgba(0, 180, 180, 0.2);
    border-radius: 50px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
    transition: 0.2s;
    background: #f8fbfc;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 180, 0.1);
}

/* چک‌باکس و لینک فراموشی */
.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #6a7a8a;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.2s;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* دکمه ثبت و ورود */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 14px;
    border-radius: 50px;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 180, 180, 0.3);
}

/* جداکننده */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    font-size: 0.8rem;
    color: #8a9aaa;
}

/* دکمه‌های شبکه اجتماعی */
.social-login {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: #f0f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    color: #5a6a7a;
    font-size: 1.3rem;
    text-decoration: none;
}

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

/* ========== سمت اطلاعات ========== */
.info-side {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    padding: 50px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-side h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.info-side p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin: 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.features-list li i {
    width: 28px;
    height: 28px;
    background: rgba(0, 180, 180, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--primary);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Vazirmatn', 'Inter', monospace; /* Vazirmatn در اولویت */
    font-feature-settings: "ss01" 1; /* فعال‌سازی ارقام فارسی */
}

.stat-label {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 900px) {
    .container {
        padding: 0 0;
    }

    .header {
        position: relative;
        padding: 4px 0;
    }

    .nav-links {
        display: none;
    }

    .auth-card {
        grid-template-columns: 1fr;
        border-radius: 32px;
        margin: 0 24px;
    }

    .info-side {
        display: none;
    }

    .form-side {
        padding: 35px 25px;
    }

    .tabs {
        margin-bottom: 25px;
    }

    .tab {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .auth-card {
        margin: 0 16px;
    }

    .form-side {
        padding: 25px 20px;
    }
}

/* ========== end login ========== */
/* ========== paginate ========== */
/* ========== صفحه‌بندی ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
    flex-wrap: wrap;
    list-style: none !important;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    color: #1a2a3a;
    font-weight: 600;
    transition: 0.2s;
    list-style: none !important;
    border: 1px solid rgba(0, 180, 180, 0.2);
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    list-style: none !important;
    color: white;
    border-color: var(--primary);
}

/* ========== end paginate ========== */
/* ==========  pro ========== */
/* ========== محصولات ========== */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.products-header h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-header h2 i {
    color: var(--primary);
}

.sort-select {
    background: #f5f7fa;
    border: 1px solid rgba(0, 180, 180, 0.2);
    border-radius: 40px;
    padding: 8px 20px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 180, 180, 0.1);
}

.product-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.badge-sale {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #44aa44, #228822);
    color: white;
}

.product-img {
    width: 80px;
    height: 80px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img i {
    font-size: 40px;
    color: var(--primary);
}

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.product-category {
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.rating {
    color: #ffc107;
    font-size: 0.7rem;
    margin: 5px 0;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.product-old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.75rem;
    margin-right: 8px;
}

.product-shop {
    font-size: 0.7rem;
    color: #6a7a8a;
    margin-top: 8px;
}

.product-shop i {
    color: var(--primary);
    margin-left: 5px;
}

.compare-checkbox {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.compare-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.compare-checkbox span {
    font-size: 0.7rem;
    color: #6a7a8a;
}

/* ========== مودال مقایسه ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 40px;
    max-width: 1000px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(0, 180, 180, 0.3);
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 40px 40px 0 0;
}

.modal-header h2 {
    color: var(--primary);
}

.modal-close {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.modal-body {
    padding: 30px;
}

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

.compare-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.compare-table th, .compare-table td {
    padding: 15px;
    text-align: center;
}

.compare-table th:first-child, .compare-table td:first-child {
    text-align: right;
    background: #f8f9fa;
    font-weight: 700;
    color: #1a2a3a;
}

.compare-table td {
    color: #5a6a7a;
}

.compare-table .compare-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ========== صفحه‌بندی ========== */
/* ========== end pro ========== */

/* ========== بخش فروشگاه‌ها (نمایش جدولی / ردیفی مثل اکس) ========== */
.shops-table-section {
    background: white;
    border-radius: 32px;
    padding: 30px;
    margin: 25px 0 20px;
    border: 1px solid rgba(0, 180, 180, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.shops-header {
    text-align: center;
    margin-bottom: 30px;
}

.shops-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.shops-header p {
    color: #6a7a8a;
}

.city-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.city-tab {
    background: #f5f7fa;
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    color: #1a2a3a;
    transition: 0.2s;
}

.city-tab:hover, .city-tab.active {
    background: var(--primary);
    color: white;
}

/* جدول فروشگاه‌ها (نمایش ردیفی مثل اکس) */
.shops-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

.shops-table th {
    background: #f0f5f7;
    padding: 4px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #1a2a3a;
    border-bottom: 2px solid var(--primary);
}

.shops-table td {
    padding: 4px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 180, 180, 0.1);
    font-size: 0.8rem;
    vertical-align: middle;
}

.shops-table tr:hover {
    background: rgba(0, 180, 180, 0.03);
}

.shop-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.shop-avatar-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-avatar-small i {
    font-size: 20px;
    color: white;
}

.shop-name-cell .shop-info {
    text-align: right;
}

.shop-name-cell .shop-info h4 {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.shop-name-cell .shop-info .city-badge {
    font-size: 0.65rem;
    color: var(--primary);
}

.rating-stars {
    color: #ffc107;
    font-size: 0.7rem;
}

.stat-number {
    font-weight: 800;
    color: var(--primary);
}

.btn-table-visit {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 6px 16px;
    border-radius: 40px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
}

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

/* ========== CTA نهایی ========== */
/* ========== CTA ========== */
.final-cta {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    border-radius: 40px;
    padding: 50px;
    margin: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--gold), transparent);
}

.final-cta h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.final-cta .btn-register {
    background: var(--gold);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    color: #1a2a3a;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}

/* ========== دکمه ثبت آگهی ========== */
.post-ad-btn {
    text-align: center;
    margin: 20px 0 30px;
}

.btn-post-ad {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 14px 40px;
    border-radius: 60px;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 180, 180, 0.3);
    transition: 0.3s;
    text-decoration: none;
}

.btn-post-ad:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 180, 180, 0.4);
}

/* ========== بنر بالایی ========== */
.top-banner {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    border-radius: 28px;
    padding: 25px 35px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: white;
}

.top-banner-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.top-banner-content p {
    opacity: 0.8;
    font-size: 0.85rem;
}

.top-banner-btn {
    background: var(--gold);
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    color: #1a2a3a;
    font-weight: 700;
    cursor: pointer;
}

/* ========== فیلتر شهر ========== */
.city-filter-section {
    background: white;
    border-radius: 60px;
    padding: 15px 25px;
    margin: 20px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(0, 180, 180, 0.15);
}

.city-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.city-title i {
    color: var(--primary);
}

.city-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.city-btn {
    background: #f5f7fa;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    color: #1a2a3a;
    transition: 0.2s;
}

.city-btn:hover, .city-btn.active {
    background: var(--primary);
    color: white;
}

/* ========== فیلترهای پیشرفته ========== */
.filters-section {
    background: white;
    border-radius: 32px;
    padding: 5px 5px;
    margin: 5px 0;
    border: 1px solid rgba(0, 180, 180, 0.15);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

.filter-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-size: 0.7rem;
    color: #6a7a8a;
    font-weight: 500;
}

.filter-item select, .filter-item input {
    background: #f5f7fa;
    border: 1px solid rgba(0, 180, 180, 0.2);
    border-radius: 40px;
    padding: 10px 15px;
    font-family: inherit;
    outline: none;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-range input {
    width: 50%;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn-filter {
    background: var(--primary);
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.btn-reset {
    background: transparent;
    border: 1px solid rgba(0, 180, 180, 0.4);
    padding: 10px 28px;
    border-radius: 40px;
    color: var(--primary);
    cursor: pointer;
}

/* ========== دسته‌بندی آگهی‌ها ========== */
.categories-section {
    margin: 40px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 25px;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 i {
    color: var(--primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(0, 180, 180, 0.12);
    transition: 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 180, 180, 0.1);
}

.category-card i {
    font-size: 2rem;
    color: var(--primary);
}

.category-card h3 {
    margin: 12px 0 5px;
    font-size: 1rem;
}

.category-card p {
    font-size: 0.65rem;
    color: #8a9aaa;
}

/* ========== جدول آگهی‌ها (اکسل مانند) ========== */
.ads-table-section {
    background: white;
    border-radius: 32px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(0, 180, 180, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.ads-table th {
    background: #f0f5f7;
    padding: 15px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a2a3a;
    border-bottom: 2px solid var(--primary);
}

.ads-table td {
    padding: 15px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 180, 180, 0.1);
    font-size: 0.85rem;
    vertical-align: middle;
}

.ads-table tr:hover {
    background: rgba(0, 180, 180, 0.03);
}

.ad-title-cell {
    text-align: right;
    font-weight: 600;
}

.ad-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
}

.ad-badge.sale {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.ad-badge.featured {
    background: linear-gradient(135deg, var(--gold), #B8960F);
    color: #1a2a3a;
}

.ad-badge.exchange {
    background: linear-gradient(135deg, #ff8800, #cc6600);
    color: white;
}

.ad-price {
    font-weight: 800;
    color: var(--primary);
}

.btn-view-ad {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 6px 16px;
    border-radius: 40px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
}

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

/* ========== بنر وسط ========== */
.mid-banner {
    background: linear-gradient(135deg, #e8f4f8, #d4eaf0);
    border-radius: 28px;
    padding: 30px;
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(0, 180, 180, 0.2);
}

.mid-banner-content h3 {
    font-size: 1.2rem;
}

.mid-banner-btn {
    background: var(--primary);
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

/* ========== صفحه‌بندی ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    color: #1a2a3a;
    font-weight: 600;
    transition: 0.2s;
    border: 1px solid rgba(0, 180, 180, 0.2);
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========== بنر پایین ========== */
.bottom-banner {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    border-radius: 32px;
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    color: white;
}

.bottom-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bottom-banner p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.bottom-banner .btn-post-ad {
    background: var(--gold);
    color: #1a2a3a;
    box-shadow: none;
}

/*           shops            */

/* ========== بنر جذب فروشنده ========== */
.seller-banner {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    border-radius: 40px;
    padding: 0px 0px;
    margin: 5px 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px;
    color: white;
    position: relative;
    overflow: hidden;
}

.seller-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.seller-banner-content {
    position: relative;
    z-index: 2;
}

.seller-banner-content h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.seller-banner-content p {
    opacity: 0.85;
}

.seller-banner-btn {
    background: var(--gold);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    color: #1a2a3a;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.seller-banner-btn:hover {
    transform: scale(1.05);
}

/* ========== دسته‌بندی فروشگاه‌ها با جزییات ========== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 25px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 i {
    color: var(--primary);
}

.section-title a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
}

/* گرید دسته‌بندی با جزییات کامل */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.category-card {
    background: white;
    border-radius: 28px;
    padding: 25px;
    border: 1px solid rgba(0, 180, 180, 0.12);
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 35px rgba(0, 180, 180, 0.12);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-icon {
    width: 65px;
    height: 65px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 32px;
    color: var(--primary);
}

.category-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.category-stats {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #8a9aaa;
}

.category-stats span i {
    color: var(--primary);
    margin-left: 4px;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.subcategory {
    background: rgba(0, 180, 180, 0.06);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #4a6a7a;
    transition: 0.2s;
}

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

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.7rem;
    color: #6a7a8a;
}

/* ========== فیلتر قوی ========== */
.filters-section {
    background: white;
    border-radius: 32px;
    padding: 5px 5px;
    margin: 5px 0;
    border: 1px solid rgba(0, 180, 180, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

.filter-grid {
    display: grid;
    border-radius: 0;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-size: 0.7rem;
    color: #6a7a8a;
    font-weight: 500;
}

.filter-item select, .filter-item input {
    background: #f5f7fa;
    border: 1px solid rgba(0, 180, 180, 0.2);
    border-radius: 40px;
    padding: 10px 15px;
    font-family: inherit;
    outline: none;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-range input {
    width: 50%;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn-filter {
    background: var(--primary);
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.btn-reset {
    background: transparent;
    border: 1px solid rgba(0, 180, 180, 0.4);
    padding: 10px 28px;
    border-radius: 40px;
    color: var(--primary);
    cursor: pointer;
}

/* ========== لیست فروشگاه‌ها (کادری) ========== */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.shop-card {
    background: white;
    border-radius: 28px;
    padding: 22px;
    border: 1px solid rgba(0, 180, 180, 0.12);
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.shop-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 35px rgba(0, 180, 180, 0.12);
}

.shop-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.shop-avatar {
    width: 65px;
    height: 65px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-avatar i {
    font-size: 30px;
    color: white;
}

.shop-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.shop-location {
    font-size: 0.7rem;
    color: var(--primary);
}

.shop-stats {
    display: flex;
    gap: 15px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.shop-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f7fa;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
}

.shop-stat i {
    color: var(--primary);
}

.shop-stat .num {
    font-weight: 800;
    color: var(--primary);
}

.shop-rating {
    color: #ffc107;
    font-size: 0.75rem;
    margin: 8px 0;
}

.shop-category {
    font-size: 0.7rem;
    color: #6a7a8a;
    margin: 8px 0;
}

.btn-visit {
    width: 100%;
    margin-top: 15px;
    background: transparent;
    border: 1px solid var(--primary);
    padding: 8px;
    border-radius: 40px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

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

/*           end shops            */


/* ========== صفحه تماس با ما ========== */
.contact-section {
    padding: 120px 0 60px;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a2a3a;
}

.page-title h1 span {
    color: var(--primary);
}

.page-title p {
    color: #6a7a8a;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== بنر بالایی ========== */
.top-banner {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    border-radius: 32px;
    padding: 30px 40px;
    margin-bottom: 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.top-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.top-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.top-banner p {
    opacity: 0.85;
    position: relative;
    z-index: 2;
}

/* ========== شبکه‌های اجتماعی ========== */
.social-section {
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title h2 i {
    color: var(--primary);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.social-card {
    background: white;
    border-radius: 28px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(0, 180, 180, 0.12);
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: #1a2a3a;
}

.social-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 30px rgba(0, 180, 180, 0.12);
}

.social-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.social-icon i {
    font-size: 32px;
    color: var(--primary);
}

.social-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.social-card p {
    font-size: 0.8rem;
    color: #6a7a8a;
}

/* ========== اطلاعات تماس (گرید) ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 180, 180, 0.12);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 180, 180, 0.1);
}

.info-icon {
    width: 65px;
    height: 65px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 30px;
    color: var(--primary);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.info-card p {
    color: #5a6a7a;
    line-height: 1.7;
}

/* ========== فرم تماس ========== */
.contact-form-section {
    background: white;
    border-radius: 40px;
    padding: 40px;
    margin-top: 20px;
    border: 1px solid rgba(0, 180, 180, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-title h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-title p {
    color: #6a7a8a;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 180, 180, 0.2);
    border-radius: 16px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
    background: #f8fbfc;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 180, 0.1);
}

.full-width {
    grid-column: span 2;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 180, 180, 0.3);
}

/* ========== نقشه ========== */
.map-section {
    margin-top: 50px;
}

.map-container {
    background: linear-gradient(135deg, #1a3a4a, #0f2a3a);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    color: white;
}

.map-container i {
    font-size: 60px;
    opacity: 0.5;
    margin-bottom: 15px;
}

.map-container p {
    margin: 10px 0;
}

.btn-direction {
    background: var(--gold);
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    color: #1a2a3a;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
}

/* ========== بنر پایین ========== */
.bottom-banner {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    border-radius: 32px;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
    color: white;
}

.bottom-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bottom-banner p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.bottom-banner .btn-register {
    background: var(--gold);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    color: #1a2a3a;
    font-weight: 800;
    cursor: pointer;
}

/*              end callwe            */
/****************************************************shop*****************************************************************************************/
/* Shop Detail */
.shop-detail {
    padding: 0px 0 0px;
}

/* Seller Banner */
.seller-banner {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    border-radius: 32px;
    padding: 25px 35px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.seller-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.seller-banner-content {
    position: relative;
    z-index: 2;
}

.seller-banner-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.seller-banner-content p {
    opacity: 0.85;
}

.seller-banner-btn {
    background: var(--gold);
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    color: #1a2a3a;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.seller-banner-btn:hover {
    transform: scale(1.05);
}

/* Shop Header */
.shop-header {
    background: white;
    border-radius: 40px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 180, 180, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.shop-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 180, 180, 0.2);
}

.shop-avatar i {
    font-size: 60px;
    color: white;
}

.shop-details h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.shop-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.badge {
    background: rgba(0, 180, 180, 0.1);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: var(--primary);
}

.badge.gold {
    background: linear-gradient(135deg, var(--gold), #B8960F);
    color: white;
}

.shop-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fa;
    padding: 5px 15px;
    border-radius: 40px;
    font-size: 0.85rem;
}

.stat i {
    color: var(--primary);
}

.stat-number {
    font-weight: 800;
    color: var(--primary);
}

.shop-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-follow {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 8px 25px;
    border-radius: 40px;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.btn-contact {
    background: var(--primary);
    border: none;
    padding: 8px 25px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

/* Tabs */
.tabs_shop {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.tab_shop {
    padding: 12px 28px;
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: #6a7a8a;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
    border-radius: 30px 30px 0 0;
}

.tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* Filters */
.filters-section {
    background: white;
    border-radius: 28px;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid rgba(0, 180, 180, 0.15);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-title i {
    color: var(--primary);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-size: 0.7rem;
    color: #6a7a8a;
    font-weight: 500;
}

.filter-item select, .filter-item input {
    background: #f5f7fa;
    border: 1px solid rgba(0, 180, 180, 0.2);
    border-radius: 40px;
    padding: 10px 15px;
    font-family: inherit;
    outline: none;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-range input {
    width: 50%;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn-filter {
    background: var(--primary);
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.btn-reset {
    background: transparent;
    border: 1px solid rgba(0, 180, 180, 0.4);
    padding: 10px 28px;
    border-radius: 40px;
    color: var(--primary);
    cursor: pointer;
}

/* Shop Categories */
.shop-categories {
    background: white;
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 180, 180, 0.15);
}

.shop-categories h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-tag {
    background: #f5f7fa;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.cat-tag:hover, .cat-tag.active {
    background: var(--primary);
    color: white;
}

/* Location & Info */
.info-section {
    background: white;
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 180, 180, 0.15);
}

.info-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h3 i {
    color: var(--primary);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row i {
    width: 30px;
    color: var(--primary);
}

.btn-direction {
    background: var(--primary);
    border: none;
    padding: 12px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
}

/* Products */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.products-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    background: #f5f7fa;
    border: 1px solid rgba(0, 180, 180, 0.2);
    border-radius: 40px;
    padding: 8px 20px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 180, 180, 0.1);
}

.product-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.product-img {
    width: 80px;
    height: 80px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img i {
    font-size: 40px;
    color: var(--primary);
}

.product-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.product-old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.75rem;
    margin-right: 8px;
}

.product-stock {
    font-size: 0.7rem;
    color: #6a7a8a;
    margin-top: 8px;
}

.product-stock.in-stock {
    color: #44aa44;
}

.product-stock.low-stock {
    color: #ff8800;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    color: #1a2a3a;
    font-weight: 600;
    border: 1px solid rgba(0, 180, 180, 0.2);
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #d4e4ec, #c8dce6);
    padding: 50px 0 25px;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 180, 180, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1rem;
}

.footer-col p, .footer-col a {
    color: #5a6a7a;
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(0, 180, 180, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.newsletter {
    display: flex;
    margin-top: 12px;
}

.newsletter input {
    flex: 1;
    background: white;
    border: 1px solid rgba(0, 180, 180, 0.2);
    padding: 8px 12px;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.newsletter button {
    background: var(--primary);
    border: none;
    padding: 8px 15px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 180, 180, 0.15);
    color: #7a8a9a;
    font-size: 0.75rem;
}

@media (max-width: 900px) {
    .container {
        padding: 0 0;
    }

    .header {
        position: relative;
        padding: 4px 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .shop-info {
        flex-direction: column;
        text-align: center;
    }

    .shop-stats {
        justify-content: center;
    }

    .shop-actions {
        justify-content: center;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    /*.products-grid { grid-template-columns: 1fr; }*/
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab {
        padding: 8px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .seller-banner {
        flex-direction: column;
        text-align: center;
    }
}

/****************************************************end shop*****************************************************************************************/
/* ========== اسلایدر دسته‌بندی ========== */
.categories-slider {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    padding: 20px 0 30px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.categories-slider::-webkit-scrollbar {
    height: 6px;
}

.categories-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.categories-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 5px 5px 10px;
}

/* کارت دسته‌بندی - جمع‌وجور با رنگ‌های مختلف */
.category-slide {
    flex: 0 0 160px;
    background: white;
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.category-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* رنگ‌های مختلف برای هر کارت */
.category-slide:nth-child(1) .cat-icon {
    background: #E3F2FD;
    color: #1565C0;
}

.category-slide:nth-child(2) .cat-icon {
    background: #FCE4EC;
    color: #C2185B;
}

.category-slide:nth-child(3) .cat-icon {
    background: #E8F5E9;
    color: #2E7D32;
}

.category-slide:nth-child(4) .cat-icon {
    background: #FFF3E0;
    color: #E65100;
}

.category-slide:nth-child(5) .cat-icon {
    background: #F3E5F5;
    color: #7B1FA2;
}

.category-slide:nth-child(6) .cat-icon {
    background: #E0F7FA;
    color: #00695C;
}

.category-slide:nth-child(7) .cat-icon {
    background: #FFF8E1;
    color: #F57F17;
}

.category-slide:nth-child(8) .cat-icon {
    background: #FBE9E7;
    color: #BF360C;
}

.category-slide:nth-child(9) .cat-icon {
    background: #E8EAF6;
    color: #283593;
}

.category-slide:nth-child(10) .cat-icon {
    background: #EFEBE9;
    color: #4E342E;
}

.category-slide:nth-child(11) .cat-icon {
    background: #E0F2F1;
    color: #004D40;
}

.category-slide:nth-child(12) .cat-icon {
    background: #F1F8E9;
    color: #33691E;
}

/* افکت hover با رنگ‌های مختلف */
.category-slide:nth-child(1):hover {
    border-color: #1565C0;
}

.category-slide:nth-child(2):hover {
    border-color: #C2185B;
}

.category-slide:nth-child(3):hover {
    border-color: #2E7D32;
}

.category-slide:nth-child(4):hover {
    border-color: #E65100;
}

.category-slide:nth-child(5):hover {
    border-color: #7B1FA2;
}

.category-slide:nth-child(6):hover {
    border-color: #00695C;
}

.category-slide:nth-child(7):hover {
    border-color: #F57F17;
}

.category-slide:nth-child(8):hover {
    border-color: #BF360C;
}

.category-slide:nth-child(9):hover {
    border-color: #283593;
}

.category-slide:nth-child(10):hover {
    border-color: #4E342E;
}

.category-slide:nth-child(11):hover {
    border-color: #004D40;
}

.category-slide:nth-child(12):hover {
    border-color: #33691E;
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: 0.3s;
}

.cat-icon i {
    font-size: 26px;
}

.category-slide:hover .cat-icon {
    transform: scale(1.08);
}

.category-slide h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 4px;
}

.category-slide .count {
    font-size: 0.65rem;
    color: #8a9aaa;
}

.category-slide .badge-count {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.55rem;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* دکمه‌های اسکرول */
.images-slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 180, 180, 0.3);
    background: white;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a2a3a;
}

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

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .category-slide {
        flex: 0 0 130px;
        padding: 15px 10px;
    }

    .cat-icon {
        width: 50px;
        height: 50px;
    }

    .cat-icon i {
        font-size: 22px;
    }

    .category-slide h4 {
        font-size: 0.75rem;
    }
}

/***************************shop category*****************************************/
/* ========== فیلتر ========== */
.filter-wrapper {
    background: white;
    border-radius: 48px;
    padding: 35px 40px;
    border: 1px solid rgba(0, 180, 180, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
}

/* ===== هدر ===== */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-header-left .icon-box {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(0, 180, 180, 0.12), rgba(0, 180, 180, 0.04));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-header-left .icon-box i {
    font-size: 1.5rem;
    color: var(--primary);
}

.filter-header-left .title h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a2a3a;
}

.filter-header-left .title p {
    font-size: 0.75rem;
    color: #8a9aaa;
    margin-top: 2px;
}

.filter-header-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-filter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 12px 34px;
    border-radius: 60px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 180, 180, 0.25);
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 180, 180, 0.35);
}

.btn-reset {
    background: transparent;
    border: 1.5px solid rgba(0, 180, 180, 0.2);
    padding: 12px 28px;
    border-radius: 60px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-reset:hover {
    background: rgba(0, 180, 180, 0.06);
    border-color: var(--primary);
}

/* ===== فیلترها ===== */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    border-radius: 0;
    gap: 10px;
    margin: 10px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item .label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6a7a8a;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-item .label i {
    color: var(--primary);
    font-size: 0.8rem;
    width: 20px;
}

.filter-item select,
.filter-item input {
    background: #f5f7fa;
    border: 1px solid rgba(0, 180, 180, 0.1);
    border-radius: 60px;
    padding: 14px 22px;
    font-family: 'Vazirmatn', 'Inter', 'Tahoma', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
    font-size: 0.85rem;
    color: #1a2a3a;
    outline: none;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a7a8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding-left: 50px;
}

.filter-item select:hover,
.filter-item input:hover {
    border-color: var(--primary);
}

/* ===== قیمت رنج ===== */
.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    width: 45%;
    padding-right: 18px;
    background-image: none;
    padding-left: 18px;
}

.price-range span {
    color: #8a9aaa;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== چیپ‌ها ===== */
.status-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0 18px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.chip {
    padding: 8px 22px;
    border-radius: 60px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid transparent;
    background: #f5f7fa;
    color: #6a7a8a;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.chip:hover {
    background: rgba(0, 180, 180, 0.08);
    color: var(--primary);
}

.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chip.active i {
    color: white;
}

/* رنگ‌های مختلف چیپ‌ها در حالت hover و active */
.chip:nth-child(2).active {
    background: var(--gold);
    border-color: var(--gold);
}

.chip:nth-child(3).active {
    background: var(--blue);
    border-color: var(--blue);
}

.chip:nth-child(4).active {
    background: var(--green);
    border-color: var(--green);
}

.chip:nth-child(5).active {
    background: var(--purple);
    border-color: var(--purple);
}

.chip:nth-child(6).active {
    background: var(--orange);
    border-color: var(--orange);
}

.chip:nth-child(7).active {
    background: var(--pink);
    border-color: var(--pink);
}

/* ===== نتایج ===== */
.filter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 15px;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 16px;
}

.result-info .count {
    font-family: 'Vazirmatn', 'Inter', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.result-info .text {
    font-size: 0.8rem;
    color: #6a7a8a;
}

.result-info .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-section label {
    font-size: 0.75rem;
    color: #8a9aaa;
    font-weight: 500;
}

.sort-section select {
    background: #f5f7fa;
    border: 1px solid rgba(0, 180, 180, 0.1);
    border-radius: 60px;
    padding: 8px 20px;
    font-family: 'Vazirmatn', 'Inter', 'Tahoma', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
    font-size: 0.8rem;
    color: #1a2a3a;
    outline: none;
    cursor: pointer;
}

.sort-section select:hover {
    border-color: var(--primary);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1024px) {
    .filter-wrapper {
        padding: 28px 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    .filter-wrapper {
        padding: 20px;
        border-radius: 32px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-header-right {
        width: 100%;
    }

    .btn-filter,
    .btn-reset {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
        padding: 10px 20px;
    }

    .filter-header-left .icon-box {
        width: 44px;
        height: 44px;
    }

    .filter-header-left .icon-box i {
        font-size: 1.2rem;
    }

    .filter-header-left .title h3 {
        font-size: 1.1rem;
    }

    .status-chips {
        justify-content: center;
        gap: 8px;
        padding: 16px 0;
    }

    .chip {
        font-size: 0.65rem;
        padding: 6px 16px;
    }

    .price-range {
        flex-wrap: wrap;
    }

    .price-range input {
        width: 45%;
    }

    .filter-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-section {
        width: 100%;
    }

    .sort-section select {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .filter-wrapper {
        padding: 16px;
        border-radius: 24px;
    }

    .btn-filter,
    .btn-reset {
        font-size: 0.7rem;
        padding: 8px 14px;
    }

    .filter-item select,
    .filter-item input {
        padding: 12px 16px;
        font-size: 0.8rem;
        padding-left: 40px;
    }

    .price-range input {
        width: 100%;
    }
}

/*************************page kalas************************************************/

/* ===== جستجو ===== */
.search-wrapper {
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    padding-right: 40px !important;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.85rem;
    background: #f8fafc;
    outline: none;
    transition: 0.2s;
    font-family: 'Vazirmatn', 'Inter', 'Tahoma', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
}

.search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 180, 0.08);
    background: white;
}

.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ========== بنر بالایی ========== */
.top-banner {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 40px;
}

.top-banner-inner {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    border-radius: 24px;
    padding: 28px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: white;
}

.top-banner-inner h3 {
    font-size: 1.3rem;
}

.top-banner-inner p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.top-banner-btn {
    background: var(--gold);
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    color: #1a2a3a;
    font-weight: 700;
    cursor: pointer;
}

/* ========== صفحه اصلی ========== */
.page-wrapper {
    max-width: 100%;
    min-height: 600px;
    margin: 0 auto;
    padding: 10px 0;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 15px;
}

/* ========== فیلتر سمت راست ========== */
.filter-sidebar {
    background: white;
    margin: 10px;
    border-radius: 24px;
    padding: 10px 10px; /* پدینگ یکسان از همه طرف */
    border: 1px solid rgba(0, 180, 180, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 5px;
    max-height: calc(100vh - 120px);
    overflow-y: auto; /* اسکرول عمودی فعال بماند */
    box-sizing: border-box;
    scrollbar-width: none; /* مخفی کردن در فایرفاکس */
}

/* استایل کلی اسکرول‌بار برای مرورگرهای Webkit (Chrome, Safari, Edge) */
.filter-sidebar::-webkit-scrollbar {
    display: none; /* کلا رندر نشود */
    width: 8px; /* عرض بسیار کم */
}

/*
.filter-sidebar::-webkit-scrollbar-track {
    background: transparent;      !* پس‌زمینه شفاف *!
    border-radius: 10px;
    margin: 60px 50px;              !* فاصله از بالا و پایین برای گردی گوشه‌ها *!
    padding: 60px 50px;              !* فاصله از بالا و پایین برای گردی گوشه‌ها *!
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,180,180,0.2); !* رنگ تیره ملایم *!
    border-radius: 10px;
    transition: background 0.3s;
    margin: 60px 50px;              !* فاصله از بالا و پایین برای گردی گوشه‌ها *!
    padding: 60px 50px;              !* فاصله از بالا و پایین برای گردی گوشه‌ها *!
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0,180,180,0.4); !* هنگام هاور پررنگ‌تر *!
}*/

/* برای فایرفاکس */
.filter-sidebar {
    scrollbar-width: none; /* مخفی در فایرفاکس */
    /*scrollbar-width: thin;                      !* نازک *!*/
    scrollbar-color: rgba(0, 180, 180, 0.2) transparent; /* thumb و track */
}

.filter-sidebar .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-sidebar .filter-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-sidebar .filter-header h3 i {
    color: var(--primary);
}

.filter-sidebar .filter-header .clear-all {
    font-size: 0.7rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.filter-sidebar .filter-header .clear-all:hover {
    text-decoration: underline;
}

.filter-block {
    margin-bottom: 2px;
    padding-bottom: 2px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-block .block-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-block .block-title i {
    color: var(--primary);
}

/* ===== فیلترهای Select Box ===== */
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    background: #f8fafc;
    font-size: 0.85rem;
    font-family: 'Vazirmatn', 'Inter', 'Tahoma', sans-serif;
    font-feature-settings: "ss01" 1; /* فعال‌سازی Persian digits */
    color: #1a2a3a;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a7a8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-select:hover {
    border-color: var(--primary);
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 180, 0.08);
    background-color: white;
}

.filter-select option {
    padding: 8px;
}

/* ===== قیمت رنج ===== */
.price-range-inputs {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.price-range-inputs input {
    width: 50%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.8rem;
    background: #f8fafc;
    outline: none;
    font-family: inherit;
    transition: 0.2s;
}

.price-range-inputs input:focus {
    border-color: var(--primary);
    background: white;
}

/* ===== دکمه‌ها ===== */
.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.btn-apply {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 10px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 180, 0.25);
}

.btn-reset {
    flex: 1;
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 40px;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-reset:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== بنر وسط ===== */
.mid-banner {
    background: linear-gradient(135deg, #ffffff, #f0f8fa);
    border-radius: 20px;
    padding: 18px 25px;
    margin: 20px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid rgba(0, 180, 180, 0.12);
}

.mid-banner h4 {
    font-size: 1rem;
    color: #1a2a3a;
}

.mid-banner p {
    font-size: 0.8rem;
    color: #6a7a8a;
}

.mid-banner-btn {
    background: var(--primary);
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
}

/* ===== محصولات ===== */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.products-header .result-count {
    font-size: 0.9rem;
    color: #6a7a8a;
}

.products-header .result-count strong {
    color: var(--primary);
}

.products-header .sort-select {
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    background: white;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
}

.product-card .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.badge-sale {
    background: #fee2e2;
    color: #dc2626;
}

.badge-new {
    background: #dcfce7;
    color: #16a34a;
}

.badge-hot {
    background: #fef3c7;
    color: #d97706;
}

.product-card .product-img {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.product-card .product-img i {
    font-size: 38px;
    color: var(--primary);
}

.product-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-card .category {
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.product-card .rating {
    color: #ffc107;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.product-card .price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.product-card .old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-right: 8px;
}

.product-card .shop {
    font-size: 0.7rem;
    color: #6a7a8a;
    margin-top: 8px;
}

.product-card .stock {
    font-size: 0.65rem;
    margin-top: 6px;
}

.stock-in {
    color: var(--green);
}

.stock-out {
    color: var(--red);
}

/* ===== صفحه‌بندی ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.pagination a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    color: #1a2a3a;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== بنر پایین ===== */
.bottom-banner {
    max-width: 1400px;
    margin: 0 auto 30px;
    padding: 0 40px;
}

.bottom-banner-inner {
    background: linear-gradient(135deg, #0f2a3a, #1a3a4a);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    color: white;
}

.bottom-banner-inner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bottom-banner-inner p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.bottom-banner-inner .btn-register {
    background: var(--gold);
    border: none;
    padding: 12px 35px;
    border-radius: 40px;
    color: #1a2a3a;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.95rem;
}

/* ===== موبایل ===== */
.mobile-filter-toggle {
    display: none;
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

@media (max-width: 1100px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .filter-sidebar {
        position: static;
        display: none;
    }

    .filter-sidebar.open {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .header {
        position: relative;
        margin: 0;
        padding: 4px 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .page-wrapper {
        padding: 16px;
    }

    /*.products-grid {*/
    /*    !*grid-template-columns: 1fr;*!*/
    /*}*/

    .top-banner {
        padding: 0 16px;
    }

    .top-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .bottom-banner {
        padding: 0 16px;
    }

    .bottom-banner-inner {
        padding: 25px 20px;
    }

    .bottom-banner-inner h3 {
        font-size: 1.2rem;
    }

    .mid-banner {
        flex-direction: column;
        text-align: center;
    }

    .filter-sidebar {
        position: relative;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: white;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 5px 5px;
        overflow-y: auto;
    }

    .filter-sidebar.open {
        left: 0;
    }

    .mobile-filter-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .header {
        position: relative;
        padding: 4px 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .btn-seller {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .page-wrapper {
        padding: 12px;
    }

    .products-grid {
        gap: 16px;
    }

    .product-card {
        padding: 16px;
    }

    .product-card .product-img {
        width: 60px;
        height: 60px;
    }

    .product-card .product-img i {
        font-size: 28px;
    }

    .filter-sidebar {
        padding: 14px;
    }

    .top-banner-inner h3 {
        font-size: 1rem;
    }

    .top-banner-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .pagination a {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
}

/*************************page kalas************************************************/
/* ========= بخش جدول فروشگاه ها در صفحه اصلی صفحه خالی جدول =========*/
.empty-shops {
    padding: 50px 20px !important;
    text-align: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
}

.empty-icon {
    font-size: 60px;
    color: #c0c0c0;
}

.empty-state h3 {
    margin: 0;
    font-size: 22px;
    color: #444;
}

.empty-state p {
    margin: 0;
    color: #777;
}

.empty-state small {
    color: #999;
}
/* ========== کارت محصول جدید (انتهای فایل برای اولویت بالا) ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 10px 0;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 180, 180, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 180, 180, 0.1);
}

/* ---------- تصویر محصول ---------- */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    background-color: #f0f4f5;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef3f5;
    z-index: 0;
}

.product-image-placeholder i {
    font-size: 3rem;
    color: #b0c4c8;
}

/* ---------- نشان‌های روی تصویر ---------- */
.product-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);
}

.product-discount-badge span {
    font-size: 0.85rem;
}

.product-discount-badge small {
    font-size: 0.6rem;
    opacity: 0.9;
}

.product-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stock-unlimited {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.stock-available {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.stock-low {
    background: rgba(255, 136, 0, 0.9);
    color: white;
}

.stock-out {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

/* ---------- overlay ---------- */
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    padding: 24px 16px 12px;
    color: white;
    z-index: 1;
}

.product-title-overlay {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.product-shop-overlay {
    font-size: 0.7rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

/* ---------- بخش زیر تصویر ---------- */
.product-details {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-excerpt {
    font-size: 0.75rem;
    color: #5a6a7a;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* تعداد خطوط مجاز */
    overflow: hidden; /* اضافه را پنهان کن */
    text-overflow: ellipsis; /* بی‌تأثیر در line-clamp ولی برای احتیاط */
    min-height: unset; /* حذف min-height قبلی */
    max-height: calc(0.75rem * 1.6 * 2); /* 2 خط × ارتفاع خط (اختیاری) */
}

.product-price-section {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.retail-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.old-price small {
    font-size: 0.65rem;
    font-weight: 400;
    margin-right: 2px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.current-price small {
    font-size: 0.7rem;
    font-weight: 500;
    margin-right: 2px;
    color: #6a7a8a;
}

.wholesale-price {
    margin-top: 8px;
    background: #f0fafb;
    border: 1px dashed rgba(0, 180, 180, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #0d6b6b;
}

.wholesale-price i {
    font-size: 1rem;
    color: var(--primary);
}

.wholesale-price span {
    font-weight: 700;
    color: #0d5c5c;
}

.wholesale-price span small {
    font-weight: 500;
    font-size: 0.7rem;
    color: #6a7a8a;
}

.bulk-min {
    width: 100%;
    margin-top: 4px;
    font-size: 0.65rem;
    color: #888;
}

.price-limit-message,
.price-contact-message {
    font-size: 0.8rem;
    color: #cc6600;
    background: #fff3e0;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin: 0;
}

/* جزئیات قیمت عمده */
.bulk-price-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.old-bulk-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.old-bulk-price small {
    font-size: 0.65rem;
    font-weight: 400;
}

.bulk-discount-badge {
    background: #e3342f;
    color: white !important;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
}

.current-bulk-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0d5c5c;
}

.current-bulk-price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6a7a8a;
}

/* ---------- اسلایدر دوطرفه ---------- */
.price-range-slider-wrapper {
    margin-top: 10px;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #5a6a7a;
    margin-bottom: 8px;
}

.dual-range {
    position: relative;
    height: 36px;
}

.dual-range input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    z-index: 2;
    height: 6px;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    margin-top: -7px;
}

.dual-range input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    z-index: 1;
    /* با JavaScript می‌توان بخش فعال بین دو thumb را رنگی کرد (اختیاری) */
}

.brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding: 4px 2px;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 30px;
    background: #f2f5f7;
    border: 1px solid #e0e7eb;
    font-size: 0.8rem;
    color: #34495e;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.brand-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(0, 180, 180, 0.3);
}

.brand-chip:hover {
    border-color: var(--primary);
    background: rgba(0, 180, 180, 0.05);
}

.brand-chip input[type="checkbox"] {
    display: none;
}

/* ==========================================
   استایل صفحه فروشگاه (نسخه نهایی و کاملاً تمیز)
   ========================================== */

/* ========== ردیف دو ستونه با ارتفاع مساوی ========== */
.shop-header-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    align-items: stretch; /* ارتفاع مساوی */
}

.shop-slider-col {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shop-info-col {
    flex: 1 1 50%;
    display: flex;
}

/* ========== اسلایدر فروشگاه (همانند محصول) ========== */
.shop-slider-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px; /* ارتفاع دلخواه */
    border-radius: 12px;
    background: #f0f0f0;
}

.shop-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* یا contain بسته به سلیقه */
    display: block;
}

/* دکمه‌های ناوبری */
.images-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
    transition: background 0.2s;
}

.images-slider-nav.prev {
    left: 10px;
}

.images-slider-nav.next {
    right: 10px;
}

.images-slider-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* اندیکاتورها */
.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    cursor: pointer;
    border: 1px solid #ccc;
}

.indicator.active {
    opacity: 1;
    background: var(--primary);
}

/* ========== المان‌های روی اسلایدر ========== */
/* کارت فروشنده (بالا سمت راست) */
.seller-card-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 40px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.seller-card-overlay .seller-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #2196F3;
    object-fit: cover;
}

.seller-card-overlay .seller-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a2a3a;
}

/* وضعیت ارسال (پایین سمت چپ) */
.delivery-badge-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2a3a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.delivery-badge-overlay i {
    color: var(--primary);
}

/* دکمه‌های قبلی/بعدی */
.images-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    color: #1a2a3a;
    font-size: 1rem;
    transition: background 0.2s;
}

.images-slider-nav:hover {
    background: white;
}

.images-slider-nav.prev {
    left: 10px;
}

.images-slider-nav.next {
    right: 10px;
}

/* اندیکاتورها */
.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.indicator.active {
    background: var(--primary);
    border-color: white;
}

/* ========== دنبال کردن + آمار (زیر اسلایدر) ========== */
.follow-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    background: white;
    border-radius: 16px;
    padding: 15px 20px;
    border: 1px solid rgba(0, 180, 180, 0.15);
}

.btn-follow {
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: bold;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    width: auto; /* عرض فقط به اندازه محتوا */
    min-width: 120px;
    flex-shrink: 0;
    transition: 0.2s;
}

.btn-follow.disabled {
    opacity: 0.5;
    background: #ccc;
    cursor: not-allowed;
}

.btn-follow.following {
    background: #ff4d4d;
}

.stats-container {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    display: block;
}

/* ========== کارت اطلاعات (ستون سمت راست) ========== */
.shop-info-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(0, 180, 180, 0.15);
}

/* نام فروشگاه در کارت اطلاعات */
.shop-name-in-card {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 20px;
}

/* ردیف‌های اطلاعات (بدون خط جداکننده) */
.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: none !important; /* بدون هیچ خطی */
}

.info-row i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

/* ========== شعب (اسکرول افقی) ========== */
.branches-title {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a2a3a;
}

.branches-title i {
    color: var(--primary);
}

.branches-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0 12px;
    border: none; /* بدون خط */
}

.branch-item-card {
    background: #f8fbfc;
    border: 1px solid rgba(0, 180, 180, 0.1);
    border-radius: 12px;
    padding: 12px;
    min-width: 200px;
    flex-shrink: 0;
}

.branch-item-card strong {
    display: block;
    margin-bottom: 5px;
}

.branch-item-card .branch-phone {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.branch-address {
    margin-top: 5px;
    font-size: 0.85rem;
}

.branch-address a {
    color: #28a745;
    text-decoration: none;
}

/* ========== دکمه‌های عملیاتی (چسبیده به پایین کارت) ========== */
.action-buttons-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 0 0;
    margin-top: auto; /* چسبیدن به پایین */
    border-top: 1px solid #f0f0f0; /* فقط یک خط باریک بالای دکمه‌ها */
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    border-radius: 30px;
    background: white;
    border: 1px solid rgba(0, 180, 180, 0.2);
    color: #333;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    cursor: pointer;
}

.action-btn i {
    color: var(--primary);
}

.action-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    background: #f0f0f0;
}

.action-btn:hover:not(.disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.action-btn:hover:not(.disabled) i {
    color: white;
}

/* ========== تب‌های Sticky ========== */
.tabs-sticky {
    position: sticky;
    top: 2px;
    background: white;
    z-index: 50;
    display: flex;
    margin-bottom: 4px;
    padding: 0 16px;
    border-radius: 16px;
    overflow-x: auto;
}

.tabs-sticky .tab {
    position: relative;
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    white-space: nowrap;
    transition: color 0.3s ease;
    z-index: 1;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.tabs-sticky .tab.active {
    color: var(--primary);
    background: transparent;
    border-bottom: 3px solid var(--primary);
    border-radius: 2px;
    box-shadow: none;
}

/* ========== پاپ‌آپ‌ها ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    min-width: 280px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 2px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
}

.phone-link {
    display: block;
    margin: 10px 0;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
}

.phone-link i {
    margin-left: 8px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .shop-header-row {
        flex-direction: column;
    }

    .shop-slider-col,
    .shop-info-col {
        flex: auto;
        width: 100%;
        max-width: 100vw;          /* جلوگیری از تجاوز از عرض viewport */
        overflow: hidden;          /* مخفی کردن سرریز احتمالی */
    }

    .shop-info-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;          /* اطمینان از عدم اسکرول */
        box-sizing: border-box;
    }

    .shop-slider-wrapper {
        height: 250px;
    }

    .shop-name-in-card {
        font-size: 1.5rem;
    }

    .stats-container {
        justify-content: space-between;
    }

    /* بخش دکمه‌ها - اجازه اسکرول داخلی به جای گسترش کل صفحه */
    .action-buttons-scroll {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        /* مهم: عرض والد محدود است، بنابراین اسکرول داخلی کار می‌کند */
    }
}
.products-area {
    overflow-x: hidden; /* جلوگیری از بیرون‌زدگی محتوا */
    min-width: 0; /* ضروری برای flex item ها جهت رعایت عرض والد */
    margin: 0 10px;
    padding: 0;
}

/* ========== استایل‌های جدید – فقط برای حالت جدول ========== */
.excel-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 80vh; /* ارتفاع دلخواه – می‌تونید تغییر بدین */
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
}

.excel-col-description {
    white-space: nowrap; /* متن در یک خط می‌ماند */
    overflow: hidden; /* اضافه پنهان شود */
    text-overflow: ellipsis; /* سه‌نقطه در انتها */
    max-width: 0; /* ضروری برای عملکرد ellipsis در table-cell */
}

.excel-table {
    width: 100%;
    min-width: 1400px; /* حداقل عرض برای اسکرول افقی */
    border-collapse: collapse;
    font-size: 13px;
}

.excel-table thead th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    position: sticky;
    top: 0; /* چسبیدن هدر به بالای صفحه هنگام اسکرول */
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

.excel-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    text-align: center;
}

/* رنگ‌بندی ردیف‌های زوج برای خوانایی */
.excel-table tbody tr:nth-child(even) {
    background-color: #f5f7fa;
}

.excel-table tbody tr:hover {
    background-color: #e9f0ff;
    transition: background 0.2s;
}

/* استایل تصاویر داخل جدول */
.excel-table td img {
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.15s;
}

.excel-table td img:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

/* مودال نمایش تصویر */
.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.image-viewer-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.stock-low-orange {
    color: #ff8c00; /* نارنجی */
    font-weight: bold;
}

.excel-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    background: #e3342f;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
}

.excel-product-stock-badge-unlimited {
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    background: rgba(40, 167, 69, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.excel-product-stock-badge-available {
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    background: rgba(40, 167, 69, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.excel-product-stock-badge-low {
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    background: rgba(255, 136, 0, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.excel-product-stock-badge-out {
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    background: rgba(220, 53, 69, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 25px;
    background: rgba(0, 180, 180, 0.08); /* تن ملایم با رنگ اصلی */
    transition: all 0.25s ease;
    margin-bottom: 15px;
    border: 1px solid transparent;
}

.back-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 180, 180, 0.2);
}

.back-link i {
    font-size: 0.9rem;
}

.global-search-wrapper {
    position: relative;
    flex: 1;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 12px;
    color: #999;
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 180, 180, 0.1);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 380px;
    overflow-y: auto;
    z-index: 100;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

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

.search-result-item:hover {
    background: #f7fdfd;
}

.result-type {
    background: #e6f7f7;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.result-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-details strong {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.result-details small {
    color: #777;
    font-size: 0.8rem;
}

.search-no-result {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* کارت فروشگاه */
.installment-shop-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.installment-shop-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

/* سربرگ فروشگاه */
.shop-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
}

.shop-image-link {
    flex-shrink: 0;
    margin-right: 16px;
}

.shop-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #eaeaea;
}

.shop-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #aaa;
    border: 2px solid #eaeaea;
}

.shop-info {
    flex: 1;
}

.shop-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.shop-name:hover {
    color: #0d6efd;
}

.shop-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.phone-link {
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    transition: background 0.2s;
}

.phone-link i {
    margin-left: 4px; /* چون راست‌چین */
    color: #0d6efd;
    font-size: 0.8rem;
}

.phone-link:hover {
    background: #e2e8f0;
    color: #000;
}

.no-phone {
    color: #999;
    font-size: 0.85rem;
}

/* گرید طرح‌ها */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}

.plan-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #edf2f7;
    transition: transform 0.15s;
}

.plan-card:hover {
    transform: translateY(-2px);
    border-color: #d1d9e6;
}

.plan-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.plan-desc {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.plan-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plan-badge {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
}

.plan-badge i {
    font-size: 0.7rem;
    color: #0d6efd;
}

.no-plans {
    padding: 16px 20px;
    color: #888;
    font-size: 0.95rem;
    text-align: center;
}

/* نشان‌گر تعداد طرح‌ها */
.plans-count-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 0 20px;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
}

.plans-count-badge i {
    color: #0d6efd;
    font-size: 1rem;
}

/* سکشن صفحه اصلی */
.installment-home-section {
    padding: 40px 0;
    background: #f9fafb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.section-title i {
    color: #0d6efd;
    margin-left: 8px;
}

.see-all-btn {
    background: #0d6efd;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.see-all-btn:hover {
    background: #0b5ed7;
    color: #fff;
}

.see-all-btn i {
    font-size: 0.8rem;
    margin-right: 4px;
}

/* آدرس فروشگاه */
.shop-address {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4b5563;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    max-width: fit-content;
}

.shop-address i {
    color: #ef4444; /* قرمز ملایم برای آیکون مکان */
    font-size: 0.8rem;
}
