.slider-track {
    display: flex;
    gap: 16px;
    direction: rtl;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
    will-change: transform;
}

.slider-track.dragging {
    cursor: grabbing;
}

/* =========================================
   HERO SLIDER - RESPONSIVE
========================================= */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider .carousel,
.hero-slider .carousel-inner {
    width: 100%;
}

.hero-slider .carousel-item {
    position: relative;
    height: clamp(300px, 38vw, 520px);
    min-height: 300px;
    overflow: hidden;
}

.hero-slider .carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay */
.slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;

    padding: 40px 8%;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.25) 45%,
            rgba(0, 0, 0, 0.78) 100%
        );
}

/* Content */
.slider-content {
    width: 100%;
    max-width: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slider-content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.4;
    font-weight: 800;
    color: var(--white);
}

.slider-content p {
    max-width: 440px;
    margin: 0 auto 24px;
    font-size: clamp(.85rem, 1.2vw, 1.05rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, .85);
}

/* Indicators */
.hero-slider .carousel-indicators {
    z-index: 5;
    margin-bottom: 18px;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;

    margin: 0 4px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .4);

    opacity: 1;

    transition:
        width .3s ease,
        background-color .3s ease,
        transform .3s ease;
}

.hero-slider .carousel-indicators .active {
    width: 30px;
    border-radius: 6px;
    background: var(--accent);
}

/* Arrows */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    z-index: 5;

    top: 50%;

    width: 48px;
    height: 48px;

    margin-top: -24px;

    opacity: 0;

    background: rgba(255, 255, 255, .15);

    border-radius: 14px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        opacity .3s ease,
        background-color .2s ease,
        transform .2s ease;
}

.hero-slider .carousel-control-prev {
    right: 20px;
    left: auto;
}

.hero-slider .carousel-control-next {
    left: 20px;
    right: auto;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: rgba(255, 255, 255, .25);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .hero-slider .carousel-item {
        height: 380px;
        min-height: 380px;
    }

    .slider-overlay {
        padding: 30px 6%;
    }

    .slider-content {
        max-width: 420px;
    }

    .slider-content h2 {
        font-size: 1.8rem;
    }

    .slider-content p {
        font-size: .9rem;
        max-width: 380px;
    }

    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 42px;
        height: 42px;
        margin-top: -21px;
        opacity: 1;
    }

    .hero-slider .carousel-control-prev {
        right: 12px;
    }

    .hero-slider .carousel-control-next {
        left: 12px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .hero-slider {
        width: 100%;
    }

    .hero-slider .carousel-item {
        height: 330px;
        min-height: 330px;
    }

    .hero-slider .carousel-item img {
        object-position: center;
    }

    .slider-overlay {
        align-items: flex-end;

        padding: 25px 20px 55px;

        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, .82) 0%,
                rgba(0, 0, 0, .48) 45%,
                rgba(0, 0, 0, .05) 100%
            );
    }

    .slider-content {
        max-width: 100%;
    }

    .slider-content h2 {
        font-size: 1.3rem;
        line-height: 1.5;

        margin-bottom: 7px;
    }

    .slider-content p {
        max-width: 100%;

        font-size: .78rem;
        line-height: 1.7;

        margin-bottom: 12px;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slider-content .btn-accent {
        font-size: .78rem;
        padding: 8px 15px;
    }

    /* Mobile arrows همیشه قابل مشاهده */
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 36px;
        height: 36px;

        margin-top: -18px;

        border-radius: 10px;

        opacity: 1;
    }

    .hero-slider .carousel-control-prev {
        right: 10px;
    }

    .hero-slider .carousel-control-next {
        left: 10px;
    }

    .hero-slider .carousel-indicators {
        margin-bottom: 12px;
    }

    .hero-slider .carousel-indicators [data-bs-target] {
        width: 7px;
        height: 7px;
        margin: 0 3px;
    }

    .hero-slider .carousel-indicators .active {
        width: 22px;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .hero-slider .carousel-item {
        height: 290px;
        min-height: 290px;
    }

    .slider-overlay {
        padding: 20px 16px 48px;
    }

    .slider-content h2 {
        font-size: 1.15rem;
    }

    .slider-content p {
        font-size: .72rem;
    }

    .slider-content .btn-accent {
        font-size: .72rem;
        padding: 7px 12px;
    }

    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }
}

/* ===== بخش‌ها ===== */
.section-padding {
    padding: 70px 0;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.section-subtitle {
    color: var(--gray-500);
    font-size: .88rem;
    margin-bottom: 0;
}
.section-link {
    font-size: .88rem;
    color: var(--gray-500);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
    white-space: nowrap;
}
.section-link:hover {
    color: var(--dark);
}
.section-link i {
    font-size: .7rem;
    transition: transform .2s;
}
.section-link:hover i {
    transform: translateX(-3px);
}

/* ===== دسته‌بندی ===== */
.category-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.category-btn {
    padding: 9px 26px;
    border-radius: 50px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Vazirmatn', sans-serif;
}
.category-btn:hover {
    border-color: var(--gray-400);
    color: var(--dark);
}
.category-btn.active {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

/* ===== اسلایدر محصولات ===== */
.product-slider-section {
    margin-bottom: 48px;
}
.product-slider-section.hidden-section {
    display: none;
}
.slider-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}
.slider-arrows {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.slider-arrow {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
    transition: all .2s;
    font-size: .85rem;
}
.slider-arrow:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}
.slider-arrow:disabled {
    opacity: .3;
    pointer-events: none;
}
.slider-viewport {
    overflow: hidden;
    position: relative;
}
.slider-track {
    display: flex;
    gap: 16px;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
    padding: 4px 0;
    cursor: grab;
    user-select: none;
}
.slider-track.dragging {
    transition: none;
    cursor: grabbing;
}
.slider-item {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
}

/* ===== باکس‌های ویژگی ===== */
.feature-box {
    text-align: center;
    padding: 28px 16px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all .3s;
}
.feature-box:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(198,249,31,.1);
}
.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem;
    color: var(--dark);
    transition: all .3s;
}
.feature-box:hover .feature-icon {
    background: var(--accent);
}
.feature-box h6 {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 6px;
}
.feature-box p {
    font-size: .82rem;
    color: var(--gray-500);
    margin: 0;
}

/* ===== بنر تبلیغاتی ===== */
.promo-banner {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 220px;
    background: var(--dark);
    display: flex;
    align-items: center;
}
.promo-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
}
.promo-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: var(--white);
}
.promo-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.promo-content p {
    color: var(--gray-400);
    margin-bottom: 20px;
    font-size: .92rem;
}

/* ===== بدون نتیجه ===== */
.no-results-section {
    text-align: center;
    padding: 60px 20px;
    display: none;
}
.no-results-section.show {
    display: block;
}
.no-results-section i {
    font-size: 3.5rem;
    color: var(--gray-300);
    margin-bottom: 16px;
    display: block;
}
.no-results-section h5 {
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 8px;
}
.no-results-section p {
    color: var(--gray-400);
    font-size: .9rem;
}

/* ===== ریسپانسیو ===== */
@media(max-width:1199px) {
    .slider-item {
        flex: 0 0 calc(33.333% - 11px);
    }
}
@media(max-width:991px) {
    .hero-slider .carousel-item {
        height: 380px;
    }
    .slider-content h2 {
        font-size: 1.7rem;
    }
    .slider-content p {
        font-size: .92rem;
    }
    .slider-overlay {
        padding-right: 5%;
    }
    .slider-item {
        flex: 0 0 calc(50% - 8px);
    }
}
@media(max-width:575px) {
    .hero-slider .carousel-item {
        height: 300px;
    }
    .slider-content h2 {
        font-size: 1.35rem;
    }
    .slider-content p {
        font-size: .82rem;
        margin-bottom: 1rem;
    }
    .promo-banner {
        height: 180px;
    }
    .promo-content {
        padding: 24px;
    }
    .promo-content h3 {
        font-size: 1.2rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.25rem;
    }
    .slider-item {
        flex: 0 0 calc(50% - 8px);
    }
    .product-img-wrap {
        height: 190px;
    }
}

.m-bottom {
    margin-bottom: 5px;
}
