/* WooCommerce Category Slider Styles */

.woo-category-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

/* Header Section */
.wcs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 30px;
}
.wcs-category-image {
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    transition: all .3s ease-out;
    width: 100%;
}
.wcs-section-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

/* Slider Container */
.wcs-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}
.wcs-image-container {
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 12px;
}
.wcs-image-container img {
    border-radius: 12px !important;
}
.wcs-image-container:hover .wcs-category-image {
    transform: scale(1.05);
}

/* Category Content Container */
.wcs-category-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

/* Category Name */
.wcs-category-name {
    position: relative;
    z-index: 2;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 5px 0;
    text-align: center;
    transition: color 0.3s ease;
}

.wcs-category-item:hover .wcs-category-name {
    color: #000;
}

/* Category Count */
.wcs-category-count {
    position: relative;
    z-index: 2;
    font-size: 14px;
    color: #000;
    margin: 0;
    display: block;
    text-align: center;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.wcs-category-item:hover .wcs-category-count {
    color: rgba(255, 255, 255, 1);
}

/* Navigation Buttons */
.wcs-navigation {
    display: flex;
    gap: 10px;
}

.wcs-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: 1px solid #2d2b3a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}


.wcs-nav-btn:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.wcs-nav-btn:hover svg {
    stroke: #ffffff;
}

.woo-category-slider-wrapper .wcs-nav-btn.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Force enable navigation when loop is active - only for this plugin */
.woo-category-slider-wrapper .wcs-nav-btn:not(.swiper-button-lock) {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.woo-category-slider-wrapper .wcs-nav-btn.swiper-button-lock {
    display: none;
}

/* Navigation Positions */
.wcs-nav-top-right {
    display: flex;
    gap: 10px;
}

.wcs-nav-outside {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}



.wcs-nav-bottom-center {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

/* Pagination */
.woo-category-slider-wrapper .swiper-pagination {
    position: relative !important;
    margin-top: 30px;
}

.woo-category-slider-wrapper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d0d0d0;
    opacity: 1;
    transition: all 0.3s ease;
}

.woo-category-slider-wrapper .swiper-pagination-bullet-active {
    background: #1a1a1a;
    width: 30px;
    border-radius: 6px;
}

/* Swiper Overrides */
.woo-category-slider-wrapper .swiper {
    width: 100%;
}

.woo-category-slider-wrapper .swiper-slide {
    height: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wcs-section-title {
        font-size: 28px;
    }
    
    .wcs-category-item {
        height: 240px;
    }
    
    .wcs-nav-outside[class*="wcs-prev-"] {
        left: -60px;
    }
    
    .wcs-nav-outside[class*="wcs-next-"] {
        right: -60px;
    }
}

@media (max-width: 768px) {
    
    .wcs-section-title {
        font-size: 24px;
    }
    
    .wcs-category-item {
        height: 200px;
        border-radius: 16px;
    }
    
    .wcs-category-name {
        font-size: 16px;
    }
    
    .wcs-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Hide outside navigation on mobile */
    .wcs-nav-outside {
        display: none;
    }
    
    /* Show navigation at bottom on mobile */
    .wcs-nav-top-right {
        display: flex;
    }
}

@media (max-width: 480px) {
    .wcs-section-title {
        font-size: 20px;
    }
    .wcs-category-name {
        font-size: 14px;
    }
    
    .wcs-category-count {
        font-size: 12px;
    }
}

/* Special Badge Styles (for New Arrivals, etc.) */
.wcs-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    padding: 5px 15px;
    background: #ff4757;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading State */
.wcs-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.wcs-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a1a1a;
    border-radius: 50%;
    animation: wcs-spin 1s linear infinite;
}

@keyframes wcs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RTL Support */
[dir="rtl"] .wcs-nav-outside[class*="wcs-prev-"] {
    left: auto;
    right: -70px;
}

[dir="rtl"] .wcs-nav-outside[class*="wcs-next-"] {
    right: auto;
    left: -70px;
}

/* Accessibility */
.wcs-nav-btn:focus {
    background-color: #2d2b3a !important;
}
.wcs-nav-btn:focus svg {
    fill: #fff !important;
}


/* Print Styles */
@media print {
    .wcs-navigation,
    .swiper-pagination {
        display: none;
    }
    
    .woo-category-slider-wrapper {
        page-break-inside: avoid;
    }
}
/* Container for the peek effect */
.woo-category-slider-wrapper .wcs-slider-container {
    position: relative;
    overflow: hidden;
}

/* Swiper container modifications */
.woo-category-slider-wrapper .swiper {
    overflow: visible !important;
}

/* Ensure the last slide shows a peek */
.woo-category-slider-wrapper .swiper-wrapper {
    padding-right: 30%; 
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woo-category-slider-wrapper .swiper-wrapper {
        padding-right: 25%; 
    }
    .woo-category-slider-wrapper .wcs-slider-container {
    padding-right: 35px; 
}
}

@media (min-width: 1024px) {
    .woo-category-slider-wrapper .swiper-wrapper {
        padding-right: 20%; 
    }
}
.wcs-nav-btn:hover svg {
    fill: #fff;
}
.wcs-nav-btn.wcs-next {
    background: #2d2b3a;
    color: #fff;
}
button.wcs-nav-btn.wcs-next svg {
    fill: #fff;
}