/**
 * Quick View modal — Eyewearista child theme.
 * Pas de variables CSS du theme parent — autonome pour minimiser
 * les dépendances de cascade.
 */

.eyewearista-qv-btn {
  margin-top: 0.5rem;
  display: inline-block;
  background: transparent;
  border: 1px solid currentColor;
  padding: 0.4em 1em;
  font-size: 0.85em;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.eyewearista-qv-btn:hover,
.eyewearista-qv-btn:focus {
  background: currentColor;
  color: #fff;
  outline: none;
}

body.eyew-qv-open {
  overflow: hidden;
}

.eyew-qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.62);
  backdrop-filter: blur(2px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: eyew-qv-fade 0.16s ease-out;
}
.eyew-qv-overlay.eyew-qv--closing {
  animation: eyew-qv-fade 0.16s ease-in reverse;
  pointer-events: none;
}
@keyframes eyew-qv-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.eyew-qv-box {
  background: #fff;
  border-radius: 6px;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: eyew-qv-slide 0.18s ease-out;
}
@keyframes eyew-qv-slide {
  from { transform: translateY(8px); opacity: 0.5; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (max-width: 760px) {
  .eyew-qv-box {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
}

.eyew-qv-gallery {
  background: #f7f6f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  min-height: 320px;
  max-height: 92vh;
  overflow: hidden;
}
.eyew-qv-main-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  margin: auto 0;
}
.eyew-qv-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.eyew-qv-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}
.eyew-qv-thumb:hover,
.eyew-qv-thumb:focus {
  opacity: 1;
  outline: none;
}
.eyew-qv-thumb--active {
  opacity: 1;
  border-color: #222;
}
.eyew-qv-no-image {
  width: 100%;
  height: 240px;
  background: #ddd;
}

.eyew-qv-info {
  padding: 2rem 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.eyew-qv-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.15s;
}
.eyew-qv-close:hover,
.eyew-qv-close:focus {
  background: #eee;
  color: #000;
  outline: none;
}

.eyew-qv-brand {
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 0.4rem;
}
.eyew-qv-title {
  font-size: 1.55rem;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}
.eyew-qv-price {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.eyew-qv-price del { color: #999; margin-right: 0.3em; font-size: 0.85em; }
.eyew-qv-price ins { text-decoration: none; color: #b50; }
.eyew-qv-desc {
  color: #444;
  line-height: 1.55;
  margin: 0 0 1.2rem;
}
.eyew-qv-oos {
  color: #b50;
  font-weight: 600;
  margin-bottom: 1rem;
}

.eyew-qv-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
  flex-wrap: wrap;
  align-items: center;
}
.eyew-qv-cta {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 0.7em 1.5em;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.eyew-qv-cta:hover,
.eyew-qv-cta:focus {
  background: #444;
}
.eyew-qv-link {
  color: #555;
  text-decoration: underline;
  font-size: 0.9em;
}
.eyew-qv-link:hover { color: #000; }

.eyew-qv-loader,
.eyew-qv-error {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 6px;
  font-size: 1rem;
  color: #444;
}
.eyew-qv-error {
  border: 1px solid #fcc;
  color: #b00;
}
