/* ================================
   White Frosted Drawer — Full CSS
   ================================ */

/* Controls */
:root{
  --drawer-blur: 5px;      /* blur strength */
  --drawer-alpha: .25;      /* 0–1: lower = more transparent */
}

/* ---------- Drawer container ---------- */
.bee-drawer{
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  width: calc(100vw - 65px);
  height: 100%;
  max-height: none;
  z-index: 469;
  transition:
    transform .5s cubic-bezier(.645,.045,.355,1),
    visibility .5s cubic-bezier(.645,.045,.355,1);
  background: transparent !important;      /* allow blur to show */
  box-shadow: none;
  touch-action: manipulation;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-transform: translate3d(-104%,0,0);
  transform: translate3d(-104%,0,0);
  isolation: isolate;                      /* scope the overlay */
  color: #ffffff !important;
}

/* Frosted overlay behind all content */
.bee-drawer::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,var(--drawer-alpha));  /* white tint */
  -webkit-backdrop-filter: blur(var(--drawer-blur)) saturate(160%);
  backdrop-filter: blur(var(--drawer-blur)) saturate(160%);
  pointer-events: none;
  z-index: 0;                               /* keep behind content */
  border-radius: inherit;
  color: #ffffff !important;
}

/* Fallback when backdrop-filter unsupported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bee-drawer::before{ background: rgba(255,255,255,.85); }
}

/* Ensure all inner blocks stay transparent & above the overlay */
.bee-drawer > *,
.bee-drawer__wrap,
.bee-drawer__content,
.bee-drawer__main,
.bee-drawer__scroll,
.bee-drawer__bottom,
.bee-drawer__header,
.bee-drawer__head,
.bee-drawer .bee-mb__menu,
.bee-drawer .bee-mb__panel,
.bee-drawer .bee-mb__wrap,
.bee-drawer .bee-mb__content,
.bee-drawer .bee-mb__list,
.bee-drawer .bee-mb__inner,
.bee-drawer .bee-mb-nav__tabs,
.bee-drawer .bee-mb__submenu{
  position: relative;
  z-index: 1;
  background: transparent !important;
  color: #ffffff !important;
}

.bee-mb__menu{
  color: #ffffff !important;
}
/* ---------- Variants ---------- */
.bee-drawer__right{
  right: 0; left: auto;
  -webkit-transform: translate3d(104%,0,0);
  transform: translate3d(104%,0,0);
  color: #ffffff !important;
}

.bee-drawer__bottom-to-top,
.bee-drawer__top-to-bottom{
  opacity: 0;
  visibility: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 800px;
  -webkit-perspective: 800px;
  transform: translateY(104%) translateZ(0);
  -webkit-transform: translateY(104%) translateZ(0);
  -webkit-transition: transform .4s, opacity .4s, visibility .4s;
  transition: transform .4s, opacity .4s, visibility .4s;
  color: #ffffff !important;
}
.bee-drawer__top-to-bottom{
  transform: translateY(-104%) translateZ(0);
  -webkit-transform: translateY(-104%) translateZ(0);
  color: #ffffff !important;
}

/* RTL */
.rtl_true .bee-drawer{
  right: 0; left: auto;
  -webkit-transform: translate3d(104%,0,0);
  transform: translate3d(104%,0,0);
  color: #ffffff !important;
}
.rtl_true .bee-drawer__right{
  right: auto; left: 0;
  -webkit-transform: translate3d(-104%,0,0);
  transform: translate3d(-104%,0,0);
  color: #ffffff !important;
}

/* Open state */
.bee-drawer[aria-hidden="false"]{
  pointer-events: auto;
  visibility: visible;
  transform: none;
  -webkit-transform: none;
  opacity: 1;
  color: #ffffff !important;
}

/* ---------- Layout ---------- */
.bee-drawer__wrap{
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  color: #ffffff !important;
}
.bee-drawer__content{
  display: flex;
  -ms-flex: 1 1 auto; flex: 1 1 auto;
  -ms-flex-align: stretch; align-items: stretch;
  -ms-flex-direction: column; flex-direction: column;
  -ms-flex-pack: justify; justify-content: space-between;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  color: #ffffff !important;
}
.bee-drawer__main{ position: relative; flex: 1 1 auto; }
.bee-drawer__main .bee-drawer__scroll{
  position: absolute; inset: 0; max-height: 100%;
  color: #ffffff !important;
}

/* Bottom area animation */
.bee-drawer__bottom{
  flex: 0 0 auto;
  padding-bottom: 15px;
  opacity: 0;
  -webkit-transform: translateY(45px);
  transform: translateY(45px);
  -webkit-transition:
    opacity .35s cubic-bezier(.25,.46,.45,.94),
    -webkit-transform .35s cubic-bezier(.25,.46,.45,.94);
  transition:
    opacity .35s cubic-bezier(.25,.46,.45,.94),
    transform .35s cubic-bezier(.25,.46,.45,.94),
    -webkit-transform .35s cubic-bezier(.25,.46,.45,.94);
    color: #ffffff !important;
}
.bee-drawer[aria-hidden="false"] .bee-drawer__bottom{
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition:
    opacity .25s cubic-bezier(.25,.46,.45,.94) .45s,
    -webkit-transform .25s cubic-bezier(.25,.46,.45,.94) .45s;
  transition:
    opacity .25s cubic-bezier(.25,.46,.45,.94) .25s,
    transform .35s cubic-bezier(.25,.46,.45,.94) .25s,
    -webkit-transform .25s cubic-bezier(.25,.46,.45,.94) .25s;
    color: #ffffff !important;
}

/* Visibility helpers */
.bee-drawer{ opacity: 1; }
.bee-drawer__bottom-to-top,
.bee-drawer__top-to-bottom{ opacity: 0; }
.bee-drawer__bottom-to-top[aria-hidden=false],
.bee-drawer__top-to-bottom[aria-hidden=false],
.bee-drawer__bottom-to-top-lg[aria-hidden=false],
.bee-drawer__top-to-bottom-lg[aria-hidden=false]{
  opacity: 1; visibility: visible;
  color: #ffffff !important;
}

/* ---------- Header (light, readable) ---------- */
.bee-drawer__header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  padding: 0 0 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.55) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffff !important;
}
.bee-drawer__header span{
  -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto;
  font-size: 16px; color: #ffffff !important; font-weight: 600; text-transform: uppercase;
}

/* Close button */
button.bee-drawer__close{
  padding: 0 30px;
  background-color: transparent;
  color: #ffffff !important;
  width: 100%; height: 100%;
  display: flex; align-items: center;

}
button.bee-drawer__close span{
  flex: 0 1 auto;
  color: #ffffff !important;
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0; margin: 0 5px;
}
button.bee-drawer__close svg{
  width: 25px; height: 25px; margin: 0 5px;
  transform: rotate(-180deg);
  transition: .25s linear;
}
.bee-sidebar-product-header button.bee-drawer__close:hover svg{ transform: rotate(0); }

/* Sidebar product header should not block the blur */
.bee-sidebar-product-header .bee-drawer__header{
  background: rgba(255,255,255,.6) !important;
  min-height: 68px; padding: 0; justify-content: flex-start;
}

/* ---------- Widths ---------- */
@media screen and (min-width: 641px){
  .bee-drawer{ width: 350px; }
}

/* Desktop vertical variants */
@media screen and (min-width: 1025px){
  .bee-drawer__bottom-to-top-lg,
  .bee-drawer__top-to-bottom-lg{
    opacity: 0; visibility: hidden;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    perspective: 800px; -webkit-perspective: 800px;
    transform: translateY(104%) translateZ(0);
    -webkit-transform: translateY(104%) translateZ(0);
    -webkit-transition: transform .4s, opacity .4s, visibility .4s;
    transition: transform .4s, opacity .4s, visibility .4s;
  }
  .bee-drawer__top-to-bottom-lg{
    transform: translateY(-104%) translateZ(0);
    -webkit-transform: translateY(-104%) translateZ(0);
  }
}

/* Section toggle visibility */
.bee-section-sidebar{ display: block; }
