/* WebsiteLaunch Cart Drawer */
#wl-cart-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 99998; opacity: 0; transition: opacity 0.3s;
}
#wl-cart-overlay.open { display: block; opacity: 1; }

#wl-cart-drawer {
  position: fixed; top: 0; right: 0; width: 420px; max-width: 90vw; height: 100%;
  background: #111; color: #eee; z-index: 99999; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 30px rgba(0,0,0,0.5); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#wl-cart-drawer.open { transform: translateX(0); }

.wl-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid #222;
}
.wl-cart-header h3 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
#wl-cart-badge {
  background: linear-gradient(135deg, #667eea, #764ba2); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
#wl-cart-close {
  background: none; border: none; color: #888; font-size: 1.2rem; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
}
#wl-cart-close:hover { color: #fff; background: #222; }

.wl-cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.wl-cart-empty { text-align: center; color: #666; padding: 3rem 1rem; font-size: 0.95rem; }

.wl-cart-item {
  display: flex; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid #1a1a1a;
}
.wl-cart-item:last-child { border-bottom: none; }
.wl-cart-item-img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #1a1a1a; }
.wl-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.wl-cart-item-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

.wl-cart-item-details { flex: 1; min-width: 0; }
.wl-cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.wl-cart-item-variant { font-size: 0.75rem; color: #888; }
.wl-cart-item-offer { font-size: 0.7rem; color: #667eea; background: rgba(102,126,234,0.1); padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 2px; }
.wl-cart-item-price { font-size: 0.85rem; margin-top: 4px; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.wl-cart-compare { text-decoration: line-through; color: #666; font-size: 0.8rem; }
.wl-cart-savings { font-size: 0.7rem; color: #4ade80; background: rgba(74,222,128,0.1); padding: 1px 6px; border-radius: 4px; }

.wl-cart-item-qty {
  display: flex; align-items: center; gap: 0; margin-top: 0.5rem;
  border: 1px solid #333; border-radius: 6px; width: fit-content;
}
.wl-cart-item-qty button {
  background: none; border: none; color: #ccc; width: 28px; height: 28px;
  cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}
.wl-cart-item-qty button:hover { background: #222; color: #fff; }
.wl-cart-item-qty span { min-width: 24px; text-align: center; font-size: 0.85rem; font-weight: 600; }

.wl-cart-item-total { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; min-width: 60px; }
.wl-cart-item-total > div { font-weight: 600; font-size: 0.9rem; }
.wl-cart-remove { background: none; border: none; cursor: pointer; font-size: 0.8rem; opacity: 0.4; padding: 4px; }
.wl-cart-remove:hover { opacity: 1; }

.wl-cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid #222; }
.wl-cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1rem; }
.wl-cart-subtotal span:last-child { font-weight: 700; font-size: 1.1rem; }

.wl-cart-checkout-btn {
  width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; cursor: pointer;
  transition: all 0.2s;
}
.wl-cart-checkout-btn:hover { box-shadow: 0 4px 20px rgba(102,126,234,0.4); transform: translateY(-1px); }

.wl-cart-continue {
  width: 100%; padding: 10px; border: none; background: none; color: #888; cursor: pointer;
  font-size: 0.85rem; margin-top: 0.5rem;
}
.wl-cart-continue:hover { color: #ccc; }

/* Floating Cart Button */
#wl-cart-fab {
  display: none; position: fixed; bottom: 24px; right: 24px; z-index: 99997;
  background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none;
  width: 56px; height: 56px; border-radius: 50%; font-size: 1.3rem;
  cursor: pointer; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(102,126,234,0.4); transition: all 0.2s;
}
#wl-cart-fab:hover { transform: scale(1.08); }
#wl-cart-fab-count {
  position: absolute; top: -4px; right: -4px; background: #f87171; color: #fff;
  font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

@media (max-width: 480px) {
  #wl-cart-drawer { width: 100vw; max-width: 100vw; }
}
