/* vop-r75r-ops
   Style returns to the original horizontal slider.
   The open phone menu fills the screen and keeps currency/language visible.
   Collection filter controls use the page ground, not a white well.
   Palette, logo, type ladder and the live theme stay unchanged. */

/* 1. Style: original horizontal slider. The next card peeks, the bar stays visible. */
@media screen and (max-width: 767px) {
  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content #f-collection-list-osa-stories .f-mixed-layout__wrapper,
  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content .vop-r74-style .f-mixed-layout__wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: thin !important;
    scrollbar-color: #6E5642 #E7DCCD !important;
    padding-bottom: 12px !important;
  }

  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content #f-collection-list-osa-stories .f-mixed-layout__wrapper::-webkit-scrollbar,
  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content .vop-r74-style .f-mixed-layout__wrapper::-webkit-scrollbar {
    display: block !important;
    height: 6px !important;
  }

  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content #f-collection-list-osa-stories .f-mixed-layout__wrapper::-webkit-scrollbar-thumb,
  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content .vop-r74-style .f-mixed-layout__wrapper::-webkit-scrollbar-thumb {
    background: #6E5642 !important;
    border-radius: 999px !important;
  }

  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content #f-collection-list-osa-stories .f-mixed-layout__wrapper::-webkit-scrollbar-track,
  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content .vop-r74-style .f-mixed-layout__wrapper::-webkit-scrollbar-track {
    background: #E7DCCD !important;
    border-radius: 999px !important;
  }

  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content #f-collection-list-osa-stories .f-mixed-layout__inner,
  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content .vop-r74-style .f-mixed-layout__inner {
    display: flex !important;
    grid-template-columns: none !important;
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    gap: 12px !important;
    transform: none !important;
  }

  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content #f-collection-list-osa-stories .f-mixed-layout__inner > .m\:column,
  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content .vop-r74-style .f-mixed-layout__inner > .m\:column,
  body.vop-pass-r75r.vop-pass-r75o.template-home #main-content #f-collection-list-osa-stories .f-collection-card {
    flex: 0 0 78% !important;
    width: 78vw !important;
    max-width: 78vw !important;
    min-width: 240px !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
  }
}

/* 2. Phone menu covers the visual screen. Currency and language stay inside it. */
@media screen and (max-width: 1023px) {
  #f-menu-drawer.open {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    z-index: 80 !important;
  }

  #f-menu-drawer.open .f-menu-drawer__backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: rgba(44, 38, 34, 0.28) !important;
    z-index: 1 !important;
  }

  #f-menu-drawer.open .f-menu-drawer__wrapper {
    position: fixed !important;
    top: var(--vop-drawer-top, 92px) !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(360px, 88vw) !important;
    height: calc(100dvh - var(--vop-drawer-top, 92px)) !important;
    min-height: calc(100dvh - var(--vop-drawer-top, 92px)) !important;
    max-height: none !important;
    transform: none !important;
    background: #F6F1E8 !important;
    background-color: #F6F1E8 !important;
    overflow: hidden !important;
    z-index: 2 !important;
  }

  #f-menu-drawer.open .f-menu-drawer__content {
    height: 100% !important;
    max-height: 100% !important;
    background: #F6F1E8 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }

  #f-menu-drawer.open .f-menu-customer,
  #f-menu-drawer.open .f-menu-customer__language-currency {
    flex-shrink: 0 !important;
    background: #F6F1E8 !important;
    background-color: #F6F1E8 !important;
  }

  #f-menu-drawer.open .f-menu-customer__language-currency {
    min-height: 56px !important;
    padding: 10px 16px 16px !important;
    box-sizing: border-box !important;
  }

  body:has(#f-menu-drawer.open) #scroll-to-top-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 3. Filter row and column buttons use the page ground, not a white well. */
body.vop-pass-r75r.template-collection #main-content .facest-filters-section,
body.vop-pass-r75r.template-collection #main-content .f-collection-toolbar,
body.vop-pass-r75r.template-collection #main-content .f-collection-toolbar--wrapper,
body.vop-pass-r75r.template-collection #main-content .f-toolbar--left,
body.vop-pass-r75r.template-collection #main-content .f-toolbar--right,
body.vop-pass-r75r.template-collection #main-content .f-toolbar--column-switcher {
  --color-background: 246, 241, 232 !important;
  background: #F6F1E8 !important;
  background-color: #F6F1E8 !important;
}

body.vop-pass-r75r.template-collection #main-content .f-toolbar--column-switcher button:not(.active) {
  background: #F6F1E8 !important;
  background-color: #F6F1E8 !important;
  color: #2C2622 !important;
  border: 1px solid #D9CBBA !important;
  box-shadow: none !important;
}

body.vop-pass-r75r.template-collection #main-content .f-toolbar--column-switcher button.active {
  background: #3C332C !important;
  background-color: #3C332C !important;
  color: #F6F1E8 !important;
  border-color: #3C332C !important;
}
