/* ============================================================
   EON LABS — Sliding Cart
   ============================================================ */

/* Overlay */
.eon-cart-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(12, 26, 46, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s;
}
.eon-cart-overlay.open {
  opacity: 1; visibility: visible;
}

/* Panel */
.eon-cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 90vw;
  z-index: 999;
  background: var(--white);
  box-shadow: -8px 0 32px rgba(12, 26, 46, 0.12);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.eon-cart-panel.open {
  transform: translateX(0);
}

/* Header */
.eon-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.eon-cart-header h3 {
  font-family: var(--f-cond); font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy);
}
.eon-cart-close {
  width: 36px; height: 36px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: all 0.15s;
}
.eon-cart-close:hover { background: var(--off); color: var(--ink-1); }

/* Cart Content */
.eon-mini-cart-content {
  flex: 1; overflow-y: auto; padding: 0;
}

/* Free shipping bar */
.eon-shipping-bar {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.eon-shipping-text {
  font-family: var(--f-body); font-size: 12px;
  color: var(--ink-2); margin-bottom: 6px;
}
.eon-shipping-text strong { color: var(--green); font-weight: 600; }
.eon-shipping-track {
  height: 4px; background: var(--border);
  border-radius: 2px; overflow: hidden;
}
.eon-shipping-progress {
  height: 100%; background: var(--green);
  border-radius: 2px; transition: width 0.4s ease;
}

/* Cart Items */
.eon-cart-items { padding: 0; }
.eon-cart-item {
  display: flex; gap: 14px; padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.eon-cart-item-img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: var(--r); background: var(--off);
  overflow: hidden; border: 1px solid var(--border);
}
.eon-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.eon-cart-item-info { flex: 1; min-width: 0; }
.eon-cart-item-name {
  font-family: var(--f-cond); font-size: 14px; font-weight: 700;
  text-transform: uppercase; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eon-cart-item-variant {
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-3);
  margin-top: 2px;
}
.eon-cart-item-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.eon-cart-item-qty {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden;
}
.eon-cart-item-qty button {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-2); background: var(--off);
  transition: background 0.15s;
}
.eon-cart-item-qty button:hover { background: var(--border); }
.eon-cart-item-qty span {
  width: 32px; text-align: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
}
.eon-cart-item-price {
  font-family: var(--f-mono); font-size: 14px; font-weight: 500;
  color: var(--navy);
}
.eon-cart-item-remove {
  font-family: var(--f-body); font-size: 11px; color: var(--ink-4);
  margin-top: 4px; cursor: pointer; transition: color 0.15s;
}
.eon-cart-item-remove:hover { color: #c0392b; }

/* Empty Cart */
.eon-cart-empty {
  padding: 60px 24px; text-align: center;
}
.eon-cart-empty-icon { font-size: 40px; margin-bottom: 16px; color: var(--ink-4); }
.eon-cart-empty p {
  font-family: var(--f-body); font-size: 14px; color: var(--ink-3);
}

/* Footer */
.eon-cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.eon-cart-subtotal {
  display: flex; justify-content: space-between;
  margin-bottom: 16px;
}
.eon-cart-subtotal-label {
  font-family: var(--f-body); font-size: 14px; font-weight: 500;
  color: var(--ink-2);
}
.eon-cart-subtotal-value {
  font-family: var(--f-mono); font-size: 18px; font-weight: 500;
  color: var(--navy);
}
.eon-cart-buttons { display: flex; flex-direction: column; gap: 8px; }
.eon-cart-btn-checkout {
  width: 100%; height: 48px;
  background: var(--navy); color: white;
  font-family: var(--f-cond); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: var(--r); border: none; cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.eon-cart-btn-checkout:hover { background: var(--blue); }
.eon-cart-btn-cart {
  width: 100%; height: 42px;
  background: transparent; color: var(--ink-2);
  font-family: var(--f-cond); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--border); border-radius: var(--r);
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.eon-cart-btn-cart:hover { border-color: var(--navy); color: var(--navy); }
