/* Sticky Wishlist Drawer — luxury fashion */

.bsp-wishlist-drawer {
  position: fixed;
  inset: 0;
  z-index: 100001;
  pointer-events: none;
}

.bsp-wishlist-drawer.is-open {
  pointer-events: auto;
}

.bsp-wishlist-drawer__overlay {
  position: absolute;
  inset: 0;
  background: var(--bsp-wishlist-overlay, rgba(26, 26, 26, 0.45));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bsp-wishlist-drawer.is-open .bsp-wishlist-drawer__overlay {
  opacity: 1;
}

.bsp-wishlist-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(100%, var(--bsp-wishlist-width, 440px));
  background: var(--bsp-wishlist-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);
}

.bsp-wishlist-drawer.is-open .bsp-wishlist-drawer__panel {
  transform: translateX(0);
}

.bsp-wishlist-drawer__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bsp-wishlist-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.bsp-wishlist-drawer__title {
  margin: 0;
  font-family: var(--bsp-font-heading);
  font-size: var(--bsp-wishlist-title-size, 22px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--bsp-wishlist-title, #1a1a1a);
}

.bsp-wishlist-drawer__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.bsp-wishlist-drawer__close:hover {
  color: #1a1a1a;
}

.bsp-wishlist-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px;
}

.bsp-wishlist-drawer__top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bsp-wishlist-text, #6b7280);
}

.bsp-wishlist-drawer__move-all {
  border: 1px solid var(--bsp-wishlist-accent, #1a1a1a);
  background: transparent;
  color: var(--bsp-wishlist-accent, #1a1a1a);
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.bsp-wishlist-drawer__move-all:hover {
  background: #1a1a1a;
  color: #fff;
}

.bsp-wishlist-drawer__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsp-wishlist-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);
}

.bsp-wishlist-drawer__thumb {
  background: var(--bsp-wishlist-thumb-bg, #f5f3f0);
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.bsp-wishlist-drawer__thumb img {
  width: 80px;
  height: 96px;
  object-fit: cover;
}

.bsp-wishlist-drawer__name {
  color: var(--bsp-wishlist-title, #1a1a1a);
  text-decoration: none;
  font-size: var(--bsp-wishlist-name-size, 13px);
  line-height: 1.4;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.bsp-wishlist-drawer__name:hover {
  opacity: 0.7;
}

.bsp-wishlist-drawer__meta {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.bsp-wishlist-drawer__price {
  margin: 0 0 6px;
  font-size: var(--bsp-wishlist-price-size, 13px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--bsp-wishlist-price, #1a1a1a);
}

.bsp-wishlist-drawer__stock {
  margin: 0 0 10px;
  color: var(--bsp-wishlist-stock, #6b7280);
  font-size: var(--bsp-wishlist-stock-size, 10px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bsp-wishlist-drawer__stock--out {
  color: var(--bsp-wishlist-stock-out, #9ca3af);
}

.bsp-wishlist-drawer__move {
  border: 1px solid var(--bsp-wishlist-accent, #1a1a1a);
  background: var(--bsp-wishlist-accent, #1a1a1a);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0;
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.bsp-wishlist-drawer__move:hover {
  opacity: 0.88;
}

.bsp-wishlist-drawer__remove {
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.bsp-wishlist-drawer__remove:hover {
  color: #1a1a1a;
}

.bsp-wishlist-drawer__summary {
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  padding: 20px 28px 12px;
  background: #fff;
}

.bsp-wishlist-drawer__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--bsp-wishlist-title, #1a1a1a);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.bsp-wishlist-drawer__row strong {
  font-weight: 500;
}

.bsp-wishlist-drawer__row--total {
  font-family: var(--bsp-font-heading);
  font-size: 18px;
  font-weight: 400;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.bsp-wishlist-drawer__note {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.bsp-wishlist-drawer__actions {
  padding: 12px 28px 24px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.bsp-wishlist-drawer__btn {
  min-height: 52px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.bsp-wishlist-drawer__btn--primary {
  background: var(--bsp-wishlist-primary-bg, #1a1a1a);
  color: var(--bsp-wishlist-primary-text, #fff) !important;
}

.bsp-wishlist-drawer__btn--primary:hover {
  opacity: 0.88;
}

.bsp-wishlist-drawer__btn--ghost {
  background: var(--bsp-wishlist-ghost-bg, transparent);
  border: 1px solid var(--bsp-wishlist-ghost-border, #1a1a1a);
  color: var(--bsp-wishlist-ghost-text, #1a1a1a) !important;
}

.bsp-wishlist-drawer__btn--ghost:hover {
  background: #f5f3f0;
}

.bsp-wishlist-drawer__empty {
  padding: 48px 0;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  letter-spacing: 0.02em;
}

body.bsp-wishlist-drawer-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .bsp-wishlist-drawer__header,
  .bsp-wishlist-drawer__body,
  .bsp-wishlist-drawer__summary,
  .bsp-wishlist-drawer__actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bsp-wishlist-drawer__title {
    font-size: max(18px, calc(var(--bsp-wishlist-title-size, 22px) * 0.85));
  }
}
