/* =============================================
   STRAPZY'S — Cart Styles
   ============================================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── PANEL ── */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100dvh;
  background: #0a0a0a;
  border-left: 1px solid #1e1e1e;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-panel.open {
  transform: translateX(0);
}

/* ── HEADER ── */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}
.cart-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 3px;
}
.cart-close {
  background: none;
  border: none;
  color: var(--grey-400);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 8px;
  transition: color 0.2s;
}
.cart-close:hover { color: var(--white); }

/* ── BODY ── */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--grey-400);
  font-size: 14px;
}

/* ── ITEMS ── */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  background: #0f0f0f;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.4;
}
.cart-item-detail {
  font-size: 12px;
  color: var(--grey-400);
  line-height: 1.7;
}
.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.cart-item-price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}
.cart-item-remove {
  background: none;
  border: none;
  color: #444;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.cart-item-remove:hover { color: var(--white); }

/* ── UPSELL ── */
.cart-upsell {
  margin: 16px 0 4px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 18px 18px 16px;
}
.cart-upsell-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-upsell-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cart-upsell-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c8ff00;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.cart-upsell-text strong {
  font-size: 14px;
  color: var(--white);
  line-height: 1.3;
}
.cart-upsell-price {
  font-size: 12px;
  color: var(--grey-400);
}
.cart-upsell-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-upsell-select {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: var(--white);
  font-size: 12px;
  padding: 9px 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cart-upsell-select:focus { border-color: var(--accent); }
.cart-upsell-btn {
  background: #c8ff00;
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.cart-upsell-btn:hover { opacity: 0.88; }
.cart-upsell-note {
  margin: 0;
  font-size: 11px;
  color: var(--grey-400);
}

/* ── FOOTER ── */
.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid #1a1a1a;
  flex-shrink: 0;
}
.cart-totals { margin-bottom: 20px; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--grey-400);
  margin-bottom: 8px;
}
.cart-total-final {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1e1e1e;
}
.cart-email-wrap { margin-bottom: 12px; }
.cart-email-input {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.cart-email-input::placeholder { color: #444; }
.cart-email-input:focus {
  outline: none;
  border-color: var(--accent);
}
.cart-checkout-btn {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ── NAV CART ICON ── */
.nav-cart {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: var(--white);
  margin-right: 4px;
  transition: color 0.2s;
}
.nav-cart:hover { color: var(--accent); }
.nav-cart svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 768px) {
  .cart-panel { width: 92vw; }
}
