.shs-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shs-slides {
    position: relative;
    width: 100%;
}

.shs-slide {
    display: none;
    width: 100%;
}

.shs-slide.active {
    display: block;
}

.shs-slide a {
    display: block;
    position: relative;
}

.shs-slide {
    position: relative;
}

.shs-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* الوضع الاختياري: ارتفاع ثابت أو ملء الشاشة (يُفعّل عبر [hero_slider height="100vh"]) */
.shs-slider.shs-fixed-height .shs-slides,
.shs-slider.shs-fixed-height .shs-slide,
.shs-slider.shs-fixed-height .shs-slide a {
    height: 100%;
}

.shs-slider.shs-fixed-height .shs-slide img {
    height: 100%;
    object-fit: cover;
}

.shs-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    line-height: 1.4;
}

.shs-slide-content.shs-has-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.shs-heading {
    color: #fff;
    font-size: clamp(20px, 4vw, 42px);
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.shs-subtitle {
    color: #f2f2f2;
    font-size: clamp(14px, 2vw, 18px);
    margin: 0;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.shs-prev,
.shs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    font-size: 18px;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.shs-prev:hover,
.shs-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.shs-prev {
    left: 16px;
}

.shs-next {
    right: 16px;
}

.shs-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.shs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
}

.shs-dot.active {
    background: #fff;
}

@media (max-width: 600px) {
    .shs-prev,
    .shs-next {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* ============================================================
 * شبكة صناديق التصنيفات [hero_category_grid]
 * ============================================================ */
.shs-cat-grid {
    display: grid;
    grid-template-columns: repeat(var(--shs-cols, 4), 1fr);
    gap: 20px;
}

.shs-cat-item {
    display: block;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    line-height: normal;
}

.shs-cat-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.shs-cat-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.shs-cat-title {
    display: block;
    text-align: center;
    padding: 12px 10px;
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

@media (max-width: 782px) {
    .shs-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
