/* Audit des dimensions 2026-11-20 (inc/boutique-ux.php) */
/* 1. barre de menu : tout doit rester visible (favoris, espace pro) */
.p2m-quick a{padding:8px 11px}
@media (max-width:1440px){.p2m-quick a{padding:8px 9px;font-size:13.5px}.p2m-quick a.is-pro{padding:8px 10px}}
/* 2. bandeau titre boutique / catégorie : compact (avant 200 px) */
.woocommerce-shop .entry-hero .entry-header,.tax-product_cat .entry-hero .entry-header,.tax-product_tag .entry-hero .entry-header,
.post-type-archive-product .entry-hero .entry-header{min-height:0!important;padding-top:14px!important;padding-bottom:14px!important}
.woocommerce-shop .entry-hero .page-title,.tax-product_cat .entry-hero .page-title,.tax-product_tag .entry-hero .page-title,.post-type-archive-product .entry-hero .page-title{font-size:clamp(20px,2.4vw,28px)!important;margin:0!important}
.woocommerce-shop .entry-hero .hero-section-overlay,.tax-product_cat .entry-hero .hero-section-overlay{opacity:.5}
@media (max-width:767px){
  .woocommerce-shop .entry-hero .entry-header,.tax-product_cat .entry-hero .entry-header,.tax-product_tag .entry-hero .entry-header,.post-type-archive-product .entry-hero .entry-header{padding-top:10px!important;padding-bottom:10px!important}
  /* 3. résultats + tri sur une seule ligne */
  .kadence-shop-top-row{display:flex!important;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap!important;margin-bottom:10px}
  .kadence-shop-top-row .kadence-shop-top-item{margin:0!important;width:auto!important;flex:0 1 auto;min-width:0}
  .kadence-shop-top-row .woocommerce-result-count{font-size:12px;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kadence-shop-top-row .woocommerce-ordering{margin:0!important}
  .kadence-shop-top-row .woocommerce-ordering select{max-width:44vw;width:auto!important;min-height:38px;font-size:13px;padding:4px 28px 4px 10px}
  .kadence-shop-top-row .kadence-product-toggle-container{display:none}
  /* 5. cartes : un seul petit bouton favori sur l'image ; « comparer » reste sur la fiche produit */
  ul.products li.product .p2m-cmp{display:none!important}
  ul.products li.product .p2m-fav{width:30px;height:30px;top:6px;right:6px;box-shadow:none;background:rgba(255,255,255,.85)}
}
/* 4. « Photo à venir » : petite et légère, pas un grand appareil photo */
ul.products li.product img[src*="photo-a-venir"],ul.products li.product img.woocommerce-placeholder{padding:24%;opacity:.45;background:#f6f8f9;object-fit:contain}
/* 5 bis. cartes de même hauteur avec ou sans ligne de stock */
ul.products li.product .p2m-stock,ul.products li.product .stock{min-height:18px}
@media (max-width:767px){.p2m-filtres{margin-bottom:10px}.p2m-filtres>summary{padding:8px 14px;min-height:44px}.p2m-shop-cats{margin-bottom:8px!important}}
.p2m-quick a[hidden]{display:none!important}
