/* ─── Cart Drawer ─── */
#bb-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

#bb-cart-drawer.is-open {
  pointer-events: auto;
}

.bb-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
}

#bb-cart-drawer.is-open .bb-cart-drawer__overlay {
  opacity: 1;
}

.bb-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
}

#bb-cart-drawer.is-open .bb-cart-drawer__panel {
  transform: translateX(0);
}

.bb-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e0ddd7;
  font-weight: 700;
  font-size: 1rem;
  color: #1B3D2F;
}

.bb-cart-drawer__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  color: #1B3D2F;
  opacity: .6;
  transition: opacity .2s;
}
.bb-cart-drawer__close:hover { opacity: 1; }

.bb-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.bb-cart-drawer__empty {
  text-align: center;
  color: #777;
  margin-top: 40px;
}

.bb-cart-drawer__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bb-cart-drawer__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bb-cart-drawer__thumb img,
.bb-cart-drawer__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #e0ddd7;
  border-radius: 6px;
  background: #F8F6F1;
}

.bb-cart-drawer__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bb-cart-drawer__name {
  font-size: .9rem;
  font-weight: 600;
  color: #1B3D2F;
  text-decoration: none;
  line-height: 1.3;
}
.bb-cart-drawer__name:hover { text-decoration: underline; }

.bb-cart-drawer__qty {
  font-size: .82rem;
  color: #777;
}

.bb-cart-drawer__price {
  font-size: .9rem;
  font-weight: 600;
  color: #E8541A;
}

.bb-cart-drawer__foot {
  padding: 16px 20px;
  border-top: 1px solid #e0ddd7;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8F6F1;
}

.bb-cart-drawer__subtotal {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B3D2F;
  display: flex;
  justify-content: space-between;
}

.bb-cart-drawer__cta {
  display: block;
  text-align: center;
  background: #1B3D2F !important;
  color: #fff !important;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s;
}
.bb-cart-drawer__cta:hover { background: #142d21 !important; color: #fff !important; }

.bb-cart-drawer__continue {
  background: none;
  border: 1px solid #c5c0b8;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  font-size: .88rem;
  color: #555;
  transition: border-color .2s, color .2s;
}
.bb-cart-drawer__continue:hover { border-color: #1B3D2F; color: #1B3D2F; }

body.bb-drawer-open { overflow: hidden; }
