.scroll-container-wrapper {
    background-color: #f7b00891;
    border-radius: 16px;
    padding: 20px;
    margin: auto;
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative; /* مهم برای موقعیت‌دهی دکمه‌ها */
    overflow: hidden;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    scrollbar-width: none;
}

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

.product-card {
    flex: 0 0 auto;
    width: 209px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-left: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateX(-10px);
}

    .product-card.visible {
        transform: translateX(-12px);
    }

.product-image-wrapper {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
  height: 139px;
  object-fit: unset;
  width: 123px;
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    height: 54px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 10px;
}

.original-price {
    font-size:13px;
    color: #999;
    text-decoration: line-through;
}

.discounted-price,
.single-price {
    font-size: 13px;
    font-weight: bold;
    color: #2d974e;
}

.discount-badge,
.featured-badge {
    position: absolute;
    top: 10px;
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
}

.discount-badge {
    left: 10px;
    background-color: #e74c3c;
}

.featured-badge {
    right: 10px;
    background-color: #3498db;
}

.add-to-cart {
    margin-top: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .add-to-cart:hover {
        background-color: #2980b9;
    }

.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* دکمه‌های اسلاید */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

    .slider-arrow:hover {
        background-color: rgba(0, 0, 0, 0.6);
    }

.arrow-left {
    left: 2px;
}

.arrow-right {
    right: 2px;
}
/* اضافه کنید */
.auto-scroll-toggle {
    margin: 10px;
    padding: 6px 12px;
    font-size: 0.8rem;
    background-color: #f7b008;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .auto-scroll-toggle:hover {
        background-color: #e5a200;
    }

.container1 {
    display: flex;
    justify-content: center;
    align-items: center;
}
.story-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    gap: 20px;
    scrollbar-width: none; /* Firefox */
}

    .story-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

.story-wrapper {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    min-width: 90px;
    text-decoration: none;
    color: inherit;
}

.story-image {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 2px solid #ddd;
}

    .story-image:hover {
        transform: scale(1.1);
    }

    .story-image img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 9999px;
    }

.story-title {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.py-5 {
    padding-top: 3px !important;
    padding-bottom: 22px !important;
}

.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.category-header {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary-color);
}

.filter-sidebar {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.filter-title {
    border-bottom: 2px solid var(--honey-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

@media (max-width: 408px) {
    .product-card {
        width: min-content;
        min-width: 177px;
    }
}

.filter-title {
    border-bottom: 2px solid var(--honey-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.filter-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.none{display:none;}
.has-submenu {
    position: relative;
    cursor: pointer;
    border-bottom: solid 1px #e4e6e3;
}

.arrow {
    float: right;
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.submenu {
    display: none;
    margin-top: 5px;
    padding-right: 20px;
}

    .submenu .nav-link {
        padding: 0.3rem 1rem;
    }

.has-submenu.open .arrow {
    transform: rotate(90deg);
}

/* Hide filters on mobile by default */
#filtersContent {
    display: block;
}

@media (max-width: 991px) {
    #filtersContent {
        display: none;
    }

    /* Sidebar styles */
    .filter-sidebar {
        position: fixed;
        top: 0;
        right: -300px; /* Hidden by default */
        width: 300px;
        height: 100%;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1050;
        overflow-y: auto;
        transition: right 0.3s ease;
    }

        .filter-sidebar.active {
            right: 0;
        }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
    }

    /* Floating Filter Button */
    .floating-filter-btn {
        position: fixed;
        bottom: 120px;
        right: 20px;
        z-index: 1060;
        background-color: #458e1c;
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 29%;
        font-size: 24px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        cursor: pointer;
        line-height: 1px;
    }

        .floating-filter-btn:hover {
            background-color: #458e1c;
            transform: scale(1.1);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        .floating-filter-btn i.bi {
            font-size: 22px;
        }
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

.switch input:checked + .slider {
    background-color: #0d6efd;
}

    .switch input:checked + .slider:before {
        transform: translateX(24px);
    }

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
    font-family: Tahoma, sans-serif;
    background-color: #222;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    background: transparent;
    border: 4px solid #fff;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    margin: 0;
}

/* استایل کلی pagination */
.pagination {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* استایل همه دکمه‌ها */
.btn-pager,
.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* استایل دکمه قبلی و بعدی - کمی بلندتر */
.btn-pager {
    min-width: 60px;
    text-align: center;
    border-radius: 20px;
    font-size: 14px;
}

/* استایل عدد فعلی */
.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

/* هنگام هاور روی دکمه‌ها */
.btn-pager:hover {
    background-color: #f1f1f1;
    color: #007bff;
    border-color: #bbb;
}

.btn-pager {
    transform: scale(1);
}

    .btn-pager:hover {
        transform: scale(1.05);
    }

@media (max-width: 576px) {
    .btn-pager {
        min-width: 50px;
        font-size: 13px;
    }

    .pagination {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
 
@media (max-width: 600px) {
    .product-container

{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* وسط‌چین کردن کارت‌ها */
}

.product-card {
    flex: 1 1 160px; /* انعطاف‌پذیری بهتر */
    min-width: 160px; /* حداقل عرض */
    max-width: 200px; /* حداکثر عرض */
}

}










/* تنظیمات پایه اسلایدر */
.swiper-slidemian {
    background: #000; /* در صورت نیاز */
    position: relative;
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .swiper-slidemian img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: fill; /* جلوگیری از برش و فشرده شدن */
    }

/* محتوای روی عکس */
.slide-contentmian {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.swiper-slidemian {
    position: relative; /* مهم برای موقعیت مطلق داخلی */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: white;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    pointer-events: auto; /* اجازه کلیک روی دکمه */
}

 