/* ── CART DRAWER ──────────────────────────────────────────────────── */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: #fff;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 1px solid #d4d4d4;
}

.cart-drawer.active {
  transform: translateX(0);
}

/* ── Header ── */

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.cart-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
}

.cart-close {
  background: none;
  border: none;
  font-size: 22px;
  font-weight: 300;
  color: #000;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.45;
  transition: opacity 0.16s;
  cursor: url('cursor/crosshair-cursor.svg') 16 16, crosshair;
}

.cart-close:hover { opacity: 1; }

/* ── Free shipping progress ── */

.cart-shipping {
  padding: 14px 24px 12px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.cart-shipping-msg {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.5;
}

.cart-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-progress-track {
  flex: 1;
  height: 3px;
  background: #e5e5e5;
  border-radius: 2px;
  overflow: hidden;
}

.cart-progress-fill {
  height: 100%;
  background: #000;
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}

.cart-truck-icon {
  flex-shrink: 0;
  color: #000;
  display: flex;
  align-items: center;
  opacity: 0.7;
}

/* ── Body ── */

.cart-body {
  flex: 1;
  overflow-y: auto;
}

/* Empty state */

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 22px;
  padding: 48px 24px;
}

.cart-empty p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #999;
  letter-spacing: 0.04em;
}

.cart-continue {
  padding: 14px 28px;
  background: #000;
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: url('cursor/crosshair-cursor.svg') 16 16, crosshair;
  transition: opacity 0.18s;
  border-radius: 0;
}

.cart-continue:hover { opacity: 0.72; }

/* Line items */

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #f2f2f2;
}

.cart-item-img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f8f8f8;
  mix-blend-mode: multiply;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: #aaa;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-item-qty button {
  background: none;
  border: 1px solid #d4d4d4;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  color: #000;
  cursor: url('cursor/crosshair-cursor.svg') 16 16, crosshair;
  transition: background 0.14s;
  border-radius: 0;
}

.cart-item-qty button:hover { background: #f0f0f0; }

.cart-item-qty span {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #000;
  min-width: 16px;
  text-align: center;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.cart-item-price {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.01em;
}

.cart-item-delete {
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 300;
  color: #ccc;
  padding: 0;
  line-height: 1;
  cursor: url('cursor/crosshair-cursor.svg') 16 16, crosshair;
  transition: color 0.15s;
}

.cart-item-delete:hover { color: #000; }

/* ── Footer ── */

.cart-footer {
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.cart-checkout-btn {
  width: 100%;
  padding: 17px 0;
  background: #000;
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: url('cursor/crosshair-cursor.svg') 16 16, crosshair;
  transition: opacity 0.18s;
  border-radius: 0;
}

.cart-checkout-btn:hover { opacity: 0.72; }

/* ── Responsive ── */

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