.vss-showcase-carousel-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
}

.vss-showcase-carousel-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.vss-showcase-carousel-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-wrap: balance;
}

.vss-showcase-carousel-view-all {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.9;
    white-space: nowrap
}

.vss-showcase-carousel-view-all:hover,
.vss-showcase-carousel-view-all:focus {
    color:#fff;
    text-decoration: underline;
}

/* Outer carousel container */
.vss-showcase-carousel {
    position: relative;
    display: flex;
    align-items: center;
}

/* Horizontal track */
.vss-showcase-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem 0.25rem 0.5rem;
}

.vss-category-carousel-section .vss-showcase-carousel-track {
    width: 100%;
    justify-content: space-between;
}
/* Hide scrollbars (where possible) */
.vss-showcase-carousel-track::-webkit-scrollbar {
    display: none;
}
.vss-showcase-carousel-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Cards inside carousel (reuse vss-video-card base) */
.vss-carousel-card {
    min-width: 220px;
    max-width: 220px;
}

/* Arrows */
.vss-carousel-arrow {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.14);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.vss-carousel-arrow:hover:not(.vss-carousel-arrow-hidden):not(.vss-carousel-arrow-disabled),
.vss-carousel-arrow:focus {
    background: rgba(255,255,255,0.25);
    opacity: 1;
}

.vss-showcase-carousel:hover .vss-carousel-arrow:not(.vss-carousel-arrow-hidden):not(.vss-carousel-arrow-disabled),
.vss-showcase-carousel:focus-within .vss-carousel-arrow:not(.vss-carousel-arrow-hidden):not(.vss-carousel-arrow-disabled),
.vss-favorites-carousel:hover .vss-carousel-arrow:not(.vss-carousel-arrow-hidden):not(.vss-carousel-arrow-disabled),
.vss-favorites-carousel:focus-within .vss-carousel-arrow:not(.vss-carousel-arrow-hidden):not(.vss-carousel-arrow-disabled) {
    opacity: 1;
    pointer-events: auto;
}

.vss-carousel-arrow-disabled,
.vss-carousel-arrow-hidden {
    opacity: 0;
}

.vss-category-carousel-section .vss-carousel-arrow-prev {
    position: absolute;
    left: 0;
    z-index: 2;
    background: rgba(255,255,255,0.5);
}

.vss-category-carousel-section .vss-carousel-arrow-next {
    position: absolute;
    right: 0;
    z-index: 2;
    background: rgba(255,255,255,0.5);
}

.vss-category-carousel-section .vss-carousel-arrow:hover:not(.vss-carousel-arrow-hidden):not(.vss-carousel-arrow-disabled),
.vss-category-carousel-section .vss-carousel-arrow:focus {
    background: rgba(255,255,255,0.75);
}

/* Base: no horizontal scroll by default */
[data-vss-carousel="categories"] [data-vss-carousel-track] {
    overflow-x: hidden;
}

/* When JS detects overflow, allow scrolling (touch / drag) */
[data-vss-carousel="categories"].vss-carousel--scrollable [data-vss-carousel-track] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hide arrows when not scrollable */
.vss-carousel-arrow-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Optional: style disabled arrows at edges */
.vss-carousel-arrow-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Visible but disabled at edge */
.vss-showcase-carousel:hover .vss-carousel-arrow-disabled  {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
    transform: none;
}

/* Menu carousel section inherits main carousel styling */
.vss-showcase-menu-carousel-section {
    margin-top: 2.5rem;
}

/* Menu cards: image (or placeholder) + title */
/* Container */
.vss-menu-card {
    position: relative;
    min-width: 220px;
    max-width: 220px;
    height: 170px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

/* Link fills the whole card */
.vss-menu-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* Background image layer */
.vss-menu-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.25s ease;
}

/* Bottom title bar */
.vss-menu-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 96, 222, 0.8);
    padding: 0.55rem 0.75rem;
    text-align: center;
}

.vss-menu-card:nth-of-type(2) .vss-menu-card-overlay {
    background: rgba(255, 215, 6, 0.8);
}

.vss-menu-card:nth-of-type(3) .vss-menu-card-overlay {
    background: rgba(230, 7, 155, 0.8);
}

.vss-menu-card:nth-of-type(4) .vss-menu-card-overlay {
    background: rgba(6, 204, 222, 0.8);
}

.vss-menu-card:nth-of-type(5) .vss-menu-card-overlay {
    background: rgba(118, 52, 188, 0.8);
}

/* Title text */
.vss-menu-card-title {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0px 0px 3px #000;
}

/* Hover effects */
.vss-menu-card:hover .vss-menu-card-bg,
.vss-menu-card:focus-within .vss-menu-card-bg {
    transform: scale(1.06);
}

.vss-menu-card:hover .vss-menu-card-overlay,
.vss-menu-card:focus-within .vss-menu-card-overlay {
    background: rgba(6, 96, 222, 1);
}

.vss-menu-card:nth-of-type(2):hover .vss-menu-card-overlay,
.vss-menu-card:nth-of-type(2):focus-within .vss-menu-card-overlay {
    background: rgba(255, 215, 6, 1);
}

.vss-menu-card:nth-of-type(3):hover .vss-menu-card-overlay,
.vss-menu-card:nth-of-type(3):focus-within .vss-menu-card-overlay {
    background: rgba(230, 7, 155, 1);
}

.vss-menu-card:nth-of-type(4):hover .vss-menu-card-overlay,
.vss-menu-card:nth-of-type(4):focus-within .vss-menu-card-overlay {
    background: rgba(6, 204, 222, 1);
}

.vss-menu-card:nth-of-type(5):hover .vss-menu-card-overlay,
.vss-menu-card:nth-of-type(5):focus-within .vss-menu-card-overlay {
    background: rgba(118, 52, 188, 1);
}

@media (max-width: 768px) {
    .vss-showcase-carousel-section {
        padding: 0 1rem;
    }
    
    .vss-carousel-card {
        display: block;
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .vss-carousel-card:hover,
    .vss-carousel-card:focus-within {
        transform: none;
        box-shadow: none;
    }

    .vss-carousel-card img {
        max-width: 220px;
        height: auto;
        object-fit: cover;
    }

    .vss-carousel-meta {
        flex: 1;
        padding: 0 5px 5px;
    }

    .vss-carousel-description {
        display: none;
    }

    .vss-carousel-arrow {
        display: none;
    }
}
