/*
Theme Name: Ritmistas Shop
Theme URI: https://boutique.ritmistas.fr
Description: Thème boutique léger pour Ritmistas Dos Pily, aligné sur la maquette « Boutique Ritmistas ». Enfant de Twenty Twenty-Five.
Author: Ritmistas Dos Pily
Template: twentytwentyfive
Version: 3.0.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: ritmistas-shop
*/

/* =========================================================
   Tokens (maquette)
   ========================================================= */
:root {
	--rs-bg: #F6F4EF;
	--rs-ink: #1A1A18;
	--rs-text: #4A4843;
	--rs-muted: #66645E;
	--rs-line: #E2DED5;
	--rs-border: #CFCAC0;
	--rs-soft: #EAE7DF;
	--rs-card: #FFFFFF;
	--rs-tone: #ECE7DC;
	--rs-accent: #A33A2B;
	--rs-r: 8px;
	--rs-r-lg: 12px;
	--rs-r-xl: 16px;
	--rs-ease: cubic-bezier(.2, .7, .2, 1);
	--rs-header-h: 72px;
}
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { background: var(--rs-bg); color: var(--rs-ink); -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
main.wp-block-group { padding-bottom: clamp(3rem, 7vw, 4rem); }
::selection { background: var(--rs-ink); color: #fff; }
/* Pas de cadre noir au clic / au toucher : contour visible uniquement au clavier, discret. */
* { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus:not(:focus-visible), button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
:focus-visible { outline: 2px solid rgb(26 26 24 / .35) !important; outline-offset: 3px; box-shadow: none !important; }
.wc-block-components-button:focus, .wc-block-components-button:focus:not(:disabled),
.wc-block-mini-cart__button:focus, .wc-block-components-quantity-selector__button:focus,
.wc-block-components-radio-control__input:focus, .wc-block-components-checkbox__input:focus,
.wc-block-components-text-input input:focus, .wc-block-components-textarea:focus,
.wc-block-components-totals-coupon-link:focus, .wp-element-button:focus, .rs-swatch:focus, .rs-step:focus {
	outline: none !important; box-shadow: none !important;
}
.wc-block-components-button:focus-visible, .wc-block-mini-cart__button:focus-visible, .rs-swatch:focus-visible, .rs-step:focus-visible {
	outline: 2px solid rgb(26 26 24 / .35) !important; outline-offset: 3px;
}
.wc-block-components-radio-control__input:focus-visible, .wc-block-components-checkbox__input:focus-visible { outline: 2px solid rgb(26 26 24 / .35) !important; outline-offset: 2px; }
.wp-element-button:focus, .wp-element-button:active { background: var(--rs-ink); }
img { display: block; }
[hidden] { display: none !important; } /* sinon « img{display:block} » réaffiche les images cachées (photo doublée du panier) */
.rs-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.woocommerce-store-notice, p.demo_store, .woocommerce-breadcrumb, .product_meta { display: none !important; }

.rs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	height: 52px; padding: 0 28px; border-radius: var(--rs-r); font-size: 15px; font-weight: 500;
	background: var(--rs-ink); color: #fff; text-decoration: none !important; transition: background .15s;
}
.rs-btn:hover { background: #33322F; }
.rs-btn--ghost { background: transparent; color: var(--rs-ink) !important; border: 1px solid var(--rs-ink); }
.rs-btn--ghost:hover { background: var(--rs-ink); color: #fff !important; }

/* =========================================================
   En-tête
   ========================================================= */
.rs-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(246 244 239 / .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--rs-line);
}
.rs-header__inner { min-height: var(--rs-header-h); }
.rs-brand { display: inline-flex; align-items: baseline; gap: 12px; color: var(--rs-ink) !important; text-decoration: none !important; }
.rs-brand__name { font-size: 19px; font-weight: 700; letter-spacing: .16em; }
.rs-brand { align-items: center !important; }
.rs-brand__logo { width: auto !important; height: 26px !important; max-width: 52vw; object-fit: contain; }
.rs-brand__sub { font-size: 14px; color: var(--rs-muted); }
.rs-header__nav { gap: 8px !important; }
.rs-navlink {
	display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: var(--rs-r);
	font-size: 15px; color: var(--rs-ink) !important; text-decoration: none !important; transition: background .15s;
}
.rs-navlink:hover, .rs-navlink[aria-current="page"] { background: var(--rs-soft); }

.wc-block-mini-cart__button {
	display: inline-flex !important; flex-direction: row; align-items: center; gap: 8px !important;
	height: 44px; padding: 0 14px 0 12px !important; border-radius: var(--rs-r) !important; border: 0 !important;
	font-size: 15px !important; font-weight: 400 !important; color: var(--rs-ink) !important; background: transparent;
	transition: background .15s;
}
.wc-block-mini-cart__button:hover, body.woocommerce-cart .wc-block-mini-cart__button, body.woocommerce-checkout .wc-block-mini-cart__button { background: var(--rs-soft) !important; }
.wc-block-mini-cart__quantity-badge { display: inline-flex !important; align-items: center; gap: 8px; }
.wc-block-mini-cart__quantity-badge::after { content: "Panier"; order: 1; }
.wc-block-mini-cart__icon { width: 20px !important; height: 20px !important; order: 0; }
.wc-block-mini-cart__badge {
	position: static !important; transform: none !important; order: 2; margin: 0 !important;
	min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px !important;
	background: var(--rs-ink) !important; color: #fff !important; border: 0 !important;
	font-size: 12px !important; font-weight: 600; display: inline-flex !important; align-items: center; justify-content: center;
}

@media (max-width: 600px) {
	.rs-brand__sub, .rs-navlink { display: none; }
	.rs-brand__name { font-size: 17px; }
	.rs-brand__logo { height: 21px !important; }
}

/* =========================================================
   Boutique
   ========================================================= */
.rs-shop__head {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap;
	padding-block: clamp(2rem, 5vw, 3.5rem) 0; margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.rs-shop__title { max-width: 580px; }
.rs-shop__title h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.rs-shop__title p { margin: .875rem 0 0; font-size: 16px; line-height: 1.6; color: var(--rs-muted); }
.rs-pill {
	display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
	border: 1px solid var(--rs-line); border-radius: 999px; background: var(--rs-card); font-size: 14px; white-space: nowrap;
}
.rs-pill svg { flex-shrink: 0; }

.rs-toolbar {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding-bottom: 20px; margin-bottom: 40px; border-bottom: 1px solid var(--rs-line);
}
.rs-chips-nav { min-width: 0; }
.rs-chips {
	display: flex; gap: 8px; margin: 0; padding: 2px; list-style: none;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rs-chips::-webkit-scrollbar { display: none; }
.rs-chips a {
	display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; white-space: nowrap;
	border: 1px solid var(--rs-border); background: transparent; color: var(--rs-ink) !important; font-size: 14px;
	text-decoration: none !important; transition: background .15s, border-color .15s, color .15s;
}
.rs-chips a:hover { border-color: var(--rs-ink); }
.rs-chips a[aria-current="page"] { background: var(--rs-ink); border-color: var(--rs-ink); color: #fff !important; }
.rs-count { font-size: 14px; color: var(--rs-muted); white-space: nowrap; flex-shrink: 0; }

.rs-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px;
	transition: opacity .12s;
}
.rs-grid.is-switching { opacity: 0; }
@media (min-width: 800px) { .rs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1100px) { .rs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rs-card[hidden] { display: none; }
.rs-card { animation: rs-in .35s var(--rs-ease) both; }
@keyframes rs-in { from { opacity: 0; transform: translateY(6px); } }
.rs-card a { display: flex; flex-direction: column; gap: 4px; color: var(--rs-ink) !important; text-decoration: none !important; }
.rs-card__img {
	position: relative; display: block; aspect-ratio: 1; border-radius: var(--rs-r-lg); overflow: hidden;
	background: var(--rs-tone); margin-bottom: 10px;
}
.rs-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--rs-ease), opacity .3s; }
.rs-card__alt { position: absolute !important; inset: 0; opacity: 0; }
@media (hover: hover) {
	.rs-card a:hover .rs-card__alt { opacity: 1; }
	.rs-card a:hover .rs-card__img img { transform: scale(1.03); }
}
.rs-card__eyebrow, .rs-eyebrow, .rs-eyebrow a { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-muted) !important; text-decoration: none !important; }
.rs-card__title { font-size: 16px; font-weight: 500; line-height: 1.35; }
.rs-card__price { font-size: 15px; }
.rs-card__price del { color: var(--rs-muted); }
.rs-empty { padding: 3rem 0; text-align: center; color: var(--rs-muted); }

@media (max-width: 700px) {
	.rs-shop__head { align-items: flex-start; }
	.rs-toolbar { margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem)); padding-inline: var(--wp--style--root--padding-left, 1rem); margin-bottom: 24px; }
	.rs-count { display: none; }
	.rs-card__title { font-size: 14px; }
	.rs-card__price { font-size: 14px; }
	.rs-card__eyebrow { font-size: 11px !important; }
}

/* =========================================================
   Fiche produit
   ========================================================= */
.rs-pdp { padding-top: 32px; }
.rs-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--rs-muted); margin-bottom: 28px; }
.rs-crumbs a { color: var(--rs-muted) !important; text-decoration: underline; text-underline-offset: 3px; }
.rs-crumbs [aria-current] { color: var(--rs-ink); }
.rs-pdp__grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
	.rs-pdp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: start; }
	.rs-pdp__info { position: sticky; top: calc(var(--rs-header-h) + 24px); padding-top: 8px; }
}

.rs-gallery { position: relative; }
.rs-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; border-radius: var(--rs-r-xl); }
.rs-gallery__track::-webkit-scrollbar { display: none; }
.rs-gallery__item { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1; background: var(--rs-tone); border-radius: var(--rs-r-xl); overflow: hidden; }
.rs-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.rs-gallery__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.rs-gallery__dots span { width: 6px; height: 6px; border-radius: 999px; background: rgb(26 26 24 / .25); transition: width .25s, background .25s; }
.rs-gallery__dots span.is-on { width: 18px; background: var(--rs-ink); }
@media (min-width: 900px) {
	.rs-gallery__track { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
	.rs-gallery__item:first-child { grid-column: 1 / -1; }
	.rs-gallery[data-count="2"] .rs-gallery__item { grid-column: 1 / -1; }
	.rs-gallery__dots { display: none; }
}

.rs-pdp__info > * { margin-block: 0; }
.rs-pdp__info .rs-eyebrow { margin-bottom: 10px; }
.rs-pdp__title { font-size: clamp(1.75rem, 3vw, 2.25rem) !important; font-weight: 600 !important; letter-spacing: -.02em; line-height: 1.15 !important; margin-bottom: 10px !important; }
.rs-pdp__price, .rs-pdp__price .wc-block-components-product-price { font-size: 22px !important; font-weight: 400 !important; margin-bottom: 28px !important; }
.rs-pdp__excerpt { font-size: 16px; line-height: 1.65; color: var(--rs-text); margin-bottom: 28px !important; }
.rs-pdp__excerpt p { margin: 0; }

/* Formulaire */
.rs-atc form.cart { display: flex; flex-direction: column; gap: 0; margin: 0 !important; }
.rs-atc table.variations, .rs-atc table.variations tbody { display: block; width: 100%; border: 0; margin: 0; }
.rs-atc table.variations tr { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.rs-atc table.variations th, .rs-atc table.variations td { display: block; padding: 0 !important; border: 0; text-align: left; line-height: 1.2 !important; margin: 0 !important; }
.rs-atc table.variations th label { font-size: 14px; font-weight: 500; margin: 0; }
.rs-atc table.variations tr.rs-missing th label { color: var(--rs-accent); }
.rs-atc table.variations td select { margin: 0 !important; }
.rs-atc .single_variation_wrap { width: 100%; }
.rs-atc .woocommerce-variation-price, .rs-atc .woocommerce-variation-availability, .rs-atc .woocommerce-variation.single_variation:empty { display: none; }
.rs-atc .single_variation { margin: 0 !important; }

.rs-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-swatch {
	min-width: 56px; height: 44px; padding: 0 12px; border-radius: var(--rs-r);
	border: 1px solid var(--rs-border); background: var(--rs-card); color: var(--rs-ink);
	font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.rs-swatch:hover:not(:disabled) { border-color: var(--rs-ink); }
.rs-swatch[aria-checked="true"] { background: var(--rs-ink); border-color: var(--rs-ink); color: #fff; }
.rs-swatch:disabled { color: #B9B5AC; cursor: not-allowed; text-decoration: line-through; }
.rs-atc table.variations tr.rs-missing .rs-swatch:not(:disabled) { border-color: var(--rs-accent); }

.rs-atc .woocommerce-variation-add-to-cart, .rs-atc form.cart:not(.variations_form) { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rs-atc .woocommerce-variation-add-to-cart::before, .rs-atc form.cart:not(.variations_form)::before {
	content: "Quantité"; font-size: 14px; font-weight: 500; margin-bottom: -2px;
}
.rs-atc .quantity {
	display: inline-flex !important; align-items: center; align-self: flex-start; margin: 0 0 8px !important;
	border: 1px solid var(--rs-border); border-radius: var(--rs-r); background: var(--rs-card);
}
.rs-atc .quantity input.qty {
	width: 32px; height: 44px; border: 0; text-align: center; font: inherit; font-size: 15px; background: transparent; -moz-appearance: textfield; padding: 0;
}
.rs-atc .quantity input.qty::-webkit-inner-spin-button, .rs-atc .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; }
.rs-step { width: 44px; height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--rs-ink); }
.rs-atc .single_add_to_cart_button {
	width: 100%; height: 56px; border: 0 !important; border-radius: var(--rs-r) !important; padding: 0 20px !important;
	background: var(--rs-ink) !important; color: #fff !important; font-size: 16px !important; font-weight: 500 !important;
	position: relative; transition: background .15s;
}
.rs-atc .single_add_to_cart_button:hover { background: #33322F !important; }
.rs-atc .single_add_to_cart_button.disabled { opacity: 1 !important; cursor: pointer; }
.rs-atc .single_add_to_cart_button.is-loading { color: transparent !important; }
.rs-atc .single_add_to_cart_button.is-loading::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: rs-spin .7s linear infinite;
}
@keyframes rs-spin { to { transform: rotate(360deg); } }

.rs-added {
	display: none; justify-content: space-between; align-items: center; gap: 1rem;
	margin-top: 14px; padding: 14px 18px; border-radius: var(--rs-r); background: var(--rs-soft); font-size: 14px;
}
.rs-added.is-on { display: flex; animation: rs-in .25s var(--rs-ease); }
.rs-added span { display: inline-flex; align-items: center; gap: 10px; }
.rs-added a { font-weight: 600; color: var(--rs-ink) !important; text-decoration: underline; text-underline-offset: 3px; }

.rs-pickup {
	margin: 28px 0 0 !important; padding-top: 24px; border-top: 1px solid var(--rs-line);
	font-size: 14px; line-height: 1.55; color: var(--rs-text);
}
.rs-details { margin-top: 12px; }
.rs-details details { border-bottom: 1px solid var(--rs-line); }
.rs-details summary {
	cursor: pointer; padding: 16px 0; font-size: 14px; font-weight: 500; list-style: none;
	display: flex; justify-content: space-between; align-items: center;
}
.rs-details summary::-webkit-details-marker { display: none; }
.rs-details summary::after { content: "+"; font-size: 18px; font-weight: 400; line-height: 1; color: var(--rs-muted); }
.rs-details details[open] summary::after { content: "−"; }
.rs-details .rs-details__body { padding-bottom: 16px; color: var(--rs-text); font-size: 14px; line-height: 1.6; }
.rs-details .rs-details__body p { margin: 0 0 .5rem; }
.rs-details table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: .6rem; }
.rs-details th, .rs-details td { padding: 8px 6px; border-bottom: 1px solid var(--rs-line); text-align: center; font-weight: 400; }
.rs-details th { color: var(--rs-ink); font-weight: 500; }
.rs-details th:first-child, .rs-details td:first-child { text-align: left; padding-left: 0; }

.rs-toast {
	position: fixed; left: 50%; bottom: 1.5rem; z-index: 9999; transform: translate(-50%, 1rem); opacity: 0;
	background: var(--rs-ink); color: #fff; padding: .8rem 1.2rem; border-radius: var(--rs-r); font-size: 14px;
	transition: opacity .2s, transform .25s var(--rs-ease); pointer-events: none;
}
.rs-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.rs-toast.is-error { background: var(--rs-accent); }
.rs-toast a { color: #fff; text-decoration: underline; margin-left: .75rem; }

@media (max-width: 899px) {
	.rs-pdp { padding-top: 16px; }
	.rs-crumbs { margin-bottom: 16px; }
	.rs-gallery { margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem)); }
	.rs-gallery__track, .rs-gallery__item { border-radius: 0; }
}

/* =========================================================
   Étapes, panier, commande, confirmation
   ========================================================= */
.rs-page { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.rs-steps { display: flex; gap: 32px; flex-wrap: wrap; margin: 0 0 32px; padding: 0; list-style: none; font-size: 14px; color: var(--rs-muted); }
.rs-steps li { display: flex; align-items: center; gap: 10px; }
.rs-steps__n {
	width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 600; border: 1px solid var(--rs-border); box-sizing: border-box;
}
.rs-steps li.is-current, .rs-steps li.is-done { color: var(--rs-ink); }
.rs-steps li.is-current .rs-steps__n, .rs-steps li.is-done .rs-steps__n { background: var(--rs-ink); color: #fff; border-color: var(--rs-ink); }
@media (max-width: 600px) { .rs-steps { gap: 14px; font-size: 12px; } }
.rs-page .wp-block-post-title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 600; letter-spacing: -.02em; margin: 0 0 32px; }

/* Blocs WooCommerce */
.wc-block-cart, .wc-block-checkout { color: var(--rs-ink); }
.wc-block-cart__sidebar, .wc-block-checkout__sidebar {
	background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: var(--rs-r-lg); padding: 28px !important;
	align-self: flex-start;
}
.wc-block-cart-items { border-top: 1px solid var(--rs-line); }
.wc-block-cart-items th, .wc-block-cart-items__header { display: none; }
.wc-block-cart-items td { border-color: var(--rs-line) !important; padding-block: 24px !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: 10px; background: var(--rs-tone); }
.wc-block-components-product-name { font-size: 16px !important; font-weight: 500 !important; color: var(--rs-ink) !important; text-decoration: none !important; }
.wc-block-components-product-metadata, .wc-block-components-product-details { color: var(--rs-muted); font-size: 14px; }
.wc-block-cart-item__remove-link { color: var(--rs-muted) !important; text-decoration: underline !important; font-size: 14px !important; }
.wc-block-components-quantity-selector {
	border: 1px solid var(--rs-border) !important; border-radius: var(--rs-r) !important; background: var(--rs-card); width: auto !important;
}
.wc-block-components-quantity-selector::after { display: none !important; }
.wc-block-components-quantity-selector__button { min-width: 44px !important; font-size: 18px !important; }
.wc-block-components-totals-item__label { color: var(--rs-text); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 18px !important; font-weight: 600 !important; color: var(--rs-ink); }
.wc-block-components-totals-wrapper { border-color: var(--rs-line) !important; }
.wc-block-components-button:not(.is-link) { border-radius: var(--rs-r) !important; font-weight: 500 !important; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	min-height: 56px; background: var(--rs-ink) !important; color: #fff !important; font-size: 16px !important; width: 100%;
}
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { background: #33322F !important; }
.wc-block-cart__submit-container::after {
	content: "Sans création de compte. Paiement sécurisé à l’étape suivante."; display: block; margin-top: 12px;
	font-size: 13px; line-height: 1.5; color: var(--rs-muted); text-align: center;
}
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select__select,
.wc-block-components-form .wc-block-components-text-input input {
	min-height: 48px; border-radius: var(--rs-r) !important; border: 1px solid var(--rs-border) !important;
	background: var(--rs-card) !important; box-shadow: none !important; font-size: 15px !important;
}
.wc-block-components-text-input input:focus, .wc-block-components-textarea:focus { border-color: var(--rs-ink) !important; }
.wc-block-components-checkout-step { padding: 0 !important; margin: 0 0 36px !important; }
.wc-block-components-checkout-step::after { display: none !important; }
.wc-block-components-checkout-step__title { font-size: 18px !important; font-weight: 600 !important; }
.wc-block-components-checkout-step__description { color: var(--rs-muted); font-size: 14px; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option {
	border-radius: 10px !important; border-color: var(--rs-line) !important; background: var(--rs-card);
}
.wc-block-components-address-form__country { display: none !important; }
.wc-block-checkout__terms { font-size: 14px; color: var(--rs-text); }

/* Confirmation */
.rs-thanks { max-width: 620px; margin: 24px auto 0; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.rs-thanks__check { width: 64px; height: 64px; border-radius: 999px; background: var(--rs-ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.rs-thanks h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.rs-thanks__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--rs-text); }
.rs-thanks__items { width: 100%; list-style: none; margin: 0; padding: 12px 24px; box-sizing: border-box; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: var(--rs-r-lg); text-align: left; }
.rs-thanks__items li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 14px; }
.rs-thanks__items li + li { border-top: 1px solid var(--rs-line); }
.rs-thanks__img img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--rs-r); background: var(--rs-tone); }
.rs-thanks__name { flex: 1; display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.rs-thanks__name small { font-weight: 400; color: var(--rs-muted); font-size: 13px; }
.rs-thanks__total { width: 100%; margin: -8px 0 0; display: flex; justify-content: space-between; padding: 0 24px; box-sizing: border-box; font-size: 16px; }
.rs-thanks__next { width: 100%; padding: 28px; box-sizing: border-box; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: var(--rs-r-lg); text-align: left; }
.rs-thanks__next-title { margin: 0 0 20px; font-size: 16px; font-weight: 600; }
.rs-thanks__next ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; counter-reset: rs; }
.rs-thanks__next li { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; row-gap: 2px; counter-increment: rs; }
.rs-thanks__next li::before {
	content: counter(rs); grid-row: span 2; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--rs-border); box-sizing: border-box;
	display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.rs-thanks__next li.is-on::before { background: var(--rs-ink); color: #fff; border-color: var(--rs-ink); }
.rs-thanks__next strong { font-size: 15px; font-weight: 500; }
.rs-thanks__next span { font-size: 14px; color: var(--rs-muted); }
.rs-thanks__ref { margin: 0; font-size: 12px; color: var(--rs-muted); }

/* =========================================================
   Pied de page
   ========================================================= */
.rs-footer { border-top: 1px solid var(--rs-line); padding-block: 28px 40px; font-size: 14px; color: var(--rs-muted); }
.rs-footer p { margin: 0; }
.rs-footer a { color: var(--rs-muted) !important; }

/* Checkout : e-mail + nom/téléphone = une seule section « Tes coordonnées » */
.wc-block-checkout__contact-fields { margin-bottom: 12px !important; }
.wc-block-checkout__billing-fields .wc-block-components-checkout-step__heading,
.wc-block-checkout__billing-fields .wc-block-components-checkout-step__description { display: none !important; }
.wc-block-checkout__billing-fields { margin-top: -12px !important; }
.wc-block-components-address-form { gap: 18px 20px; }
.wc-block-checkout__add-note { margin-top: -12px; }


/* =========================================================
   Tiroir panier (mini-cart)
   ========================================================= */
.wc-block-mini-cart__drawer .wc-block-components-drawer, .wc-block-components-drawer { background: var(--rs-bg) !important; max-width: 420px; }
.wc-block-mini-cart__title {
	display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 22px 24px !important;
	font-size: 20px !important; font-weight: 600 !important; letter-spacing: -.01em; border-bottom: 1px solid var(--rs-line);
	mask-image: none !important;
}
.wc-block-mini-cart__title-items-counter, .wp-block-woocommerce-mini-cart-title-items-counter-block {
	font-size: 0 !important; font-weight: 400;
}
.wc-block-mini-cart__title-items-counter::after, .wp-block-woocommerce-mini-cart-title-items-counter-block::after { content: none; }
.wc-block-mini-cart__items { padding: 8px 24px !important; }
.wc-block-mini-cart__products-table .wc-block-cart-items__row { padding: 16px 0 !important; border-bottom: 1px solid var(--rs-line); }
.wc-block-mini-cart__products-table .wc-block-cart-item__image img { width: 72px; height: 72px; object-fit: cover; }
.wc-block-mini-cart__footer { padding: 16px 24px calc(16px + env(safe-area-inset-bottom)) !important; border-top: 1px solid var(--rs-line) !important; background: var(--rs-card); }
.wc-block-mini-cart__footer::after { display: none !important; }
.wc-block-mini-cart__footer-subtotal, .wc-block-mini-cart__footer-subtotal * { font-size: 15px !important; font-weight: 600 !important; }
.wc-block-mini-cart__footer .wc-block-components-totals-item__description { display: none; }
.wc-block-mini-cart__footer-actions { display: flex !important; flex-direction: column-reverse; gap: 8px !important; margin-top: 12px !important; }
.wc-block-mini-cart__footer-actions .wc-block-components-button {
	min-height: 0 !important; height: 44px !important; padding: 0 16px !important; width: 100%; flex: 0 0 auto !important;
	border-radius: var(--rs-r) !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1 !important;
}
.wc-block-mini-cart__footer-actions .wc-block-components-button .wc-block-components-button__text { font-size: 14px !important; }
.wc-block-mini-cart__footer-cart { height: auto !important; min-height: 0 !important; border: 0 !important; padding: 6px 0 !important; font-size: 13px !important; text-decoration: underline; text-underline-offset: 3px; }
.wc-block-mini-cart__footer-checkout { background: var(--rs-ink) !important; color: #fff !important; }
.wc-block-mini-cart__footer-cart { background: transparent !important; color: var(--rs-ink) !important; border: 1px solid var(--rs-border) !important; }
.wc-block-components-drawer__close { top: 16px !important; right: 12px !important; }
.rs-mc-empty { margin: 48px 0 16px !important; color: var(--rs-muted); }

/* =========================================================
   Checkout : lien panier + paiement sur place discret
   ========================================================= */
.rs-editcart { display: inline-block; margin: -20px 0 28px; font-size: 14px; color: var(--rs-muted) !important; text-decoration: underline; text-underline-offset: 3px; }
.rs-steps a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
.wc-block-components-radio-control-accordion-option:has(#radio-control-wc-payment-method-options-cod) {
	border: 0 !important; background: transparent !important; box-shadow: none !important; margin-top: 6px;
}
.wc-block-components-radio-control-accordion-option:has(#radio-control-wc-payment-method-options-cod) .wc-block-components-radio-control__option {
	padding-block: 8px !important; font-size: 13px !important; color: var(--rs-muted); min-height: 0;
}
.wc-block-components-radio-control-accordion-option:has(#radio-control-wc-payment-method-options-cod) .wc-block-components-payment-method-label { font-size: 13px !important; font-weight: 400 !important; }
.wc-block-components-radio-control-accordion-option:has(#radio-control-wc-payment-method-options-cod) .wc-block-components-radio-control-accordion-content { font-size: 13px; color: var(--rs-muted); padding-top: 0 !important; }

/* =========================================================
   Barre « Ajouter » mobile + zoom photo
   ========================================================= */
.rs-sticky { display: none; }
@media (max-width: 899px) {
	.rs-sticky {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		display: flex; align-items: center; gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--rs-card); border-top: 1px solid var(--rs-line);
		transform: translateY(110%); transition: transform .25s var(--rs-ease);
	}
	.rs-sticky.is-on { transform: none; }
	.rs-sticky__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.rs-sticky__btn {
		flex-shrink: 0; height: 48px; padding: 0 18px; border: 0; border-radius: var(--rs-r);
		background: var(--rs-ink); color: #fff; font: inherit; font-size: 15px; font-weight: 500;
	}
}
.rs-gallery__item[data-full] { cursor: zoom-in; }
.rs-lb {
	position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center;
	background: rgb(246 244 239 / .98); touch-action: pinch-zoom;
}
.rs-lb.is-on { display: flex; }
.rs-lb img { max-width: 100vw; max-height: 100dvh; object-fit: contain; cursor: zoom-in; transition: transform .25s var(--rs-ease); }
.rs-lb.is-zoom img { transform: scale(2.2); cursor: zoom-out; }
.rs-lb__close, .rs-lb__nav {
	position: absolute; width: 48px; height: 48px; border: 0; border-radius: 999px;
	background: var(--rs-card); color: var(--rs-ink); font-size: 20px; cursor: pointer; box-shadow: 0 1px 3px rgb(0 0 0 / .08);
}
.rs-lb__close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.rs-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.rs-lb__next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 28px; }
html.rs-noscroll, html.rs-noscroll body { overflow: hidden; }

/* =========================================================
   Mobile : perf et confort (iPhone récents comme Android d'entrée de gamme)
   ========================================================= */
@media (max-width: 899px) {
	/* le flou d'arrière-plan coûte cher sur les petits processeurs */
	.rs-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--rs-bg); }
	:root { --rs-header-h: 60px; }
	.rs-card { animation: none; }
	.rs-shop__head { padding-top: 24px; gap: 14px; margin-bottom: 20px; }
	.rs-shop__title h1 { font-size: 28px; }
	.rs-shop__title p { font-size: 15px; margin-top: 8px; }
	.rs-pill { padding: 9px 14px; font-size: 13px; }
	.rs-toolbar { padding-bottom: 14px; }
	.rs-chips a { height: 40px; padding: 0 16px; }
	.rs-pdp__price, .rs-pdp__price .wc-block-components-product-price { margin-bottom: 18px !important; }
	.rs-pdp__excerpt { margin-bottom: 20px !important; font-size: 15px; }
	.rs-swatch { min-width: 52px; }
	.wc-block-components-sidebar-layout { gap: 24px; }
	.wc-block-cart__sidebar, .wc-block-checkout__sidebar { padding: 20px !important; }
	body.rs-has-sticky { padding-bottom: 72px; }
}
/* iOS zoome sur les champs < 16px : on reste à 16px */
.wc-block-components-text-input input, .wc-block-components-textarea, input, select, textarea { font-size: 16px !important; }
.rs-atc .quantity input.qty { font-size: 16px !important; }
/* Rendu différé des cartes hors écran (listes longues, téléphones lents) */
.rs-card:nth-child(n+9) { content-visibility: auto; contain-intrinsic-size: auto 320px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Lien « Modifier le panier » en tête du récap de droite */
.wc-block-checkout__sidebar { display: flex; flex-direction: column; }
.rs-sum-edit {
	order: -1; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; margin: 0 0 16px; border: 1px solid var(--rs-border); border-radius: var(--rs-r);
	font-size: 14px; font-weight: 500; color: var(--rs-ink) !important; text-decoration: none !important; background: var(--rs-card);
	transition: border-color .15s, background .15s;
}
.rs-sum-edit:hover { border-color: var(--rs-ink); background: var(--rs-bg); }

/* Tiroir panier : bouton « Commander » avec de l'air des deux côtés */
.wc-block-mini-cart__footer, .wp-block-woocommerce-mini-cart-footer-block {
	box-sizing: border-box !important; width: 100% !important; margin: 0 !important;
	padding: 16px 24px calc(16px + env(safe-area-inset-bottom)) !important;
}
.wc-block-mini-cart__footer-actions, .wp-block-woocommerce-mini-cart-footer-block .wc-block-mini-cart__footer-actions {
	box-sizing: border-box; width: 100% !important; margin-inline: 0 !important; padding: 0 !important;
}
.wc-block-mini-cart__footer-actions > *, .wc-block-mini-cart__footer-actions .wc-block-components-button {
	box-sizing: border-box !important; width: 100% !important; margin: 0 !important; max-width: 100%;
}
.wc-block-mini-cart__items, .wp-block-woocommerce-mini-cart-items-block { box-sizing: border-box; padding-inline: 24px !important; }

/* Photos du panier / récap : toujours carrées, jamais écrasées */
.wc-block-cart-item__image, .wc-block-components-order-summary-item__image { width: 88px !important; flex-shrink: 0; }
.wc-block-cart-item__image a, .wc-block-components-order-summary-item__image { display: block; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img, .rs-thanks__img img {
	width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important;
}
.wc-block-components-order-summary-item__image { width: 56px !important; }
.wc-block-mini-cart__products-table .wc-block-cart-item__image { width: 72px !important; }
@media (max-width: 600px) { .wc-block-cart .wc-block-cart-item__image { width: 72px !important; } }

/* =========================================================
   Moyens de paiement — une seule carte propre, « sur place » en simple ligne
   (écrase les bordures en double de WooCommerce)
   ========================================================= */
.wc-block-checkout__payment-method .wc-block-components-radio-control,
.wc-block-components-radio-control--highlight-checked { border: 0 !important; box-shadow: none !important; background: none !important; }
.wc-block-components-radio-control--highlight-checked::before,
.wc-block-components-radio-control--highlight-checked::after,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option::after,
.wc-block-components-radio-control-accordion-option::after,
.wc-block-components-radio-control__option::after { display: none !important; content: none !important; }

.wc-block-components-radio-control-accordion-option {
	position: relative; margin: 0 0 12px !important; padding: 0 !important;
	border: 1px solid var(--rs-line) !important; border-radius: var(--rs-r-lg) !important;
	background: var(--rs-card) !important; box-shadow: none !important; overflow: hidden;
	transition: border-color .15s;
}
.wc-block-components-radio-control-accordion-option:has(input:checked) { border-color: var(--rs-ink) !important; }
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
	margin: 0 !important; padding: 16px 16px 16px 48px !important; border: 0 !important; box-shadow: none !important; background: none !important;
	min-height: 0 !important; font-size: 15px !important; font-weight: 500;
}
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__input { left: 16px !important; }
.wc-block-components-radio-control-accordion-content { padding: 0 16px 16px !important; border: 0 !important; }
.wc-block-components-payment-method-icons { margin: 0 !important; }

/* Payer sur place : simple ligne discrète sous la carte */
.wc-block-components-radio-control-accordion-option:has(#radio-control-wc-payment-method-options-cod) {
	margin: 20px 0 0 !important; border: 0 !important; background: none !important; overflow: visible;
}
.wc-block-components-radio-control-accordion-option:has(#radio-control-wc-payment-method-options-cod) .wc-block-components-radio-control__option {
	padding: 6px 0 6px 32px !important; font-size: 14px !important; font-weight: 400 !important; color: var(--rs-muted);
}
.wc-block-components-radio-control-accordion-option:has(#radio-control-wc-payment-method-options-cod) .wc-block-components-radio-control__input {
	left: 0 !important; width: 20px !important; height: 20px !important; min-width: 20px;
}
.wc-block-components-radio-control-accordion-option:has(#radio-control-wc-payment-method-options-cod) .wc-block-components-radio-control-accordion-content { display: none !important; }
.wc-block-components-radio-control__input {
	border: 1.5px solid var(--rs-border) !important; box-shadow: none !important;
}
.wc-block-components-radio-control__input:checked { border-color: var(--rs-ink) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--rs-ink) !important; }

/* Page merci : vignettes compactes (écrase la règle « photos carrées » du panier) */
.rs-thanks__img { width: 56px !important; flex: 0 0 56px; }
.rs-thanks__img img { width: 56px !important; height: 56px !important; }
.rs-thanks__items li > span:last-child { white-space: nowrap; }
@media (max-width: 600px) { .rs-page--done .rs-steps { display: none; } .rs-thanks { margin-top: 8px; } }
