/**
 * Category Slider Styles
 * 
 * Table of Contents:
 * 1. Slider Container
 * 2. Slide Visibility & Transitions
 * 3. Slide Content
 * 4. Navigation Controls
 * 5. Responsive Design
 */

/* ============================================================================
   1. Slider Container
   ============================================================================ */

.swiper.product-categories-swiper,
.swiper.brand-categories-swiper {
    position: relative;
    overflow: visible;
}

.product-category-slide,
.brand-category-slide {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ============================================================================
   2. Slide Visibility & Transitions
   ============================================================================ */

/* Hide slides on the left side by default */
.product-categories-swiper .swiper-slide,
.brand-categories-swiper .swiper-slide {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show slides that are active or next (in view or on the right) */
.product-categories-swiper .swiper-slide-active,
.product-categories-swiper .swiper-slide-next,
.brand-categories-swiper .swiper-slide-active,
.brand-categories-swiper .swiper-slide-next {
    opacity: 1 !important;
    transform: translateX(0);
}

/* Hide slides that are not active or next */
.product-categories-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-next),
.brand-categories-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-next) {
    opacity: 0 !important;
    transform: translateX(0);
}

/* ============================================================================
   3. Slide Content
   ============================================================================ */

/* Slide image */
.slide-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 398/554;
}

.slide-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Image hover effect */
.product-category-slide:hover .slide-image img,
.brand-category-slide:hover .slide-image img {
    transform: scale(1.05);
}

/* Slide content overlay */
.slide-content {
    padding-top: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    padding-top: 2rem;
    background: transparent linear-gradient(180deg, #00000000 0%, #000000 100%) 0% 0% no-repeat padding-box;
}

/* Slide title with decorative line */
.slide-title {
    margin-bottom: 0;
    text-transform: uppercase;
    color: #ffffff;
    position: relative;
}
  
.slide-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: -10px;
    transform: translateY(-50%);
    width: 45px;
    height: 2px;
    background-color: var(--primary);
}

/* ============================================================================
   4. Navigation Controls
   ============================================================================ */

/* Navigation container */
.slider-navigation-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%
}

/* Progress bar */
.swiper-pagination-progressbar {
    background: #33363C;
    height: 4px;
    border-radius: 2px;
    flex-grow: 1;
    position: relative!important;
}

/* Optional: Custom progress bar fill color
.swiper-pagination-progressbar-fill {
    background: #F0CC6A!important;
    border-radius: 2px;
}
*/

/* Navigation arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #707070;
    background: transparent;
    width: 40px;
    height: 40px;
    position: static;
    margin: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next {
    right: -35px!important;
}

@media (max-width: 768px) {
    .swiper-button-next {
        right: -20px!important;
    }
}

/* Hide default Swiper arrow content */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

/* Custom navigation arrow styling */
.custom-nav-arrow {
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-nav-arrow svg {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.custom-nav-arrow:hover svg {
    transform: scale(1.1);
}

/* Optional: Custom arrow hover color
.custom-nav-arrow:hover svg g,
.custom-nav-arrow:hover svg path {
    stroke: #F0CC6A;
}
*/

/* ============================================================================
   5. Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
    .slider-navigation-container {
        flex-wrap: wrap;
    }
}
