/* ==========================================================================
   DIRECT OFFICE — WooCommerce
   ========================================================================== */

.woocommerce-Price-amount, .price, .amount { font-feature-settings: "tnum" 1; }

/* ---------- Grilles de produits ---------- */
ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
	list-style: none; margin: 0 0 10px; padding: 0;
}
ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
ul.products::before, ul.products::after { display: none !important; }

/* ---------- Carte produit ---------- */
.product-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
	transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.product-card:hover { border-color: #cfc8bd; box-shadow: var(--sh-hover); transform: translateY(-3px); }
.product-card__media { position: relative; padding: 12px 12px 0; }
.product-card__img {
	position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--white);
}
.product-card__photo {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px;
	transition: opacity .35s, transform .6s var(--ease);
}
.product-card__photo--alt { opacity: 0; }
.product-card:hover .product-card__photo { transform: scale(1.04); }
.product-card:hover .product-card__photo--alt { opacity: 1; }
.product-card:hover .product-card__photo--alt ~ .product-card__photo,
.product-card:hover .product-card__img:has(.product-card__photo--alt) .product-card__photo:first-child { opacity: 0; }
.product-card__badges { position: absolute; top: 20px; left: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; pointer-events: none; }
.onsale {
	display: inline-flex; align-items: center; padding: 4px 9px; border-radius: var(--r-xs);
	background: var(--red); color: var(--white); font-size: 13px; font-weight: 700; line-height: 1.3; font-feature-settings: "tnum" 1;
}
.product-card .badge { border-radius: var(--r-xs); padding: 4px 9px; font-size: 12px; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 16px 16px; }
.product-card__cat { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.product-card__title {
	margin: 0 0 8px; font-family: var(--f-body); font-size: 15px; font-weight: 500; line-height: 1.38; letter-spacing: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em;
}
.product-card__title a { color: var(--ink); }
.product-card__title a:hover { color: var(--red); }
.product-card .star-rating { margin-bottom: 8px; }
.product-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.product-card .price {
	display: flex; flex-direction: column; font-family: var(--f-display); font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.15;
}
.product-card .price del { order: 2; font-family: var(--f-body); font-size: 13px; font-weight: 400; color: var(--slate); }
.product-card .price ins { text-decoration: none; color: var(--red); }
.product-card .price .woocommerce-Price-currencySymbol { font-size: .7em; font-weight: 700; margin-left: 1px; }
.product-card .price .amount { white-space: nowrap; }
.product-card .button {
	flex: none; width: 42px; min-height: 42px; padding: 0; gap: 0; font-size: 14px;
	background: var(--white); color: var(--ink); border: 1.5px solid var(--ink);
}
.product-card .button > span {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.product-card .button:hover { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: none; }
.product-card .button.loading { opacity: .6; pointer-events: none; }
.product-card .button.added { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.product-card .button.added .do-icon { display: none; }
.product-card .button.added::before { content: "✓"; font-weight: 700; }
.product-card .added_to_cart { display: none; }
.outofstock .product-card__img img { opacity: .55; }

/* Étoiles (sans police d'icônes) */
.star-rating {
	position: relative; display: inline-block; width: 86px; height: 15px; overflow: hidden; font-size: 0;
	background: linear-gradient(90deg, var(--field) 0 0); -webkit-mask: var(--stars); mask: var(--stars);
	--stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='86' height='15' viewBox='0 0 86 15'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='m7.5 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4L3 13.8l.9-5L.3 5.3l5-.7z'/%3E%3Cuse href='%23s' x='17.7'/%3E%3Cuse href='%23s' x='35.4'/%3E%3Cuse href='%23s' x='53.1'/%3E%3Cuse href='%23s' x='70.8'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
}
.star-rating span { position: absolute; inset: 0 auto 0 0; background: var(--pending); overflow: hidden; }
.star-rating span::before { content: none; }

/* ---------- En-tête de la boutique ---------- */
.shop-hero { position: relative; background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.shop-hero__inner { display: grid; grid-template-columns: 1fr; align-items: center; gap: 30px; min-height: 150px; padding-top: 28px; padding-bottom: 30px; }
.shop-hero.has-image .shop-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.shop-hero__title { margin: 6px 0 0; font-size: clamp(30px, 4vw, 48px); }
.shop-hero__desc { margin-top: 10px; color: var(--slate); font-size: 16px; max-width: 640px; }
.shop-hero__desc p { margin: 0; }
.shop-hero__media { border-radius: var(--r); overflow: hidden; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.shop-hero__media img { width: 100%; height: 190px; object-fit: cover; }
.shop-hero:not(.has-image)::after {
	content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 30%; max-width: 420px;
	background: var(--red) var(--motif); background-size: 40px 40px; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Mise en page boutique ---------- */
.shop-layout { padding-top: 26px; padding-bottom: 20px; }
.shop-layout--sidebar { display: grid; grid-template-columns: 270px minmax(0, 1fr); column-gap: 28px; align-items: start; }
.shop-layout > .chips { grid-column: 1 / -1; }
.shop-layout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.shop-sidebar__head { display: none; }
.shop-sidebar .widget { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.widget-title { font-family: var(--f-display); font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.widget ul { list-style: none; }
.widget_product_categories li { font-size: 14px; }
.widget_product_categories li a { display: inline-block; padding: 5px 0; color: var(--ink-2); }
.widget_product_categories li a:hover, .widget_product_categories .current-cat > a { color: var(--red); font-weight: 600; }
.widget_product_categories .count { float: right; padding: 5px 0; color: var(--slate); font-size: 12px; font-feature-settings: "tnum" 1; }
.widget_product_categories .children { padding-left: 14px; border-left: 1px solid var(--line); margin: 2px 0 6px 2px; }
.widget_price_filter .price_slider { position: relative; height: 4px; margin: 14px 8px 22px; background: var(--offwhite-2); border-radius: 4px; }
.widget_price_filter .ui-slider-range { position: absolute; height: 100%; background: var(--red); border-radius: 4px; }
.widget_price_filter .ui-slider-handle {
	position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
	background: var(--white); border: 2px solid var(--red); cursor: grab; outline: none; z-index: 2;
}
.widget_price_filter .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.widget_price_filter .price_slider_amount input { display: none; }
.widget_price_filter .price_slider_amount .button { min-height: 36px; padding: 0 14px; font-size: 13px; background: var(--ink); }
.widget_price_filter .price_label { color: var(--slate); font-feature-settings: "tnum" 1; }
.widget_price_filter .clear { display: none; }
.widget_do_help { background: var(--offwhite) !important; }
.widget_do_help p { font-size: 14px; color: var(--slate); }
.help-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; font-size: 15px; }
.help-line .do-icon { color: var(--red); }

.shop-toolbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px 12px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
}
.shop-toolbar__filters { display: none; }
.quick-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill);
	border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.shop-toolbar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.woocommerce-result-count { margin: 0; font-size: 14px; color: var(--slate); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { min-height: 40px; padding: 6px 36px 6px 12px; font-size: 14px; width: auto; appearance: none; -webkit-appearance: none;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f2226' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }

/* ---------- Avis & notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px; list-style: none;
	margin: 0 0 20px; padding: 14px 18px; border-radius: var(--r); border: 1px solid transparent; font-size: 15px;
}
.woocommerce-message { background: var(--success-bg); border-color: #bfe3cf; color: #145f3d; }
.woocommerce-info { background: var(--info-bg); border-color: #c5d6f5; color: #1f4c97; }
.woocommerce-error { background: var(--error-bg); border-color: #efc5c5; color: var(--error); flex-direction: column; align-items: flex-start; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; min-height: 38px; padding: 0 14px; font-size: 14px; background: var(--ink); }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button) { text-decoration: underline; }

/* ---------- Fiche produit ---------- */
.single-product-wrap { padding-top: 22px; padding-bottom: 10px; }
.single-product-wrap > .woocommerce-breadcrumb { margin-bottom: 18px; }
div.product.type-product {
	display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0 44px; align-items: start;
}
div.product > .woocommerce-product-gallery,
div.product > .onsale { grid-column: 1; grid-row: 1; }
div.product > .summary { grid-column: 2; grid-row: 1 / span 2; }
div.product > .woocommerce-tabs, div.product > .related, div.product > .upsells, div.product > section { grid-column: 1 / -1; }
div.product > .onsale { position: relative; z-index: 3; align-self: start; justify-self: start; margin: 18px 0 0 18px; font-size: 14px; padding: 6px 12px; }

.woocommerce-product-gallery {
	position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; opacity: 1 !important;
}
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { border-radius: var(--r); overflow: hidden; }
.woocommerce-product-gallery__image a { display: block; aspect-ratio: 1; }
.woocommerce-product-gallery__image img { width: 100%; height: 100% !important; object-fit: contain; }
.woocommerce-product-gallery .flex-viewport { border-radius: var(--r); }
.woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; margin: 14px 0 0; }
.woocommerce-product-gallery .flex-control-thumbs li img {
	aspect-ratio: 1; object-fit: contain; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s;
}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active, .woocommerce-product-gallery .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--ink); }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 28px; right: 28px; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50%; background: var(--white); border: 1px solid var(--line); font-size: 0;
}
.woocommerce-product-gallery__trigger::before {
	content: ""; width: 18px; height: 18px; background: var(--ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce-product-gallery__trigger img { display: none !important; }

.summary.entry-summary { padding: 6px 0 0; }
.product-eyebrow { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.product_title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; }
.summary .woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.summary .woocommerce-review-link { color: var(--slate); }
.summary > .price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 6px 0 14px;
	font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.01em; color: var(--ink);
}
.summary > .price del { order: 2; font-size: .5em; font-weight: 600; color: var(--slate); }
.summary > .price ins { text-decoration: none; color: var(--red); }
.summary > .price .woocommerce-Price-currencySymbol { font-size: .55em; font-weight: 700; }
.product-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.product-sku { font-size: 13px; color: var(--slate); }
.woocommerce-product-details__short-description { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.woocommerce-product-details__short-description p:last-child { margin: 0; }
.summary .stock { display: none; }

form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; padding: 20px 0 14px; border-top: 1px solid var(--line); margin: 0; }
form.cart .single_add_to_cart_button { flex: 1; min-height: 54px; font-size: 16px; }
form.cart.variations_form { flex-direction: column; }
.variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.variations th, .variations td { display: block; padding: 0 0 6px; text-align: left; }
.variations td { padding-bottom: 14px; }
.reset_variations { font-size: 13px; color: var(--slate); margin-left: 10px; }
.woocommerce-variation-add-to-cart { display: flex; gap: 12px; }
.woocommerce-variation-price { margin-bottom: 10px; font-family: var(--f-display); font-size: 24px; font-weight: 800; }

.quantity {
	display: inline-flex; align-items: stretch; height: 54px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--white); overflow: hidden;
}
.quantity .qty {
	width: 54px; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; text-align: center;
	font-weight: 600; font-size: 16px; -moz-appearance: textfield; font-feature-settings: "tnum" 1; box-shadow: none !important;
}
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { display: grid; place-items: center; width: 42px; border: 0; background: transparent; color: var(--ink); }
.qty-btn:hover { background: var(--offwhite); color: var(--red); }
.quantity:has(input[type="hidden"]) .qty-btn { display: none; }

.product-alt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 20px; }
.product-alt-actions .btn { min-height: 48px; font-size: 14px; white-space: normal; text-align: center; }
.product-assurance {
	list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
	background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.product-assurance li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--white); font-size: 13px; color: var(--slate); line-height: 1.35; }
.product-assurance strong { display: block; color: var(--ink); font-size: 14px; }
.product-assurance .do-icon { color: var(--red); }
.product_meta { display: grid; gap: 4px; padding-top: 18px; font-size: 13px; color: var(--slate); }
.product_meta a { color: var(--ink-2); }
.product_meta a:hover { color: var(--red); }

/* Onglets de description */
.woocommerce-tabs { margin-top: 48px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.woocommerce-tabs ul.tabs { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce-tabs ul.tabs li { flex: none; margin: 0; padding: 0; background: none; border: 0; }
.woocommerce-tabs ul.tabs li a {
	position: relative; display: block; padding: 18px 16px; font-family: var(--f-display); font-size: 18px; font-weight: 700; color: var(--slate);
}
.woocommerce-tabs ul.tabs li a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); }
.woocommerce-tabs ul.tabs li.active a::after { transform: scaleX(1); }
.woocommerce-tabs .panel { margin: 0; padding: clamp(22px, 3vw, 40px); font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce-tabs .panel ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.woocommerce-tabs .panel li::marker { color: var(--red); }
.woocommerce-tabs .panel strong { color: var(--ink); }
.woocommerce-tabs .panel { max-width: none; }
.woocommerce-Tabs-panel--description > * { max-width: 860px; }
table.shop_attributes { width: 100%; max-width: 860px; border-collapse: collapse; }
table.shop_attributes th, table.shop_attributes td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
table.shop_attributes th { width: 35%; background: var(--offwhite); font-weight: 600; }
table.shop_attributes td p { margin: 0; }
#reviews .commentlist { list-style: none; }
#reviews .comment_container { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
#reviews .avatar { border-radius: 50%; }
#review_form_wrapper { margin-top: 20px; }
.comment-form-rating .stars a { color: var(--pending); margin-right: 4px; }

.related.products, .upsells.products { margin-top: 56px; }
.related.products > h2, .upsells.products > h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 22px; }

/* Barre d'achat collante */
.sticky-buy {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; background: var(--white); border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px rgba(31, 34, 38, .08); transform: translateY(100%); transition: transform .3s var(--ease);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy[hidden] { display: block; visibility: hidden; }
.sticky-buy.is-visible[hidden] { visibility: visible; }
.sticky-buy__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.sticky-buy__product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sticky-buy__product img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); }
.sticky-buy__product strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
.sticky-buy__product .price { font-family: var(--f-display); font-weight: 800; font-size: 17px; }
.sticky-buy__product .price del { font-size: 13px; color: var(--slate); margin-right: 6px; }
.sticky-buy__product .price ins { text-decoration: none; color: var(--red); }
body.single-product .wa-float, body.single-product .to-top { transition: bottom .3s var(--ease); }
body.has-sticky-buy .wa-float { bottom: 92px; }
body.has-sticky-buy .to-top { bottom: 160px; }

/* ---------- Panier, commande, compte (gabarits classiques) ---------- */
.page-body--shop { padding-top: 32px; }
.woocommerce-cart-form, .cart-collaterals .cart_totals, .woocommerce-checkout-review-order, .woocommerce-MyAccount-content,
.woocommerce form.login, .woocommerce form.register, .woocommerce-checkout #customer_details, .woocommerce-order {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart-form { padding: 8px 24px 20px; }
table.shop_table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.shop_table th { padding: 16px 10px; text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); border-bottom: 1px solid var(--line); }
table.shop_table td { padding: 18px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table tr:last-child td { border-bottom: 0; }
table.shop_table .product-thumbnail img { width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; background: var(--white); }
table.shop_table .product-name a { font-weight: 600; color: var(--ink); }
table.shop_table .product-name a:hover { color: var(--red); }
table.shop_table .product-price, table.shop_table .product-subtotal { font-weight: 600; white-space: nowrap; }
table.shop_table .product-subtotal { font-family: var(--f-display); font-size: 17px; font-weight: 800; }
table.shop_table .product-remove a {
	display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--slate); background: var(--offwhite);
}
table.shop_table .product-remove a:hover { background: var(--error-bg); color: var(--error); }
table.shop_table .quantity { height: 44px; }
table.shop_table .quantity .qty { width: 44px; }
table.shop_table td.actions { padding-top: 22px; }
.coupon { display: inline-flex; gap: 8px; align-items: center; }
.coupon label { display: none; }
.coupon input { width: 200px; min-height: 46px; }
td.actions > .button { float: right; background: var(--white); color: var(--ink); border-color: var(--ink); }
td.actions > .button:hover { background: var(--ink); color: var(--white); }
.cart-collaterals { position: sticky; top: calc(var(--header-h) + 16px); }
.cart_totals { padding: 24px; }
.cart_totals h2 { font-size: 22px; margin-bottom: 8px; }
.cart_totals table.shop_table th { width: 40%; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink-2); padding: 14px 0; }
.cart_totals table.shop_table td { padding: 14px 0; text-align: right; }
.cart_totals .order-total th, .cart_totals .order-total td { border-top: 2px solid var(--ink); padding-top: 18px; }
.cart_totals .order-total .amount { font-family: var(--f-display); font-size: 26px; font-weight: 800; color: var(--red); }
.wc-proceed-to-checkout { padding-top: 10px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; font-size: 16px; }
ul#shipping_method { list-style: none; text-align: left; }
.woocommerce-shipping-destination, .shipping-calculator-button { font-size: 13px; color: var(--slate); }
.cart-empty.woocommerce-info { justify-content: center; padding: 30px; font-size: 17px; }
.return-to-shop { text-align: center; grid-column: 1 / -1; }

/* Commande */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { padding: 28px; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-checkout h3, #order_review_heading { font-size: 22px; margin: 0 0 16px; }
#order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 24px 24px 0; background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.woocommerce-checkout-review-order { grid-column: 2; grid-row: 1; margin-top: 62px; padding: 10px 24px 24px; border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); position: sticky; top: calc(var(--header-h) + 16px); }
.woocommerce-checkout-review-order-table .order-total .amount { font-family: var(--f-display); font-size: 24px; font-weight: 800; color: var(--red); }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
}
.form-row { margin: 0 0 16px; padding: 0; }
.form-row-wide, #billing_address_1_field, #billing_address_2_field, #billing_company_field, #billing_email_field { grid-column: 1 / -1; }
.form-row label .required { color: var(--red); text-decoration: none; }
.form-row .optional { color: var(--slate); font-weight: 400; }
.woocommerce-invalid input { border-color: var(--error) !important; }
#payment { margin-top: 18px; }
#payment ul.payment_methods { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
#payment ul.payment_methods > li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
#payment ul.payment_methods > li:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
#payment ul.payment_methods label { margin: 0 0 0 6px; font-weight: 600; }
#payment .payment_box { margin-top: 10px; padding: 12px 14px; font-size: 14px; color: var(--slate); background: var(--offwhite); border-radius: var(--r-sm); }
#payment .payment_box p:last-child { margin: 0; }
#place_order { width: 100%; min-height: 56px; font-size: 16px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--slate); margin-bottom: 14px; }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { grid-column: 1 / -1; }
form.checkout_coupon { padding: 18px; margin-bottom: 20px; background: var(--white); border: 1px dashed var(--field); border-radius: var(--r); }
form.checkout_coupon p { margin-bottom: 10px; }

/* Confirmation de commande */
.woocommerce-order { padding: 32px; }
.woocommerce-thankyou-order-received { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--success); }
ul.woocommerce-order-overview { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 20px 0 28px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
ul.woocommerce-order-overview li { padding: 14px 16px; background: var(--offwhite); font-size: 13px; color: var(--slate); }
ul.woocommerce-order-overview li strong { display: block; margin-top: 2px; color: var(--ink); font-size: 16px; }
.woocommerce-customer-details address { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); font-style: normal; }

/* Mon compte */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account:not(.logged-in) .woocommerce > form.login,
.woocommerce-account:not(.logged-in) .woocommerce > form.lost_reset_password { max-width: 560px; margin-left: auto; margin-right: auto; }
.u-columns .u-column2 { position: relative; }
.u-columns .u-column2 form.register { background: var(--white); }
.u-columns .u-column2 h2::after { content: " — gratuit"; font-family: var(--f-body); font-size: 14px; font-weight: 500; color: var(--success); }
.woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--header-h) + 16px); padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.woocommerce-MyAccount-navigation ul { list-style: none; display: grid; gap: 2px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 500; color: var(--ink-2); }
.woocommerce-MyAccount-navigation a:hover { background: var(--offwhite); color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--white); }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--error); }
.woocommerce-MyAccount-content { padding: 28px; min-height: 300px; }
.woocommerce-MyAccount-content > p:first-child { font-size: 17px; }
.woocommerce-MyAccount-content mark { background: none; color: var(--ink); font-weight: 600; }
.woocommerce-orders-table .button { min-height: 36px; padding: 0 12px; font-size: 13px; background: var(--white); color: var(--ink); border-color: var(--ink); }
.woocommerce-orders-table .button:hover { background: var(--ink); color: var(--white); }
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.woocommerce-Address { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce-Address address { font-style: normal; color: var(--ink-2); }

.u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
.u-columns .u-column1, .u-columns .u-column2 { width: auto; float: none; }
.u-columns h2 { font-size: 26px; margin-bottom: 14px; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password { padding: 28px; margin: 0; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; }
.woocommerce-form-login__submit, .woocommerce-form-register__submit { min-width: 160px; }
.lost_password { font-size: 14px; margin-top: 10px; }
.lost_password a { color: var(--red); }
.woocommerce-privacy-policy-text { font-size: 13px; color: var(--slate); }
.password-input { position: relative; display: block; }
.show-password-input { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; opacity: .6; }
.show-password-input::before { content: "👁"; font-size: 16px; }

/* ---------- Blocs Panier / Commande (WooCommerce Blocks) ---------- */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--f-body); }
.wc-block-cart, .wc-block-checkout { gap: 24px; }
.wc-block-components-main, .wc-block-components-sidebar { padding: 24px !important; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.wc-block-components-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.wc-block-checkout__sidebar.wc-block-components-sidebar { padding: 0 !important; background: none; border: 0; }
.wp-block-woocommerce-checkout-order-summary-block { background: var(--white); border-color: var(--line) !important; border-radius: var(--r-lg) !important; overflow: hidden; }
.wc-block-components-checkout-order-summary__title { padding: 20px 20px 0 !important; }
.wc-block-components-checkout-order-summary__title-text { font-family: var(--f-display); font-size: 20px !important; font-weight: 700; }
.wc-block-components-button:not(.is-link) {
	min-height: 54px; border-radius: var(--r-sm) !important; background: var(--red) !important; color: var(--white) !important;
	font-family: var(--f-body); font-weight: 600 !important; font-size: 16px; transition: background .2s, box-shadow .2s;
}
.wc-block-components-button:not(.is-link):hover { background: var(--red-hover) !important; box-shadow: var(--sh-btn); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--f-display); font-size: 24px !important; font-weight: 800; color: var(--red); }
.wc-block-components-title, .wc-block-components-checkout-step__title { font-family: var(--f-display) !important; font-weight: 700 !important; }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select__select {
	border-color: var(--field) !important; border-radius: var(--r-sm) !important;
}
.wc-block-components-text-input input:focus { border-color: var(--red) !important; box-shadow: inset 0 0 0 1px var(--red) !important; }
.wc-block-components-radio-control__option--checked-option-highlighted, .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px var(--red) !important; border-radius: var(--r) !important; }
.wc-block-cart-item__image img { border: 1px solid var(--line); border-radius: var(--r-sm); }
.wc-block-components-product-name { font-weight: 600; color: var(--ink) !important; }
.wc-block-components-quantity-selector { border-radius: var(--r-sm) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked { background: var(--red); border-color: var(--red); }

/* Étapes de commande */
.checkout-steps { display: flex; align-items: center; gap: 10px; list-style: none; margin-top: 18px; }
.checkout-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--slate); }
.checkout-steps li + li::before { content: ""; width: 40px; height: 2px; border-radius: 2px; background: var(--line); margin-right: 2px; }
.checkout-steps__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--offwhite-2); font-size: 13px; }
.checkout-steps .is-current { color: var(--ink); }
.checkout-steps .is-current .checkout-steps__num { background: var(--red); color: var(--white); }
.checkout-steps .is-done { color: var(--success); }
.checkout-steps .is-done .checkout-steps__num { background: var(--success); color: var(--white); }
.checkout-steps li.is-done + li::before, .checkout-steps li.is-current::before { background: var(--success); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	ul.products.columns-5, ul.products.columns-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.woocommerce-checkout form.checkout, .woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
	#order_review_heading, .woocommerce-checkout-review-order { grid-column: 1; grid-row: auto; }
	.woocommerce-checkout-review-order { margin-top: 0; position: static; }
	.cart-collaterals { position: static; }
}
@media (max-width: 960px) {
	.shop-layout--sidebar { display: block; }
	.shop-sidebar {
		position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(88vw, 360px); overflow-y: auto; padding: 0 16px 24px;
		background: var(--offwhite); transform: translateX(-100%); transition: transform .3s var(--ease); align-content: start;
	}
	.shop-sidebar.is-open { transform: none; box-shadow: var(--sh-pop); }
	.shop-sidebar__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 -16px; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
	.shop-sidebar__head strong { font-family: var(--f-display); font-size: 20px; }
	.shop-toolbar__filters { display: inline-flex; }
	.shop-hero.has-image .shop-hero__inner { grid-template-columns: 1fr; }
	.shop-hero__media { display: none; }
	div.product.type-product { grid-template-columns: 1fr; }
	div.product > .summary { grid-column: 1; grid-row: auto; margin-top: 24px; }
	div.product > .onsale { grid-row: 1; }
	.woocommerce-product-gallery { position: relative; top: 0; }
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-MyAccount-navigation { position: static; }
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; }
	.woocommerce-MyAccount-navigation li { flex: none; }
	.u-columns.col2-set { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.product-card__media { padding: 8px 8px 0; }
	.product-card__body { padding: 10px 10px 12px; }
	.product-card__badges { top: 14px; left: 14px; }
	.product-card__title { font-size: 14px; }
	.product-card .price { font-size: 16px; }
	.product-card__foot { flex-direction: column; align-items: stretch; }
	.product-card .button { width: 100%; gap: 6px; min-height: 38px; }
	.product-card .button > span { position: static; width: auto; height: auto; clip: auto; }
	.product-card__cat { display: none; }
	.shop-toolbar__right { width: 100%; justify-content: space-between; margin-left: 0; }
	.woocommerce-result-count { font-size: 13px; }
	.product-alt-actions, .product-assurance { grid-template-columns: 1fr; }
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
	.woocommerce-cart-form { padding: 4px 14px 14px; }
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: grid; grid-template-columns: 80px 1fr auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
	table.shop_table_responsive td { display: block; padding: 0; border: 0; }
	table.shop_table_responsive td::before { display: none; }
	table.shop_table_responsive .product-thumbnail { grid-row: 1 / 4; }
	table.shop_table_responsive .product-remove { grid-column: 3; grid-row: 1; }
	table.shop_table_responsive .product-price { display: none; }
	table.shop_table_responsive td.actions { grid-column: 1 / -1; }
	.coupon { display: flex; width: 100%; margin-bottom: 10px; }
	.coupon input { flex: 1; width: auto; }
	td.actions > .button { float: none; width: 100%; }
	.woocommerce-Addresses { grid-template-columns: 1fr; }
	.sticky-buy__product strong { max-width: 42vw; }
	.checkout-steps li span:not(.checkout-steps__num) { display: none; }
	.checkout-steps li.is-current span { display: inline; }
	.checkout-steps li + li::before { width: 18px; }
}
