﻿/* Category slider - hero media strip */
.category-slider-container {
    position: relative;
    width: 100%;
    margin-left: 0;
    padding: 40px 0 60px;
}

@media (min-width: 992px) {
    /* Stretch slider to viewport edges on large screens */
    .container > .category-slider-container {
        width: 100vw;
        max-width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        padding-left: 0;
        padding-right: 0;
    }
}

.category-slider-container::before,
.category-slider-container::after {
    display: none;
}

/* Base mobile adjustments live in the breakpoint at the end of this file */

.category-slider-window {
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.category-slider-window.is-dragging { cursor: grabbing; }

.category-slider {
    display: flex;
    gap: 28px;
    align-items: stretch;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.category-slide {
    flex: 0 0 260px;
    display: flex;
}

.category-slide-card {
    display: block;
    width: 100%;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    transform-origin: center;
    transition: transform 0.45s ease;
}

.category-slide-media {
    position: relative;
    height: 432px;
    border-radius: 36px;
    overflow: hidden;
}

.category-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-slide-media::after {
    content: '';
    position: absolute;
    inset: 0;
   
}

.category-slide-content {
    position: absolute;
    inset: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.category-slide-content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(3,4,6,0) 0%, rgba(3,4,6,0.75) 90%);
    pointer-events: none;
    z-index: -1;
}

.category-slide-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

.category-slide-title {
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    text-shadow: 0 12px 30px rgba(0,0,0,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

@media (max-width: 768px) {
    .category-slide-title {
        white-space: normal;
    }
}

.category-slide-subtitle {
    font-size: 0.96rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.35;
    text-shadow: 0 10px 24px rgba(0,0,0,0.7);
}

.category-slide-card:hover img { transform: scale(1.04); }
.category-slide.active .category-slide-card { transform: translateY(-4px); }

.category-slider-controls {
    width: fit-content !important;
    max-width: 100% !important;
    margin: 14px auto 0 !important;
    padding: 4px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 999px !important;
    background: rgba(9,13,19,0.45) !important;
}

.category-slider-btn {
    width: 23px !important;
    height: 23px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    background: rgba(13,18,26,0.55) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 1 !important;
    transition: background 0.3s ease, border-color 0.3s ease !important;
}

.category-slider-btn i {
    font-size: 11px !important;
    line-height: 1 !important;
}

.category-slider-btn:hover {
    background: #f8553d;
    border-color: #f8553d;
}

.category-slider-dots {
    display: inline-flex !important;
    gap: 3px !important;
    align-items: center !important;
}

.category-slider-dot {
    width: 4px !important;
    height: 4px !important;
    border-radius: 999px !important;
    border: none !important;
    background: rgba(255,255,255,0.35) !important;
    transition: width 0.3s ease, background 0.3s ease !important;
}

.category-slider-dot.active {
    width: 10px !important;
    background: #f8553d !important;
}

@media (max-width: 1400px) {
    .category-slide-media { height: 384px; }
}

@media (max-width: 992px) {
    .category-slider { gap: 18px; }
    .category-slide-media { height: 336px; }
    .category-slide-content { padding: 24px; }
}

@media (max-width: 768px) {
    .category-slider-container::before,
    .category-slider-container::after { display: none; }
    /* Full-bleed slider on mobile */
    .category-slider-container {
        width: 100vw;
        max-width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        padding: 30px 0 40px;
        padding-left: 0;
        padding-right: 0;
    }
    .category-slider-window {
        padding-left: 0;
        padding-right: 0;
    }
    .category-slider {
        padding: 0;
        gap: 18px;
    }
    .category-slide { flex: 0 0 75vw; }
    .category-slide-media { height: 288px; }
    .category-slide-content { padding: 22px; }
}

@media (max-width: 576px) {
    .category-slide { flex: 0 0 85vw; }
    .category-slide-media { height: 264px; }
    .category-slide-content { padding: 18px; }
}


