/* Moiré — Technideal boutique */
:root {
	--moire-green: var(--theme-palette-color-2, #56ae8e);
	--moire-red: #e0262b;
	--moire-dark: var(--theme-palette-color-1, #053740);
}

/* ---------- Stock ---------- */
.moire-stock { margin: 0; }
.moire-stock p { margin: 0; }
.moire-stock__web { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.moire-stock__web--in { color: var(--moire-green); }
.moire-stock__web--out { color: var(--moire-red); }
.moire-stock__virtual { font-size: 14px; color: var(--moire-dark); }

/* ---------- Fiche produit ---------- */
.entry-summary .moire-sku { margin: -.35em 0 0; font-size: 14px; font-weight: 700; color: var(--theme-palette-color-4, #041b1f); }
.product .entry-summary .product_meta > span.sku_wrapper { display: none; }

.moire-buybox {
	display: grid;
	grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
	gap: 12px 40px;
	align-items: start;
}
.moire-buybox__info .price { --theme-font-size: 30px; line-height: 1.15; margin: 0 0 .15em; }
.moire-buybox__info .moire-stock__web { font-size: 18px; line-height: 1.2; }
.moire-buybox__actions .ct-product-add-to-cart { margin: 0; }
.moire-buybox__actions .ct-product-add-to-cart > .stock { display: none; }
.moire-buybox__actions form.cart { margin: 0; }
.moire-buybox__actions .single_add_to_cart_button { --theme-button-min-width: auto; width: auto; flex: 1 1 auto; }
.moire-delivery { margin: .6em 0 0; font-size: 13px; line-height: 1.4; text-align: start; color: var(--moire-dark); opacity: .8; }

@media (max-width: 689.98px) {
	.moire-buybox { grid-template-columns: 1fr; }
}

/* ---------- Vignettes ---------- */
.moire-card-price .price { font-size: 20px; font-weight: 700; color: var(--theme-palette-color-4, #041b1f); }
.moire-card-sku { font-size: 13px; opacity: .75; }
.products .product .moire-card-actions { justify-content: center; margin-top: auto; }
.products .product .moire-card-actions .button { opacity: 1; visibility: visible; transform: none; }

/* ---------- Panier ---------- */
.moire-cart-table th.product-select,
.moire-cart-table td.product-select { width: 30px; padding-inline-end: 0; }
.moire-cart-table input[type="checkbox"] { margin: 0; }
.moire-cart-brand { display: block; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; opacity: .7; }
.moire-cart-sku { margin: .35em 0 0; font-size: 13px; opacity: .75; }
.moire-cart-table td.product-availability { min-width: 190px; }
.moire-av { font-size: 14px; line-height: 1.45; }
.moire-av > span { display: block; }
.moire-av__in { color: var(--moire-green); font-weight: 700; }
.moire-av__out, .moire-av__virtual { color: var(--moire-red); font-weight: 700; }
.moire-av.ct-hidden-lg { margin-top: .5em; }
.moire-cart-qty { display: flex; align-items: center; gap: 12px; }
.moire-cart-qty .product-remove a { display: inline-flex; opacity: .7; }
.moire-cart-qty .product-remove a:hover { opacity: 1; }
.moire-cart-unit { margin: .4em 0 0; font-size: 13px; white-space: nowrap; opacity: .75; }
.moire-remove-selected[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Fiche produit : visiteur non connecté ---------- */
.moire-guest-cta .moire-create-account { display: flex; align-items: center; justify-content: center; width: 100%; }
.moire-guest-login { margin: .5em 0 0; font-size: 13px; text-align: start; }
.moire-guest-login a { text-decoration: underline; }
body:not(.logged-in) .ct-floating-bar { display: none !important; } /* barre d'achat flottante Blocksy : réservée aux clients connectés */
.moire-login-create { margin-top: 1.5em; text-align: center; }
.moire-login-create a { text-decoration: underline; }

/* moire header account : bouton Se connecter / Mon compte dans la barre du haut (fond sombre) */
#header [data-row="top"] .ct-header-account .ct-account-item { --theme-link-initial-color: #e4eef0; --theme-link-hover-color: #ffffff; --theme-icon-color: #e4eef0; --theme-icon-hover-color: #ffffff; color: #e4eef0; }
#header [data-row="top"] .ct-header-account .ct-account-item:hover { color: #ffffff; }
#header [data-row="top"] .ct-header-account .ct-account-item svg { fill: currentColor; }
body:not(.logged-in) .ct-header-cart { display: none !important; } /* panier du header : réservé aux clients connectés */
#header [data-row="top"] .ct-header-cart .ct-cart-item { --theme-icon-color: #e4eef0; --theme-icon-hover-color: #ffffff; color: #e4eef0; }
#header [data-row="top"] .ct-header-cart .ct-cart-item svg { fill: currentColor; }
#header [data-row="top"] .ct-header-cart .ct-cart-item:hover { color: #ffffff; }

/* ---------- Fiche produit : bulles de réassurance ---------- */
.entry-summary .moire-reassurance { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.entry-summary .moire-reassurance li { margin: 0; }
.moire-reassurance__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--theme-palette-color-6, #eef4f5); color: var(--moire-dark); font-size: 14px; line-height: 1.3; }
.moire-reassurance__icon { flex: 0 0 auto; display: inline-flex; color: var(--moire-dark); }
.moire-reassurance__icon svg { width: 30px; height: 30px; }
@media (max-width: 689.98px) {
	.entry-summary .moire-reassurance { grid-template-columns: 1fr; gap: 8px; }
}
