/* The wide catalog owns its background; the showroom stays mounted underneath. */
@media screen {
  html[data-view-mode="wide"] body:has(.home-showroom) main > #products.pc-products-active {
    background: #eeeae3 url('../images/showroom-atelier.png') center / cover no-repeat !important;
  }
  html[data-view-mode="wide"] body:has(#products.pc-products-active) .home-showroom {
    visibility: hidden !important;
    pointer-events: none !important;
  }
  html[data-view-mode="wide"] body:has(.home-showroom) #products .product-deck-head {
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
  }
}
@media screen and (max-height: 760px) {
  html[data-view-mode="wide"] body:has(.home-showroom) main > #products.pc-products-active {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}
@media screen and (max-width: 1000px) {
  html[data-view-mode="wide"] body:has(.home-showroom) main > #products.pc-products-active {
    top: 104px !important;
    height: calc(100dvh - 104px) !important;
    padding: 20px 24px !important;
    box-sizing: border-box;
  }
  html[data-view-mode="wide"] body:has(.home-showroom) #products .product-deck {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  html[data-view-mode="wide"] body:has(.home-showroom) #products .product-deck-head {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: 35% !important;
    padding: 0 !important;
  }
  html[data-view-mode="wide"] #products .product-deck-head h2 { display: none !important; }
  html[data-view-mode="wide"] body:has(.home-showroom) #products .product-deck-tabs {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  html[data-view-mode="wide"] body:has(.home-showroom) #products .product-deck-tabs > button {
    width: auto !important;
    min-height: 40px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    background: #ffffffe6 !important;
  }
  html[data-view-mode="wide"] #products .pc-product-filters {
    order: 1;
    flex: 1 0 100%;
    margin: 0 !important;
  }
  html[data-view-mode="wide"] #products [data-deck-viewport] {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    width: 100% !important;
  }
}
