/**
* Theme Name: Besa Child
* Description: This is a child theme for Besa
* Author: Thembay
* Author URI: https://thembay.com/
* Version: 1.0
* Template: besa
*/


/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */

/* ===== Page boutique : sidebar catégories + grille produits ===== */
@media (min-width: 1200px) {
	#sidebar-shop {
		flex: 0 0 220px;
		max-width: 220px;
	}

	#sidebar-shop + .archive-shop,
	#sidebar-shop + .singular-shop {
		flex: 1 1 auto;
		max-width: calc(100% - 220px);
		padding-left: 20px;
	}
}

#sidebar-shop > .widget {
	padding: 16px 12px;
}

#sidebar-shop .widget-title,
#sidebar-shop .widgettitle {
	font-size: 15px;
	margin-bottom: 12px;
}

#sidebar-shop .woof_container,
#sidebar-shop .widget_product_categories {
	font-size: 13px;
	line-height: 1.35;
}

#sidebar-shop .woof_list label,
#sidebar-shop .widget_product_categories a {
	white-space: normal;
	word-break: break-word;
}

#sidebar-shop .woof_list li {
	margin-bottom: 4px;
}

/* Cartes produits : même hauteur et boutons alignés */
.archive-shop .products-grid > .row > div,
.archive-shop .display-products.products-grid > .row > div {
	display: flex;
}

.archive-shop .product-block.grid {
	height: 100%;
}

.archive-shop .product-block .product-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.archive-shop .product-block.grid .caption {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.archive-shop .product-block.grid .add-cart,
.archive-shop .product-block.grid .group-button {
	margin-top: auto;
}

/* Images produits : format uniforme */
.archive-shop .product-block .image {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.archive-shop .product-block .image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.archive-shop .product-block.v1 .block-inner .image.has-slider-gallery {
	width: 100%;
	max-width: 100%;
}

.archive-shop .product-block.grid .name a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}

@media (max-width: 1199px) {
	#sidebar-shop + .archive-shop {
		padding-left: 0;
	}
}