/* Tabbed Collections Section */
.tabbed-collections {
    position: relative;
}

.tabbed-collections__title {
    text-align: left;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

@media screen and (min-width: 960px) {
    .tabbed-collections__title {
        margin-bottom: 10px;
    }
}

/* Tabs Container */
.tabbed-collections__tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 0;
}

@media (max-width: 959px) {
    .tabbed-collections__tabs {
        padding: 0 5px;
        gap: 4px;
    }
}

@media screen and (min-width: 960px) {
    .tabbed-collections__tabs {
        gap: 8px;
        margin-bottom: 10px;
        padding: 0;
    }
}

/* Individual Tab Button */
.tabbed-collections__tab {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 1);
    color: rgba(0, 0, 0, 1);
    padding: 10px 20px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 0px;
    white-space: nowrap;
    position: relative;
}

.tabbed-collections__tab:hover {
    border-color: rgba(0, 0, 0, 0.3);
    color: rgba(0, 0, 0, 0.9);
}

.tabbed-collections__tabs .active {
    background: rgb(0, 0, 0);
    border-color: rgba(0, 0, 0, 0.9);
    color: #fff;
}

.tabbed-collections__tab:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.5);
    outline-offset: 2px;
}

/* Tab Content Container */
.tabbed-collections__content {
    position: relative;
    min-height: 400px;
}

/* Individual Tab Panel */
.tabbed-collections__panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tabbed-collections__panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State */
.tabbed-collections__empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
}

/* Inherit featured collection styles */
.tabbed-collections .collection__view-all {
    margin-top: 10px;
}

@media screen and (min-width: 960px) {
    .tabbed-collections .collection__view-all {
        margin-top: 20px;
    }
}

.tabbed-collections .collection__view-all a:not(.link) {
    margin-top: 10px;
}

/* Mobile Slider Adjustments */
@media screen and (max-width: 959px) {
    .tabbed-collections .slider--mobile .slider__slide {
        width: calc((100vw - var(--page-padding)) / var(--mobile-cols) - (var(--page-padding) / var(--mobile-cols)));
    }

    .tabbed-collections .grid--peek .slider__slide {
        width: calc((230vw - var(--page-padding)) / (2 * var(--mobile-cols) + 1));
    }

    .tabbed-collections .grid--peek {
        scroll-padding-left: var(--page-padding);
    }

    .tabbed-collections .slider:not(.slider--mobile) {
        flex-wrap: wrap;
    }

    .tabbed-collections .slider--desktop:not(.slider--mobile)+.slider-buttons {
        display: none;
    }

    .tabbed-collections .slider--mobile {
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 10px;
    }

    .tabbed-collections .slider--mobile .slider__slide {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* Desktop Slider Adjustments */
@media screen and (min-width: 960px) {
    .tabbed-collections .slider:not(.slider--desktop) {
        flex-wrap: wrap;
    }

    .tabbed-collections .slider--mobile:not(.slider--desktop)+.slider-buttons {
        display: none;
    }

    .tabbed-collections .slider--desktop {
        scroll-padding-left: var(--page-padding);
    }
}

/* Slider Controls */
.tabbed-collections .control__arrow-button[name="previous"] {
    position: absolute;
    left: 16px;
    top: 40%;
    transform: translateY(-50%) rotate(90deg);
    z-index: 2;
}

.tabbed-collections .control__arrow-button[name="previous"]:hover {
    transform: translateY(-50%) rotate(90deg) scale(1.12);
}

.tabbed-collections .control__arrow-button[name="next"] {
    position: absolute;
    right: 16px;
    top: 40%;
    transform: translateY(-50%) rotate(-90deg);
    z-index: 2;
}

.tabbed-collections .control__arrow-button[name="next"]:hover {
    transform: translateY(-50%) rotate(-90deg) scale(1.12);
}

/* Pagination Dots */
.tabbed-collections .control__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.tabbed-collections .control__dot {
    display: block;
    padding: 0;
    width: 8px;
    height: 8px;
    margin: 7px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background 0.3s, width 0.3s, height 0.3s;
    cursor: pointer;
}

.tabbed-collections .control__dot:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.tabbed-collections .control__dot.is-active {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.9);
    cursor: default;
}

/* Pagination Bars */
.tabbed-collections .control__bars {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 0;
    border-radius: 5px;
    padding-bottom: 0;
}

@media screen and (max-width: 959px) {
    .tabbed-collections .control__bars {
        margin-top: 10px;
    }
}

.tabbed-collections .control__bar {
    background: rgba(0, 0, 0, 0.1);
    flex: 1;
    border: none;
    height: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.tabbed-collections .control__bar::after {
    content: none;
}

.tabbed-collections .control__bar:hover {
    background: rgba(0, 0, 0, 0.2);
}

.tabbed-collections .control__bar.is-active {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
}

/* Slider Buttons */
.tabbed-collections .slider-buttons {
    margin-top: 20px;
}

@media screen and (min-width: 960px) {
    .tabbed-collections .slider-buttons {
        margin-top: 30px;
    }
}

/* Loading State */
.tabbed-collections__panel.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Tab Layout */
@media screen and (max-width: 749px) {
    .tabbed-collections__tabs {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .tabbed-collections__tabs::-webkit-scrollbar {
        display: none;
    }

    .tabbed-collections__tab {
        flex-shrink: 0;
    }
}

/* Dark mode support (if needed) 
@media (prefers-color-scheme: dark) {
    .tabbed-collections__tab {
        border-color: rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.7);
    }

    .tabbed-collections__tab:hover {
        border-color: rgba(255, 255, 255, 0.4);
        color: rgba(255, 255, 255, 0.9);
    }

    .tabbed-collections__tab.active {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 255, 255, 0.9);
        color: #000;
    }
}*/