﻿





@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/iranyekan/IRANYekanXFaNum-Medium.woff2") format("woff2");
}


@font-face {
    font-family: "IRANSansWeb";
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/iransans/IRANSansWeb.woff2") format("woff2");
}

@font-face {
    font-family: "IRANSansWeb";
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/iransans/IRANSansWeb.woff") format("woff");
}

@font-face {
    font-family: "IRANSansWeb";
    font-style: normal;
    font-weight: bold;
    src: url("../fonts/iransans/IRANSansWeb.ttf") format("ttf"), url("../fonts/iransans/IRANSansWeb.eot") format("eot");
}

:root {
    --primary-bg: #1a0736;
    --secondary-bg: #23084a;
    --card-bg: #2c0b5a;
    --accent-color: #6a3bd1;
    --accent-hover: #5a2db8;
    --text-color: #ffffff;
    --light-text: #d0c4e9;
    --purple-gradient: linear-gradient(135deg, #6a3bd1, #8b5cf6);
    --purple-gradient2: linear-gradient(135deg, #b920ca, #8b5cf6);
    --category-hover: #dc3b6d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to bottom, var(--primary-bg), var(--secondary-bg));
    color: var(--text-color);
    font-family: 'IRANSansWeb', 'IRANYekan', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.navbar {
    background: rgba(26, 7, 54, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(106, 59, 209, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(106, 59, 209, 0.5);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--light-text) !important;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin: 0.2rem 0;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

    .nav-link:hover, .nav-link:focus, .nav-link.active {
        color: white !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: var(--purple-gradient2);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 60%;
    }

.navbar-nav .btn {
    margin: 0.5rem 1rem;
    text-align: center;
}

/* بخش قهرمان */
.hero {
    text-align: center;
    padding: 7rem 1rem 3rem;
    position: relative;
    overflow: hidden;
}


    .hero h1 {
        font-size: 2.2rem;
        margin: 1.5rem 0;
        line-height: 1.4;
        font-weight: 800;
        background: linear-gradient(to right, #d8b4fe, #8b5cf6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    }

.hero-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* اسلایدر سه‌تایی بهبود یافته */
.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.carousel {
    margin: 2rem 0;
    position: relative;
}

.carousel-inner {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(43, 11, 90, 0.5);
    border: 1px solid rgba(106, 59, 209, 0.5);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-item {
    padding: 15px;
    transition: transform 0.5s ease;
}

    .carousel-item.active {
        display: flex;
    }

.carousel-card {
    background: linear-gradient(145deg, #3b1173, #2a0c55);
    border-radius: 16px;
    border: 1px solid #6d28d9;
    color: white;
    /*    padding: 25px 20px;*/
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

    .carousel-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(106, 59, 209, 0.2) 0%, transparent 70%);
        z-index: 0;
    }

    .carousel-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
        border-color: #b51bc8;
    }

    .carousel-card .icon-container, .carousel-item .icon-container {
        width: 100%;
        /*height: 200px;*/
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, #4a1a8c, #36126b);
        border-radius: 10px;
        /*      margin: 0 auto 1.5rem;*/
        position: relative;
        z-index: 1;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        overflow: hidden;
    }

        .carousel-item .icon-container img, .item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

    .carousel-card i {
        font-size: 2.8rem;
        background: linear-gradient(to right, #d8b4fe, #8b5cf6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .carousel-card h5 {
        font-weight: 700;
        margin-bottom: 0.8rem;
        font-size: 1.4rem;
        position: relative;
        z-index: 1;
    }

    .carousel-card p, #carouselCategories .item p {
        color: var(--light-text);
        margin: 1.5rem;
        font-size: 0.95rem;
        position: relative;
        z-index: 1;
        min-height: 60px;
    }

    .carousel-card .price {
        background: rgba(106, 59, 209, 0.3);
        padding: 8px 15px;
        border-radius: 30px;
        display: inline-block;
        font-weight: 700;
        font-size: 1.1rem;
        border: 1px solid #6d28d9;
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
        margin: 0 1.5rem;
    }

    .carousel-card:hover .price {
        background: rgba(106, 59, 209, 0.5);
        transform: scale(1.05);
    }

#carouselCategories .item {
    text-align: center;
}

    #carouselCategories .item:hover {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        border: 1px solid #b018c9;
    }
/*       #carouselCategories .item:hover img {
                transform: scale(1.1);
            }*/
.carousel-indicators {
    bottom: -15px !important;
}
/*     .carousel-control-prev {
            right: -75px !important;
        }
        .carousel-control-next {
            left: -75px !important;
        }*/

/* دکمه‌های اقدام */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.btn {
    border-radius: 15px;
    padding: 14px 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-size: 1.05rem;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--purple-gradient);
        z-index: -1;
        transition: opacity 0.3s ease;
        opacity: 1;
    }

    .btn:hover::before {
        opacity: 0.9;
    }

.btn-primary {
    background: transparent;
    box-shadow: 0 6px 20px rgba(106, 59, 209, 0.5);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid #8b5cf6;
    color: #d8b4fe;
}

    .btn-outline-light:hover {
        background: rgba(139, 92, 246, 0.15);
        color: white;
        border-color: #a78bfa;
    }

/* بخش‌های محتوا */
.section {
    padding: 3rem 1rem;
}

.section-title {
    text-align: center;
    margin: 0 auto 3rem;
    position: relative;
    font-size: 2rem;
    font-weight: 800;
    max-width: 800px;
    padding-bottom: 1.5rem;
}

    .section-title::after {
        content: '';
        display: block;
        width: 100px;
        height: 5px;
        background: var(--purple-gradient);
        border-radius: 3px;
        margin: 15px auto 0;
    }

.card {
    background: linear-gradient(145deg, #3b1173, #2a0c55);
    border-radius: 16px;
    border: 1px solid #6d28d9;
    color: white;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at top right, rgba(106, 59, 209, 0.2), transparent 70%);
        z-index: 0;
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        border-color: #b018c9;
    }

    .card i {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(to right, #d8b4fe, #8b5cf6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        z-index: 1;
    }

    .card h5 {
        font-weight: 700;
        margin-bottom: 0.8rem;
        font-size: 1.4rem;
        position: relative;
        z-index: 1;
    }

    .card p {
        color: var(--light-text);
        font-size: 1rem;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }

.view-all-btn {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 12px 35px;
    border-radius: 15px;
    background: rgba(106, 59, 209, 0.2);
    color: #d8b4fe;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #6d28d9;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .view-all-btn:hover {
        background: rgba(106, 59, 209, 0.3);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(106, 59, 209, 0.4);
    }

    .view-all-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        z-index: -1;
        transition: transform 0.6s ease;
        transform: translateX(-100%);
    }

    .view-all-btn:hover::before {
        transform: translateX(100%);
    }

/* دکمه اقدام اصلی */
.cta-container {
    text-align: center;
    margin: 4rem 0;
    padding: 0 1rem;
}

.cta-btn {
    background: var(--purple-gradient2);
    border: none;
    padding: 18px 50px;
    font-size: 1.3rem;
    border-radius: 18px;
    color: white;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(106, 59, 209, 0.6);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .cta-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        z-index: -1;
        transition: transform 0.6s ease;
        transform: translateX(-100%);
    }

    .cta-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(106, 59, 209, 0.8);
    }

        .cta-btn:hover::before {
            transform: translateX(100%);
        }

/* پاورقی */
footer {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--light-text);
    font-size: 1rem;
    background: rgba(26, 7, 54, 0.7);
    border-top: 1px solid rgba(106, 59, 209, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 30px 30px 0 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1.5rem 0;
}

    .social-links a {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(106, 59, 209, 0.2);
        border-radius: 50%;
        color: #d8b4fe;
        font-size: 1.3rem;
        transition: all 0.3s ease;
        border: 1px solid #6d28d9;
    }

        .social-links a:hover {
            background: rgba(106, 59, 209, 0.4);
            color: white;
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(106, 59, 209, 0.3);
        }

.copyright {
    margin-top: 1.5rem;
    color: #a78bfa;
    font-size: 0.95rem;
}

/* بخش دسته‌بندی‌ها */
.categories-section {
    padding: 4rem 1rem;
    background: rgba(43, 11, 90, 0.3);
}

.category-card {
    background: linear-gradient(145deg, #3b1173, #2a0c55);
    border-radius: 16px;
    border: 1px solid #6d28d9;
    color: white;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin: 0 10px;
}

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        border-color: var(--category-hover);
    }



.category-img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
}

.category-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.category-count {
    background: rgba(106, 59, 209, 0.3);
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #6d28d9;
    transition: all 0.3s ease;
}

.category-card:hover .category-count {
    background: rgba(220, 59, 109, 0.3);
    border-color: var(--category-hover);
    transform: scale(1.05);
}

a {
    text-decoration: none !important;
}
/* بهبودهای اضافه شده */
.logo-main {
    max-height: 150px;
    width: auto;
}

.logo {
    max-height: 50px;
}

.hero-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
    width: 100%;
}

/* دسته‌بندی‌ها در یک ردیف */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* پرفروش‌ترین‌ها در دو ردیف */
.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* استایل‌های جدید برای Swiper */
.swiper {
    width: 100%;
    padding: 30px 0;
}

.swiper-slide {
    text-align: center;
    padding: 0 10px;
    height: auto;
}


.swiper-pagination-bullet {
    margin-top: 10px;
    width: 30px;
    height: 3px;
    background-color: var(--light-text);
    opacity: 0.5;
    border-radius: 0px;
}


.swiper-pagination-bullet-active {
    background: var(--purple-gradient);
    opacity: 1;
}

/* بهبود نمایش در موبایل */

#swiperCategories .item {
    background: linear-gradient(145deg, #3b1173, #2a0c55);
    border-radius: 16px;
    border: 1px solid #6d28d9;
    color: white;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin: 0 auto;
}

    #swiperCategories .item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        border-color: var(--category-hover);
    }

#swiperCategories .icon-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #4a1a8c, #36126b);
    border-radius: 10px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

#swiperCategories .item h5 {
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

#swiperCategories .item p {
    color: var(--light-text);
    margin: 1.5rem;
    font-size: 0.95rem;
    min-height: 60px;
}

/* بهبود نمایش در موبایل */


/* بخش پرفروش‌ترین‌ها */
.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.swiper .card {
    /*background: linear-gradient(to bottom,#1e073f,#2e0d5b );*/
    border-radius: 16px;
    background-color:transparent;
    border: 0;
    color: white;
    padding: 2px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
  /*  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);*/
    position: relative;
    overflow: hidden;
}

.category-img-container {
    width: 100%;
    /*    height: 200px;*/
    display: flex;
    align-items: center;
    justify-content: center;
/*    background: linear-gradient(145deg, #4a1a8c, #36126b);*/
    border-radius: 10px;
/*    margin: 0 auto 1.5rem;*/
    overflow: hidden;
}

/*.category-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }*/


.hero-best-sellers-grid {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.hero-column {
    /*display: flex;
            flex-direction: column;
            gap: 20px;
            flex: 1;*/
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /*background-color: #fff;*/
}

.hero-card {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

    .hero-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }
    /*     .hero-card img {
                width: 100%;
                height: auto;
            }*/
    .hero-card img {
        width: 100%;
        /*   display: block;*/
        transition: transform 0.5s ease;
    }

    .hero-card:hover img {
        transform: scale(1.05);
    }

.hero-tall {
    height: 100%;
}

.desktop-img {
    display: block;
}

.mobile-img {
    display: none;
}

@media (min-width: 769px) {
    .hero-square-column .hero-card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .hero-card img {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .hero-best-sellers-grid {
        flex-direction: column;
    }

    .hero-square-column {
        flex-direction: row;
        justify-content: space-between;
    }

        .hero-square-column .hero-card {
            flex: 1;
            max-width: 49%;
        }

    .hero-tall-column {
        order: 2;
    }

    .hero-square-column:first-of-type {
        display: flex;
        order: 1;
    }

    .hero-square-column:last-of-type {
        display: flex;
        order: 3;
    }

    .desktop-img {
        display: none;
    }

    .mobile-img {
        display: block;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-best-sellers-grid {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-logo, h1, .hero-subtitle {
    animation: fadeIn 0.6s ease-out forwards;
}


@media (min-width: 992px) {
    .search-container

{
    max-width: 600px;
    margin: auto;
    margin-top: 1.5rem !important;
    margin-bottom: 3rem;
    text-align: center;
    margin-left: auto !important;
}

.search-input {
    width: 100% !important;
}

.hero-logo {
    max-width: 600px;
}

}



/* بهبودهای ریسپانسیو */
@media (max-width: 992px) {
    .hero {
        padding-top: 5rem;
    }

        .hero h1 {
            font-size: 1.9rem;
        }

    .section-title {
        font-size: 1.8rem;
    }

    .navbar-collapse {
        background: rgba(26, 7, 54, 0.95);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }

    /* تنظیمات موبایل برای ناوبری */
    .navbar .container {
        flex-direction: row;
        align-items: center;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .navbar-toggler {
        margin-right: 0;
    }

    .navbar-collapse {
        order: 4;
        width: 100%;
    }

    .swiper-pagination {
        bottom: 100px;
    }

    #swiperCategories .item {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        margin: auto;
    }

    .hero {
        padding-top: 4rem;
    }

    .logo {
        max-height: 40px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 0;
    }

    .section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .cta-btn {
        padding: 16px 40px;
        font-size: 1.2rem;
    }

    .carousel-control-prev, .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-card {
        width: 100%;
        /*margin: 10px 0;*/
    }

    .category-card {
        width: 100%;
        margin: 10px 0;
    }

    .hero-logo {
        margin-bottom: 0;
        /*margin-top: 35px;*/
    }
}

@media (max-width: 768px) {

    .swiper-slide {
        /*width: 33.33% !important;*/
        min-width: 33.33% !important;
        padding: 0;
    }

    .carousel-card, .item {
        /*padding: 15px 10px !important;*/
    }

        .carousel-card h5, .item h5 {
            font-size: 1.1rem !important;
        }

        .carousel-card .price, .category-count {
            font-size: 0.9rem !important;
            padding: 5px 10px !important;
        }

    .icon-container {
        /*height: 120px !important;*/
    }

    .carousel-card p, .item p {
        min-height: auto !important;
        margin: 10px 0 !important;
        font-size: 0.85rem !important;
    }

    .swiper-button-next, .swiper-button-prev {
        display: block;
    }
}



@media (max-width: 576px) {
    .hero {
        padding-top: 3.5rem;
    }

        .hero h1 {
            font-size: 1.2rem;
        }

    .section-title {
        font-size: 1.4rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

        .action-buttons .btn {
            width: 100%;
            max-width: 300px;
        }

    .carousel-card {
        /*padding: 20px 15px;*/
    }

        .carousel-card i {
            font-size: 2.5rem;
        }

    /*     .category-img-container,
                .carousel-card .icon-container {
                    height: 150px;
                }*/
}



@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .best-sellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid, .best-sellers-grid {
        grid-template-columns: 1fr !important;
    }
}

/* استایل‌های قبلی */
/* ... (همان استایل‌های قبلی) ... */
/* استایل‌های جدید برای ناوبری */
.auth-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-icon {
    color: #d8b4fe;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    position: relative;
}

    .auth-icon:hover {
        color: white;
        transform: translateY(-3px);
    }

.search-container {
    position: relative;
    margin-left: 15px;
}

.search-input::placeholder {
    /*color: #fff;*/ color: #d8b4fe;
    opacity: 1; /* در برخی مرورگرها مثل فایرفاکس برای نمایش کامل لازم است */
}

.search-input {
    background: rgba(106, 59, 209, 0.2);
    border: 1px solid #6d28d9;
    border-radius: 30px;
    padding: 8px 20px 8px 45px;
    color: white;
    width: 220px;
    transition: all 0.3s ease;
    font-family: 'IRANSansWeb', 'IRANYekan', sans-serif;
}

    .search-input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(106, 59, 209, 0.5);
        width: 250px;
    }

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d8b4fe;
}

/* حالت موبایل */
@media (max-width: 992px) {
    .auth-icons {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(106, 59, 209, 0.3);
        justify-content: center;
        width: 100%;
    }

    .search-container {
        margin: 15px 0 0;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

        .search-input:focus {
            width: 100%;
        }
}

@media (max-width: 768px) {
    .auth-icons {
        gap: 25px;
    }
}


/* استایل‌های جدید برای بخش دسته‌بندی‌ها */
.all-services {
    padding: 3rem 0;
}

.all-services__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.all-services__title {
    text-align: center;
    margin-bottom: 3rem;
}

    .all-services__title h2 {
        font-size: 2rem;
        font-weight: 800;
        background: linear-gradient(to right, #d8b4fe, #8b5cf6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.all-services__items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.all-services__item {
    background: linear-gradient(100deg, #3b1173, #090116);
    border-radius: 16px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

    .all-services__item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        border-color: var(--category-hover);
    }

    .all-services__item a {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: start;
        gap: 15px;
        height: 100%;
        color: white;
        text-decoration: none;
        padding: 10px;
        position: relative;
        z-index: 100;
    }

    .all-services__item img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        margin-bottom: 0; /* چون دیگه زیر متن نیست */
        transition: transform 0.3s ease;
    }

    .all-services__item:hover img {
        transform: scale(1.1);
    }

    .all-services__item h3 {
        font-size: 1rem;
        font-weight: 500;
        margin: 0;
    }

    /* افکت‌های اضافی */
    .all-services__item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at top right, rgba(106, 59, 209, 0.2), transparent 70%);
        z-index: 0;
    }

    .all-services__item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: var(--purple-gradient);
        border-radius: 0 0 16px 16px;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }

    .all-services__item:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }

/* ریسپانسیو */
@media (max-width: 1200px) {
    .all-services__items {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .all-services__items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .all-services__items {
        grid-template-columns: repeat(2, 1fr);
    }
    /*     .swiper-button-prev, .swiper-rtl .swiper-button-next {
                left: 10px !important;
            }
            .swiper-button-next, .swiper-rtl .swiper-button-prev {
                right: 10px !important;
            }*/
}

@media (max-width: 480px) {
    .all-services__items {
        grid-template-columns: 1fr;
    }

    .all-services__item {
        max-width: 300px;
        margin: 0 auto;
    }
}


/* استایل‌های جدید برای اسلایدر پرفروش‌ترین‌ها در موبایل */
.best-sellers-swiper {
    display: none;
}

@media (max-width: 768px) {
    .best-sellers-grid {
        display: none;
    }

    .best-sellers-swiper {
        display: block;
        padding: 15px 0 40px;
    }

        .best-sellers-swiper .swiper-slide {
            height: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .best-sellers-swiper .card {

            margin: 0;
            height: auto;
        }

            .best-sellers-swiper .card p {
                display: none;
            }

            .best-sellers-swiper .card h5 {
                font-size: .9rem !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                padding: 0 8px;
                width: 140px;
                font-weight: 500;
                display:none;
            }
}


/* استایل‌های جدید برای دکمه‌های ناوبری */
.best-sellers-swiper {
    position: relative;
    padding: 10px 15px 40px; /* ایجاد فضای کافی برای دکمه‌ها */
}
.best-sellers-grid .card {
    padding: 0px !important;
    background: none !important;
    background-color: transparent !important;
}
/*----------محصولات پرفروش----------*/
    .best-sellers-grid .card p, .best-sellers-grid .card h5 {
        display: none !important;
    }

/*-----------------------signup----------------------*/
/* بخش فرم ثبت نام */
.signup-section {
    padding: 7rem 1rem 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.signup-card {
    /*background: linear-gradient(145deg, #3b1173, #2a0c55);*/
    border-radius: 20px;
    /*border: 1px solid #6d28d9;*/
    padding: 40px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

    .signup-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at top right, rgba(106, 59, 209, 0.2), transparent 70%);
        z-index: 0;
    }

.signup-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #d8b4fe, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--light-text);
    position: relative;
    font-size: small;
}

.form-control {
    background: rgba(106, 59, 209, 0.2);
    border: 0;
    border-radius: 15px;
    padding: 14px 20px;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'IRANSansWeb', 'IRANYekan', sans-serif;
    font-size: .9rem !important;
}

    .form-control:focus {
        color: #fff;
        outline: none;
        box-shadow: 0 0 0 3px rgba(106, 59, 209, 0.5);
        border-color: #b920ca;
        background: rgba(106, 59, 209, 0.3);
    }

    .form-control::placeholder {
        color: #a78bfa;
    }

.input-icon {
    position: absolute;
    left: 20px;
    top: 15px;
    color: #a78bfa;
}

.btn {
    border-radius: 15px;
    padding: 14px 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    width: 100%;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--purple-gradient);
        z-index: -1;
        transition: opacity 0.3s ease;
        opacity: 1;
    }

    .btn:hover::before {
        opacity: 0.9;
    }

.btn-primary {
    background: transparent;
    box-shadow: 0 6px 20px rgba(106, 59, 209, 0.5);
}

.signup-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--light-text);
}

    .signup-footer a {
        color: #d8b4fe;
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 600;
        z-index: 100;
        position: relative;
    }

        .signup-footer a:hover {
            color: white;
            text-decoration: underline;
        }

.form-check {
    display: flex;
    align-items: flex-start;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-left: 10px;
    width: 20px;
    height: 20px;
    background: rgba(106, 59, 209, 0.2);
    border: 1px solid #6d28d9;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

    .form-check-input:checked {
        background: var(--purple-gradient);
    }

.form-check-label {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

    .form-check-label a {
        color: #d8b4fe;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .form-check-label a:hover {
            color: white;
            text-decoration: underline;
        }

/*------signup-------*/

/*------page-------*/
.page-content-section {
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    min-height: 70vh;
}

.page-title {
    background: linear-gradient(135deg, #d8b4fe, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.page-subtitle {
    color: var(--light-text) !important;
    font-weight: 400;
}

.content-body {
    background: rgba(43, 11, 90, 0.6) !important;
    border: 1px solid rgba(106, 59, 209, 0.3);
    backdrop-filter: blur(10px);
}

    .content-body p {
        color: var(--light-text);
        line-height: 1.8;
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    .content-body h2,
    .content-body h3,
    .content-body h4 {
        color: #d8b4fe;
        margin: 2rem 0 1rem 0;
        font-weight: 700;
    }

    .content-body h2 {
        font-size: 1.8rem;
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 0.5rem;
    }

    .content-body h3 {
        font-size: 1.5rem;
    }

    .content-body ul,
    .content-body ol {
        color: var(--light-text);
        margin: 1rem 0;
        padding-right: 1.5rem;
    }

    .content-body li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    .content-body a {
        color: #8b5cf6;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .content-body a:hover {
            color: #d8b4fe;
            text-decoration: underline;
        }

    .content-body blockquote {
        border-right: 4px solid var(--accent-color);
        padding: 1rem 2rem;
        margin: 2rem 0;
        background: rgba(106, 59, 209, 0.1);
        border-radius: 0 8px 8px 0;
        font-style: italic;
    }

    .content-body code {
        background: rgba(0, 0, 0, 0.2);
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        color: #f8f9fa;
        font-family: 'Courier New', monospace;
    }

    .content-body pre {
        background: rgba(0, 0, 0, 0.3);
        padding: 1rem;
        border-radius: 8px;
        overflow-x: auto;
        margin: 1.5rem 0;
        border: 1px solid rgba(106, 59, 209, 0.3);
    }

        .content-body pre code {
            background: none;
            padding: 0;
        }

    .content-body table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        background: rgba(43, 11, 90, 0.5);
    }

    .content-body th,
    .content-body td {
        padding: 0.75rem;
        border: 1px solid rgba(106, 59, 209, 0.3);
        text-align: right;
    }

    .content-body th {
        background: rgba(106, 59, 209, 0.2);
        color: #d8b4fe;
        font-weight: 600;
    }

    .content-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1.5rem 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

.bg-dark-soft {
    background: rgba(26, 7, 54, 0.7) !important;
}

.text-purple {
    color: #8b5cf6 !important;
}

/*------page-------*/


/* بخش FAQ */
.faq-section {
    padding: 2rem 1rem 5rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    color: #d8b4fe;
    text-align:right;
}

.faq-item {
    background: linear-gradient(145deg, #3b1173, #2a0c55);
    border-radius: 12px;
    border: 1px solid #6d28d9;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    .faq-item:hover {
        border-color: var(--accent-hover);
        box-shadow: 0 6px 20px rgba(106, 59, 209, 0.3);
    }

.faq-question {
    padding: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--light-text);
    background: rgba(43, 11, 90, 0.5);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}




/* ریسپانسیو */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
}
/*-----------faq-------------*/