/* Tiroir Mini-Panier, icône Panier, habillage WooCommerce — charte vitres-sablees.com */
.vs-nw { white-space: nowrap; }
.vs-cartbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: #111827; cursor: pointer; font-weight: 700; font-size: .85rem; vertical-align: middle; }
.vs-cartbtn:hover, .vs-cartbtn:focus-visible { background: #111827 !important; color: #ffffff !important; }
.vs-cart-badge { position: absolute; top: 0; left: 24px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: #f97316; color: #fff; font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center; }
.vs-cart-badge.is-zero { background: #94A3B8; }
.vs-cart-sub { white-space: nowrap; }
.vs-cart-sub:empty { display: none; }
.vs-cartbtn--mob { display: none; }
.vs-cartbtn--float { position: fixed; top: 12px; right: 12px; z-index: 9990; background: #fff; box-shadow: 0 4px 14px rgba(17,24,39,.2); }
@media (max-width: 921px) { .vs-cartbtn--desk { display: none; } .vs-cartbtn--mob { display: inline-flex; } .vs-cartbtn--mob .vs-cart-sub { display: none; } }
.vs-drawer-overlay { position: fixed; inset: 0; z-index: 99990; background: rgba(17,24,39,.55); }
.vs-drawer-overlay[hidden] { display: none; }
.vs-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 99991; width: 420px; max-width: 100vw; display: flex; flex-direction: column; background: #fff; box-shadow: -10px 0 30px rgba(17,24,39,.25); transform: translateX(105%); transition: transform .25s ease; visibility: hidden; }
.vs-drawer.is-open { transform: none; visibility: visible; }
.vs-drawer.is-busy { opacity: .7; pointer-events: none; }
@media (max-width: 767px) { .vs-drawer { width: 100vw; } }
@media (prefers-reduced-motion: reduce) { .vs-drawer { transition: none; } }
.vs-drawer-lock { overflow: hidden; }
.vs-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 4px solid #F39200; }
.vs-drawer-head h2 { margin: 0; font-size: 1.2rem; color: #111827; }
.vs-drawer-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #F3F4F6; color: #111827; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.vs-drawer-x:hover { background: #111827; color: #fff !important; }
.vs-drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px 20px; }
.vs-drawer-list { list-style: none; margin: 0; padding: 0; }
.vs-drawer-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #E5E1EE; }
.vs-drawer-item-main { flex: 1; min-width: 0; }
.vs-drawer-item strong { color: #111827; }
.vs-drawer-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: .78rem; color: #4B5563; line-height: 1.4; }
.vs-drawer-meta span { font-weight: 600; }
.vs-drawer-item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.vs-drawer-price { font-weight: 800; color: #111827; }
.vs-drawer-price small { font-weight: 500; color: #6B7280; }
.vs-drawer-qty { display: inline-flex; align-items: center; gap: 6px; }
.vs-drawer-qty button { width: 44px; height: 44px; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; color: #111827; font-size: 1.2rem; cursor: pointer; }
.vs-drawer-qty button:hover { background: #111827; color: #fff !important; }
.vs-drawer-qty-fixed { font-size: .85rem; color: #4B5563; }
.vs-drawer-del { align-self: flex-start; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #B42318; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vs-drawer-del:hover { background: #B42318; color: #fff !important; }
.vs-drawer-note { font-size: .82rem; color: #92400E; background: #FEF3C7; border-radius: 8px; padding: 8px 10px; }
.vs-drawer-franco { margin: 14px 0; padding: 12px; background: #FFF7E8; border: 1px solid #F9B233; border-radius: 12px; font-size: .88rem; color: #111827; }
.vs-drawer-franco p { margin: 0 0 8px; }
.vs-drawer-bar { height: 8px; background: #FDE6B8; border-radius: 4px; overflow: hidden; }
.vs-drawer-bar i { display: block; height: 100%; background: #F39200; border-radius: 4px; transition: width .3s; }
.vs-drawer-franco small { display: block; margin-top: 6px; color: #6B7280; }
.vs-drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin: 10px 0 14px; color: #111827; }
.vs-drawer-total strong { font-size: 1.4rem; }
.vs-drawer-actions { display: flex; flex-direction: column; gap: 10px; }
.vs-drawer-actions .vs-btn, .vs-drawer-empty .vs-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; text-align: center; text-decoration: none; }
.vs-drawer .vs-btn--ghost { background: #fff; border: 2px solid #111827; color: #111827; }
.vs-drawer .vs-btn--ghost:hover { background: #111827 !important; color: #ffffff !important; }
.vs-drawer-empty { text-align: center; padding: 30px 0; }
a.is-loading { opacity: .6; pointer-events: none; }

/* ===== Pages WooCommerce Panier / Commander : habillage charte ===== */
body.woocommerce-cart .woocommerce, body.woocommerce-checkout .woocommerce { max-width: 1200px; margin: 0 auto; padding: 24px 16px; box-sizing: border-box; overflow-x: hidden; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order, .wc-proceed-to-checkout a.checkout-button { background: #F39200 !important; color: #ffffff !important; border-radius: 999px; font-weight: 800; padding: 14px 26px; min-height: 44px; border: 0; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #place_order:hover, .wc-proceed-to-checkout a.checkout-button:hover { background: #D97706 !important; color: #ffffff !important; }
.woocommerce table.shop_table { border-radius: 12px; border: 1px solid #E5E1EE; border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { background: #F6F4FA; color: #111827; }
.woocommerce .cart_totals h2, .woocommerce-checkout h3 { color: #111827; border-left: 5px solid #F39200; padding-left: 12px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; border: 1px solid #CBD5E1; border-radius: 8px; padding: 8px 12px; }
.woocommerce form .form-row input.input-text:focus { border-color: #F39200; outline: 2px solid rgba(243,146,0,.3); }
.woocommerce-message, .woocommerce-info { border-top-color: #F39200; }
.woocommerce-message::before, .woocommerce-info::before { color: #F39200; }
.woocommerce .amount, .woocommerce td.product-price, .woocommerce td.product-subtotal { white-space: nowrap; }
.sable-cart-thumb svg, .sable-cart-svg { max-width: 90px; height: auto; }
@media (max-width: 767px) { .woocommerce table.shop_table_responsive tr td { padding: 10px 12px; } .woocommerce-cart table.cart img { width: 60px; } }
