/* ═══════ FLOATING CART SIDEBAR ═══════ */

/* Cart icon in nav */
.bc-cart-icon {
  position: relative;
  color: rgba(255,254,249,.6);
  font-size: 1rem;
  cursor: pointer;
  transition: color .3s;
  display: flex;
  align-items: center;
  gap: 2px;
}
.bc-cart-icon:hover { color: var(--gold); }

/* Badge */
.bc-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.bc-cart-badge.show {
  opacity: 1;
  transform: scale(1);
}

/* Overlay */
.bc-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.bc-cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar */
.bc-cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  background: var(--dark);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 40px rgba(0,0,0,.3);
}
.bc-cart-sidebar.open {
  transform: translateX(0);
}

/* Header */
.bc-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(255,254,249,.08);
}
.bc-cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
}
.bc-cart-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,254,249,.5);
  font-size: 1.2rem;
  border-radius: 4px;
  transition: all .2s;
}
.bc-cart-close:hover {
  background: rgba(255,254,249,.08);
  color: var(--white);
}

/* Items container */
.bc-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px;
}
.bc-cart-items::-webkit-scrollbar { width: 4px; }
.bc-cart-items::-webkit-scrollbar-track { background: transparent; }
.bc-cart-items::-webkit-scrollbar-thumb { background: rgba(201,169,110,.3); border-radius: 2px; }

/* Empty state */
.bc-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,254,249,.4);
  text-align: center;
  padding: 40px 20px;
}
.bc-cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .4;
}
.bc-cart-empty p {
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Cart item */
.bc-cart-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,254,249,.06);
}
.bc-cart-item:last-child { border-bottom: none; }

.bc-cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dark-surface);
}
.bc-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-cart-item-info {
  flex: 1;
  min-width: 0;
}
.bc-cart-item-title {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-cart-item-price {
  font-size: .82rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}

/* Quantity controls */
.bc-cart-qty {
  display: flex;
  align-items: center;
  gap: 0;
}
.bc-cart-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,254,249,.06);
  color: rgba(255,254,249,.7);
  font-size: .85rem;
  border-radius: 3px;
  transition: all .2s;
}
.bc-cart-qty button:hover {
  background: var(--gold);
  color: var(--white);
}
.bc-cart-qty span {
  width: 36px;
  text-align: center;
  font-size: .82rem;
  color: var(--white);
  font-weight: 500;
}

/* Remove button */
.bc-cart-item-remove {
  align-self: flex-start;
  font-size: .7rem;
  color: rgba(255,254,249,.3);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
  flex-shrink: 0;
  padding-top: 4px;
}
.bc-cart-item-remove:hover { color: #e74c3c; }

/* Footer */
.bc-cart-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(255,254,249,.08);
}

.bc-cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: .82rem;
  color: rgba(255,254,249,.55);
}
.bc-cart-summary-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,254,249,.08);
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}
.bc-cart-summary-row.total .bc-cart-total-val {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.bc-cart-summary-row.discount {
  color: #4ecdc4;
}

.bc-cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 15px 0;
  margin-top: 16px;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 3px;
  text-align: center;
  transition: all .3s;
  box-shadow: 0 4px 24px rgba(201,169,110,.3);
}
.bc-cart-checkout-btn:hover {
  background: var(--gold-light);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(201,169,110,.4);
}

/* Responsive */
@media (max-width: 480px) {
  .bc-cart-sidebar { width: 100vw; }
  .bc-cart-header, .bc-cart-items, .bc-cart-footer { padding-left: 20px; padding-right: 20px; }
}
