
/* Full-width wrapper for carousel bleeding */
.product-listing-full-wrapper {
    overflow-x: hidden; /* Hide horizontal overflow */
}

/* Block wrapper: Control overflow */
.wp-block-bbl-product-listing {
    overflow-x: visible; /* Hide horizontal overflow on the block */
}

/* Carousel layout styles */
.wp-block-bbl-product-listing .products-carousel {
    margin-bottom: 1rem;
    width: calc(100% + 2rem); /* Extend beyond container */
    margin-right: -2rem; /* Pull back to align left edge */
    overflow: visible; /* Allow content to bleed */
	--swiper-scrollbar-bottom: -20px;
}

/* Desktop: More aggressive bleed */
@media only screen and (min-width: 768px) {
    .wp-block-bbl-product-listing .products-carousel {
        width: calc(100% + 6rem); /* Extend further on desktop */
        margin-right: -6rem; /* Pull back to align left edge */
    }
}

/* Default grid layout styles */
@media only screen and (min-width: 768px) {
 	 .wp-block-bbl-product-listing .product-summary {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
	}
	.wp-block-bbl-product-listing .product-summary__image {
		width: calc(100% + 6rem);
	}
	.wp-block-bbl-product-listing  .product-summary__content {
		margin: 2rem 0 !important;
		width: 100% !important;
	}
}

/* Load More Button Styles */
.product-listing-load-more {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.product-listing-load-more-btn {
    background-color: var(--wp--preset--color--primary, #007cba);
    color: var(--wp--preset--color--contrast, #ffffff);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.product-listing-load-more-btn:hover {
    background-color: var(--wp--preset--color--primary-dark, #005a87);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-listing-load-more-btn:active {
    transform: translateY(0);
}

.product-listing-loading {
    color: var(--wp--preset--color--primary, #007cba);
    font-size: 1rem;
    font-weight: 500;
}

/* Hide load more container when no more pages */
.product-listing-load-more[data-current-page="0"] {
    display: none;
}
