/* Sticky Cart Drawer — luxury fashion */

.bsp-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
}

.bsp-cart-drawer.is-open {
  pointer-events: auto;
}

.bsp-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: var(--bsp-cart-overlay, rgba(26, 26, 26, 0.45));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bsp-cart-drawer.is-open .bsp-cart-drawer__overlay {
  opacity: 1;
}

.bsp-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, var(--bsp-cart-drawer-width, 440px));
  height: 100%;
  background: var(--bsp-cart-bg, #faf9f7);
  box-shadow: -12px 0 48px rgba(17, 24, 39, 0.12);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.bsp-cart-drawer.is-open .bsp-cart-drawer__panel {
  transform: translateX(0);
}

.bsp-cart-drawer__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.bsp-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  flex-shrink: 0;
}

.bsp-cart-drawer__title {
  margin: 0;
  font-family: var(--bsp-font-heading);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--bsp-cart-title, #1a1a1a);
}

.bsp-cart-drawer__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.bsp-cart-drawer__close:hover {
  color: #1a1a1a;
}

/* Free shipping progress */
.bsp-cart-drawer__shipping {
  padding: 16px 28px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.bsp-cart-drawer__shipping-text {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bsp-cart-text, #6b7280);
}

.bsp-cart-drawer__shipping-text--success {
  color: #1a1a1a;
}

.bsp-cart-drawer__progress {
  height: 3px;
  background: var(--bsp-cart-progress-bg, #e5e0d8);
  border-radius: 0;
  overflow: hidden;
}

.bsp-cart-drawer__progress-bar {
  display: block;
  height: 100%;
  background: var(--bsp-cart-progress, #1a1a1a);
  border-radius: 0;
  transition: width 0.35s ease;
}

.bsp-cart-drawer__progress-label {
  margin: 8px 0 0;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.bsp-cart-drawer__progress-label span {
  margin: 0 4px;
}

/* Scrollable body */
.bsp-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px;
}

.bsp-cart-drawer__empty {
  padding: 48px 0;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Cart items */
.bsp-cart-drawer__items {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}

.bsp-cart-drawer__item {
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  align-items: start;
}

.bsp-cart-drawer__item-thumb {
  background: #f5f3f0;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.bsp-cart-drawer__item-thumb img {
  width: 80px;
  height: 96px;
  object-fit: cover;
  display: block;
}

.bsp-cart-drawer__item-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.bsp-cart-drawer__item-title a {
  color: var(--bsp-cart-title, #1a1a1a);
  text-decoration: none;
}

.bsp-cart-drawer__item-title a:hover {
  opacity: 0.7;
}

.bsp-cart-drawer__item-meta {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.bsp-cart-drawer__item-price {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bsp-cart-price, #1a1a1a);
}

.bsp-cart-drawer__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 0;
  overflow: hidden;
}

.bsp-cart-drawer__qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.bsp-cart-drawer__qty-btn:hover {
  background: #f5f3f0;
}

.bsp-cart-drawer__qty-value {
  min-width: 36px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-left: 1px solid rgba(26, 26, 26, 0.15);
  border-right: 1px solid rgba(26, 26, 26, 0.15);
  line-height: 32px;
}

.bsp-cart-drawer__remove {
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.bsp-cart-drawer__remove:hover {
  color: #1a1a1a;
}

/* Upsell */
.bsp-cart-drawer__upsell {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.bsp-cart-drawer__upsell-title {
  margin: 0 0 14px;
  font-family: var(--bsp-font-heading);
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
}

.bsp-cart-drawer__upsell-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
}

.bsp-cart-drawer__upsell-thumb {
  background: #f5f3f0;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.bsp-cart-drawer__upsell-thumb img {
  width: 72px;
  height: 88px;
  object-fit: cover;
}

.bsp-cart-drawer__upsell-name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--bsp-cart-title, #1a1a1a);
  text-decoration: none;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.bsp-cart-drawer__upsell-meta {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.bsp-cart-drawer__upsell-price {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
}

.bsp-cart-drawer__upsell-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 36px;
  padding: 0 14px;
  background: var(--bsp-cart-upsell-btn-bg, #1a1a1a);
  color: var(--bsp-cart-upsell-btn-text, #fff) !important;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.bsp-cart-drawer__upsell-add:hover {
  opacity: 0.85;
  color: var(--bsp-cart-upsell-btn-text, #fff) !important;
}

/* Summary */
.bsp-cart-drawer__summary {
  padding: 20px 28px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  flex-shrink: 0;
  background: #fff;
}

.bsp-cart-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.bsp-cart-drawer__row strong {
  color: #1a1a1a;
  font-weight: 500;
}

.bsp-cart-drawer__row--total {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  font-size: 13px;
  color: #1a1a1a;
}

.bsp-cart-drawer__row--total strong,
.bsp-cart-drawer__total {
  font-family: var(--bsp-font-heading);
  font-size: 20px;
  font-weight: 400;
}

.bsp-cart-drawer__info-icon {
  vertical-align: middle;
  margin-left: 2px;
  color: #9ca3af;
}

/* Actions */
.bsp-cart-drawer__actions {
  padding: 0 28px 20px;
  display: grid;
  gap: 10px;
  flex-shrink: 0;
  background: #fff;
}

.bsp-cart-drawer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.bsp-cart-drawer__btn--checkout {
  background: var(--bsp-cart-checkout-bg, #1a1a1a);
  color: var(--bsp-cart-checkout-text, #fff) !important;
  border: 0;
}

.bsp-cart-drawer__btn--checkout:hover {
  opacity: 0.88;
  color: var(--bsp-cart-checkout-text, #fff) !important;
}

.bsp-cart-drawer__btn--view-cart {
  background: var(--bsp-cart-view-bg, transparent);
  color: var(--bsp-cart-view-text, #1a1a1a) !important;
  border: 1px solid var(--bsp-cart-view-border, #1a1a1a);
}

.bsp-cart-drawer__btn--view-cart:hover {
  background: #f5f3f0;
}

/* Trust badges */
.bsp-cart-drawer__trust {
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex-shrink: 0;
  background: #faf9f7;
}

.bsp-cart-drawer__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.bsp-cart-drawer__trust-item svg {
  color: var(--bsp-cart-trust-icon, #1a1a1a);
  flex-shrink: 0;
}

.bsp-cart-drawer__trust-item span {
  color: var(--bsp-cart-trust-text, #6b7280);
}

body.bsp-cart-drawer-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .bsp-cart-drawer__header,
  .bsp-cart-drawer__shipping,
  .bsp-cart-drawer__body,
  .bsp-cart-drawer__summary,
  .bsp-cart-drawer__actions,
  .bsp-cart-drawer__trust {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bsp-cart-drawer__trust {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bsp-cart-drawer__trust-item {
    flex-direction: row;
    text-align: left;
    font-size: 10px;
  }
}
