/* Brocante et Antiquites — correctif mobile du 05/10/2026.
   Fichier distinct pour conserver les personnalisations existantes du theme. */
.ba-home-catalogue-link {
  margin: 18px 0 32px;
  text-align: center;
}
.ba-home-catalogue-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #c7b994;
  border-radius: 3px;
  color: #39372e;
  background: #faf8f3;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
}

@media (max-width: 991px) {
  /* Largeur disponible, sans masquer un debordement avec overflow-x:hidden. */
  .tv-main-div, #wrapper, #content-wrapper, #main, #content {
    min-width: 0;
    max-width: 100%;
  }
  .container {
    width: 100%;
    max-width: 100%;
  }
  #header .tvcmsmobile-header-menu-offer-text {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #fff;
    animation: none;
  }
  #tvcms-mobile-view-header.mobile-header-1 .tvcmsmobile-header-menu,
  #tvcms-mobile-view-header.mobile-header-1 .tvcmsmobile-header-logo-right-wrapper,
  #tvcms-mobile-view-header.mobile-header-1 .tvcmsmobile-cart-acount-text {
    float: none;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
  }
  #tvcmsmobile-header-logo .tv-header-logo {
    display: block;
    padding: 0;
    text-align: center;
  }
  #tvcmsmobile-header-logo img.logo {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    max-height: 78px;
    object-fit: contain;
    margin: 0 auto;
  }
  #header .tvcmsmobile-cart-acount-text {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
  }
  #tvcmsmobile-account-button { margin: 0; }
  #tvcmsmobile-account-button .tv-myaccount-btn,
  #tvmobile-cart .tvheader-cart-btn-wrapper > a,
  #header .ba-menu-toggle,
  #header .ba-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #292929;
    cursor: pointer;
  }
  #header .ba-menu-toggle i, #header .ba-menu-close i { font-size: 26px; }
  #header .ba-menu-toggle:focus-visible, #header .ba-menu-close:focus-visible,
  #ba-mobile-catalogue a:focus-visible, #ba-mobile-catalogue .navbar-toggler:focus-visible {
    outline: 2px solid #827148;
    outline-offset: 2px;
  }
  #tvcms-mobile-view-header .tvmobile-sliderbar-btn { padding: 0; }
  #tvcms-mobile-view-header .tvcmsmobile-header-search-logo-wrapper {
    padding: 0 12px 12px;
  }
  #tvcms-mobile-view-header .tvcmsmobile-header-search { padding: 0; width: 100%; }
  #header #tvcmsmobile-search .tvsearch-top-wrapper {
    display: block;
    width: 100%;
    padding: 0;
  }
  #header #tvcmsmobile-search .tvheader-top-search,
  #header #tvcmsmobile-search .tvsearch-header-display-wrappper {
    width: 100%;
    min-width: 0;
  }
  #header #tvcmsmobile-search input[type="text"] {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-right: 48px;
    font-size: 16px;
    letter-spacing: 0;
  }
  #header #tvcmsmobile-search .tvheader-search-btn { width: 44px; min-height: 44px; }
  #header #tvcmsmobile-search .tvsearch-header-display-wrappper { margin: 0; }

  /* Menu de categories en haut, y compris sur les fiches produit sans colonne laterale. */
  #ba-mobile-drawer {
    width: min(360px, 92vw);
    min-width: 0;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    padding: 56px 16px 24px;
    border-radius: 0;
    left: -100vw;
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: left;
    z-index: 1001;
  }
  #ba-mobile-drawer.open { left: 0; }
  #ba-mobile-drawer .ba-menu-close { position: absolute; top: 6px; right: 8px; }
  #ba-mobile-catalogue .block-categories {
    display: block;
    padding: 0;
    margin: 0 0 14px;
    border: 0;
    box-shadow: none;
  }
  #ba-mobile-catalogue .tv-category-title-wrapper { padding: 0; }
  #ba-mobile-catalogue .tv-leftcategory-wrapper { display: block !important; }
  #ba-mobile-catalogue .tvleft-right-title-toggle { display: none; }
  #ba-mobile-catalogue ul { margin: 0; padding: 0; }
  #ba-mobile-catalogue li { position: relative; list-style: none; }
  #ba-mobile-catalogue a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 46px 10px 4px;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;
    color: #292929;
    white-space: normal;
  }
  #ba-mobile-catalogue .tv-main-category-title { font-size: 18px; font-weight: 600; }
  #ba-mobile-catalogue .category-sub-menu > li { border-bottom: 1px solid #eeeae2; }
  #ba-mobile-catalogue .category-sub-menu .category-sub-menu { padding-left: 14px; }
  #ba-mobile-catalogue .navbar-toggler {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 46px;
    padding: 12px 10px;
    cursor: pointer;
  }
  #ba-mobile-catalogue .ba-mobile-new-products { padding-right: 4px; color: #766641; }
  body.mobile-menu-open { overflow: hidden; }
  body.mobile-menu-open #header { z-index: 100; }
  body.mobile-menu-open .tvcmsmobile-header-menu-offer-text { z-index: 100; }

  /* Les filtres restent disponibles ; seuls les blocs repetitifs sont masques. */
  body#index #left-column,
  #left-column .block-categories,
  #left-column .tvcmsleft-new-product,
  #left-column .tvcmsleft-featured-product,
  #left-column .tvcmsleft-best-seller-product,
  #left-column .tvcmsleft-special-product,
  #left-column .tvcmsleftsideofferbanners-one {
    display: none !important;
  }
  #index #content-wrapper { width: 100%; float: none; }
  #index .tvcms-slider-offerbanner-wrapper,
  #index .tvcmscategory-slider,
  #index .tvcmssingle-block { margin-bottom: 24px; }
  #index .tvcmscategory-slider .tvcmsmain-title-wrapper,
  #index .ba-home-new-products .tvcmsmain-title-wrapper { margin-bottom: 16px; }
  #index .tvmain-title h2 { font-size: 20px; line-height: 1.3; letter-spacing: 0; }
  #index .ba-home-new-products { margin: 0 0 24px; }
  #index .ba-home-new-products .featured-products { margin-top: 0 !important; }
  #index .ba-home-new-products .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    margin: 0;
  }
  #index .ba-home-new-products .products::before,
  #index .ba-home-new-products .products::after { display: none; }
  #index .ba-home-new-products .product-miniature {
    float: none;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
  }
  #index .ba-home-new-products .tvproduct-image .product-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #faf9f6;
  }
  #index .ba-home-new-products .tvproduct-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
  #index .ba-home-new-products .tvproduct-wrapper.grid .product-title h6 {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: normal;
    -webkit-line-clamp: 3;
    min-height: 4.2em;
    max-height: 4.2em;
  }
  #index .ba-home-new-products .price { font-size: 16px; line-height: 1.4; }
  #index .ba-home-new-products .tvproduct-name-price-wrapper { padding: 10px 7px; }
  #index .tvcategory-slider-info-title { font-size: 16px; line-height: 1.35; letter-spacing: 0; }
  #index .tvcategory-slider-all-link { font-size: 13px; letter-spacing: 0; }
  #index .tvcmssingle-block .tv-single-block-content {
    padding: 18px 14px;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    white-space: normal;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #index .ba-home-new-products .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  #header .tvcmsmobile-header-menu-offer-text { padding-inline: 8px; gap: 0; }
  #index .ba-home-new-products .products { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #ba-mobile-drawer { transition: none; }
}
