/* Carrello, checkout e shop – stile Ma Maison */

body.maison-store {
	font-family: "DM Sans", system-ui, sans-serif;
	background: #fafafa;
	color: #1f1f1f;
}

body.maison-store .site-header,
body.maison-store .bottom-header-wrapper,
body.maison-store .bhfb-header,
body.maison-store .bhfb-mobile_header,
body.maison-store .page-header,
body.maison-store .botiga-top-bar,
body.maison-store .botiga-offcanvas-menu,
body.maison-store .bhfb-mobile_offcanvas,
body.maison-store .mobile-header,
body.maison-store .skip-link {
	display: none !important;
}

body.maison-store .maison-page--store {
	background: #fafafa;
}

body.maison-store #page,
body.maison-store .content-wrapper,
body.maison-store #primary,
body.maison-store .site-content {
	max-width: none;
	width: 100%;
}

body.maison-store .site-main,
body.maison-store #primary {
	width: 100% !important;
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	float: none !important;
	padding: 0 24px 48px !important;
	box-sizing: border-box;
}

body.maison-store #secondary,
body.maison-store .sidebar-wrapper,
body.maison-store .widget-area {
	display: none !important;
}

body.maison-store .woocommerce-breadcrumb {
	display: none !important;
}

.maison-breadcrumb {
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 24px 0;
}

.maison-breadcrumb__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #ececec;
	color: var(--ink);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
	transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.maison-breadcrumb__link:hover {
	border-color: var(--pink);
	color: var(--pink);
	transform: translateX(-2px);
}

.maison-breadcrumb__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff0f5;
	color: var(--pink);
	font-size: 0.95rem;
	line-height: 1;
}

body.maison-store .woocommerce-products-header,
body.maison-store .woocommerce-result-count,
body.maison-store .woocommerce-ordering,
body.maison-store ul.products,
body.maison-store div.product.type-product,
body.maison-store .woocommerce-notices-wrapper {
	width: 100%;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

body.maison-store .woocommerce-products-header {
	padding: 8px 24px 0;
}

body.maison-store .woocommerce-products-header__title,
body.maison-store .term-description {
	font-family: "Playfair Display", Georgia, serif;
}

body.maison-store.tax-product_cat ul.products,
body.maison-store.post-type-archive-product ul.products {
	padding: 0 24px;
}

body.maison-store .content-wrapper,
body.maison-store .site-content {
	padding-top: 0;
}

body.maison-store .entry-content {
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 24px 64px;
}

body.maison-store .entry-header,
body.maison-store .page-title,
body.maison-store h1.wp-block-post-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 3vw, 2.6rem);
	text-align: center;
	margin: 8px 0 28px;
	border: none;
}

body.maison-store .wp-block-woocommerce-cart,
body.maison-store .wp-block-woocommerce-checkout {
	font-family: "DM Sans", system-ui, sans-serif;
}

body.maison-store .wc-block-cart,
body.maison-store .wc-block-checkout {
	background: transparent;
}

body.maison-store .wc-block-cart__main,
body.maison-store .wc-block-components-sidebar {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
	padding: 24px;
}

body.maison-store .wc-block-cart-item__product-name,
body.maison-store .wc-block-components-product-name {
	font-weight: 600;
}

body.maison-store .wc-block-components-product-price,
body.maison-store .wc-block-cart-item__total-price-and-sale-badge-wrapper {
	font-weight: 700;
}

body.maison-store .wc-block-components-sale-badge,
body.maison-store .wc-block-components-discount-badge {
	background: #fff3e0;
	color: #c2410c;
	border-radius: 999px;
}

body.maison-store .wc-block-components-quantity-selector {
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
}

body.maison-store .wc-block-components-quantity-selector__button {
	background: #fff;
}

body.maison-store .wc-block-cart__submit-button,
body.maison-store .wc-block-components-checkout-place-order-button,
body.maison-store .wc-block-components-button:not(.is-link) {
	background: #f06c9b !important;
	border: none !important;
	border-radius: 999px !important;
	color: #fff !important;
	font-weight: 700 !important;
	padding: 14px 24px !important;
	box-shadow: 0 10px 24px rgba(240, 108, 155, 0.22);
}

body.maison-store .wc-block-cart__submit-button:hover,
body.maison-store .wc-block-components-checkout-place-order-button:hover {
	background: #e85a8a !important;
}

body.maison-store .wc-block-components-totals-item__value {
	font-weight: 700;
	font-size: 1.1rem;
}

body.maison-store .wc-block-components-panel__button {
	border-radius: 16px;
}

body.maison-store #colophon {
	display: none !important;
}

/* Ricerca prodotti */
body.maison-product-search .woocommerce-page-header,
body.maison-product-search .woocommerce-products-header {
	display: none !important;
}

.maison-search-results {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.maison-search-results-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 16px;
	margin: 0 0 8px;
}

.maison-search-results-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	margin: 0 0 6px;
	text-align: left;
}

.maison-search-results-head p {
	margin: 0;
	color: #6b6b6b;
}

body.maison-product-search .woocommerce-notices-wrapper {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

body.maison-product-search .woocommerce-before-shop-loop {
	display: flex;
	justify-content: flex-end;
	max-width: 1180px;
	margin: 0 auto 12px;
	padding: 0 24px;
	box-sizing: border-box;
}

body.maison-product-search .woocommerce-ordering select {
	border-radius: 999px;
	border: 1px solid #e8e8e8;
	padding: 8px 14px;
	background: #fff;
}

/* Loop shop / ricerca: card Maison */
body.maison-store ul.products.maison-grid--shop {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 20px !important;
	list-style: none !important;
	margin: 0 auto !important;
	padding: 0 24px 48px !important;
	width: 100% !important;
	max-width: 1180px !important;
	box-sizing: border-box;
	float: none !important;
	clear: both !important;
}

body.maison-store ul.products.maison-grid--shop::before,
body.maison-store ul.products.maison-grid--shop::after {
	display: none !important;
	content: none !important;
}

body.maison-store ul.products.maison-grid--shop li.maison-card-wrap {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}

body.maison-store ul.products.maison-grid--shop li.maison-card-wrap .maison-card {
	height: 100%;
}

body.maison-store ul.products.maison-grid--shop li.maison-card-wrap > .button,
body.maison-store ul.products.maison-grid--shop li.maison-card-wrap > a.button {
	display: none !important;
}

/* Scheda prodotto singola */
body.maison-store.single-product .product_title,
body.maison-store.single-product .summary .product_title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
}

body.maison-store.single-product .summary .price {
	font-weight: 700;
	font-size: 1.35rem;
}

body.maison-store.single-product div.product {
	display: block;
	padding-top: 8px;
}

body.maison-store.single-product div.product .product-gallery-summary {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
	width: 100%;
	margin-bottom: 8px;
}

body.maison-store.single-product div.product .product-gallery-summary .woocommerce-product-gallery,
body.maison-store.single-product div.product .product-gallery-summary .entry-summary {
	flex: none;
	max-width: none;
	width: 100%;
	padding-left: 0;
}

body.maison-store.single-product div.product .woocommerce-product-gallery {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	opacity: 1 !important;
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 24px;
	padding: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .flex-viewport {
	width: 100% !important;
	max-width: 100% !important;
	border-radius: 16px;
	overflow: hidden;
	background: #fafafa;
	min-height: 220px;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
	display: block;
	line-height: 0;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a img {
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: min(560px, 62vh);
	object-fit: contain;
	border-radius: 12px;
	display: block;
	margin: 0 auto;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 99;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	box-sizing: border-box;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center center / 18px 18px !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	text-indent: -9999px;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before,
body.maison-store.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::after {
	display: none !important;
	content: none !important;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	width: 72px !important;
	height: 72px !important;
	flex: 0 0 72px;
	float: none !important;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.15s ease;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	object-fit: cover;
	border-radius: 10px;
	padding: 0 !important;
	opacity: 0.6;
	border: none !important;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
body.maison-store.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
	border: none !important;
}

body.maison-store.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
	border-color: var(--pink, #f06c9b);
}

body.maison-store.single-product div.product .summary {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

body.maison-store.single-product div.product > .woocommerce-tabs,
body.maison-store.single-product div.product > section.related.products,
body.maison-store.single-product div.product > section.up-sells,
body.maison-store.single-product div.product > section.recently-viewed-products {
	width: 100%;
	clear: both;
}

body.maison-store.single-product .related.products,
body.maison-store.single-product .upsells.products {
	padding-top: 40px;
	padding-bottom: 24px;
	margin-top: 24px;
	border-top: 1px solid #ececec;
}

body.maison-store.single-product .related.products > h2,
body.maison-store.single-product .upsells.products > h2 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	margin: 0 0 24px;
}

body.maison-store.single-product .related.products ul.products,
body.maison-store.single-product .upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 20px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: none !important;
	overflow: visible !important;
	float: none !important;
}

body.maison-store.single-product .related.products ul.products::before,
body.maison-store.single-product .related.products ul.products::after,
body.maison-store.single-product .upsells.products ul.products::before,
body.maison-store.single-product .upsells.products ul.products::after {
	display: none !important;
	content: none !important;
}

body.maison-store.single-product .related.products ul.products li.maison-card-wrap,
body.maison-store.single-product .upsells.products ul.products li.maison-card-wrap {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
	max-width: none !important;
}

body.maison-store.single-product .related.products .botiga-related-products,
body.maison-store.single-product .related.products .botiga-carousel {
	width: 100% !important;
	max-width: none !important;
}

body.maison-store.single-product .related.products .botiga-carousel-stage {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 20px !important;
	transform: none !important;
	width: 100% !important;
}

body.maison-store.single-product .related.products .botiga-carousel-nav,
body.maison-store.single-product .related.products .botiga-carousel-nav2 {
	display: none !important;
}

body.maison-store.single-product div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	max-width: 100%;
}

@media (max-width: 1100px) {
	body.maison-store.single-product .related.products ul.products,
	body.maison-store.single-product .upsells.products ul.products,
	body.maison-store.single-product .related.products .botiga-carousel-stage {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	body.maison-store.single-product div.product .product-gallery-summary {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 782px) {
	body.maison-store.single-product .related.products ul.products,
	body.maison-store.single-product .upsells.products ul.products,
	body.maison-store.single-product .related.products .botiga-carousel-stage {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 520px) {
	body.maison-store.single-product .related.products ul.products,
	body.maison-store.single-product .upsells.products ul.products,
	body.maison-store.single-product .related.products .botiga-carousel-stage {
		grid-template-columns: 1fr !important;
	}
}

body.maison-store.single-product div.product form.cart .quantity {
	display: inline-flex !important;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: fit-content;
	height: auto !important;
	min-height: 48px;
	margin-bottom: 0 !important;
	border: 1px solid #e8e8e8;
	border-radius: 999px;
	overflow: visible !important;
	padding: 4px 6px;
	background: #fff;
	gap: 0;
}

body.maison-store.single-product div.product form.cart .quantity .botiga-quantity-minus,
body.maison-store.single-product div.product form.cart .quantity .botiga-quantity-plus {
	position: static !important;
	flex: 0 0 40px !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px;
	max-width: 40px;
	font-size: 1.35rem !important;
	line-height: 1;
	padding: 0 !important;
	border-radius: 50%;
	background: #f5f5f5;
	color: var(--ink, #1f1f1f);
	text-indent: 0 !important;
}

body.maison-store.single-product div.product form.cart .quantity .botiga-quantity-minus::before,
body.maison-store.single-product div.product form.cart .quantity .botiga-quantity-plus::before {
	content: none !important;
	display: none !important;
}

body.maison-store.single-product div.product form.cart .quantity .botiga-quantity-minus:hover,
body.maison-store.single-product div.product form.cart .quantity .botiga-quantity-plus:hover {
	background: #fff0f5;
	color: var(--pink, #f06c9b);
}

body.maison-store.single-product div.product form.cart .quantity .qty {
	flex: 0 0 2.5rem !important;
	border: none;
	min-height: 40px;
	width: 2.5rem !important;
	text-align: center;
	font-weight: 600;
	background: transparent !important;
}

body.maison-store.single-product .single_add_to_cart_button,
body.maison-store.single-product div.product form.cart .button.single_add_to_cart_button,
body.maison-store.single-product div.product form.cart button.single_add_to_cart_button {
	border: none !important;
	border-radius: 999px !important;
	color: #fff !important;
	font-weight: 700 !important;
	padding: 14px 32px !important;
	min-height: 48px;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: 0 10px 24px rgba(240, 108, 155, 0.22);
}

body.maison-accent-pink .single_add_to_cart_button { background: #f06c9b !important; }
body.maison-accent-yellow .single_add_to_cart_button { background: #f5c842 !important; color: #1f1f1f !important; }
body.maison-accent-teal .single_add_to_cart_button { background: #5ec4c4 !important; }
body.maison-accent-purple .single_add_to_cart_button { background: #b57edc !important; }
body.maison-accent-orange .single_add_to_cart_button { background: #f59e0b !important; }

body.maison-store.single-product .woocommerce-product-details__short-description {
	color: #6b6b6b;
	line-height: 1.6;
}

body.maison-store.single-product .product_meta {
	color: #6b6b6b;
	font-size: 0.9rem;
}

/* Pagine legali */
body.maison-legal .entry-header,
body.maison-legal .page-header {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 24px;
}

body.maison-legal .entry-title,
body.maison-legal h1.page-title {
	font-family: "Playfair Display", Georgia, serif;
	text-align: left;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin-bottom: 8px;
}

body.maison-legal .entry-content {
	max-width: 820px;
	margin: 0 auto;
	padding: 8px 24px 48px;
	color: #444;
	line-height: 1.75;
	font-size: 0.98rem;
}

body.maison-legal .entry-content h2 {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 1.15rem;
	margin: 28px 0 10px;
	color: var(--ink);
	scroll-margin-top: 100px;
}

body.maison-legal .entry-content h2:first-of-type {
	margin-top: 12px;
}

body.maison-legal .entry-content p,
body.maison-legal .entry-content ul {
	margin: 0 0 14px;
}

body.maison-legal .entry-content ul {
	padding-left: 1.2rem;
}

@media (max-width: 1100px) {
	body.maison-store ul.products.maison-grid--shop {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 782px) {
	body.maison-store .entry-content {
		padding: 0 16px 48px;
	}

	body.maison-store .wc-block-cart__main,
	body.maison-store .wc-block-components-sidebar {
		padding: 16px;
		border-radius: 18px;
	}

	body.maison-store ul.products.maison-grid--shop {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		padding: 0 16px 40px !important;
	}
}

@media (max-width: 520px) {
	body.maison-store ul.products.maison-grid--shop {
		grid-template-columns: 1fr !important;
	}
}
