/*!
Theme Name: CaroCarp theme
Author: vau
Author URI: vau.agency
*/

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content p > strong{
	 margin: 1.5rem 0;
	display: block;
}

.woocommerce span.onsale{
	background: #C0E00B !important;
}

.select2-container{
	max-width: 320px;
}

.woocommerce-store-notice{
	display: none !important;
}

#billing_email{
	border-color: currentColor !important;
}

/* Fix: bottom of catalog menu gets clipped on some screens because
   padding-bottom is not included in scroll area in some browsers */
.shop-catalog-menu__category-main::after {
	content: "";
	display: block;
	min-height: 20px;
	flex: 0 0 auto;
}
.shop-catalog-menu__children-group.is-active::after {
	content: "";
	display: block;
	min-height: 20px;
	flex: 0 0 auto;
}

/* Mobile overflow fix for very narrow screens */
@media only screen and (max-width: 380px) {
	.shop__products-area .woocommerce ul.products,
	.shop__products-area ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 20px;
	}

	.shop__products-area .woocommerce ul.products .product,
	.shop__products-area ul.products .product,
	.shop__products-area .product__wrap,
	.shop__products-area .product__content,
	.shop__products-area .product__title,
	.shop__products-area .product__price,
	.shop__products-area .product__content .bttn {
		min-width: 0;
		max-width: 100%;
	}

	.shop__products-area .product__title,
	.shop__products-area .product__price,
	.shop__products-area .product__content .bttn {
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.shop__products-area .product__content .bttn {
		white-space: normal;
	}
}

/* Single product: prevent horizontal overflow on very narrow mobile screens */
@media only screen and (max-width: 430px) {
	body.single-product,
	body.single-product #primary,
	body.single-product #main,
	body.single-product .product,
	body.single-product .product__summary-wrap,
	body.single-product .woocommerce div.product div.summary,
	body.single-product .summary,
	body.single-product .summary .product_title,
	body.single-product .woocommerce-product-details__short-description,
	body.single-product .woocommerce-product-details__short-description p,
	body.single-product .summary .product__text,
	body.single-product .summary .product__text p {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box;
	}

	body.single-product .product__summary-wrap,
	body.single-product .summary,
	body.single-product .woocommerce-product-details__short-description,
	body.single-product .summary .product__text {
		overflow-x: hidden;
	}

	body.single-product .summary .product_title,
	body.single-product .woocommerce-product-details__short-description,
	body.single-product .woocommerce-product-details__short-description p,
	body.single-product .summary .product__text,
	body.single-product .summary .product__text p {
		overflow-wrap: anywhere;
		word-break: break-word;
	}
}

/* Gallery slider: keep all slide containers equal height on desktop */
@media only screen and (min-width: 769px) {
	.gallery__slide {
		height: 42rem;
		max-height: 42rem;
	}

	.gallery__slide img {
		height: 100%;
		width: 100%;
		object-fit: cover;
	}
}

/* Catalog/search products: keep spacing before footer when pagination is absent */
.shop__products-area:not(:has(.woocommerce-pagination)) {
	margin-bottom: 80px;
}

@media only screen and (max-width: 576px) {
	.shop__products-area:not(:has(.woocommerce-pagination)) {
		margin-bottom: 40px;
	}
}
