/* =========================================================
   WooCommerce — habillage à la charte La Fabrique by Coco
   ========================================================= */

/* En-tête de la boutique */
.boutique-shop .boutique-shop-head {
	text-align: center;
	max-width: 680px;
	margin: 0 auto clamp(40px, 6vw, 64px);
}
.boutique-shop .boutique-shop-head .lead {
	margin-top: 14px;
	color: var(--ink-soft, #5b5048);
}

/* Barre résultats / tri */
.woocommerce .woocommerce-result-count {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 13px;
	color: var(--ink-soft, #5b5048);
	opacity: 0.8;
}
.woocommerce .woocommerce-ordering select {
	font-family: "DM Sans", system-ui, sans-serif;
	border: 1px solid rgba(169, 120, 69, 0.3);
	border-radius: 999px;
	padding: 8px 16px;
	background: #fff;
}

/* Grille produits */
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 2.5vw, 32px);
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	background: #fff;
	border: 1px solid rgba(169, 120, 69, 0.1);
	border-radius: 22px;
	padding: 16px 16px 22px;
	box-shadow: 0 6px 24px rgba(17, 17, 17, 0.05);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(169, 120, 69, 0.16);
}

/* Image produit */
.woocommerce ul.products li.product a img {
	border-radius: 16px;
	margin-bottom: 16px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Titre produit */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-titre, "Syne"), sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--noir, #111);
	padding: 0 4px 8px;
}

/* Prix */
.woocommerce ul.products li.product .price {
	color: var(--bronze-deep, #7A4A23) !important;
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 600;
	font-size: 18px;
	padding: 0 4px;
	margin-top: auto;
}
.woocommerce ul.products li.product .price del { opacity: 0.5; font-weight: 400; }

/* Bouton Ajouter au panier — pilule bronze */
.woocommerce a.button,
.woocommerce ul.products li.product .button,
.woocommerce a.added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 14px;
	background: var(--bronze, #A97845) !important;
	color: #fff !important;
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 600;
	font-size: 14px;
	border-radius: 999px !important;
	padding: 11px 22px !important;
	border: 0;
	transition: background 0.25s, transform 0.2s;
}
.woocommerce a.button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce a.added_to_cart:hover {
	background: var(--bronze-deep, #7A4A23) !important;
	transform: translateY(-1px);
}

/* Fiche produit (single) */
.woocommerce div.product .product_title {
	font-family: var(--font-titre, "Syne"), sans-serif;
	font-weight: 800;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--bronze-deep, #7A4A23);
	font-weight: 600;
}
.woocommerce div.product form.cart .button {
	background: var(--bronze, #A97845) !important;
	border-radius: 999px !important;
	padding: 14px 30px !important;
}

/* Messages WooCommerce (panier ajouté, etc.) */
.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--bronze, #A97845);
	border-radius: 12px;
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--bronze, #A97845); }

/* =========================================================
   BLOCS Panier / Commande (WooCommerce Blocks) — charte
   ========================================================= */

/* Titres */
.wp-block-woocommerce-cart h1,
.wp-block-woocommerce-cart h2,
.wp-block-woocommerce-checkout h1,
.wp-block-woocommerce-checkout h2,
.wc-block-cart__totals-title,
.wc-block-components-checkout-step__title {
	font-family: var(--font-titre, "Syne"), sans-serif !important;
	font-weight: 700;
	color: var(--noir, #111);
}

/* Nom des produits dans le panier */
.wc-block-components-product-name {
	font-family: var(--font-titre, "Syne"), sans-serif !important;
	font-weight: 600 !important;
	color: var(--noir, #111) !important;
}

/* Liens (couleur bronze) */
.wp-block-woocommerce-cart a,
.wp-block-woocommerce-checkout a {
	color: var(--bronze-deep, #7A4A23);
}

/* Totaux mis en valeur en bronze */
.wc-block-components-totals-item__value,
.wc-block-components-order-summary-item__total-price,
.wc-block-formatted-money-amount {
	color: var(--bronze-deep, #7A4A23);
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 700;
}

/* Boutons (Procéder au paiement, etc.) — pilule bronze */
.wc-block-components-button.contained,
.wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-components-button,
.wp-block-woocommerce-checkout .wc-block-components-button,
.wc-block-cart__submit-container .wc-block-components-button {
	background: var(--bronze, #A97845) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
	font-weight: 600 !important;
	padding: 14px 28px !important;
	transition: background 0.25s, transform 0.2s !important;
}
.wc-block-components-button.contained:hover,
.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart .wc-block-components-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-button:hover {
	background: var(--bronze-deep, #7A4A23) !important;
	transform: translateY(-1px);
}

/* Conteneur des totaux / cartes — arrondi doux */
.wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout .wc-block-components-sidebar {
	border-radius: 18px;
}

/* Champs de formulaire (checkout) arrondis */
.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-checkout select {
	border-radius: 10px !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-checkout-step__title-text {
	color: var(--bronze-deep, #7A4A23);
}

/* Sélecteur de quantité arrondi */
.wc-block-components-quantity-selector {
	border-radius: 999px !important;
	overflow: hidden;
}

/* Bouton "Parcourir la boutique" (panier vide) */
.wc-block-cart__empty-cart__wrapper .wc-block-components-button,
.is-large.wc-block-cart .wc-block-components-button.outlined {
	background: var(--bronze, #A97845) !important;
	color: #fff !important;
	border-color: var(--bronze, #A97845) !important;
	border-radius: 999px !important;
}

/* Responsive grille produits */
@media (max-width: 1024px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.woocommerce ul.products { grid-template-columns: 1fr; }
}

/* Bouton retour Boutique (catégorie / fiche produit → landing) */
.boutique-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(20px, 3vw, 36px);
	padding: 10px 18px;
	border: 1px solid rgba(169, 120, 69, 0.3);
	border-radius: 999px;
	background: transparent;
	color: var(--bronze, #A97845);
	font-family: var(--font-texte);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.boutique-back-link:hover,
.boutique-back-link:focus-visible {
	background: var(--bronze, #A97845);
	border-color: var(--bronze, #A97845);
	color: #fff;
	transform: translateX(-2px);
}
.boutique-back-link svg {
	transition: transform 0.25s ease;
}
.boutique-back-link:hover svg {
	transform: translateX(-3px);
}

/* ==========================================================================
   LANDING BOUTIQUE — 2 univers : Guides + Mobilier
   ========================================================================== */
.boutique-landing {
	position: relative;
}

.boutique-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(24px, 3vw, 44px);
	margin-top: clamp(32px, 4vw, 56px);
}

.boutique-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--radius-l, 36px);
	overflow: hidden;
	box-shadow: var(--shadow-soft, 0 18px 50px -28px rgba(17, 17, 17, 0.35));
	transition: transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
	            box-shadow 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.boutique-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 60px -20px rgba(169, 120, 69, 0.32);
}

.boutique-card__media {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	position: relative;
}

.boutique-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.boutique-card:hover .boutique-card__media img {
	transform: scale(1.05);
}

.boutique-card__body {
	padding: clamp(28px, 3vw, 44px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
}

.boutique-card__body .eyebrow {
	font-family: var(--font-titre, 'Syne', sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bronze, #A97845);
	margin: 0;
}

.boutique-card__body h2 {
	font-family: var(--font-titre, 'Syne', sans-serif);
	font-size: clamp(22px, 2.4vw, 32px);
	line-height: 1.12;
	font-weight: 700;
	margin: 0;
	color: var(--noir, #111);
	letter-spacing: -0.01em;
}

.boutique-card__body p {
	font-family: var(--font-texte, 'DM Sans', sans-serif);
	font-size: 15px;
	line-height: 1.65;
	color: var(--ink-soft, rgba(17, 17, 17, 0.68));
	margin: 0;
}

.boutique-card__body .btn {
	align-self: flex-start;
	margin-top: 12px;
}

@media (max-width: 860px) {
	.boutique-cards {
		grid-template-columns: 1fr;
	}
}
