section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.container {
    max-width: 90% !important;
}

/* carousel */
.carousel-cell {
    flex: 0 0 auto;
    margin-right: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .carousel-cell {
        width: 48%;
    }
}

@media (min-width: 1200px) {
    .carousel-cell {
        width: 32%;
    }
}


/* product carousel */
.product-carousel-cell {
    margin-right: 16px;
    flex: 0 0 auto;
    width: 90%; /* mobile default */
    max-width: 100%;
}

@media (min-width: 576px) {
    .product-carousel-cell {
        width: 48%;
    }
}

@media (min-width: 768px) {
    .product-carousel-cell {
        width: 32%;
    }
}

@media (min-width: 1200px) {
    .product-carousel-cell {
        width: 30%;
    }
}
/*  flickity buttons */
.flickity-button {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flickity-button-icon {
    width: 16px;
    height: 16px;
}

.flickity-prev-next-button.previous {
    left: -20px;
}
.flickity-prev-next-button.next {
    right: -20px;
}

.card {
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    position: relative;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

/* product card */

.product-card {
    height: 600px;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    cursor: pointer;
}

.product-card:hover {
    border-color: #adb5bd;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    flex: 1 1 auto;
    height: 75%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #fff;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    margin: auto;
    display: block;
}

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

.product-info-wrapper {
    height: 25%;
    padding: 1rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
}

.product-badge {
    z-index: 20 !important;
}

/* Tablet: tighter layout */
@media (max-width: 991.98px) and (min-width: 577px) {
    .product-card {
        height: 480px;
    }

    .product-image-wrapper {
        height: 70%;
        padding: 0.75rem;
    }

    .product-info-wrapper {
        height: 30%;
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .product-card {
        height: auto;
        min-height: 450px;
    }

    .product-image-wrapper {
        height: 65%;
        padding: 0.5rem;
    }

    .product-info-wrapper {
        height: auto;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .product-info-wrapper a {
        font-size: 1rem;
    }

    .product-info-wrapper span {
        font-size: 0.95rem;
    }
}

/* Search bar */

.custom-search,
.custom-search-btn {
    border: 1px solid #ccc !important;
    border-radius: 0.375rem !important; /* Slightly rounded corners */
    background-color: white;
}

.custom-search {
    border-right: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.custom-search-btn {
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    background-color: white;
}
