﻿/* ---------- تنظیمات پایه و ریست ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'IranYekan';
    src: url('../../fonts/IRANSansWeb(FaNum).eot');
    src: url('../../fonts/IRANSansWeb(FaNum).eot') format('embedded-opentype'), url('../../fonts/IRANSansWeb(FaNum).woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'IranYekan', sans-serif;
    background-color: #fefcf8;
    color: #1a1a1a;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* رنگ‌های اصلی برند: مشکی شیک و طلایی */
:root {
    --black: #111111;
    --gold: #c6a43f;
    --gold-light: #e4c87a;
    --gray-dark: #2d2d2d;
    --gray-light: #f5f5f0;
}

.text-gold {
    color: #215abe;
}

.bg-gold {
    background-color: #215abe;
}

.btn-gold {
    background-color: #215abe;
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 40px;
    transition: all 0.4s ease;
    border: none;
}

    .btn-gold:hover {
        background-color: #052763;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.btn-outline-gold {
    border: 2px solid #215abe;
    background: transparent;
    color: #fff;
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-outline-gold:hover {
        background: #052763;
        color: #fff;
    }

/* هدر و نویگیشن */
.top-bar {
    background: var(--black);
    color: #ccc;
    font-size: 14px;
    padding: 8px 0;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: all 0.3s;
}

    .navbar.scrolled {
        padding: 8px 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

.navbar-brand img {
    height: 55px;
    transition: 0.3s;
}

.nav-link {
    font-weight: 500;
    color: #1a1a1a !important;
    margin: 0 12px;
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        right: 0;
        width: 0;
        height: 2px;
        background: #215abe;
        transition: 0.3s;
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }

.icon-nav {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-right: 20px;
    transition: 0.3s;
}

    .icon-nav:hover {
        color: #215abe;
    }

/* اسلایدر اصلی (Hero) */
/* Hero Swiper */
.hero-swiper {
    width: 100%;
    height: 85vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

    /* گرادینت روی هر اسلاید برای خوانایی متن */
    .hero-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(98deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.2) 100%);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

    .hero-content h1,
    .hero-content p,
    .hero-content h6 {
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    }

    .hero-content h1 {
        font-size: 4rem;
        font-weight: 700;
        color: white;
        margin: 20px 0;
    }

    .hero-content p {
        color: rgba(255, 255, 255, 0.95);
        max-width: 550px;
        margin-bottom: 35px;
        font-weight: 500;
    }

    .hero-content h6 {
        color: #215abe;
        letter-spacing: 2px;
        font-weight: 600;
    }

/* استایل دکمه‌های اسلایدر */
.hero-swiper-prev,
.hero-swiper-next {
    color: #215abe !important;
    background: rgba(0,0,0,0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s;
}

    .hero-swiper-prev:hover,
    .hero-swiper-next:hover {
        background: #215abe;
        color: #000 !important;
    }

    .hero-swiper-prev::after,
    .hero-swiper-next::after {
        font-size: 18px !important;
        font-weight: bold;
    }

/* دایره‌های پایین اسلایدر */
.hero-swiper-pagination .swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    width: 10px;
    height: 10px;
    transition: all 0.3s;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: #215abe;
    opacity: 1;
    width: 28px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero-swiper {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-swiper-prev,
    .hero-swiper-next {
        width: 35px;
        height: 35px;
    }
}

/* بخش دسته بندی تصویری */
.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
}

    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .category-card:hover img {
        transform: scale(1.05);
    }

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 25px;
    text-align: center;
}

    .category-overlay h3 {
        color: white;
        font-size: 28px;
    }

/* اسلایدر محصولات با Swiper */
.product-slider-section {
    background: white;
    padding: 70px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    text-align: center;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.product-img {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f4;
    padding: 20px;
}

    .product-img img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        transition: 0.4s;
    }

.product-card:hover .product-img img {
    transform: scale(1.03);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: #215abe;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 10px 0;
}

.product-price {
    font-weight: 800;
    color: var(--black);
    margin: 12px 0;
}

.btn-sm-gold {
    background: #215abe;
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

    .btn-sm-gold:hover {
        background: #052763;
        color: white;
    }

/* بخش مزایا */
.features-section {
    background: var(--gray-light);
    padding: 60px 0;
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 45px;
    color: #215abe;
    margin-bottom: 20px;
}

/* فوتر */
footer {
    background-color: #0c0c0c;
    color: #aaa;
    padding-top: 70px;
}

    footer h5 {
        color: white;
        font-weight: 600;
        margin-bottom: 25px;
    }

    footer a {
        color: #aaa;
        text-decoration: none;
        transition: 0.3s;
    }

        footer a:hover {
            color: #215abe;
        }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #222;
    border-radius: 50%;
    margin-left: 12px;
    transition: 0.3s;
}

    .social-icons a:hover {
        background: #215abe;
        color: black;
    }

.copyright {
    border-top: 1px solid #222;
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
}

.grayscale-hover {
    filter: grayscale(100%);
    transition: all 0.3s;
    opacity: 0.7;
}

    .grayscale-hover:hover {
        filter: grayscale(0);
        opacity: 1;
    }


/* ========== هدر دو ردیفه (شبیه دیجی کالا) ========== */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 12px 0;
    transition: all 0.3s;
}

    .navbar.scrolled {
        padding: 8px 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

.navbar-top {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 55px;
    transition: 0.3s;
}

/* ========== Search Box Style ========== */
.search-container {
    position: relative;
    width: 400px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'IranYekan', sans-serif;
    background: #fafafa;
    transition: all 0.3s ease;
    direction: rtl;
}

    .search-input:focus {
        outline: none;
        border-color: #215abe;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(33, 90, 190, 0.08);
    }

.search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #215abe;
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .search-btn:hover {
        background: #052763;
        transform: translateY(-50%) scale(1.03);
    }

/* آیکون‌های هدر */
.header-icons {
    gap: 15px;
}

.icon-nav {
    font-size: 1.3rem;
    color: #1a1a1a;
    transition: 0.3s;
    position: relative;
}

    .icon-nav:hover {
        color: #215abe;
    }

.badge.bg-gold {
    background-color: #215abe !important;
    font-size: 11px;
    padding: 3px 7px;
    position: absolute;
    top: -8px;
    right: -12px;
}

/* منوهای ناوبری */
.navbar-collapse {
    margin-top: 5px;
}

.nav-link {
    font-weight: 500;
    color: #1a1a1a !important;
    margin: 0 12px;
    position: relative;
    padding: 8px 0;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 2px;
        background: #215abe;
        transition: 0.3s;
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }

/* Dropdown نتایج جستجو */
.search-dropdown {
    position: absolute;
    top: 115%;
    right: 0;
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
    z-index: 1000;
    display: none;
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #eee;
}

    .search-dropdown.show {
        display: block;
        animation: fadeInDown 0.2s ease;
    }

.search-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.search-dropdown-items {
    padding: 8px 0;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

    .search-item:hover {
        background: #f8f9ff;
    }

.search-item-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-left: 12px;
    border-radius: 8px;
    background: #f5f5f5;
}

.search-item-info {
    flex: 1;
    text-align: right;
}

.search-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.search-item-category {
    font-size: 11px;
    color: #215abe;
}

.search-item-price {
    font-size: 12px;
    font-weight: 700;
    color: #111;
}

.search-loading, .search-no-result {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .search-container {
        width: 250px;
    }

    .navbar-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-brand img {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .navbar-top {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .search-container {
        width: 180px;
    }

    .search-input {
        padding: 8px 40px 8px 12px;
        font-size: 12px;
    }

    .search-btn {
        width: 32px;
        height: 32px;
        left: 5px;
    }

        .search-btn i {
            font-size: 12px;
        }

    .icon-nav {
        font-size: 1.1rem;
        margin-right: 12px;
    }

    .navbar-toggler {
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .navbar-collapse {
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    .search-dropdown {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .search-container {
        width: 140px;
    }

    .search-input::placeholder {
        font-size: 11px;
    }

    .navbar-brand img {
        height: 38px;
    }
}

/* سرچ باکس موبایل */
.search-container-mobile {
    position: relative;
    width: 100%;
    margin-top: 10px;
    padding-bottom: 5px;
}

/* تنظیم navbar-top برای دسکتاپ */
@media (min-width: 992px) {
    .navbar-top {
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

/* در موبایل، منوها زیر سرچ قرار بگیرند */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .navbar-nav {
        padding: 10px 0;
    }

    .nav-link {
        text-align: center;
        padding: 10px 0;
    }
}
/* اجبار برای نمایش منوها در لپ‌تاپ و دسکتاپ */
@media (min-width: 992px) {
    .navbar-expand-xxl {
        flex-wrap: wrap !important;
    }

        .navbar-expand-xxl .navbar-collapse {
            display: flex !important;
            width: 100% !important;
            order: 2 !important;
        }

        .navbar-expand-xxl .navbar-toggler {
            display: none !important;
        }

        .navbar-expand-xxl .navbar-top {
            order: 1 !important;
            width: 100% !important;
        }
}

/* ========== Brands Slider Style ========== */
.brands-container {
    padding: 40px 0;
    background: linear-gradient(135deg, #fefcf8 0%, #d6dae2 100%);
    border-radius: 30px;
    margin: 30px auto;
}

.section-header {
    margin-bottom: 30px;
}

    .section-header .text-gold {
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 2px;
        display: inline-block;
        margin-bottom: 10px;
    }

    .section-header .section-title {
        font-size: 28px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 10px;
    }

    .section-header p {
        color: #666;
        font-size: 14px;
    }

/* برند آیتِم */
.brand-item {
    padding: 10px;
    text-align: center;
}

.item-holder {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 20px;
    padding: 25px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

    .item-holder:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border-color: #215abe;
    }

.brand-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin-bottom: 15px;
}

    .brand-img img {
        max-width: 100%;
        max-height: 80px;
        object-fit: contain;
        transition: all 0.3s ease;
        filter: grayscale(30%);
    }

.item-holder:hover .brand-img img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 10px 0 5px;
    font-family: 'IranYekan', sans-serif;
}

.brand-country {
    font-size: 12px;
    color: #215abe;
    font-weight: 500;
}

/* Owl Carousel Custom Styles */
.brands-carousel {
    direction: rtl;
}

    .brands-carousel .owl-nav {
        position: absolute;
        top: 50%;
        width: 100%;
        transform: translateY(-50%);
        margin: 0;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
    }

        .brands-carousel .owl-nav button {
            pointer-events: auto;
            background: white !important;
            width: 40px;
            height: 40px;
            border-radius: 50% !important;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

            .brands-carousel .owl-nav button:hover {
                background: #215abe !important;
            }

                .brands-carousel .owl-nav button:hover svg {
                    color: white;
                }

            .brands-carousel .owl-nav button svg {
                width: 20px;
                height: 20px;
                color: #215abe;
            }

    .brands-carousel .owl-prev {
        position: absolute;
        right: -20px;
    }

    .brands-carousel .owl-next {
        position: absolute;
        left: -20px;
    }

    .brands-carousel .owl-dots {
        text-align: center;
        margin-top: 20px;
    }

    .brands-carousel .owl-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        margin: 0 4px;
        display: inline-block;
        transition: all 0.3s;
    }

        .brands-carousel .owl-dot.active {
            width: 25px;
            border-radius: 10px;
            background: #215abe;
        }

/* Responsive */
@media (max-width: 768px) {
    .brands-carousel .owl-prev {
        right: -10px;
    }

    .brands-carousel .owl-next {
        left: -10px;
    }

    .brands-carousel .owl-nav button {
        width: 32px;
        height: 32px;
    }

        .brands-carousel .owl-nav button svg {
            width: 16px;
            height: 16px;
        }

    .brand-img {
        height: 70px;
    }

        .brand-img img {
            max-height: 55px;
        }

    .brand-name {
        font-size: 13px;
    }
}
