
/* ---- filet de sécurité mobile ---- */
@media (max-width:782px){
  html{overflow-x:clip}
  .entry-content img,.entry-content svg,.entry-content video,.entry-content iframe{max-width:100%;height:auto}
  .entry-content > *{min-width:0}
}
/* ---- barre d'étapes Warenkorb › Kasse › Bestätigung ---- */
@media (max-width:782px){
  .nogi-steps{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:4px!important;width:100%!important;max-width:100%!important;flex-wrap:nowrap!important;margin-left:0!important;margin-right:0!important}
  .nogi-steps span{flex:1 1 0!important;min-width:0!important;padding:0 2px!important;font-size:9.5px!important;letter-spacing:.06em!important;justify-content:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;border-left:0!important;border-right:0!important}
  .nogi-steps span b{flex:0 0 auto!important;margin-right:5px!important}
}
@media (max-width:360px){ .nogi-steps span{font-size:8.5px!important} }
/* ---- panier mobile : chaque article devient une carte ---- */
@media (max-width:782px){
  .woocommerce-cart-form table.shop_table,.woocommerce-cart-form table.shop_table tbody{display:block!important;width:100%!important;max-width:100%!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .woocommerce-cart-form table.shop_table thead{display:none!important}
  .woocommerce-cart-form tr.cart_item{display:grid!important;grid-template-columns:78px minmax(0,1fr) 32px!important;grid-template-areas:"thumb name remove" "thumb price price" "thumb qty subtotal"!important;gap:6px 12px!important;align-items:center!important;background:#fff!important;border:1px solid #EBD9D4!important;border-radius:20px!important;padding:14px!important;margin:0 0 12px!important;box-shadow:0 14px 34px -24px rgba(74,26,34,.35)!important;width:100%!important;box-sizing:border-box!important}
  .woocommerce-cart-form tr.cart_item td{display:block!important;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;margin:0!important;border:0!important;text-align:left!important;background:transparent!important;float:none!important}
  .woocommerce-cart-form tr.cart_item td::before,.woocommerce-cart-form tr.cart_item td::after{display:none!important;content:none!important}
  .woocommerce-cart-form td.product-thumbnail{grid-area:thumb!important}
  .woocommerce-cart-form td.product-thumbnail img{width:78px!important;max-width:78px!important;height:auto!important;border-radius:14px!important;display:block!important;margin:0!important}
  .woocommerce-cart-form td.product-name{grid-area:name!important;align-self:start!important}
  .woocommerce-cart-form td.product-name,.woocommerce-cart-form td.product-name *{font-size:16px!important}
  .woocommerce-cart-form td.product-name a{font-family:'Cormorant Garamond',Georgia,serif!important;font-size:17px!important;line-height:1.25!important;font-weight:600!important;color:#2D1013!important;text-decoration:none!important;display:block!important}
  .woocommerce-cart-form td.product-name .variation,.woocommerce-cart-form td.product-name dl,.woocommerce-cart-form td.product-name dl dt,.woocommerce-cart-form td.product-name dl dd{font-size:11.5px!important;color:#8C6F6B!important;margin:2px 0 0!important;display:inline!important;float:none!important}
  .woocommerce-cart-form td.product-price{grid-area:price!important;font-size:13px!important;color:#8C6F6B!important}
  .woocommerce-cart-form td.product-quantity{grid-area:qty!important}
  .woocommerce-cart-form td.product-quantity .quantity{margin:0!important;max-width:150px!important}
  .woocommerce-cart-form td.product-subtotal{grid-area:subtotal!important;justify-self:end!important;font-weight:700!important;font-size:16px!important;color:#2D1013!important;white-space:nowrap!important;font-family:'Cormorant Garamond',Georgia,serif!important}
  .woocommerce-cart-form td.product-remove{grid-area:remove!important;justify-self:end!important;align-self:start!important}
  .woocommerce-cart-form td.product-remove a{font-size:18px!important;line-height:1!important;width:28px!important;height:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
  .woocommerce-cart-form tr td.actions{display:block!important;width:100%!important;padding:0!important;border:0!important}
  .woocommerce-cart-form tr td.actions::before{display:none!important}
  .woocommerce-cart-form .coupon{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  .woocommerce-cart-form .coupon input[type=text]{flex:1 1 140px!important;min-width:0!important;width:auto!important}
  .woocommerce-cart-form .coupon button,.woocommerce-cart-form .coupon .button{flex:1 1 100%!important;width:100%!important;margin:0!important;white-space:normal!important}
  .cart-collaterals,.cart_totals{width:100%!important;max-width:100%!important;float:none!important}
  .cart_totals table,.cart_totals table tbody,.cart_totals table tr{display:block!important;width:100%!important}
  .cart_totals table tr{display:flex!important;justify-content:space-between!important;gap:10px!important;padding:8px 0!important;border-bottom:1px solid #F4EBE7!important}
  .cart_totals table th,.cart_totals table td{display:block!important;width:auto!important;padding:0!important;border:0!important;min-width:0!important;text-align:left!important}
  .cart_totals table td{text-align:right!important}
  .cart_totals table td::before{display:none!important}
  .wc-proceed-to-checkout .button{width:100%!important;display:block!important;text-align:center!important}
}
/* ---- Kasse mobile ---- */
@media (max-width:782px){
  form.checkout.woocommerce-checkout{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important}
  form.checkout.woocommerce-checkout > *{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .nogi-check-trust{flex-wrap:wrap!important;justify-content:center!important;gap:6px 14px!important;width:100%!important;padding:12px 0!important}
  .nogi-check-trust > *{white-space:nowrap!important;font-size:10.5px!important}
  #customer_details,#order_review,#order_review_heading{width:100%!important;max-width:100%!important}
  #customer_details .col-1,#customer_details .col-2{width:100%!important;float:none!important;padding:18px!important;box-sizing:border-box!important}
  #order_review{padding:16px!important}
  .woocommerce-form-coupon-toggle .woocommerce-info{border-radius:16px!important;margin:0 0 14px!important;padding:12px 16px!important;flex-wrap:wrap!important}
  .woocommerce-checkout-review-order-table{display:block!important;width:100%!important}
  .woocommerce-checkout-review-order-table thead{display:none!important}
  .woocommerce-checkout-review-order-table tbody,.woocommerce-checkout-review-order-table tfoot{display:block!important;width:100%!important}
  .woocommerce-checkout-review-order-table tr{display:flex!important;justify-content:space-between!important;gap:10px!important;padding:8px 0!important;border-bottom:1px solid #F4EBE7!important}
  .woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td{display:block!important;width:auto!important;padding:0!important;border:0!important;min-width:0!important}
  .woocommerce-checkout-review-order-table td.product-total,.woocommerce-checkout-review-order-table tfoot td{text-align:right!important;white-space:nowrap!important}
  .woocommerce-checkout-review-order-table td.product-name{flex:1 1 auto!important;font-size:13.5px!important}
  #place_order{width:100%!important;display:block!important;white-space:normal!important}
}
/* ---- compte cliente : navigation en chips défilants sur mobile ---- */
@media (max-width:782px){
  html body.nogi nav.woocommerce-MyAccount-navigation{position:static!important;top:auto!important;width:100%!important;max-width:100%!important;float:none!important;margin:0 0 16px!important;padding:0!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
  html body.nogi nav.woocommerce-MyAccount-navigation::-webkit-scrollbar{display:none}
  html body.nogi nav.woocommerce-MyAccount-navigation ul{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;padding:4px 2px 8px!important;margin:0!important;list-style:none!important;width:max-content!important;min-width:100%!important}
  html body.nogi nav.woocommerce-MyAccount-navigation li{flex:0 0 auto!important;width:auto!important;max-width:none!important;display:block!important;margin:0!important;border:0!important;padding:0!important;background:transparent!important}
  html body.nogi nav.woocommerce-MyAccount-navigation li a{display:inline-flex!important;width:auto!important;align-items:center!important;gap:6px!important;padding:9px 14px!important;border-radius:999px!important;background:#fff!important;border:1px solid #EBD9D4!important;color:#4A1A22!important;font-size:12.5px!important;font-weight:600!important;white-space:nowrap!important;box-shadow:none!important;text-decoration:none!important;line-height:1.2!important;min-height:0!important}
  html body.nogi nav.woocommerce-MyAccount-navigation li a svg{width:15px!important;height:15px!important;flex:0 0 15px!important}
  html body.nogi nav.woocommerce-MyAccount-navigation li a::after{display:none!important;content:none!important}
  html body.nogi nav.woocommerce-MyAccount-navigation li.is-active a{background:linear-gradient(120deg,#4A1A22,#8A4650)!important;color:#fff!important;border-color:transparent!important}
  html body.nogi nav.woocommerce-MyAccount-navigation li.is-active a svg{stroke:#fff!important;color:#fff!important}
  .woocommerce-MyAccount-content{width:100%!important;max-width:100%!important;float:none!important}
  .woocommerce-MyAccount-content table.shop_table{display:block!important;overflow-x:auto!important;max-width:100%!important}
}

