/* ============================================
   OPCards — WooCommerce Overrides
   Clean professional e-commerce styling
   ============================================ */

/* --- Add to Cart Button --- */
.wc-block-components-product-button .wp-element-button,
.wc-block-components-product-button > a,
.single_add_to_cart_button,
.add_to_cart_button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-product-button .wc-block-components-product-button > a {
	background: var(--wp--preset--color--contrast) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--wp--custom--border-radius--small) !important;
	font-weight: 600 !important;
	font-size: 0.8rem !important;
	padding: 0.7rem 1.4rem !important;
	transition: all 0.2s ease !important;
	cursor: pointer;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.wc-block-components-product-button .wp-element-button:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--wp--preset--color--primary) !important;
	transform: translateY(-1px);
}

/* --- Product Price --- */
.wc-block-components-product-price,
.price {
	color: var(--wp--preset--color--contrast) !important;
	font-weight: 600;
}

.wc-block-components-product-price del,
.price del {
	color: var(--wp--preset--color--muted) !important;
	opacity: 0.7;
}

.wc-block-components-product-price ins,
.price ins {
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none;
}

/* --- Quantity Selector --- */
.wc-block-components-quantity-selector {
	background: #fff !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--wp--custom--border-radius--small) !important;
	overflow: hidden;
}

.wc-block-components-quantity-selector__button {
	color: var(--wp--preset--color--contrast) !important;
	background: transparent !important;
	border: none !important;
}

.wc-block-components-quantity-selector__button:hover {
	background: var(--wp--preset--color--surface) !important;
}

/* ============================================
   Cart Page
   ============================================ */

/* Cart page layout */
.wc-block-cart {
	max-width: 1100px !important;
	margin: 0 auto !important;
}

/* Cart items table */
.wc-block-cart-items {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	overflow: hidden;
}

.wc-block-cart-items .wc-block-cart-items__header {
	background: var(--wp--preset--color--surface) !important;
	border-bottom: 1px solid var(--wp--preset--color--border) !important;
}

.wc-block-cart-items .wc-block-cart-items__header-product,
.wc-block-cart-items .wc-block-cart-items__header th {
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	color: var(--wp--preset--color--muted) !important;
	padding: 0.85rem 1.25rem !important;
}

.wc-block-cart-items .wc-block-cart-items__row {
	border-bottom: 1px solid var(--wp--preset--color--border) !important;
	padding: 1.25rem !important;
}

.wc-block-cart-items .wc-block-cart-items__row:last-child {
	border-bottom: none !important;
}

/* Cart item image */
.wc-block-cart-item__image img {
	border-radius: 10px !important;
	border: 1px solid var(--wp--preset--color--border);
}

/* Cart item name */
.wc-block-components-product-name {
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: none !important;
}

.wc-block-components-product-name:hover {
	color: var(--wp--preset--color--primary) !important;
}

/* Cart item price */
.wc-block-cart-item__total .wc-block-components-product-price {
	font-weight: 700 !important;
	font-size: 0.95rem !important;
}

/* Cart remove link */
.wc-block-cart-item__remove-link {
	color: var(--wp--preset--color--muted) !important;
	font-size: 0.78rem !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
}

.wc-block-cart-item__remove-link:hover {
	color: var(--wp--preset--color--primary) !important;
}

/* Cart totals sidebar */
.wc-block-cart__totals-title {
	font-size: 1.1rem !important;
	font-weight: 700 !important;
}

.wc-block-components-totals-wrapper {
	border-top-color: var(--wp--preset--color--border) !important;
}

.wc-block-cart__totals-title,
.wc-block-components-totals-item__label {
	font-weight: 600 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.25rem !important;
	font-weight: 800 !important;
	color: var(--wp--preset--color--primary) !important;
}

/* Proceed to checkout button */
.wc-block-cart__submit-button {
	width: 100% !important;
	padding: 1rem !important;
	font-size: 0.92rem !important;
	font-weight: 700 !important;
	border-radius: 10px !important;
	background: var(--wp--preset--color--contrast) !important;
	color: #fff !important;
	transition: all 0.2s ease !important;
}

.wc-block-cart__submit-button:hover {
	background: var(--wp--preset--color--primary) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(196, 30, 58, 0.25);
}

/* Empty cart */
.wp-block-woocommerce-empty-cart-block {
	text-align: center;
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 0 3rem;
}

/* Replace crying icon with a cart icon via CSS */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	content: "" !important;
	display: block !important;
	width: 72px;
	height: 72px;
	margin: 0 auto 1.25rem;
	background: var(--wp--preset--color--surface, #f5f5f5);
	border-radius: 50%;
	-webkit-mask: none;
	mask: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 36px;
	background-color: var(--wp--preset--color--surface, #f5f5f5);
}

.wc-block-cart__empty-cart__title {
	font-size: 1.3rem !important;
	font-weight: 700 !important;
	margin-bottom: 0.25rem !important;
}

/* Hide the dotted separator */
.wp-block-woocommerce-empty-cart-block .wp-block-separator {
	display: none !important;
}

/* "Nouveau dans la boutique" heading */
.wp-block-woocommerce-empty-cart-block > .wp-block-heading {
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	margin: 2rem 0 1.25rem !important;
}

/* Product grid */
.wc-block-cart .wc-block-grid,
.wp-block-woocommerce-empty-cart-block .wc-block-grid {
	max-width: 100%;
	margin: 0 auto;
}

.wc-block-cart .wc-block-grid__products,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1rem !important;
}

.wc-block-cart .wc-block-grid__product,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	float: none !important;
	flex: none !important;
}

.wc-block-cart .wc-block-grid__product,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
	background: #fff !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 12px !important;
	padding: 0.75rem !important;
	overflow: hidden !important;
	transition: all 0.25s ease;
	text-align: left;
}

.wc-block-cart .wc-block-grid__product:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.wc-block-cart .wc-block-grid__product-image img {
	border-radius: 8px;
}

.wc-block-cart .wc-block-grid__product-title {
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wc-block-cart .wc-block-grid__product-price {
	font-weight: 700 !important;
	font-size: 0.9rem !important;
	color: var(--wp--preset--color--contrast) !important;
}

/* Hide "Lire la suite" buttons */
.wc-block-grid__product-add-to-cart {
	display: none !important;
}

/* Hide page title on empty cart — redundant */
.page-id-8 .wp-block-post-title {
	display: none !important;
}

/* Empty cart products — mobile grid */
@media (max-width: 768px) {
	.wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 0.75rem !important;
	}

	.wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
		padding: 0.75rem;
		width: 100% !important;
		margin: 0 !important;
		float: none !important;
	}

	.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
		font-size: 0.72rem !important;
	}

	.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
		font-size: 0.82rem !important;
	}
}

/* =============================================
   CHECKOUT — Refonte complète
   ============================================= */

/* Fond gris page entière */
.page-id-9 {
	background: #f3f3f3 !important;
}

.page-id-9 .wp-site-blocks {
	background: #f3f3f3 !important;
}

/* Titre "Validation de la commande" — aligné avec le checkout */
.page-id-9 .wp-block-post-title {
	max-width: 1100px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.wc-block-checkout {
	max-width: 1100px !important;
	margin: 0 auto !important;
}

/* Sections formulaire en cards blanches */
.wc-block-checkout__form .wc-block-components-checkout-step {
	background: #fff !important;
	border-radius: 12px !important;
	padding: 1.5rem !important;
	margin-bottom: 1rem !important;
	border: 1px solid #e0e0e0 !important;
}

/* Bloc CGV — même style card blanche que les autres sections */
.wc-block-checkout__terms {
	background: #fff !important;
	border-radius: 12px !important;
	padding: 1.25rem 1.5rem !important;
	margin-bottom: 1rem !important;
	border: 1px solid #e0e0e0 !important;
}

/* Le bloc livraison info "Saisir une adresse..." */
.wc-block-checkout__form .wc-block-components-shipping-rates-control,
.wc-block-checkout__form .wc-block-checkout__shipping-option {
	background: #fff !important;
	border-radius: 12px !important;
}

/* --- Form Inputs --- */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea {
	background: #fff !important;
	border: 1.5px solid #ddd !important;
	color: #111 !important;
	border-radius: 8px !important;
	padding: 0.75rem 1rem !important;
	font-size: 0.88rem !important;
	transition: border-color 0.2s !important;
}

.wc-block-components-text-input input:focus {
	border-color: #111 !important;
	box-shadow: none !important;
}

.wc-block-components-text-input label {
	color: #888 !important;
	font-size: 0.82rem !important;
}

/* Cacher le label quand le champ est rempli (pas au focus, seulement quand y a du texte) */
.wc-block-components-text-input.is-active label {
	display: none !important;
}

/* Select (Pays, etc.) — même style que les inputs */
.wc-blocks-components-select__container {
	border: 1.5px solid #ddd !important;
	border-radius: 8px !important;
	background: #fff !important;
	padding: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	position: relative !important;
}

.wc-blocks-components-select__label {
	display: none !important;
}

.wc-blocks-components-select__select {
	font-size: 0.88rem !important;
	color: #111 !important;
	padding: 0.75rem 2.5rem 0.75rem 1rem !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	line-height: 1.4 !important;
	width: 100% !important;
	height: auto !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.wc-blocks-components-select__expand {
	position: absolute !important;
	right: 1rem !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: #888 !important;
	pointer-events: none !important;
}

/* --- Form Section Titles --- */
.wc-block-checkout__form .wc-block-components-checkout-step__title {
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	color: #111 !important;
}

/* --- Radio / Checkbox --- */
.wc-block-components-radio-control__input:checked {
	border-color: var(--wp--preset--color--primary) !important;
	background: var(--wp--preset--color--primary) !important;
}

.wc-block-components-checkbox__input:checked {
	background: var(--wp--preset--color--primary) !important;
	border-color: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	accent-color: var(--wp--preset--color--primary) !important;
}

.wc-block-components-checkbox__mark {
	fill: #fff !important;
	color: #fff !important;
	stroke: #fff !important;
}

/* --- Place Order Button --- */
.wc-block-components-checkout-place-order-button {
	width: 100% !important;
	padding: 1.1rem !important;
	font-size: 0.95rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em !important;
	border-radius: 10px !important;
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	transition: all 0.2s ease !important;
	text-transform: uppercase !important;
}

.wc-block-components-checkout-place-order-button:hover {
	background: #a01830 !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.wc-block-components-checkout-return-to-cart-button {
	color: #888 !important;
	font-size: 0.82rem !important;
}

/* =============================================
   ORDER SUMMARY
   ============================================= */

/* Sidebar — plus large (desktop only) */
.wc-block-checkout__sidebar {
	padding-left: 0 !important;
}

@media (min-width: 769px) {
	.wc-block-checkout__sidebar {
		margin-left: -18px !important;
	}
}

/* Card container */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	background: #fff !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 12px !important;
	padding: 0 !important;
	overflow: hidden !important;
	position: sticky !important;
	top: 2rem !important;
	width: 100% !important;
}

/* Titre */
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title {
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	background: #111 !important;
	color: #fff !important;
	padding: 0.9rem 1.5rem !important;
	margin: 0 !important;
	border: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-text {
	margin: 0 !important;
	padding: 0 !important;
}

/* Reset padding — forcer TOUT à 0 sauf le wrapper principal */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block > * > * {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block > * > * > * {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Le seul niveau qui a du padding : les enfants directs du __content */
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content > * {
	padding-left: 1.5rem !important;
	padding-right: 1.5rem !important;
}

/* Le shipping-block est DANS le totals-block → il hérite déjà, donc on le reset */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-shipping-block {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Pareil pour les sous-blocs discount, fee, taxes, subtotal */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-subtotal-block,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-discount-block,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-fee-block,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-taxes-block {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Barre au-dessus de Sous-total — sélecteur ultra-spécifique pour overrider le reset */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block .wp-block-woocommerce-checkout-order-summary-subtotal-block.wp-block-woocommerce-checkout-order-summary-subtotal-block {
	border-top: 1px solid #e8e8e8 !important;
	padding-top: 0.5rem !important;
	margin-top: 0.25rem !important;
}

/* --- Produit --- */
.wc-block-components-order-summary-item {
	display: flex !important;
	align-items: flex-start !important;
	gap: 0.85rem !important;
	padding: 0.7rem 0 !important;
	border-bottom: 1px solid #e8e8e8 !important;
}

.wc-block-components-order-summary-item:last-child {
	border-bottom: none !important;
}

/* Image produit — cachée */
.wc-block-components-order-summary-item__image {
	display: none !important;
}

.wc-block-components-order-summary-item__image img {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	border: 1px solid #e0e0e0 !important;
	background: #fff !important;
}

/* Badge quantité */
.wc-block-components-order-summary-item__quantity {
	position: absolute !important;
	top: -6px !important;
	right: -6px !important;
	min-width: 20px !important;
	height: 20px !important;
	background: #111 !important;
	color: #fff !important;
	border-radius: 10px !important;
	font-size: 0.65rem !important;
	font-weight: 700 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 5px !important;
	line-height: 1 !important;
}

/* Nom produit */
.wc-block-components-order-summary-item__description {
	flex: 1 !important;
	min-width: 0 !important;
	padding-top: 0.15rem !important;
	padding-left: 0 !important;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #111 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	margin-bottom: 0.25rem !important;
}

/* Cacher la description dupliquée */
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
	display: none !important;
}

/* Prix unitaire sous le nom */
.wc-block-components-order-summary-item__description .wc-block-cart-item__prices {
	display: none !important;
}

/* Prix total à droite */
.wc-block-components-order-summary-item__total-price {
	margin-left: auto !important;
	flex-shrink: 0 !important;
	padding-left: 0.75rem !important;
	text-align: right !important;
}

.wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value {
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	color: #111 !important;
}

/* --- Tuer les doubles bordures WC --- */
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
	border-top: none !important;
}

.wc-block-checkout__sidebar [class*="checkout-order-summary-"] {
	border: none !important;
}

/* Coupon — déplacé dans le form par JS */
.wp-block-woocommerce-checkout-order-summary-coupon-form-block {
	background: #fff !important;
	border-radius: 12px !important;
	padding: 1.25rem 1.5rem !important;
	margin-bottom: 1rem !important;
	border: 1px solid #e0e0e0 !important;
}

/* Titre coupon — même taille que les titres de section */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	color: #111 !important;
	pointer-events: none !important;
	cursor: default !important;
}

/* Titre coupon — cliquable pour ouvrir/fermer */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
	pointer-events: auto !important;
	cursor: pointer !important;
}

/* --- Totaux --- */
.wc-block-checkout__sidebar .wc-block-components-totals-item {
	padding: 0.5rem 0 !important;
	border-bottom: none !important;
}

.wc-block-components-totals-item__label {
	font-size: 0.82rem !important;
	color: #666 !important;
	font-weight: 700 !important;
}

.wc-block-components-totals-item__value {
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	color: #333 !important;
}

/* Livraison description */
.wc-block-components-totals-shipping .wc-block-components-totals-item__description {
	font-size: 0.75rem !important;
	color: #999 !important;
}

/* Le wrapper du Total — C'EST LUI qui reçoit le fond noir */
.wc-block-checkout__sidebar .wc-block-components-totals-footer-item-wrapper,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item) {
	background: #111 !important;
	padding: 0 !important;
	margin: 0.5rem 0 0 !important;
}

/* Total — texte seulement, le fond vient du parent */
.wc-block-checkout__sidebar .wc-block-components-totals-footer-item {
	background: transparent !important;
	margin: 0 !important;
	padding: 1rem 1.5rem !important;
	border: none !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: #fff !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.2rem !important;
	font-weight: 800 !important;
	color: #fff !important;
}

/* --- Mobile --- */
@media (max-width: 768px) {
	.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
		position: static !important;
	}

	/* === Réordonner : form steps → résumé → bouton Commander (CSS pur) === */

	/* Aplatir les containers pour que tous les enfants soient au même niveau flex */
	.wc-block-components-sidebar-layout {
		display: flex !important;
		flex-direction: column !important;
	}

	.wc-block-checkout__main {
		display: contents !important;
	}

	.wc-block-checkout__form {
		display: contents !important;
	}

	/* Steps du form en ordre naturel */
	.wc-block-checkout__form > * {
		order: 1 !important;
	}

	/* Résumé ouvert, avant le bouton */
	.wc-block-checkout__sidebar {
		order: 80 !important;
	}

	/* CGV checkbox entre résumé et bouton */
	.wc-block-checkout__terms {
		order: 85 !important;
	}

	/* Bouton Commander en dernier */
	.wc-block-checkout__actions {
		order: 90 !important;
	}

	/* Cacher le résumé dupliqué dans le bloc actions */
	.wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block {
		display: none !important;
	}

	/* Forcer le résumé ouvert — pas d'accordéon */
	.wc-block-components-checkout-order-summary__content {
		display: block !important;
		height: auto !important;
		overflow: visible !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	/* Cacher la flèche toggle */
	.wc-block-components-checkout-order-summary__title svg {
		display: none !important;
	}

	/* Pas de clic pour fermer */
	.wc-block-components-checkout-order-summary__title {
		pointer-events: none !important;
		cursor: default !important;
	}

	/* Cacher le prix dans le header (déjà dans le détail) */
	.wc-block-components-checkout-order-summary__title .wc-block-formatted-money-amount {
		display: none !important;
	}
}

/* --- Notices --- */
.wc-block-components-notice-banner {
	border: none !important;
	border-left: none !important;
	border-radius: 12px !important;
	padding: 1rem 1.25rem !important;
	font-size: 0.85rem !important;
	line-height: 1.6 !important;
	display: flex !important;
	align-items: center !important;
	gap: 0.75rem !important;
	margin-bottom: 1rem !important;
}

.wc-block-components-notice-banner svg {
	flex-shrink: 0;
	width: 20px !important;
	height: 20px !important;
}

.wc-block-components-notice-banner .wc-block-components-notice-banner__content {
	flex: 1;
}

.wc-block-components-notice-banner .wc-block-components-notice-banner__content a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Success (ajouté au panier) */
.wc-block-components-notice-banner.is-success {
	background: #111 !important;
	color: #fff !important;
}

.wc-block-components-notice-banner.is-success svg {
	color: #fff !important;
	fill: #fff !important;
}

.wc-block-components-notice-banner.is-success .wc-block-components-notice-banner__content {
	color: rgba(255, 255, 255, 0.85) !important;
}

.wc-block-components-notice-banner.is-success .wc-block-components-notice-banner__content a {
	color: #fff !important;
}

/* Error (paiement, erreur formulaire) */
.wc-block-components-notice-banner.is-error {
	background: rgba(196, 30, 58, 0.06) !important;
	border: 1px solid rgba(196, 30, 58, 0.15) !important;
	color: #111 !important;
}

.wc-block-components-notice-banner.is-error svg {
	display: none !important;
}

.wc-block-components-notice-banner.is-error::before {
	content: "!";
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	border-radius: 50%;
	line-height: 1;
}

.wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__content {
	color: #444 !important;
}

/* Info */
.wc-block-components-notice-banner.is-info {
	background: #f5f5f5 !important;
	border: 1px solid var(--wp--preset--color--border, #e5e5e5) !important;
	color: #111 !important;
}

.wc-block-components-notice-banner.is-info svg {
	color: #111 !important;
	fill: #111 !important;
}

/* --- Star Ratings --- */
.wc-block-components-product-rating .wc-block-components-product-rating__stars,
.star-rating {
	color: #f59e0b !important;
}

/* --- Breadcrumbs --- */
.wc-block-breadcrumbs {
	font-weight: 600 !important;
	margin-top: 1rem !important;
}

.wc-block-breadcrumbs a {
	color: var(--wp--preset--color--muted) !important;
	text-decoration: none !important;
}

.wc-block-breadcrumbs a:hover {
	color: var(--wp--preset--color--contrast) !important;
}

/* --- Filters --- */
.wc-block-components-price-slider__range-input-progress {
	background: var(--wp--preset--color--contrast) !important;
}

.wc-block-components-chip {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 20px !important;
	color: var(--wp--preset--color--contrast) !important;
}

/* --- My Account --- */
.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.65rem 1rem;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	border-radius: var(--wp--custom--border-radius--small);
	transition: all 0.15s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
}

/* --- Tables --- */
table.shop_table th,
.woocommerce-table th {
	background: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--contrast) !important;
	border-color: var(--wp--preset--color--border) !important;
}

table.shop_table td,
.woocommerce-table td {
	border-color: var(--wp--preset--color--border) !important;
}

/* ============================================
   My Account / Login / Register
   ============================================ */

/* Welcome header */
.opcards-account-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.opcards-account-header__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #111;
	border-radius: 50%;
	color: #fff;
}

.opcards-account-header__title {
	font-size: 1.6rem !important;
	font-weight: 800 !important;
	margin: 0 0 0.5rem !important;
	letter-spacing: -0.02em;
}

.opcards-account-header__sub {
	font-size: 0.88rem;
	color: var(--wp--preset--color--muted);
	max-width: 420px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Page wrapper */
.woocommerce-account .woocommerce {
	max-width: 820px;
	margin: 2.5rem auto;
}

/* Hide page title — we use welcome header */
.woocommerce-account .wp-block-post-title {
	display: none;
}

/* Two column layout: login + register side by side */
.woocommerce-account .u-columns,
.woocommerce-account .u-columns.col2-set {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	align-items: stretch;
	gap: 0 30px;
}

.woocommerce-account .col2-set::before,
.woocommerce-account .col2-set::after {
	display: none !important;
	content: none !important;
}

.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2,
.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2 {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
}

.woocommerce-account .u-columns .u-column2 .woocommerce-form-register {
	flex: 1;
}

/* Form cards */
.woocommerce-form-login,
.woocommerce-form-register {
	background: #fff !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 10px !important;
	padding: 2rem !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

/* Register form — password reset notice */
.woocommerce-form-register > p:not(.form-row) {
	font-size: 0.75rem !important;
	color: var(--wp--preset--color--muted) !important;
	line-height: 1.5;
}


/* Form headings */
.woocommerce-account h2 {
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	margin-bottom: 1.5rem !important;
	letter-spacing: -0.01em;
	text-align: center;
}

/* Labels */
.woocommerce-form label {
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	color: var(--wp--preset--color--contrast) !important;
	margin-bottom: 0.35rem !important;
	display: block;
}

.woocommerce-form label .required {
	color: var(--wp--preset--color--primary);
}

/* Form rows */
.woocommerce-form .form-row {
	margin-bottom: 1rem !important;
	padding: 0 !important;
}

/* Inputs */
.woocommerce-form .input-text,
.woocommerce-form input[type="text"],
.woocommerce-form input[type="email"],
.woocommerce-form input[type="password"] {
	width: 100% !important;
	padding: 0.75rem 1rem !important;
	border: 1.5px solid var(--wp--preset--color--border) !important;
	border-radius: 10px !important;
	font-size: 0.88rem !important;
	background: var(--wp--preset--color--surface, #f8f8f8) !important;
	transition: border-color 0.2s ease, background 0.2s ease !important;
	box-sizing: border-box !important;
}

.woocommerce-form .input-text:focus,
.woocommerce-form input:focus {
	border-color: var(--wp--preset--color--contrast) !important;
	background: #fff !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Submit buttons */
.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
	width: 100% !important;
	padding: 0.85rem 2rem !important;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	border-radius: 10px !important;
	background: var(--wp--preset--color--contrast) !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	margin-top: 0.5rem !important;
}

.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover {
	background: var(--wp--preset--color--primary) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(196, 30, 58, 0.25);
}

/* Remember me checkbox */
.woocommerce-form-login__rememberme {
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	font-size: 0.82rem !important;
	font-weight: 400 !important;
	color: var(--wp--preset--color--muted) !important;
	margin: 0.75rem 0 !important;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	border-radius: 4px !important;
	accent-color: var(--wp--preset--color--primary);
}

/* Lost password link */
.woocommerce-LostPassword {
	text-align: center;
	margin-top: 0.5rem;
}

.woocommerce-LostPassword a {
	font-size: 0.8rem !important;
	color: var(--wp--preset--color--muted) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.woocommerce-LostPassword a:hover {
	color: var(--wp--preset--color--primary) !important;
}

/* Privacy text in register */
.woocommerce-form-register .woocommerce-privacy-policy-text {
	font-size: 0.72rem !important;
	color: var(--wp--preset--color--muted) !important;
	line-height: 1.6;
	margin: 1rem 0 !important;
}

.woocommerce-form-register .woocommerce-privacy-policy-text a {
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: underline !important;
}

/* My Account navigation (when logged in) */
.woocommerce-MyAccount-navigation {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 0.5rem !important;
	overflow: hidden;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.7rem 1rem !important;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.15s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
	background: rgba(196, 30, 58, 0.06) !important;
	color: var(--wp--preset--color--primary) !important;
	font-weight: 600;
}

/* My Account content */
.woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 2rem !important;
}

/* Responsive */
@media (max-width: 768px) {
	.woocommerce-account .woocommerce {
		max-width: 100%;
		margin: 1rem auto;
		padding: 0 1.25rem;
	}

	.opcards-account-header__title {
		font-size: 1.3rem !important;
	}

	.opcards-account-header__sub {
		font-size: 0.82rem;
	}

	.woocommerce-account .u-columns,
	.woocommerce-account .u-columns.col2-set {
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
	}

	.woocommerce-account .u-columns .u-column1,
	.woocommerce-account .u-columns .u-column2,
	.woocommerce-account .col2-set .col-1,
	.woocommerce-account .col2-set .col-2 {
		padding: 0 !important;
	}

	.woocommerce-form-login,
	.woocommerce-form-register {
		padding: 1.5rem !important;
	}
}

/* ============================================
   Single Product Page — Premium
   ============================================ */

/* --- Product Layout --- */
.opcards-single-product .opcards-product-layout {
	align-items: flex-start;
}

/* --- Gallery: sticky + styled --- */
.opcards-single-product .opcards-gallery-col {
	position: sticky;
	top: 90px;
	align-self: flex-start;
}

.opcards-single-product .wc-block-woocommerce-product-image-gallery,
.opcards-single-product .woocommerce-product-gallery {
	border-radius: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.opcards-single-product .woocommerce-product-gallery__image img,
.opcards-single-product .wc-block-woocommerce-product-image-gallery img {
	border-radius: 0;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: zoom-in;
}

.opcards-single-product .woocommerce-product-gallery__image:hover img {
	transform: scale(1.05);
}

/* Sale badge on single product */
.opcards-single-product .onsale {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	padding: 6px 14px !important;
	font-size: 0.72rem !important;
	border-radius: 6px !important;
}

/* Out-of-stock badge */
.opcards-badge-outofstock {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	background: #111;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0 12px;
	border-radius: 6px;
	line-height: 24px;
	height: 24px;
	pointer-events: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.opcards-product-card .wc-block-components-product-image,
.opcards-product-card .wp-block-woocommerce-product-image {
	position: relative;
}

.opcards-single-product .woocommerce-product-gallery,
.opcards-single-product .wp-block-woocommerce-product-image-gallery {
	position: relative;
}

.opcards-single-product .opcards-badge-outofstock {
	top: 16px;
	left: 16px;
	font-size: 0.75rem;
	padding: 6px 14px;
}

/* Gallery thumbnails */
.opcards-single-product .flex-control-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	padding: 0;
	list-style: none;
}

.opcards-single-product .flex-control-thumbs li {
	flex: 0 0 auto;
	width: 76px;
	height: 76px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid var(--wp--preset--color--border);
	transition: all 0.2s ease;
	cursor: pointer;
	background: var(--wp--preset--color--surface);
}

.opcards-single-product .flex-control-thumbs li img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.opcards-single-product .flex-control-thumbs li:hover img,
.opcards-single-product .flex-control-thumbs li .flex-active {
	opacity: 1;
}

.opcards-single-product .flex-control-thumbs li:has(.flex-active),
.opcards-single-product .flex-control-thumbs li:hover {
	border-color: var(--wp--preset--color--contrast);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- Info Column --- */
.opcards-single-product .opcards-info-col {
	padding-top: 0.25rem;
}

/* --- Category badge above title --- */
.opcards-product-badge-row .taxonomy-product_cat a {
	background: rgba(196, 30, 58, 0.08);
	color: var(--wp--preset--color--primary) !important;
	padding: 4px 12px;
	border-radius: 4px;
	text-decoration: none !important;
	display: inline-block;
	transition: all 0.2s ease;
}

.opcards-product-badge-row .taxonomy-product_cat a:hover {
	background: var(--wp--preset--color--primary);
	color: #fff !important;
}

/* --- Price block --- */
.opcards-single-product .opcards-price-block .wc-block-components-product-price,
.opcards-single-product .opcards-price-block .price {
	color: var(--wp--preset--color--primary) !important;
	line-height: 1;
}

.opcards-single-product .price ins {
	text-decoration: none;
	font-weight: 800;
}

.opcards-single-product .price del {
	font-size: 0.6em;
	opacity: 0.45;
	margin-right: 0.5rem;
}

/* --- Short description --- */
.opcards-short-desc .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- Add to Cart area --- */
.opcards-single-product form.cart {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	width: 100% !important;
	padding: 0 !important;
}

.opcards-single-product form.cart > *:not(.quantity):not(.single_add_to_cart_button) {
	display: none !important;
}

.opcards-single-product form.cart .quantity {
	flex: 0 0 80px !important;
	margin: 0 !important;
}

.opcards-single-product form.cart .single_add_to_cart_button {
	flex: 1 1 0% !important;
	min-width: 0 !important;
	margin: 0 0 0 10px !important;
	box-sizing: border-box !important;
}

.opcards-single-product .quantity .qty {
	width: 100% !important;
	height: 54px !important;
	text-align: center;
	padding: 0 !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 54px !important;
	border-radius: 10px !important;
	border: 1.5px solid var(--wp--preset--color--border) !important;
	background: #fff !important;
	transition: border-color 0.2s ease;
	-moz-appearance: textfield;
}

.opcards-single-product .quantity .qty::-webkit-inner-spin-button,
.opcards-single-product .quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.opcards-single-product .quantity .qty:focus {
	border-color: var(--wp--preset--color--contrast) !important;
	outline: none !important;
}

.opcards-single-product .single_add_to_cart_button {
	flex: 1;
	padding: 1rem 2rem !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	border-radius: 10px !important;
	text-transform: none !important;
	letter-spacing: 0.01em !important;
	background: var(--wp--preset--color--contrast) !important;
	min-height: 54px;
	transition: all 0.25s ease !important;
}

.opcards-single-product .single_add_to_cart_button:hover {
	background: var(--wp--preset--color--primary) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(196, 30, 58, 0.3);
}

.opcards-single-product .single_add_to_cart_button:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
}

/* --- Trust Badges --- */
.opcards-trust {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 1.25rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	overflow: hidden;
}

.opcards-trust__item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 1.15rem;
}

.opcards-trust__item + .opcards-trust__item {
	border-top: 1px solid var(--wp--preset--color--border);
}

.opcards-trust__icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--contrast);
	color: #fff;
	border-radius: 10px;
	flex-shrink: 0;
}

.opcards-trust__text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.opcards-trust__text strong {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.opcards-trust__text span {
	font-size: 0.72rem;
	color: var(--wp--preset--color--muted);
}

/* --- Product Meta --- */
.opcards-product-meta {
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

.opcards-product-meta a {
	color: var(--wp--preset--color--muted) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.opcards-product-meta a:hover {
	color: var(--wp--preset--color--primary) !important;
}

/* --- Product Tabs --- */
.opcards-product-tabs-section {
	border-top: 1px solid var(--wp--preset--color--border);
}

.opcards-product-tabs .wc-tabs,
.opcards-product-tabs .woocommerce-tabs ul.tabs {
	list-style: none;
	display: flex;
	gap: 4px;
	padding: 0;
	margin: 0 0 2.5rem 0;
	border-bottom: none;
	background: var(--wp--preset--color--surface);
	border-radius: 10px;
	padding: 5px;
}

.opcards-product-tabs .wc-tabs li,
.opcards-product-tabs .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	flex: 1;
}

.opcards-product-tabs .wc-tabs li a,
.opcards-product-tabs .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	text-align: center;
	border-radius: 8px;
	border: none;
	transition: all 0.2s ease;
}

.opcards-product-tabs .wc-tabs li a:hover,
.opcards-product-tabs .woocommerce-tabs ul.tabs li a:hover {
	color: var(--wp--preset--color--contrast);
	background: rgba(255, 255, 255, 0.5);
}

.opcards-product-tabs .wc-tabs li.active a,
.opcards-product-tabs .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--contrast);
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.opcards-product-tabs .woocommerce-Tabs-panel {
	padding: 0;
}

.opcards-product-tabs .wc-tabs,
.opcards-product-tabs .woocommerce-tabs ul.tabs {
	display: none !important;
}

.opcards-product-tabs .woocommerce-Tabs-panel h2 {
	font-size: 1.1rem !important;
	font-weight: 700;
	margin-bottom: 1rem;
}

.opcards-product-tabs .woocommerce-Tabs-panel h3 {
	font-size: 0.95rem !important;
	font-weight: 600;
}

.opcards-product-tabs .woocommerce-Tabs-panel p,
.opcards-product-tabs .woocommerce-Tabs-panel li {
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem !important;
	line-height: 1.85;
	max-width: 720px;
}

.opcards-product-tabs .woocommerce-Tabs-panel ul {
	padding-left: 1.25rem;
	margin-bottom: 1rem;
}

.opcards-product-tabs .woocommerce-Tabs-panel li {
	margin-bottom: 0.3rem;
}

/* Review form */
.opcards-product-tabs .comment-form-rating label,
.opcards-product-tabs .comment-form label {
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--wp--preset--color--contrast);
}

.opcards-product-tabs #review_form .comment-form textarea,
.opcards-product-tabs #review_form .comment-form input {
	border-radius: 8px !important;
}

.opcards-product-tabs .comment-form-rating .stars a {
	color: #f59e0b !important;
}

/* --- Related Products --- */
.opcards-related-section {
	background-image: none !important;
}

.opcards-related-section .wp-block-post-title,
.opcards-related-section .wp-block-post-title a {
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.opcards-related-section [data-block-name="woocommerce/related-products"] {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.opcards-related-section [data-block-name="woocommerce/related-products"] > .wc-block-components-product-image {
	grid-column: auto;
}

/* Related product cards */
.opcards-related-section .wc-block-grid__product,
.opcards-related-section .wp-block-post {
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--border);
	padding-bottom: 1rem;
	overflow: hidden;
	transition: all 0.25s ease;
}

.opcards-related-section .wc-block-grid__product:hover,
.opcards-related-section .wp-block-post:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
	border-color: transparent;
}

/* Related product images — constrain size */
.opcards-related-section .wc-block-components-product-image img {
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: contain;
	padding: 0.75rem;
}

.opcards-related-section .wc-block-components-product-image {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
	.wc-block-components-product-button .wp-element-button,
	.single_add_to_cart_button {
		width: 100% !important;
	}

	.opcards-single-product .opcards-gallery-col {
		position: static;
	}

	.opcards-single-product .opcards-product-layout {
		flex-direction: column !important;
		gap: 1.5rem !important;
	}

	.opcards-single-product .opcards-gallery-col,
	.opcards-single-product .opcards-info-col {
		flex-basis: 100% !important;
	}

	.opcards-single-product form.cart {
		flex-direction: row !important;
		gap: 0 !important;
	}

	.opcards-single-product form.cart .quantity {
		flex: 0 0 70px !important;
	}

	.opcards-single-product form.cart .single_add_to_cart_button {
		flex: 1 1 0% !important;
		width: auto !important;
		margin: 0 0 0 10px !important;
	}

	.opcards-product-tabs-section,
	.opcards-related-section {
		padding-left: 1.25rem !important;
		padding-right: 1.25rem !important;
	}

	.opcards-product-tabs .wc-tabs,
	.opcards-product-tabs .woocommerce-tabs ul.tabs {
		flex-direction: column;
		gap: 2px;
	}

	.opcards-related-section .wc-block-grid__products,
	.opcards-related-section .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 480px) {
	.opcards-related-section .wc-block-grid__products,
	.opcards-related-section .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

/* ============================================
   Order Tracking Page
   ============================================ */

/* --- Order Tracking Page --- */


.page-id-138 main {
	padding-bottom: 4rem !important;
}

/* Header titre */
.opcards-tracking-header {
	text-align: center;
	padding: 2.5rem 1.5rem 1rem;
}

.opcards-tracking-header__title {
	font-size: 2.2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--contrast);
}

.opcards-tracking-header__sub {
	font-size: 0.9rem;
	color: var(--wp--preset--color--muted);
	margin: 0;
	letter-spacing: 0.01em;
}

/* Card tracking (bloc unique : header + formulaire) */
.opcards-tracking-card {
	text-align: center;
	max-width: 520px;
	margin: 2rem auto 0;
	padding: 2.5rem 2.5rem 2.5rem;
	background: #fff;
	border-radius: 20px;
	border: 1px solid var(--wp--preset--color--border, #e5e5e5);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
	position: relative;
	z-index: 2;
}

.opcards-tracking-card__icon {
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	border-radius: 14px;
	color: #fff;
	margin-bottom: 1.25rem;
}

.opcards-tracking-card__title {
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--contrast);
}

.opcards-tracking-card__desc {
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.7;
	margin: 0 auto;
	max-width: 360px;
}

/* Formulaire (à l'intérieur de la card) */
.opcards-tracking-card .track_order {
	margin-top: 1.5rem;
	text-align: left;
}

.track_order > p:first-child {
	display: none;
}

.track_order .form-row {
	float: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin-bottom: 1.25rem;
}

.track_order .form-row label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 0.4rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.track_order .form-row .input-text,
.opcards-tracking-card .track_order .form-row input.input-text {
	width: 100%;
	padding: 0.9rem 1.1rem;
	font-size: 0.85rem;
	font-family: inherit;
	color: var(--wp--preset--color--contrast);
	background: #fff !important;
	border: 1.5px solid #ddd !important;
	border-radius: 12px;
	transition: all 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.track_order .form-row .input-text:focus {
	border-color: var(--wp--preset--color--contrast);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
	background: #fff;
}

.track_order .form-row .input-text::placeholder {
	color: #aaa;
}

.track_order .clear {
	display: none;
}

.track_order .form-row button[type="submit"] {
	display: block;
	width: 100%;
	padding: 1rem 2rem;
	font-size: 0.88rem;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--wp--preset--color--contrast);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 0.5rem;
	letter-spacing: 0.01em;
}

.track_order .form-row button[type="submit"]:hover {
	background: var(--wp--preset--color--primary);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25);
}

/* Steps — ligne horizontale reliant les numeros */
.opcards-tracking-steps {
	max-width: 520px;
	margin: 3.5rem auto 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	text-align: center;
	position: relative;
}

.opcards-tracking-steps::before {
	content: "";
	position: absolute;
	top: 18px;
	left: calc(16.66% + 18px);
	right: calc(16.66% + 18px);
	height: 2px;
	background: var(--wp--preset--color--border);
}

.opcards-tracking-steps__item {
	position: relative;
	padding: 0 0.75rem;
}

.opcards-tracking-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--wp--preset--color--contrast);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
	border-radius: 50%;
	margin-bottom: 0.85rem;
	position: relative;
	z-index: 1;
}

.opcards-tracking-steps__item h3 {
	font-size: 0.82rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	color: var(--wp--preset--color--contrast);
}

.opcards-tracking-steps__item p {
	font-size: 0.72rem;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	margin: 0;
}

/* FAQ */
.opcards-tracking-faq {
	max-width: 520px;
	margin: 3.5rem auto 0;
}

.opcards-tracking-faq__title {
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 1.25rem;
	color: var(--wp--preset--color--contrast);
	text-align: center;
}

.opcards-tracking-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.opcards-tracking-faq__item {
	background: #f8f8f9;
	border-radius: 14px;
	padding: 1.1rem 1.25rem;
}

.opcards-tracking-faq__item summary {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.2s ease;
}

.opcards-tracking-faq__item summary:hover {
	color: var(--wp--preset--color--primary);
}

.opcards-tracking-faq__item summary::-webkit-details-marker {
	display: none;
}

.opcards-tracking-faq__item summary::after {
	content: "";
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 0v12M0 6h12' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.opcards-tracking-faq__item[open] summary::after {
	background: var(--wp--preset--color--contrast) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M0 6h12' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
}

.opcards-tracking-faq__item p {
	font-size: 0.8rem;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
	margin: 0.75rem 0 0;
	padding-right: 2.5rem;
}

.opcards-tracking-faq__item a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.opcards-tracking-faq__item a:hover {
	color: var(--wp--preset--color--contrast);
}

/* CTA */
.opcards-tracking-cta {
	max-width: 520px;
	margin: 3rem auto 0;
	text-align: center;
	padding: 2.5rem 2rem;
	background: var(--wp--preset--color--contrast);
	border-radius: 20px;
	position: relative;
	overflow: hidden;
}


.opcards-tracking-cta p {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 1.25rem;
	position: relative;
}

.opcards-tracking-cta__btn {
	display: inline-block;
	padding: 0.85rem 2.5rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #fff;
	background: var(--wp--preset--color--primary);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.2s ease;
	position: relative;
}

.opcards-tracking-cta__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
	color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
	.opcards-tracking-header {
		padding: 1.5rem 1.25rem 0.5rem;
	}

	.opcards-tracking-header__title {
		font-size: 1.6rem;
	}

	.opcards-tracking-card {
		margin-top: 1rem;
		padding: 2rem 1.25rem 2rem;
		border-radius: 16px;
	}

	.opcards-tracking-card__title {
		font-size: 1.1rem;
	}


	.opcards-tracking-steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 0.75rem;
		margin-top: 2.5rem;
		max-width: 100%;
	}

	.opcards-tracking-steps::before {
		top: 19px;
	}

	.opcards-tracking-steps__item p {
		display: none;
	}

	.opcards-tracking-steps__item h3 {
		font-size: 0.75rem;
	}

	.opcards-tracking-steps__num {
		width: 32px;
		height: 32px;
		font-size: 0.75rem;
	}

	.opcards-tracking-faq {
		margin-top: 2.5rem;
	}

	.opcards-tracking-cta {
		margin-top: 2.5rem;
		padding: 2rem 1.25rem;
		border-radius: 16px;
	}
}
