/**
 * Ubris Builder WP — Boutique WooCommerce (filtres public + durée)
 *
 * @author     Complianz System
 * @copyright  2025-2026 Complianz System
 * @license    GPL-2.0-or-later
 */

body.wpcursor-shop-page {
	--wpc-shop-ink: var(--wpcursor-ink, #210000);
	--wpc-shop-muted: #6b5e5a;
	--wpc-shop-cream: var(--wpcursor-cream, #f9f7f5);
	--wpc-shop-yellow: var(--wpcursor-yellow, #ffe566);
	--wpc-shop-orange: var(--wpcursor-orange, #f98700);
	--wpc-shop-peach: var(--wpcursor-peach, #ffb347);
	--wpc-shop-red: var(--wpcursor-red, #ab1a19);
	--wpc-shop-gradient: var(--wpcursor-gradient, linear-gradient(90deg, #f98700 0%, #ab1a19 100%));
	--wpc-shop-pad: max(1.15rem, env(safe-area-inset-left), env(safe-area-inset-right));
	--wpc-shop-font: var(--wpcursor-font-body, "Poppins", system-ui, sans-serif);
	--wpc-shop-title-font: var(--wpcursor-font-title, "Poppins", system-ui, sans-serif);
	--wpc-shop-line: #ebe4df;
	--wpc-shop-max: 80rem;
}

@media (min-width: 1100px) {
	body.wpcursor-shop-page {
		--wpc-shop-pad: clamp(1.5rem, 4vw, 3.5rem);
	}
}

/* —— Conteneur page (full width, pas de split Astra) —— */
body.wpcursor-shop-page .site-content,
body.wpcursor-shop-page #content {
	background: #ffffff;
}

body.wpcursor-shop-page.ast-plain-container.ast-no-sidebar #primary,
body.wpcursor-shop-page #primary.content-area {
	float: none !important;
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

body.wpcursor-shop-page .site-content > .ast-container,
body.wpcursor-shop-page .ast-container {
	display: block !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
}

body.wpcursor-shop-page .ast-woocommerce-container,
body.wpcursor-shop-page .site-main,
body.wpcursor-shop-page .woocommerce {
	display: block !important;
	font-family: var(--wpc-shop-font);
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

/* Masquer chrome Astra / WC dupliqué */
body.wpcursor-shop-page .entry-header,
body.wpcursor-shop-page .ast-breadcrumbs-wrapper,
body.wpcursor-shop-page .woocommerce-products-header,
body.wpcursor-shop-page .woocommerce-result-count,
body.wpcursor-shop-page .woocommerce-ordering,
body.wpcursor-shop-page .ast-woo-shop-archive .page-title {
	display: none !important;
}

/* —— Hero plein largeur —— */
.wpcursor-shop-hero {
	background:
		radial-gradient(circle at 8% 18%, rgb(255 229 102 / 0.45) 0 1.5px, transparent 2px) 0 0 / 18px 18px,
		radial-gradient(circle at 92% 78%, rgb(249 135 0 / 0.28) 0 1.5px, transparent 2px) 0 0 / 18px 18px,
		linear-gradient(180deg, var(--wpc-shop-cream) 0%, #fff 100%);
	border-bottom: 1px solid var(--wpc-shop-line);
	box-sizing: border-box;
	display: block;
	float: none;
	margin: 0 0 1.75rem;
	padding: 2.5rem var(--wpc-shop-pad) 2.25rem;
	text-align: center;
	width: 100%;
}

.wpcursor-shop-hero__inner {
	margin: 0 auto;
	max-width: var(--wpc-shop-max);
}

.wpcursor-shop-hero__breadcrumb {
	color: var(--wpc-shop-muted);
	font-size: 0.875rem;
	font-weight: 500;
	margin: 0 0 0.65rem;
}

.wpcursor-shop-hero__breadcrumb a {
	color: var(--wpc-shop-orange);
	text-decoration: none;
}

.wpcursor-shop-hero__breadcrumb a:hover,
.wpcursor-shop-hero__breadcrumb a:focus-visible {
	color: var(--wpc-shop-red);
	text-decoration: underline;
}

.wpcursor-shop-hero__sep {
	margin: 0 0.35rem;
	opacity: 0.55;
}

.wpcursor-shop-hero__title {
	color: var(--wpc-shop-ink);
	font-family: var(--wpc-shop-title-font);
	font-size: clamp(1.85rem, 3.5vw, 2.65rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0 0 0.55rem;
}

.wpcursor-shop-hero__lead {
	color: var(--wpc-shop-muted);
	font-size: 1rem;
	line-height: 1.55;
	margin: 0 auto;
	max-width: 36rem;
}

/* —— Shell filtres —— */
.wpcursor-shop {
	box-sizing: border-box;
	display: block;
	margin: 0 auto 3rem;
	max-width: var(--wpc-shop-max);
	padding: 0 var(--wpc-shop-pad);
	width: 100%;
}

.wpcursor-shop__tabs {
	background: #ffffff;
	border: 1px solid #efe9e4;
	border-radius: 999px;
	box-shadow: 0 8px 22px rgb(33 0 0 / 0.05);
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	justify-content: center;
	margin: 0 auto 1.5rem;
	max-width: 34rem;
	padding: 0.3rem;
}

.wpcursor-shop__tab {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--wpc-shop-ink);
	cursor: pointer;
	flex: 1 1 auto;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	min-height: 2.55rem;
	padding: 0.55rem 1rem;
	text-align: center;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}

.wpcursor-shop__tab:hover,
.wpcursor-shop__tab:focus-visible {
	background: var(--wpc-shop-cream);
	color: var(--wpc-shop-orange);
}

.wpcursor-shop__tab:focus-visible {
	outline: 2px solid var(--wpc-shop-ink);
	outline-offset: 2px;
}

.wpcursor-shop__tab.is-active {
	background: var(--wpc-shop-gradient);
	color: #ffffff;
}

.wpcursor-shop__tab.is-active:hover,
.wpcursor-shop__tab.is-active:focus-visible {
	color: #ffffff;
}

.wpcursor-shop__layout {
	align-items: start;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	width: 100%;
}

@media (min-width: 900px) {
	.wpcursor-shop__layout {
		gap: 2rem;
		grid-template-columns: 15.5rem minmax(0, 1fr);
	}
}

.wpcursor-shop__sidebar {
	background: var(--wpc-shop-cream);
	border: 1px solid var(--wpc-shop-line);
	border-radius: 1rem;
	padding: 1.15rem 1.1rem 1.25rem;
}

.wpcursor-shop__sidebar-title {
	color: var(--wpc-shop-ink);
	font-family: var(--wpc-shop-title-font);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0 0 0.85rem;
	text-transform: uppercase;
}

.wpcursor-shop__durees {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpcursor-shop__duree {
	border-radius: 0.65rem;
	color: var(--wpc-shop-ink);
	display: block;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
	padding: 0.65rem 0.75rem;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.wpcursor-shop__duree:hover,
.wpcursor-shop__duree:focus-visible {
	background: #ffffff;
	color: var(--wpc-shop-orange);
}

.wpcursor-shop__duree:focus-visible {
	outline: 2px solid var(--wpc-shop-ink);
	outline-offset: 2px;
}

.wpcursor-shop__duree.is-active {
	background: #ffffff;
	box-shadow: inset 3px 0 0 var(--wpc-shop-orange);
	color: var(--wpc-shop-orange);
	font-weight: 800;
}

.wpcursor-shop__main {
	min-width: 0;
	width: 100%;
}

.wpcursor-shop__meta {
	color: var(--wpc-shop-muted);
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

/* —— Grille produits (écrase Astra float/grid) —— */
body.wpcursor-shop-page ul.products,
body.wpcursor-shop-page .woocommerce ul.products,
body.wpcursor-shop-page.woocommerce ul.products,
body.wpcursor-shop-page .ast-container .woocommerce ul.products,
body.wpcursor-shop-page.woocommerce-page ul.products {
	display: grid !important;
	float: none !important;
	gap: 1.25rem !important;
	grid-template-columns: 1fr !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

@media (min-width: 700px) {
	body.wpcursor-shop-page ul.products,
	body.wpcursor-shop-page .woocommerce ul.products,
	body.wpcursor-shop-page.woocommerce ul.products,
	body.wpcursor-shop-page .ast-container .woocommerce ul.products,
	body.wpcursor-shop-page.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1000px) {
	body.wpcursor-shop-page ul.products,
	body.wpcursor-shop-page .woocommerce ul.products,
	body.wpcursor-shop-page.woocommerce ul.products,
	body.wpcursor-shop-page .ast-container .woocommerce ul.products,
	body.wpcursor-shop-page.woocommerce-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

body.wpcursor-shop-page ul.products::before,
body.wpcursor-shop-page ul.products::after {
	content: none !important;
	display: none !important;
}

body.wpcursor-shop-page ul.products li.product,
body.wpcursor-shop-page .woocommerce ul.products li.product,
body.wpcursor-shop-page.woocommerce-page ul.products li.product,
body.wpcursor-shop-page ul.products li.product.ast-grid-common-col {
	background: #ffffff;
	border: 1px solid var(--wpc-shop-line);
	border-radius: 1rem;
	box-sizing: border-box !important;
	clear: none !important;
	display: flex !important;
	flex-direction: column;
	float: none !important;
	margin: 0 !important;
	max-width: none !important;
	min-width: 0 !important;
	overflow: hidden;
	padding: 0 0 1.15rem !important;
	position: relative;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	width: 100% !important;
}

body.wpcursor-shop-page ul.products li.product:hover {
	border-color: rgb(249 135 0 / 0.45);
	box-shadow: 0 14px 32px rgb(33 0 0 / 0.07);
	transform: translateY(-2px);
}

body.wpcursor-shop-page ul.products li.product .astra-shop-thumbnail-wrap,
body.wpcursor-shop-page ul.products li.product .astra-shop-summary-wrap {
	display: block;
	width: 100%;
}

body.wpcursor-shop-page ul.products li.product a img,
body.wpcursor-shop-page ul.products li.product img {
	border-radius: 0;
	display: block;
	height: auto;
	margin: 0;
	max-width: 100%;
	width: 100%;
}

body.wpcursor-shop-page ul.products li.product .woocommerce-loop-product__title,
body.wpcursor-shop-page ul.products li.product .ast-loop-product__link,
body.wpcursor-shop-page ul.products li.product h2 {
	color: var(--wpc-shop-ink);
	font-family: var(--wpc-shop-title-font);
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.35;
	margin: 0;
	padding: 0 1rem;
	word-break: normal;
	overflow-wrap: anywhere;
}

body.wpcursor-shop-page ul.products li.product .ast-woo-product-category,
body.wpcursor-shop-page ul.products li.product .posted_in {
	color: var(--wpc-shop-red);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 0.85rem 1rem 0.15rem;
	text-transform: uppercase;
}

body.wpcursor-shop-page ul.products li.product .price {
	color: var(--wpc-shop-ink);
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0.35rem 0 0.85rem;
	padding: 0 1rem;
}

body.wpcursor-shop-page ul.products li.product .button,
body.wpcursor-shop-page ul.products li.product a.button,
body.wpcursor-shop-page ul.products li.product .added_to_cart {
	align-items: center;
	background: var(--wpc-shop-gradient) !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-sizing: border-box;
	color: #ffffff !important;
	display: inline-flex !important;
	font-size: 0.88rem !important;
	font-weight: 800 !important;
	justify-content: center;
	margin: auto 1rem 0 !important;
	max-width: none;
	min-height: 2.65rem;
	padding: 0.7rem 1.25rem !important;
	text-align: center;
	text-decoration: none !important;
	white-space: normal;
	width: calc(100% - 2rem) !important;
}

body.wpcursor-shop-page ul.products li.product .button:hover,
body.wpcursor-shop-page ul.products li.product .button:focus-visible {
	filter: brightness(1.05);
}

body.wpcursor-shop-page .woocommerce-info,
body.wpcursor-shop-page .woocommerce-notices-wrapper {
	margin: 0 0 1rem;
	width: 100%;
}

body.wpcursor-shop-page .woocommerce-info {
	border-radius: 0.85rem;
}

@media (max-width: 899px) {
	.wpcursor-shop__tabs {
		border-radius: 1rem;
		max-width: none;
	}
}
