/* Category Product Carousel - Clean Modern Style (matches variant slider) */
/* Save this as: category-carousel.css in your theme folder */

.category-carousel-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 64px auto;
    padding: 0 32px;
}

/* Header */
.carousel-header {
    text-align: center;
    margin-bottom: 40px;
}

.carousel-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    margin: 0;
}

.carousel-divider {
    display: none;
}

/* Carousel Container */
.carousel-container {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0 24px 0;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex-shrink: 0;
    width: calc(25% - 12px);
    min-width: 260px;
}

/* Product Card */
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.product-card:hover {
    transform: translateY(-3px);
}

/* Product Image - ROUNDED LIKE VARIANT SLIDER */
.product-image-wrapper {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: #f8f8f8;
    margin-bottom: 12px;
    border-radius: 12px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

/* Sale Flag - MINIMAL GREY */
/* Sale Flag - Grey Outline */
.sale-flag {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid white;
    color: white !important;
    background-color: transparent !important;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 1px 15px !important;
    z-index: 2;
    border-radius: 4px;
}

/* Product Info */
.product-info {
    padding: 0 2px;
}

.product-tags {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.product-tag {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    color: #666;
    background-color: #f0f0f0;
    border: none;
    padding: 1px 10px !important;
    display: inline-block;
    border-radius: 3px;
    text-transform: uppercase;
}

.product-name {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0;
}

.product-price del {
    color: #999;
    margin-right: 6px;
    font-weight: 400;
    font-size: 12px;
}

.product-price ins {
    text-decoration: none;
    color: #1a1a1a;
}

/* Carousel Arrows - CLEAN CIRCLES */
.carousel-arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.carousel-container:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:hover svg {
    stroke: #fff;
}

.carousel-arrow svg {
    stroke: #1a1a1a;
    transition: stroke 0.25s ease;
    width: 20px;
    height: 20px;
}

.carousel-arrow-left {
    left: -20px;
}

.carousel-arrow-right {
    right: -20px;
}

/* Loading Animation */
.loading-bar {
    background: linear-gradient(90deg, #f8f8f8 25%, #ececec 50%, #f8f8f8 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Empty State */
.carousel-empty {
    text-align: center;
    font-size: 14px;
    color: #999;
    padding: 48px 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .carousel-item {
        width: calc(33.333% - 12px);
        min-width: 220px;
    }
    
    .carousel-title {
        font-size: 24px;
    }
    
    .category-carousel-wrapper {
        padding: 0 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .category-carousel-wrapper {
        margin: 48px auto;
        padding: 0 16px;
    }
    
    .carousel-header {
        margin-bottom: 28px;
    }
    
    .carousel-title {
        font-size: 20px;
    }
    
    .carousel-item {
        width: calc(50% - 8px);
        min-width: 150px;
    }
    
    .product-image-wrapper {
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .product-name {
        font-size: 13px;
        min-height: 34px;
    }
    
    .product-price {
        font-size: 12px;
    }
    
    .product-tag {
        font-size: 8px;
        padding: 3px 6px;
    }
    
    .sale-flag {
        font-size: 9px;
        padding: 4px 8px;
        top: 8px;
        right: 8px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-arrow-left {
        left: -10px;
    }
    
    .carousel-arrow-right {
        right: -10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .carousel-item {
        width: calc(60% - 8px);
        min-width: 180px;
    }
    
    .carousel-track {
        gap: 12px;
    }
    
    .product-image-wrapper {
        margin-bottom: 8px;
        border-radius: 8px;
    }
}