﻿/* ========== فونت‌ها ========== */
@font-face {
    font-family: 'vazirmatn-bold';
    src: url('../../font/fontsvazirmatn/webfonts/vazirmatn-bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'vazirmatn-regular';
    src: url('../../font/fontsvazirmatn/webfonts/vazirmatn-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'vazirmatn-regular', 'IRANSans', 'Tahoma', sans-serif;
    background-color: #f9fafb;
    color: #111827;
}

:root {
    --primary-orange: #f97316;
    --primary-orange-dark: #ea580c;
    --primary-dark: #1f2937;
    --gray-bg: #f3f4f6;
    --border-light: #e5e7eb;
    --text-muted: #6b7280;
}

/* ========== دکمه‌ها ========== */
.btn-primary-custom, .btn-orange {
    background-color: var(--primary-orange);
    border: none;
    border-radius: 48px;
    font-weight: 600;
    color: white;
    transition: all 0.2s;
}

.btn-primary-custom {
    padding: 10px 28px;
    box-shadow: 0 2px 6px rgba(249,115,22,0.3);
}

.btn-orange {
    padding: 8px 24px;
}

    .btn-primary-custom:hover, .btn-orange:hover {
        background-color: var(--primary-orange-dark);
        transform: translateY(-1px);
        color: white;
    }

.btn-outline-custom {
    border: 2px solid var(--primary-orange);
    background: transparent;
    color: var(--primary-orange);
    border-radius: 48px;
    padding: 8px 24px;
    font-weight: 600;
}

    .btn-outline-custom:hover {
        background-color: var(--primary-orange);
        color: white;
    }

/* ========== نوار ناوبری ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-weight: 800;span.brand-text
    font-size: 1.5rem;
    color: var(--primary-dark);
}

    .navbar-brand span {
        color: var(--primary-orange);
    }

.nav-link {
    font-weight: 500;
    color: #374151;
    margin: 0 8px;
}

    .nav-link:hover {
        color: var(--primary-orange);
    }

/* منوی کاربری (دراپ‌داون) */
.user-menu {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 48px;
    transition: 0.2s;
}

    .user-menu:hover {
        background: #f1f5f9;
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1050;
    border: 1px solid #e2e8f0;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    top: 55px;
}

.dropdown-header {
    padding: 12px;
    border-bottom: 1px solid #eef2f8;
}

.dropdown-user-name {
    font-weight: 700;
}

.dropdown-user-email {
    font-size: 0.75rem;
    color: #64748b;
}

.dropdown-menu-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.dropdown-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: #1e293b;
    text-decoration: none;
    transition: 0.1s;
}

    .dropdown-menu-item a:hover {
        background: #fef5ed;
        color: #f97316;
    }

.notif-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
}

    .notif-item:hover {
        background: #fef5ed;
    }

/* ========== بخش قهرمان (Hero) ========== */
.hero {
    background: white;
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-light);
}

.hero-badge {
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 40px;
    padding: 5px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

    .hero-title span {
        color: var(--primary-orange);
    }

.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ========== کارت آمار ========== */
.stat-card {
    background: white;
    border-radius: 28px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary-orange);
}

/* ========== ۳ مرحله ========== */
.step-card {
    background: white;
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-light);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: #fff5eb;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

/* ========== کارت محصولات ========== */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.25s;
    border: 1px solid var(--border-light);
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
    }

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.discount-tag {
    background: #e11d48;
    color: white;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.85rem;
}

.group-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.progress-group {
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: 500;
}

/* ========== CTA پایین ========== */
.cta-banner {
    background: var(--primary-dark);
    border-radius: 48px;
    padding: 50px 20px;
    color: white;
}

/* ========== فوتر ========== */
footer {
    background: #111827;
    color: #cbd5e1;
    margin-top: 60px;
    padding: 50px 0 30px;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
}

    .footer a:hover {
        color: var(--primary-orange);
    }

/* ============================================ */
/* بخش دو بلوک گروه‌ها (در آستانه تکمیل و تکمیل شده) */
/* ============================================ */
.groups-premium-section {
    background: linear-gradient(145deg, #f1f5f9 0%, #f9f9fc 100%);
    border-radius: 48px;
    padding: 3rem 1.5rem;
    margin: 3rem auto;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02), 0 8px 20px rgba(0,0,0,0.02);
}

.section-title-custom {
    font-weight: 800;
    font-size: 1.6rem;
    border-right: 5px solid var(--primary-orange);
    padding-right: 15px;
    margin-bottom: 1.75rem;
    display: inline-block;
}

.group-card-premium {
    background: #ffffff;
    border-radius: 28px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02), 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
}

    .group-card-premium:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08);
        border-color: var(--primary-orange);
    }

.group-info {
    width: 100%;
}

.group-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.price-compare {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.old-price-compare {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
}

.group-price-compare {
    font-weight: 800;
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.discount-badge-compare {
    background: #e11d48;
    color: white;
    border-radius: 30px;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

.group-meta {
    font-size: 0.85rem;
    color: #5b6e8c;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.group-meta-item {
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timer-display {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 700;
    background: #1e293b;
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    direction: ltr;
    display: inline-block;
}

.badge-completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 40px;
    padding: 6px 18px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(16,185,129,0.2);
    white-space: nowrap;
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    margin-bottom:12px;
    width: 100%;
}

.group-progress-bar {
    flex: 1;
    background-color: #e9ecef;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}

.group-progress-fill {
    background-color: var(--primary-orange);
    width: 0%;
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s ease-out;
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-orange);
    background: #fff0e6;
    padding: 2px 10px;
    border-radius: 30px;
    min-width: 55px;
    text-align: center;
}

/* ========== اسلایدر و منوی کناری ========== */
.slider-full {
    position: relative;
    margin-bottom: 20px;
}

.nb-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.carousel-inner.main-banner-radius {
    border-radius: 16px;
}

.carousel-control {
    width: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: 0.3s;
}

.nb-carousel:hover .carousel-control {
    opacity: 1;
}

.under-slider-banner {
    margin-top: 20px;
}

.second-banners {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
}

    .second-banners:hover {
        transform: translateY(-5px);
    }

    .second-banners img {
        width: 100%;
        border-radius: 16px;
    }
/* منوی سمت راست */
.side-cat {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: visible;
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .side-cat > li {
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

        .side-cat > li:last-child {
            border-bottom: none;
        }

        .side-cat > li > a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            color: #374151;
            text-decoration: none;
            font-weight: 500;
            transition: background 0.2s;
            gap: 10px;
        }

            .side-cat > li > a i:first-child {
                width: 24px;
                font-size: 1.1rem;
                color: var(--primary-orange);
            }

            .side-cat > li > a .sub-arrow {
                margin-right: auto;
                font-size: 12px;
                color: #9ca3af;
                transition: transform 0.2s;
            }

        .side-cat > li:hover > a {
            background-color: #fef5ed;
            color: var(--primary-orange);
        }

            .side-cat > li:hover > a .sub-arrow {
                transform: translateX(-4px);
                color: var(--primary-orange);
            }

.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    right: 100%;
    top: 0;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1050;
    pointer-events: none;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    left: calc(100% - 5px);
}

.submenu li a {
    display: block;
    padding: 8px 16px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.1s;
    white-space: nowrap;
}

    .submenu li a:hover {
        background-color: #fef5ed;
        color: var(--primary-orange);
    }

@media (max-width: 1400px) {
    .has-submenu:hover .submenu {
        left: auto;
        right: 100%;
    }
}

@media (max-width: 992px) {
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        padding-right: 30px;
        background: #fafafa;
        margin-top: 0;
        left: auto !important;
        right: auto !important;
    }

    .has-submenu:hover .submenu {
        display: block;
    }

    .has-submenu > a .sub-arrow {
        transform: rotate(0deg);
    }

    .has-submenu:hover > a .sub-arrow {
        transform: rotate(-90deg);
    }

    .submenu li a {
        white-space: normal;
    }

    .side-cat {
        margin-bottom: 20px;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
}

/* ========== دایره‌های شناور ========== */
.floating-circles {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.circle-item {
    position: relative;
}

.circle-link {
    width: 55px;
    height: 55px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

    .circle-link i {
        font-size: 24px;
        color: var(--primary-orange);
    }

.circle-tooltip {
    position: absolute;
    left: 65px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1f2937;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .circle-tooltip::after {
        content: '';
        position: absolute;
        left: -6px;
        top: 50%;
        transform: translateY(-50%);
        border-width: 6px 6px 6px 0;
        border-style: solid;
        border-color: transparent #1f2937 transparent transparent;
    }

.circle-item:hover .circle-tooltip {
    opacity: 1;
    visibility: visible;
    left: 70px;
}

.circle-link:hover {
    background-color: #f9fafb;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .floating-circles {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 12px;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(8px);
        padding: 8px 16px;
        border-radius: 60px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .circle-link {
        width: 45px;
        height: 45px;
    }

        .circle-link i {
            font-size: 18px;
        }

    .circle-tooltip {
        left: auto;
        bottom: 60px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

        .circle-tooltip::after {
            left: 50%;
            top: auto;
            bottom: -6px;
            transform: translateX(-50%);
            border-width: 6px 6px 0 6px;
            border-color: #1f2937 transparent transparent transparent;
        }

    .circle-item:hover .circle-tooltip {
        left: 50%;
        bottom: 65px;
        transform: translateX(-50%);
    }
}

/* ========== بخش محبوب‌ترین گروه‌ها ========== */
.product-card-large {
    background: white;
    border: 1px solid var(--border-light);
    transition: transform 0.25s, box-shadow 0.25s;
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card-large:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
    }

    .product-card-large .large-img {
        width: 100%;
        height: 475px;
        object-fit: cover;
    }

    .product-card-large .card-body {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

        .product-card-large .card-body .btn {
            margin-top: auto;
        }

.product-card.small {
    background: white;
    border: 1px solid var(--border-light);
    transition: transform 0.25s, box-shadow 0.25s;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card.small .product-img {
        height: 160px;
        object-fit: cover;
        width: 100%;
    }

    .product-card.small .card-body {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

.special-card {
    background: white;
    border: 1px solid var(--border-light);
    transition: transform 0.25s, box-shadow 0.25s;
    border-radius: 24px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .special-card i {
        color: var(--primary-orange);
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .special-card .count-number {
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary-dark);
    }

    .special-card .text-muted {
        margin-bottom: 1rem;
    }

    .special-card .btn {
        width: 100%;
    }

.group-price-large {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-orange);
}

@media (max-width: 768px) {
    .product-card-large .large-img {
        height: 280px;
    }

    .product-card-large .card-body {
        padding: 1rem;
    }

    .group-price-large {
        font-size: 1.4rem;
    }
}

/* ========== کلاس‌های کمکی ========== */
.full-width-bg {
    width: 100%;
    background-color: #f9fafb;
    padding: 3rem 0;
}

.full-width-bg-light {
    background-color: #fefaf5;
}

.full-width-bg-white {
    background-color: white;
}

.section-spacing {
    margin-bottom: 4rem;
}

.step-icon {
    background: #fff5eb;
    color: var(--primary-orange);
}

.hero .hero-badge i, .hero-title span {
    color: var(--primary-orange);
}

.progress-group i, .discount-tag, .discount-badge-compare {
    color: white;
}

.btn-primary-custom i, .btn-outline-custom i {
    color: inherit;
}

.group-meta-item i {
    color: var(--primary-orange);
}

.stat-card i {
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.stat-card > .d-flex i:first-child {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.3;
}

.step-card h5, .stat-card div:last-child {
    color: #1f2937;
}

/* ========== واکنش‌گرایی عمومی ========== */
@media (max-width: 768px) {
    .group-card-premium {
        flex-direction: column;
        align-items: stretch;
    }

        .group-card-premium .btn {
            width: 100%;
            text-align: center;
        }

    .groups-premium-section {
        padding: 2rem 1rem;
    }

    .group-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-wrapper {
        flex-wrap: wrap;
    }

    .badge-completed {
        white-space: normal;
    }

    .product-card .product-img {
        height: 180px;
    }
}

/* استایل‌های هدر با شعار و عکس */
.navbar-brand .brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
    background: rgba(249,115,22,0.1);
    padding: 0.2rem 1.8rem;
    border-radius: 40px;
}

.navbar-brand .brand-separator {
    color: var(--primary-orange);
    margin: 0 0.3rem;
}

.navbar-brand .brand-slogan {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6c757d;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .navbar-brand .brand-slogan {
        white-space: normal;
        font-size: 0.7rem;
        display: block;
        margin-top: 4px;
    }

    .navbar-brand .brand-separator {
        display: none;
    }

    .navbar-brand .brand-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        font-size: 1.2rem;
    }
}

.text-primary-orange {
    color: var(--primary-orange);
    text-decoration: none;
}

    .text-primary-orange:hover {
        color: var(--primary-orange-dark);
        /*text-decoration: underline;*/
    }
.custom-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 8px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
}

.custom-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: none;
}

    .custom-login-link i {
        font-size: 1rem;
        transition: transform 0.2s ease;
    }

    .custom-login-link:hover {
        background: linear-gradient(135deg, #ea580c, #c2410c);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(249, 115, 22, 0.3);
        text-decoration: none;
    }

        .custom-login-link:hover i {
            transform: translateX(-3px);
        }

    .custom-login-link:active {
        transform: translateY(1px);
    }


.custom-login-link-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid #f97316;
    color: #f97316;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 40px;
    transition: all 0.2s ease;
}

    .custom-login-link-outline:hover {
        background: #f97316;
        color: white;
        text-decoration: none;
        transform: scale(1.02);
    }