/* ==========================================================
   Nahal Lightweight Carousels — استایل پایه (مشترک بین هر دو)
   ========================================================== */
.nahal-carousel {
    position: relative;
    width: 100%;
}

.nahal-carousel__viewport {
    overflow: hidden;
    box-sizing: border-box;
    padding-left: var(--nahal-offset-left, 0px);
    padding-right: var(--nahal-offset-right, 0px);
}

.nahal-carousel__track {
    display: flex;
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
}
.nahal-carousel__track:active {
    cursor: grabbing;
}

.nahal-carousel__slide {
    flex: 0 0 var(--nahal-slide-width, 280px);
    box-sizing: border-box;
    margin-inline-end: var(--nahal-gap, 16px);
}
.nahal-carousel__slide:last-child {
    margin-inline-end: 0;
}

/* فلش‌های ناوبری */
.nahal-carousel__arrows {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.nahal-carousel__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e6d9b8;
    background: #fff;
    color: #b6862c;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}
.nahal-carousel__arrow:hover {
    background: #b6862c;
    color: #fff;
}

/* ==========================================================
   ویجت «ویژگی‌ها»
   ========================================================== */
.nahal-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.nahal-feature-card__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #b6862c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.nahal-feature-card__icon img {
    max-width: 26px;
    max-height: 26px;
}

.nahal-feature-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nahal-feature-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #2c2c2c;
}

.nahal-feature-card__desc {
    font-size: 12px;
    color: #7a7a7a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================
   ویجت «دسته‌بندی»
   ========================================================== */
.nahal-category-card {
    height: 100%;
}

.nahal-category-card__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px 999px 24px 24px;
    overflow: hidden;
    aspect-ratio: 5 / 6;
    text-decoration: none;
}

.nahal-category-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.nahal-category-card__label {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 22px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ==========================================================
   ریسپانسیو (بریک‌پوینت‌ها فقط جهت مرجع بصری؛ محاسبه واقعیِ
   عرض اسلاید و افست در JS انجام می‌شود)
   ========================================================== */
@media (max-width: 767px) {
    .nahal-feature-card {
        padding: 14px 16px;
        border-radius: 16px;
    }
    .nahal-feature-card__desc {
        display: none;
    }
    .nahal-category-card__label {
        font-size: 13px;
        padding: 6px 16px;
        bottom: 12px;
    }
}
