/* Cart Drawer Styles */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  height: 100dvh;
  background: #101216;
  color: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.55);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0d10;
}
.cart-header h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--primary-color, #e2b857);
  letter-spacing: 0.5px;
}
.cart-close {
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  color: #ccc;
  transition: color 0.2s ease;
}
.cart-close:hover {
  color: #fff;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: #101216;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.cart-item .ci-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  font-family: "Montserrat", sans-serif;
}
.cart-item .ci-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cart-item .ci-price {
  font-weight: 700;
  margin-top: 4px;
  color: var(--primary-light, #f3d98b);
}

.ci-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.ci-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid #333842;
  background: #1a1e24;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ci-qty button:hover {
  background: #252a33;
  border-color: var(--primary-color, #e2b857);
}
.ci-qty input {
  width: 38px;
  text-align: center;
  border: 1px solid #333842;
  border-radius: 4px;
  height: 26px;
  background: #1a1e24;
  color: #fff;
  font-weight: 600;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ci-qty input::-webkit-outer-spin-button,
.ci-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ci-remove {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 12px;
  margin-top: 8px;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.ci-remove:hover {
  color: #ef4444;
}

.cart-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  background: #0b0d10;
}
.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cart-subtotal span {
  color: #9ca3af;
  font-size: 15px;
}
.cart-subtotal strong {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.cart-transfer-info {
  margin-bottom: 16px;
  text-align: center;
  padding: 9px 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  margin-top: 8px;
}
.cart-transfer-info span {
  color: var(--accent-color, #d4af37);
  font-size: 12.5px;
  font-weight: 500;
}
.cart-transfer-info i {
  margin-right: 5px;
}

.cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.cart-clear {
  flex: 0.7;
  background: #1a1e24;
  color: #d1d5db;
  border: 1px solid #333842;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.cart-clear:hover {
  background: #252a33;
  border-color: var(--primary-color, #e2b857);
  color: #fff;
}
.cart-checkout {
  flex: 1.3;
  background: var(--primary-color, #e2b857);
  color: #1a1406;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  font-family: "Montserrat", sans-serif;
}
.cart-checkout:hover {
  background: var(--primary-dark, #c69736);
  color: #fff;
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }
}

/* Empty cart state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #8b929e;
  height: 100%;
}
.cart-empty i {
  font-size: 48px;
  margin-bottom: 20px;
  color: #333842;
}
.cart-empty p {
  font-size: 16px;
  margin-bottom: 20px;
}
.cart-empty button {
  background: var(--primary-color, #e2b857);
  color: #1a1406;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}
.cart-empty button:hover {
  background: var(--primary-dark, #c69736);
  color: #fff;
}
