/* Product Carousel Styles */
.product-carousel-section {
    background-color: #fff;
    overflow: hidden;
}

.multi-item-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 33.33vw;
}

.carousel-product-item {
    position: absolute;
    width: 33.33vw;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(0);
    pointer-events: none;
    z-index: 1;
}

/* Active (Center) Item */
.carousel-product-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
    pointer-events: auto;
}

/* Previous (Left) Item */
.carousel-product-item.prev {
    opacity: 0.4;
    transform: translateX(-33vw);
    z-index: 5;
    pointer-events: auto;
}

/* Next (Right) Item */
.carousel-product-item.next {
    opacity: 0.4;
    transform: translateX(33vw);
    z-index: 5;
    pointer-events: auto;
}

/* Hover effects on side items */
.carousel-product-item.prev:hover,
.carousel-product-item.next:hover {
    opacity: 0.6;
    transform: translateX(-33vw);
}

.carousel-product-item.next:hover {
    transform: translateX(33vw);
}

/* Product Card Styling */
.product-carousel-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: #fff;
}

.carousel-product-item.active .product-carousel-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousel-product-item.active .product-carousel-card:hover {
    transform: scale(105%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.carousel-product-item.prev .product-carousel-card,
.carousel-product-item.next .product-carousel-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-carousel-image {
    height: 33.33vw;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-carousel-text {
    text-align: center;
    padding-top: calc(33vw - 210px);
    padding-left: 2rem;
    padding-right: 2rem;
}

.product-carousel-text .h1, .product-carousel-text .h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: 3.4em;
    background-color: white;
    padding-top: .5rem;
    padding-right: .5rem;
    padding-bottom: .5rem;
    padding-left: .5rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--bs-border-radius);
}

.product-carousel-text p.price, .product-carousel-text p.sale-price {
    background-color: white;
    padding-top: .5rem;
    padding-right: .5rem;
    padding-bottom: .5rem;
    padding-left: .5rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--bs-border-radius);
    width: fit-content;
}



.carousel-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
    font-size: 0.9rem;
}

/* Fallback for browsers without webkit support */
@supports not (-webkit-line-clamp: 2) {
    .carousel-description {
        display: block;
        max-height: 3em;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.sale-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.sale-badge .badge {
    font-size: 1.5rem;
    padding: 0.5rem 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-carousel-section:hover .carousel-nav-btn {
    opacity: 0.8;
}

.carousel-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    opacity: 1 !important;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-nav-btn .material-icons-outlined {
    font-size: 32px;
}

/* Custom Carousel Indicators */
.carousel-indicators-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    margin: 0;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d0d0d0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background-color: var(--bs-primary, #0d6efd);
    transform: scale(1.3);
}

.indicator-dot:hover:not(.active) {
    background-color: #999;
}

/* Category Showcase Styles */
.category-showcase-section {
    background-color: #f8f9fa;
}

.category-card {
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Large Category Cards (Top 3) */
.category-card-large .category-image-container {
    overflow: hidden;
    height: 300px;
}

/* Small Category Cards (Remaining) */
.category-card-small .category-image-container-small {
    overflow: hidden;
    height: 150px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s linear, -webkit-filter 0.5s linear;
    filter: brightness(50%);
}

.category-card:hover .category-image {
    transform: scale(1.1);
    filter: brightness(25%);
}

/* Large Category Text */
.category-text {
	position: absolute;
	top: 43%;
	left: 0;
	right: 0;
}

.category-text h1 {
    color: white;
}

.category-showcase-section .material-icons-outlined {
    transform: translateY(0.2em);
}

.category-text p {
    color: var(--bs-main-100);
}

/* Small Category Text */
.category-text-small {
	position: absolute;
	top: 35%;
	left: 0;
	right: 0;
	padding: 0 0.5rem;
}

.category-text-small .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.discount-badge .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (min-width: 1401px) {

    .product-carousel-card .sale-badge .badge {
        font-size: 1.5rem;
        position: absolute;
        top: -0.25rem;
        right: -0.25rem;
    }
    
    .product-carousel-text .h1.product-carousel-name,
    .product-carousel-text .h3.price {
        display: -webkit-box;
    }

    .product-carousel-text .h5.product-carousel-name,
    .product-carousel-text .h4.price, .product-carousel-text .h5.price {
        display: none;
    }
}
@media (max-width: 1400px) {

    .product-carousel-card .sale-badge .badge {
        font-size: 1rem;
        position: absolute;
        top: -0.75rem;
        right: -0.75rem;
    }
    

    .product-carousel-text {
        padding-top: calc(33vw - 130px);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .product-carousel-text .h5.product-carousel-name,
    .product-carousel-text .h5.price {
        display: -webkit-box;
    }

    .product-carousel-text .h1.product-carousel-name,
    .product-carousel-text .h3.price, .product-carousel-text .h4.price {
        display: none;
    }
}

@media (max-width: 1200px) {
}

@media (max-width: 991px) {
}

@media (max-width: 768px) {

    .product-carousel-text .h1, .product-carousel-text .h3, .product-carousel-text .h4 {
        max-height: 3.4em;
        padding-top: .5rem;
        padding-right: .5rem;
        padding-bottom: .5rem;
        padding-left: .5rem;
        margin-left: auto;
        margin-right: auto;
        border-radius: var(--bs-border-radius);
    }

    /* Hide side items on mobile, show only center */
    .carousel-product-item.prev,
    .carousel-product-item.next {
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .carousel-product-item {
        width: 100%;
       /*  max-width: 400px; */
    }
    
    .product-carousel-image {
        height: 100vw;
    }

    .product-carousel-text {
        padding-top: calc(100vw - 135px);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* .category-image-container {
        height: 200px;
    } */
    
    .carousel-nav-btn {
        opacity: 0.8 !important;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-nav-btn .material-icons-outlined {
        font-size: 28px;
    }
    
    .carousel-track {
        min-height: 100vw;
    }
}

@media (max-width: 576px) {
    .product-carousel-text {
        padding-top: calc(100vw - 135px);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* .product-carousel-image {
        height: 280px;
    } */
    
    .carousel-description {
        -webkit-line-clamp: 3;
        max-height: 4.5em;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav-btn .material-icons-outlined {
        font-size: 24px;
    }
}

/* Section Titles */
.section-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Card Link Styling */
.category-card a,
.product-carousel-card a {
    color: inherit;
}

.category-card .btn {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.category-card:hover .btn {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

