/*
 BELLE'S TREASURES — R40.6

 Sticky branding and swipeable mobile navigation.
 No changes to products, inventory, desktop or owner portal.
*/

/* Footer About link is mobile-only. */

.bt-r406-footer-about {
  display:none!important;
}

/*
 Mobile devices:
 Hide About in the top navigation.
 About remains available at the bottom of the page.
*/

@media (max-width:700px),
       (max-width:1000px) and (pointer:coarse) {

  html body:not(.owner-admin-body)
  header.site-header
  nav.bt-r33-navigation>a[href*="about.html"] {
    display:none!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-footer-about {
    display:flex!important;

    justify-content:center!important;
    align-items:center!important;

    width:100%!important;

    padding:12px 10px!important;
    margin:12px 0 0!important;

    border-top:1px solid rgba(193,153,67,.35)!important;

    box-sizing:border-box!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-footer-about a {
    display:inline-flex!important;

    align-items:center!important;
    justify-content:center!important;

    min-height:38px!important;

    padding:8px 15px!important;

    border:1px solid #ad8942!important;
    border-radius:999px!important;

    background:#151413!important;
    color:#f2ce75!important;

    font-size:.85rem!important;
    font-weight:750!important;
    line-height:1.2!important;

    text-decoration:none!important;
  }
}

/*
 Portrait phones:
 The logo stays visible.
 Navigation has its own horizontal swipe region.
*/

@media (max-width:700px) and (orientation:portrait) {

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell {
    display:flex!important;

    flex-direction:column!important;
    flex-wrap:nowrap!important;

    align-items:stretch!important;

    position:sticky!important;
    top:0!important;
    z-index:10000!important;

    width:calc(100% - 12px)!important;
    max-width:none!important;
    min-width:0!important;

    height:auto!important;
    min-height:0!important;
    max-height:none!important;

    padding:3px 3px 5px!important;
    margin-inline:6px!important;

    gap:2px!important;

    overflow:visible!important;

    background:#070709!important;

    box-sizing:border-box!important;
  }

  /*
   Compact the branding row without hiding
   Belle's Treasures & Consignment.
  */

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r403-header-top {
    display:flex!important;
    flex-wrap:nowrap!important;

    align-items:center!important;
    justify-content:space-between!important;

    width:100%!important;

    min-height:39px!important;
    height:auto!important;

    padding:2px 4px 3px!important;
    margin:0!important;

    gap:6px!important;

    box-sizing:border-box!important;
  }

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .brand-lockup {
    display:flex!important;

    align-items:center!important;

    min-width:0!important;

    height:auto!important;
    min-height:37px!important;

    margin:0!important;
    padding:0!important;
  }

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .brand-lockup .brand-fairy {
    width:31px!important;
    height:37px!important;

    max-width:31px!important;
    max-height:37px!important;

    object-fit:contain!important;

    flex:0 0 auto!important;
  }

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .brand-lockup strong {
    font-size:clamp(1.03rem,4.3vw,1.34rem)!important;
    line-height:1.05!important;
  }

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .brand-lockup small {
    font-size:.6rem!important;
    line-height:1.15!important;
    letter-spacing:.08em!important;
  }

  /*
   Horizontal navigation container.
   Navigation is scrollable, not compressed.
  */

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r406-nav-rail {
    display:flex!important;

    position:relative!important;

    align-items:center!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;

    padding:0!important;
    margin:0!important;

    overflow:hidden!important;

    background:#08090b!important;

    border:1px solid rgba(180,142,60,.35)!important;
    border-radius:11px!important;

    box-sizing:border-box!important;
  }

  /*
   The navigation itself scrolls horizontally.
   Its contents have real, comfortable widths.
  */

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r406-nav-rail
  >nav.bt-r33-navigation {
    display:flex!important;

    flex-direction:row!important;
    flex-wrap:nowrap!important;

    align-items:center!important;
    justify-content:flex-start!important;

    position:relative!important;

    flex:1 1 auto!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;

    gap:8px!important;

    padding:3px 34px 3px 34px!important;
    margin:0!important;

    overflow-x:auto!important;
    overflow-y:hidden!important;

    -webkit-overflow-scrolling:touch!important;

    overscroll-behavior-x:contain!important;
    scroll-snap-type:x proximity!important;
    scroll-padding-inline:34px!important;

    scrollbar-width:none!important;

    white-space:nowrap!important;

    touch-action:pan-x!important;

    box-sizing:border-box!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  >nav.bt-r33-navigation::-webkit-scrollbar {
    display:none!important;
    width:0!important;
    height:0!important;
  }

  /*
   Stop the portrait navigation buttons
   from becoming thin or unreadable.
  */

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  >nav.bt-r33-navigation>a {
    display:inline-flex!important;

    align-items:center!important;
    justify-content:center!important;

    position:relative!important;

    flex:0 0 auto!important;

    width:auto!important;
    min-width:88px!important;
    max-width:none!important;

    height:35px!important;
    min-height:35px!important;
    max-height:35px!important;

    padding:7px 12px!important;
    margin:0!important;

    border-radius:999px!important;

    font-size:.77rem!important;
    font-weight:800!important;
    line-height:1.1!important;

    letter-spacing:0!important;
    white-space:nowrap!important;

    text-align:center!important;

    scroll-snap-align:center!important;

    box-sizing:border-box!important;
  }

  /*
   Comfortable-sized Zoom stays in the strip.
   The existing Zoom functionality is reused.
  */

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  nav.bt-r33-navigation
  #bt-r33-zoom {
    display:inline-flex!important;

    position:relative!important;

    flex:0 0 104px!important;

    align-items:center!important;
    justify-content:center!important;

    width:104px!important;
    min-width:104px!important;
    max-width:104px!important;

    height:35px!important;
    min-height:35px!important;
    max-height:35px!important;

    padding:3px 5px!important;
    margin:0!important;

    gap:2px!important;

    border-radius:999px!important;

    scroll-snap-align:center!important;

    white-space:nowrap!important;

    box-sizing:border-box!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  #bt-r33-zoom .bt-r33-zoom-label {
    display:none!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  #bt-r33-zoom button {
    display:grid!important;
    place-items:center!important;

    flex:0 0 27px!important;

    width:27px!important;
    min-width:27px!important;
    max-width:27px!important;

    height:29px!important;
    min-height:29px!important;

    padding:0!important;
    margin:0!important;

    border:0!important;
    border-radius:5px!important;

    background:transparent!important;
    color:#f3ca62!important;

    font-size:1.1rem!important;
    line-height:1!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  #bt-r33-zoom output {
    display:block!important;

    flex:0 0 35px!important;

    width:35px!important;
    min-width:35px!important;
    max-width:35px!important;

    margin:0!important;
    padding:0!important;

    font-size:.72rem!important;
    font-weight:800!important;
    line-height:1!important;

    text-align:center!important;
  }

  /*
   Support the existing segmented Zoom variant
   if the current page uses it instead.
  */

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  nav.bt-r33-navigation
  .bt-site-size-control.bt-zoom-control-v2 {
    display:inline-flex!important;

    flex:0 0 116px!important;

    width:116px!important;
    min-width:116px!important;
    max-width:116px!important;

    height:35px!important;
    min-height:35px!important;
    max-height:35px!important;

    padding:2px!important;
    margin:0!important;

    scroll-snap-align:center!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  .bt-zoom-control-v2 .bt-zoom-label-v2 {
    display:none!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  .bt-zoom-control-v2 .bt-zoom-track-v2 {
    display:grid!important;

    grid-template-columns:repeat(3,36px)!important;

    width:110px!important;
    min-width:110px!important;
    max-width:110px!important;

    height:29px!important;
    min-height:29px!important;

    padding:0!important;
    margin:0!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  .bt-zoom-control-v2 .bt-zoom-option-v2 {
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;

    height:27px!important;
    min-height:27px!important;

    padding:0!important;

    font-size:.69rem!important;
  }

  /*
   Small gold scroll arrows.
   They stay visible while the navigation moves.
  */

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  >.bt-r406-nav-arrow {
    display:grid!important;
    place-items:center!important;

    position:absolute!important;

    top:50%!important;
    transform:translateY(-50%)!important;

    z-index:5!important;

    width:30px!important;
    min-width:30px!important;
    max-width:30px!important;

    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;

    padding:0!important;
    margin:0!important;

    border:0!important;
    border-radius:6px!important;

    background:rgba(8,9,11,.96)!important;
    color:#f4ce73!important;

    font-size:1.6rem!important;
    font-weight:750!important;
    line-height:1!important;

    box-shadow:none!important;

    cursor:pointer!important;
    touch-action:manipulation!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  >.bt-r406-nav-prev {
    left:0!important;
    right:auto!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  >.bt-r406-nav-next {
    right:0!important;
    left:auto!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  >.bt-r406-nav-arrow:disabled {
    opacity:.3!important;
    cursor:default!important;
  }

  html body:not(.owner-admin-body)
  .bt-r406-nav-rail
  >.bt-r406-nav-arrow:focus-visible {
    outline:2px solid #ffe3a0!important;
    outline-offset:-2px!important;
  }

  /*
   Previous empty Zoom rows take up no space.
  */

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  >.bt-r402-mobile-zoom-row:empty,

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  >.bt-r402-zoom-row:empty,

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  >.bt-r403-zoom-row:empty {
    display:none!important;

    height:0!important;
    min-height:0!important;

    margin:0!important;
    padding:0!important;
  }
}

/*
 Desktop remains untouched.
 Landscape retains its existing navigation arrangement.
*/