/* ========== فونت و تنظیمات پایه ========== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f8fafc;
}

/* ========== منوی اصلی ========== */
.navbar .dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 200px;
}

.navbar .dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    padding-right: 25px;
    color: #e67e22;
}

.navbar .dropdown-item i {
    width: 20px;
    color: #e67e22;
}

/* ========== منوهای چندسطحی ========== */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -6px;
    margin-right: 1px;
    border-radius: 8px;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    opacity: 1;
}

/* ========== نمایش موبایل ========== */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: #f8f9fa;
        box-shadow: none;
        border: none;
        padding-right: 20px;
    }
    .dropdown-submenu > .dropdown-menu .dropdown-item {
        padding-right: 35px;
    }
    .dropdown-submenu:hover > .dropdown-menu {
        display: none;
    }
    .dropdown-submenu > .dropdown-toggle::after {
        display: inline-block;
        margin-right: 5px;
    }
}

/* ========== سایدبار دسته‌بندی ========== */
.list-group-item {
    border: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    color: #555;
}
.list-group-item i {
    width: 20px;
    color: #e67e22;
}
.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
    color: #e67e22;
}
.list-group-item.active {
    background-color: #e67e22;
    border-color: #e67e22;
    color: white;
}
.list-group-item.active i {
    color: white;
}

/* ========== کارت‌ها و سایه‌ها ========== */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-header {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card:hover .card-img-top {
    transform: scale(1.02);
    filter: brightness(0.98);
}

/* ========== تصاویر ========== */
.card-img-top {
    border-radius: 0.75rem 0.75rem 0 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.brand-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    cursor: pointer;
}
.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.15) !important;
}
.brand-img-wrapper {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.brand-img {
    transition: transform 0.3s ease;
}
.brand-card:hover .brand-img {
    transform: scale(1.05);
}
.brand-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border-radius: 2px;
    margin: 0.5rem auto;
}
.model-card img {
    border-radius: 0.75rem 0.75rem 0 0;
    transition: transform 0.3s ease;
}
.model-card:hover img {
    transform: scale(1.02);
}
.sticker-img {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.sticker-img:hover {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.table img {
    border-radius: 0.5rem;
    object-fit: cover;
}
#stickerZoomModal img,
#zoomModalImg {
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.swiper-slide .card-img-top {
    border-radius: 0.75rem 0.75rem 0 0;
}
img.rounded,
img.rounded-circle,
img.rounded-pill {
    border-radius: 0.75rem !important;
}

/* ========== دکمه‌ها ========== */
.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    border: none;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #0b5ed7, #0a58ca);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-outline-primary {
    border-width: 2px;
    transition: all 0.2s;
}
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-sm {
    border-radius: 30px;
    padding: 0.25rem 0.6rem;
}

/* ========== دکمه لایک و علاقه‌مندی ========== */
.like-btn, .wishlist-btn {
    background: none;
    border: none;
    color: #aaa;
    transition: all 0.2s;
    font-size: 0.8rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.like-btn i, .wishlist-btn i {
    margin-left: 3px;
}
.like-btn:hover, .wishlist-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}
.like-btn.liked i {
    color: #e74c3c;
}
.wishlist-btn.active i {
    color: #e74c3c;
}

/* ========== مودال (رفع لرزش و پرش) ========== */
.modal {
    overflow-y: auto !important;
}
.modal-backdrop {
    transition: none !important;
    background-color: rgba(0,0,0,0.5) !important;
}
.modal-content {
    transition: none !important;
    animation: none !important;
    border-radius: 0.75rem;
}
.modal-footer .btn {
    pointer-events: auto;
    z-index: 1060;
}
.modal-body select,
.modal-body input,
.modal-body button {
    pointer-events: auto;
}
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}
.modal-open .container,
.modal-open .container-fluid {
    padding-right: 0 !important;
    margin-right: 0 !important;
}
.modal.fade .modal-dialog {
    transition: none !important;
    animation: none !important;
}

/* ========== اسلایدر Swiper ========== */
.swiper {
    padding-bottom: 40px;
}
.swiper-slide {
    height: auto;
}
.swiper-pagination-bullet-active {
    background: #0d6efd !important;
}
.swiper-button-next, .swiper-button-prev {
    background: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #0d6efd;
    transition: all 0.2s;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: #fff;
    transform: scale(1.1);
}

/* ========== بخش دسته‌بندی محبوب ========== */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1.5rem 2rem rgba(0,0,0,0.15) !important;
}
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}
.product-mini-card {
    background: #fff;
    transition: all 0.2s ease;
}
.product-mini-card:hover {
    background: #f8f9fa;
    transform: scale(1.02);
}
.product-img-wrapper {
    overflow: hidden;
    border-radius: 0.5rem;
}
.product-zoom-img {
    transition: transform 0.3s ease;
}
.product-zoom-img:hover {
    transform: scale(1.05);
}

/* ========== تب‌ها ========== */
.nav-tabs {
    border-bottom: none;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-tabs .nav-link {
    background-color: #f0f2f5;
    border: none;
    border-radius: 40px;
    padding: 10px 28px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s ease;
    font-size: 1rem;
}
.nav-tabs .nav-link:hover {
    background-color: #e67e22;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230,126,34,0.3);
}
.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: #080808 !important;
    box-shadow: 0 6px 12px rgba(230,126,34,0.4);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.nav-tabs .nav-link i {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
}