/* Cart slide-out drawer */
.ab-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 12, 10, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  backdrop-filter: blur(2px);
}
.ab-cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.ab-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 95;
  width: min(100vw - 2.5rem, 26rem);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.dark .ab-cart-drawer {
  background: #121410;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  border-left: 1px solid #1e221a;
}
.ab-cart-drawer.is-open {
  transform: translateX(0);
}
.ab-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #eef0f3;
  flex-shrink: 0;
}
.dark .ab-cart-drawer__head {
  border-bottom-color: #1e221a;
}
.ab-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem;
  scrollbar-width: thin;
}
.ab-cart-drawer__foot {
  flex-shrink: 0;
  border-top: 1px solid #eef0f3;
  padding: 1rem 1.1rem 1.15rem;
  background: #f8f9f6;
}
.dark .ab-cart-drawer__foot {
  border-top-color: #1e221a;
  background: #0b0c0a;
}
.ab-cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #eef0f3;
  background: #fafbf9;
  margin-bottom: 0.5rem;
}
.dark .ab-cart-item {
  border-color: #1e221a;
  background: #161a12;
}
.ab-cart-item__type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #68714f;
  margin-bottom: 0.15rem;
}
.dark .ab-cart-item__type {
  color: #abb295;
}
.ab-cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #9ca3af;
  font-size: 0.875rem;
}
body.ab-cart-open {
  overflow: hidden;
}
