/* ==========================================================
   VĀHIN Flowwear — compléments WordPress / WooCommerce
   Chargé APRÈS maquette.css (cascade de la maquette intacte).
   Rien ici ne modifie la palette : uniquement l'habillage des
   éléments générés par WordPress et WooCommerce.
   ========================================================== */

.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;margin:0;z-index:1000;top:8px;left:8px;background:var(--cream);color:var(--ink);padding:10px 14px;outline:2px solid #765d45}
/* WordPress ajoute width/height aux <img> : on neutralise la hauteur
   d'attribut sans toucher aux règles plus spécifiques de la maquette. */
img{height:auto}
.language--pending{visibility:hidden}
button.film-toggle:focus-visible{outline:2px solid #fffaf1;outline-offset:4px}

/* Contenus Gutenberg dans .inner */
.inner .wp-block-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.inner .wp-block-button__link{display:inline-block;background:#30271e;color:#fffaf1;border-radius:0;text-transform:uppercase;font-size:11px;letter-spacing:.1em;padding:14px 22px;font-weight:bold;text-decoration:none}
.inner .wp-block-button__link:hover{background:#514133}
.inner ul{padding-left:1.2em}
.inner details summary{font-weight:600}
.chapter article .button{margin-right:8px}
.chapter article > a:not(.button){display:inline-block;margin-top:16px}
.collection-buttons{display:flex;gap:10px;flex-wrap:wrap}
.collection-buttons .button{margin-top:0}

/* Grilles produits */
.inner .cards{margin-top:32px}
.product-title h3{overflow-wrap:anywhere}
.product .stock-out{font-size:12px;color:#65503c}

/* Fiche produit */
.product-info .product-desc p{margin:0 0 14px}
.product-stock{font-size:13px;color:#65503c;margin:0 0 6px}
#add-product select:focus-visible{outline:2px solid #765d45;outline-offset:2px}
#add-product button[disabled]{opacity:.55;cursor:not-allowed}
#cart-notice{min-height:1.5em;font-size:14px}
#cart-notice.is-error{color:#8a2d1c}

/* Notices WooCommerce */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;margin:0 0 24px;padding:14px 18px;background:#eee2d1;border-left:3px solid #30271e;display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center;justify-content:space-between}
.woocommerce-error{border-left-color:#8a2d1c}
.woocommerce-error li{list-style:none}
.woocommerce-message .button,.woocommerce-info .button{order:2;margin:0;padding:10px 16px}
.product-page .woocommerce-notices-wrapper{margin-bottom:16px}

/* Panier */
.woocommerce-cart-form{margin-bottom:32px}
table.shop_table{width:100%;border-collapse:collapse;font-size:15px}
table.shop_table th{text-align:left;font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:bold;padding:10px 8px;border-bottom:1px solid #30271e45}
table.shop_table td{padding:16px 8px;border-bottom:1px solid #30271e35;vertical-align:middle}
table.shop_table .product-price,table.shop_table .product-subtotal{font-size:inherit;margin:0}
table.shop_table img{width:72px;aspect-ratio:4/5;object-fit:cover}
table.shop_table .product-remove a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #30271e55;text-decoration:none;font-size:20px}
table.shop_table .product-name a{text-decoration:none;font-weight:600}
table.shop_table .variation{display:flex;gap:6px;margin:4px 0 0;font-size:13px}
table.shop_table .variation dt,table.shop_table .variation dd{margin:0}
table.shop_table .variation dd p{margin:0}
.quantity input.qty{width:70px;min-height:38px;padding:6px 8px;background:var(--cream);color:var(--ink);border:1px solid #30271e55;font:inherit}
.woocommerce-cart-form .actions{text-align:right}
.woocommerce-cart-form .actions .coupon{display:none}
button.button,input.button,a.button{border:0;cursor:pointer;font-family:inherit}
button.button[disabled],button.button:disabled{opacity:.5;cursor:not-allowed}
.cart-collaterals{max-width:520px;margin-left:auto}
.cart_totals h2{font-size:clamp(28px,4vw,42px)!important;margin:0 0 16px!important}
.cart_totals table th{width:40%}
.wc-proceed-to-checkout .button{display:block;width:100%;text-align:center;padding-block:16px;margin-top:20px}
.cart-empty.woocommerce-info{display:block}
.return-to-shop{margin-top:20px}
.woocommerce-shipping-methods{list-style:none;padding:0;margin:0}
.woocommerce-shipping-destination,.woocommerce-shipping-calculator{font-size:13px}
@media(max-width:700px){
  table.shop_table_responsive thead{display:none}
  table.shop_table_responsive tr{display:grid;grid-template-columns:80px 1fr auto;gap:4px 12px;padding:14px 0;border-bottom:1px solid #30271e35}
  table.shop_table_responsive td{border:0;padding:2px 0;display:block}
  table.shop_table_responsive td::before{content:attr(data-title) " : ";font-size:12px;color:#65503c}
  table.shop_table_responsive td.product-remove::before,table.shop_table_responsive td.product-thumbnail::before,table.shop_table_responsive td.product-name::before,table.shop_table_responsive td.actions::before{content:none}
  table.shop_table_responsive td.product-thumbnail{grid-row:span 4}
  table.shop_table_responsive td.product-remove{grid-column:3;grid-row:1}
  table.shop_table_responsive td.actions{grid-column:1/-1}
  .cart-collaterals{max-width:none}
}

/* Commande */
form.checkout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(24px,5vw,80px);align-items:start}
form.checkout > .woocommerce-NoticeGroup{grid-column:1/-1}
#customer_details{grid-column:1;grid-row:1 / span 3}
#customer_details .col-1,#customer_details .col-2{width:auto;float:none}
#order_review_heading{grid-column:2;grid-row:1;margin:0!important;font-size:clamp(28px,4vw,42px)!important}
#order_review{grid-column:2;grid-row:2}
form.checkout h3{font-size:22px;letter-spacing:-.03em;margin:28px 0 14px}
.woocommerce form .form-row{display:flex;flex-direction:column;margin:0 0 14px}
.woocommerce form .form-row label{font-weight:600;font-size:14px;margin-bottom:6px}
.woocommerce form .form-row .required{color:#8a2d1c;text-decoration:none}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.select2-container .select2-selection--single{width:100%;padding:12px;min-height:46px;background:var(--cream);color:var(--ink);border:1px solid #30271e55;border-radius:0;font:inherit}
.select2-container .select2-selection--single .select2-selection__rendered{line-height:20px;padding:0;color:var(--ink)}
.select2-container .select2-selection--single .select2-selection__arrow{top:10px}
.woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:#8a2d1c}
.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%}
@media(min-width:900px){.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.woocommerce form .form-row-wide{grid-column:1/-1}}
#payment{background:#eee2d1;padding:20px;margin-top:20px}
#payment ul.payment_methods{list-style:none;padding:0;margin:0 0 16px}
#payment .place-order .button{width:100%;padding-block:16px}
.woocommerce-privacy-policy-text{font-size:13px}
@media(max-width:800px){form.checkout{grid-template-columns:1fr}#customer_details,#order_review_heading,#order_review{grid-column:1;grid-row:auto}}

/* Mon compte (minimal) */
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;display:flex;gap:16px;flex-wrap:wrap}
