/* ─── Product Quick View Modal ──────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #1c3142; border: 1px solid #2d465c;
  border-radius: 16px; width: 480px; max-width: 92vw;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: #152330; border: 1px solid #2d465c;
  color: #89a2b8; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; z-index: 1;
}
.modal-close:hover { color: #ef4444; border-color: #ef4444; }

.modal-image {
  height: 220px; display: flex; align-items: center;
  justify-content: center; font-size: 5rem;
  border-radius: 16px 16px 0 0; position: relative;
}
.modal-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(239,68,68,0.9); color: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
}

.modal-body { padding: 20px 24px 24px; }

.modal-category {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #0ea5be; font-weight: 600; margin-bottom: 4px;
}
.modal-name {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 8px;
  line-height: 1.3;
}
.modal-price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px;
}
.modal-price-current {
  font-size: 1.6rem; font-weight: 800; color: #f5d742;
}
.modal-price-original {
  font-size: 0.9rem; color: #4b6580; text-decoration: line-through;
}
.modal-stock {
  font-size: 0.85rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.modal-stock.in { color: #10b981; }
.modal-stock.out { color: #ef4444; }

.modal-desc {
  font-size: 0.88rem; color: #89a2b8; line-height: 1.6;
  margin-bottom: 16px; max-height: 60px; overflow: hidden;
}

.modal-qty-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 6px;
}
.modal-qty-row label { font-size: 0.85rem; color: #89a2b8; }
.modal-qty {
  display: flex; align-items: center; gap: 0;
  border: 1px solid #2d465c; border-radius: 8px; overflow: hidden;
}
.modal-qty button {
  width: 36px; height: 38px;
  background: #152330; border: none; color: #eef3f7;
  font-size: 1.1rem; cursor: pointer;
  transition: background 0.15s;
}
.modal-qty button:hover { background: #2d465c; }
.modal-qty input {
  width: 48px; text-align: center; border: none;
  border-left: 1px solid #2d465c; border-right: 1px solid #2d465c;
  background: transparent; color: #eef3f7; font-size: 1rem;
  height: 38px;
}
.modal-qty input:focus { outline: none; }

.modal-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; margin-bottom: 16px;
  border-top: 1px solid #2d465c; border-bottom: 1px solid #2d465c;
}
.modal-total span:first-child { font-size: 0.9rem; color: #89a2b8; }
.modal-total span:last-child {
  font-size: 1.4rem; font-weight: 800; color: #f5d742;
}

.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; padding: 12px; font-size: 0.95rem; justify-content: center; }
.modal-buy-now {
  background: linear-gradient(135deg, #f5d742, #e0c030);
  color: #0f1d28; font-weight: 700;
}
.modal-buy-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,215,66,0.3);
}
