/* Regle FAC : titre, photo, prix, quantite et ajout au panier sans scroll.
   Pose le 18/09/2026. */

/* Le titre produit prenait 7 lignes et 374 px */
body#product h1.h1,
body#product .product-container h1,
body#product .page-header h1 {
  font-size: 21px !important;
  line-height: 1.24 !important;
  margin: 0 0 10px !important;
  letter-spacing: -.01em !important;
}

/* Bandeau promo encore plus serre */
.fc-promo { margin-bottom: 8px !important; }
.fc-promo-body { padding: 7px 9px 8px !important; }
.fc-promo-lead { margin-bottom: 6px !important; font-size: 11px !important; }

/* On resserre le bloc descriptif entre le prix et la quantite */
body#product .product-information > .product-description,
body#product .product-additional-info { margin-top: 8px !important; }

body#product .product-prices { margin-bottom: 8px !important; }
body#product .product-prices .current-price { margin-bottom: 2px !important; }

body#product .product-quantity { margin-top: 10px !important; }

/* Passe 2 : gagner les 140 px qui manquent pour l ajout au panier sans scroll */
/* L'echeance doit rester lisible : Nathanel veut l'explication du « jusqu'a fin
   septembre » visible, pas seulement le decompte. Compactee plutot que masquee. */
.fc-promo-lead { display: block !important; margin: 0 0 5px !important;
                 font-size: 10.5px !important; line-height: 1.3 !important; }
.fc-promo-body { padding: 6px 8px 7px !important; }
.fc-promo-unit { padding: 2px 1px 1px !important; }
.fc-promo-unit b { font-size: 13px !important; }
.fc-promo-unit span { font-size: 7px !important; }
.fc-promo-top { padding: 5px 9px !important; }

body#product .product-information,
body#product .product-desc-short,
body#product .product-additional-info { font-size: 12.5px !important; line-height: 1.4 !important; }

body#product .product-information p,
body#product .product-additional-info p { margin: 0 0 5px !important; }

body#product .product-prices { margin: 0 0 6px !important; }
body#product .current-price { line-height: 1.05 !important; }
body#product .product-quantity { margin-top: 8px !important; }
body#product .product-add-to-cart { margin-top: 6px !important; }

/* Passe 3 : les 61 derniers pixels */
.fc-promo { margin-bottom: 6px !important; }
.fc-promo-top { padding: 4px 8px !important; }
.fc-promo-badge { font-size: 9.5px !important; }
.fc-promo-body { padding: 5px 7px 6px !important; }
.fc-promo-count { gap: 2px !important; }
.fc-promo-unit b { font-size: 12px !important; }
body#product .breadcrumb { margin-bottom: 6px !important; font-size: 11.5px !important; }
body#product .product-information p { margin: 0 0 3px !important; }
body#product h1.h1, body#product .product-container h1 { font-size: 19px !important; margin-bottom: 7px !important; }

/* Mobile product quantity: separate 44px targets, unchanged controls. */
@media (max-width: 650px) {
  body#product #main .product-quantity .bootstrap-touchspin {
    display: flex;
    flex-wrap: nowrap;
    width: 160px;
    height: 44px;
  }
  body#product #main .product-quantity #quantity_wanted {
    box-sizing: border-box;
    flex: 0 0 72px;
    width: 72px;
    height: 44px;
  }
  body#product #main .product-quantity .input-group-btn-vertical {
    display: flex;
    flex: 0 0 88px;
    flex-direction: row;
    width: 88px;
    height: 44px;
  }
  body#product #main .product-quantity .input-group-btn-vertical > button {
    box-sizing: border-box;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
  }
  body#product #main .product-quantity .input-group-btn-vertical > button > i {
    position: static;
    line-height: 1;
  }
}

@media (max-width: 650px) {
  body#product #main .product-quantity .input-group-btn-vertical > button:focus-visible { z-index: 3; }
}

/* Visible keyboard focus for the quantity field; no value or handler changes. */
body#product #main #quantity_wanted:focus-visible {
  outline: 3px solid #225e91 !important;
  outline-offset: 3px;
  z-index: 4;
}
