/* ============================================
   MOBILE UX FIXES — Les Clos Vivants
   Créé le 24/05/2026
   ============================================ */

/* === TOP BAR DÉFILANTE MOBILE === */
@media (max-width: 767px) {
  .top-bar {
    height: 32px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .top-bar .container {
    overflow: hidden !important;
    height: 32px !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .top-bar__content {
    display: block !important;
    overflow: hidden !important;
    height: 32px !important;
    line-height: 32px !important;
    white-space: nowrap !important;
  }
  .top-bar__content p {
    display: inline-block !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 32px !important;
    padding-left: 100% !important;
    animation: topbar-scroll 18s linear infinite !important;
  }
  @keyframes topbar-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }
}

/* === HEADER ZONES TACTILES MOBILE === */
@media (max-width: 767px) {

  /* Burger : zone tactile 44x44px */
  #burger {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  /* Icônes header (loupe, compte, panier) : 44x44px minimum */
  .header-actions li {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-actions a,
  .header-actions button,
  .header-actions .search-icon,
  .header-actions .blockcart a {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Réduire le gap entre icônes pour éviter le débordement */
  .header-actions {
    gap: 0 !important;
    width: auto !important;
  }

}

/* === SELECTOR QUANTITÉ MOBILE === */
@media (max-width: 767px) {

  /* Casser le layout table imposé par bootstrap-touchspin */
  .product-quantity .bootstrap-touchspin.input-group {
    display: flex !important;
    width: 100% !important;
    height: 52px !important;
    align-items: stretch !important;
  }

  /* Conteneur boutons : redevenir flex au lieu de table-cell */
  .product-quantity .bootstrap-touchspin .input-group-btn-vertical {
    display: flex !important;
    flex-direction: column !important;
    width: 52px !important;
    min-width: 52px !important;
    vertical-align: unset !important;
  }

  /* Chaque bouton + et - */
  .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 26px !important;
    flex: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Icônes +/- */
  .product-quantity .bootstrap-touchspin .input-group-btn-vertical .material-icons {
    font-size: 20px !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
  }

  /* Input quantité */
  .product-quantity .bootstrap-touchspin .form-control {
    flex: 1 !important;
    width: auto !important;
    height: 52px !important;
    font-size: 18px !important;
    text-align: center !important;
    display: table-cell !important;
  }

}