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

.container {
    max-width: 80% !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 {
    background: #dc3545 !important;
    color: #fff;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flickity-button:hover {
    color: #010101 !important;
}

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

.flickity-prev-next-button.previous {
    left: -20px;
}
.flickity-prev-next-button.next {
    right: -20px;
}
/* product card */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

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

/* IMAGE */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* square aspect ratio */
    overflow: hidden;
}

.product-image-wrapper img.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card:hover .product-image {
    transform: scale(1.05);
}
.product-badge {
    z-index: 20 !important;
}

/* INFO SECTION */
.product-info-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* PRICE + ADD TO CART */
.price-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    width: 100%;
}

.product-price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.product-price .text-primary {
    font-weight: 500;
    font-size: 0.9rem;
}

.product-price .text-muted {
    font-size: 0.6rem;
}

/* Fixed width for Add to Cart button */
.cart-btn {
    width: 120px;
    text-align: center;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}
.cart-btn i {
    font-size: 0.85rem;
}

/* ADD TO CART BUTTON */
.btn.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn.btn-danger i {
    font-size: 0.85rem;
}

.btn.btn-danger:hover {
    background-color: #b8222f;
    border-color: #b8222f;
    transform: translateY(-1px);
}

/* RESPONSIVE */
/* mobile container setup */
@media (max-width: 576px) {
    .container {
    max-width: 100% !important;
}
}

@media (max-width: 767.98px) {
    .price-cart-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.2;
    }

    .price-cart-row .product-price {
        text-align: left;
    }

    .price-cart-row .btn {
        width: auto !important;
        min-width: px;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
    .category-banner {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .category-banner-bg {
        background-size: contain !important;
    }
}

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

    .product-image-wrapper {
        height: 60%;
        padding: 0.2rem;
    }

    .product-info-wrapper {
        height: 30%;
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}
/* tablets (ipad and ipad air view) */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* 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;
}

/* Cart and Wishlist Icons */
.product-card .btn-add-cart {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.4rem;
}
.cart-icon {
    color: #bebebe;
    font-size: 0.8rem;
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.cart-eye-icon {
    color: #bebebe;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.cart-icon:hover {
    color: #dc3545;
    transform: scale(1.1);
    text-decoration: none;
}

/* latest updates */
.pagination {
  font-size: 2rem;
}

.pagination .page-link {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 0.25rem;
}

.pagination .page-item.active .page-link {
  background-color: #ffffff; /* optional: match your theme */
  border-color: #ff0000;
}
