/* Categories Revamped Style 2 */
.home-categories-revamped {
    padding: 60px 0;
    overflow: hidden;
}

.revamped-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.revamped-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    color: var(--primary); /* Last word color */
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.revamped-title span {
    color: #1a1a1a; /* First part color */
}

.revamped-navigation {
    display: flex;
    gap: 10px;
}

.revamped-prev, .revamped-next {
    width: 32px;
    height: 32px;
    background: #fdfdfd;
    border: 2px solid #555;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
}

.revamped-prev svg, .revamped-next svg {
    width: 20px;
    height: 20px;
}

/* Card Styles - Pure Boxy Full Width Look */
.revamped-cat-card {
    display: block;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
}

/* Engineering Fix: Prevent layout shift before Swiper initializes */
.revamped-categories-slider:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.revamped-categories-slider:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 15px) / 2.2); /* Match mobile slidesPerView */
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .revamped-categories-slider:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 60px) / 4); /* Match desktop slidesPerView */
    }
}

@media (min-width: 1024px) {
    .revamped-categories-slider:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 100px) / 6);
    }
}

.revamped-image {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Removed all padding for full width image appearance */
    min-height: 150px; /* Engineering Fix: Reserved space */
    background: #f9fafb;
}

.revamped-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.revamped-label {
    padding: 1px 10px;
    text-align: center;
}

.revamped-name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .home-categories-revamped {
        padding: 40px 0;
    }
    
    .revamped-title {
        font-size: 16px;
    }
    
    .revamped-prev, .revamped-next {
        width: 32px;
        height: 32px;
    }
    
    .revamped-name {
        font-size: 13px;
    }

    .revamped-image {
        padding: 0;
    }
}
