/* ==========================================================
   Quick View — Product Details Modal
   Non-invasive: only affects the eye button + modal overlay.
   ========================================================== */

/* Eye icon on product cards */
.product-card .pc-media { position: relative; }
.pc-quickview {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  color: #0b4a8f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  opacity: 0;
  transform: translateY(-6px) scale(.9);
  transition: opacity .28s ease, transform .28s ease, background .2s ease, color .2s ease;
}
.product-card:hover .pc-quickview,
.product-card:focus-within .pc-quickview {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.pc-quickview:hover { background: #0b4a8f; color: #fff; }
@media (max-width: 768px){
  .pc-quickview { opacity: 1; transform: none; width: 38px; height: 38px; font-size: 14px; }
}

/* Overlay */
.qv-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 20, 40, .58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.qv-overlay.is-open { opacity: 1; visibility: visible; }

/* Modal */
.qv-modal {
  background: #fff;
  width: 100%;
  max-width: 1040px;
  max-height: 92vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  transform: scale(.94);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.9,.25,1.15), opacity .3s ease;
}
.qv-overlay.is-open .qv-modal { transform: scale(1); opacity: 1; }

/* Media side */
.qv-media {
  position: relative;
  background: #f2f6fb;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.qv-media img {
  width: 100%;
  height: 100%;
  max-height: 92vh;
  object-fit: contain;
  padding: 24px;
  transition: opacity .25s ease;
}
.qv-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.95);
  color: #0b4a8f;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.qv-nav:hover { background: #0b4a8f; color: #fff; }
.qv-prev { left: 12px; }
.qv-next { right: 12px; }
.qv-thumbs {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; gap: 8px; justify-content: center;
}
.qv-thumbs button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(11,74,143,.3); cursor: pointer; padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.qv-thumbs button.is-active { background: #0b4a8f; transform: scale(1.25); }

/* Body side */
.qv-body {
  padding: 32px 30px 28px;
  overflow-y: auto;
  max-height: 92vh;
}
.qv-cat {
  display: inline-block;
  background: #eaf2fb;
  color: #0b4a8f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.qv-title { font-size: 26px; margin: 0 0 10px; color: #0b1e3a; line-height: 1.2; }
.qv-desc  { color: #4b5b74; margin: 0 0 18px; line-height: 1.6; }
.qv-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #0b4a8f;
  margin: 18px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.qv-section-title::before {
  content: ""; width: 18px; height: 2px; background: #0b4a8f; border-radius: 2px;
}
.qv-specs { list-style: none; padding: 0; margin: 0; }
.qv-specs li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed #e2e8f0;
  font-size: 14px; color: #2b3a55;
}
.qv-specs li span:first-child { color: #6b7a92; }
.qv-specs li span:last-child  { font-weight: 600; }
.qv-list { padding-left: 18px; margin: 0; color: #2b3a55; }
.qv-list li { padding: 4px 0; line-height: 1.55; font-size: 14px; }
.qv-cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.qv-cta .btn { text-decoration: none; }

/* Close */
.qv-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%; border: 0;
  background: #fff;
  color: #0b1e3a;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  z-index: 4;
  transition: transform .25s ease, background .2s ease, color .2s ease;
}
.qv-close:hover { transform: rotate(90deg); background: #0b4a8f; color: #fff; }

/* Responsive */
@media (max-width: 860px){
  .qv-modal { grid-template-columns: 1fr; max-height: 94vh; }
  .qv-media { min-height: 260px; max-height: 42vh; }
  .qv-media img { max-height: 42vh; padding: 18px; }
  .qv-body { padding: 22px 20px 24px; }
  .qv-title { font-size: 22px; }
}
@media (max-width: 480px){
  .qv-overlay { padding: 10px; }
  .qv-modal { border-radius: 12px; }
  .qv-close { width: 36px; height: 36px; top: 8px; right: 8px; }
  .qv-nav { width: 36px; height: 36px; }
}

/* Prevent body scroll while open */
body.qv-lock { overflow: hidden; }
