/* Quick View modal — see templates/components/quick_view.html. Same
   open/close mechanics as video-lightbox.css (class-driven transition,
   hidden attribute toggled by JS after the transition settles). Content
   panel styled after the PDP's own info column (product-detail.css) so
   it doesn't introduce a third visual language for "product info" on the
   site. */
.quick-view {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.quick-view__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 6, .88);
  opacity: 0;
  transition: opacity .25s ease;
}
.quick-view.is-open .quick-view__backdrop { opacity: 1; }
.quick-view__frame {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: min(680px, 90vh);
  overflow-y: auto;
  background: var(--color-charcoal-secondary);
  border-radius: var(--radius-category-card);
  opacity: 0;
  transform: scale(.96);
  transition: opacity .25s ease, transform .25s ease;
}
.quick-view.is-open .quick-view__frame { opacity: 1; transform: scale(1); }
.quick-view__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,15,15,.55); border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  color: var(--color-beige-light);
  cursor: pointer;
}
.quick-view__close:hover { border-color: var(--color-gold-accent); color: var(--color-gold-accent); }

.quick-view__body { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; }
.quick-view__state {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 80px 24px;
  color: var(--color-text-grey);
  font-size: 13.5px; text-align: center;
}
.quick-view__state a { color: var(--color-gold-accent); }

.quick-view__media { background: var(--color-beige-light); border-radius: var(--radius-category-card) 0 0 var(--radius-category-card); overflow: hidden; }
.quick-view__media img { width: 100%; height: 100%; min-height: 360px; object-fit: contain; padding: 24px; box-sizing: border-box; }
.quick-view__media-placeholder {
  width: 100%; height: 100%; min-height: 360px;
  background: linear-gradient(160deg, var(--color-charcoal-surface) 0%, var(--color-charcoal-secondary) 100%);
  display: flex; align-items: center; justify-content: center;
}
.quick-view__media-placeholder::before { content: "AK"; font-family: var(--font-serif); font-size: 72px; color: var(--color-gold-accent); opacity: .14; }

.quick-view__info { padding: 36px 32px 32px; }
.quick-view__title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin: 0 0 10px; padding-right: 30px; }
.quick-view__rating { display: block; margin-bottom: 14px; font-size: 13px; color: var(--color-text-grey); }
.quick-view__rating--empty { color: var(--color-gold-accent); text-decoration: underline; text-underline-offset: 3px; }
.quick-view__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.quick-view__price .current { font-size: 21px; font-weight: 700; color: var(--color-gold-accent); }
.quick-view__price .old { font-size: 14px; color: #6a6a6a; text-decoration: line-through; }
.quick-view__stock.is-error { color: var(--color-error-text); font-size: 12.5px; font-weight: 600; }
.quick-view__stock.is-success { color: var(--color-success-text); font-size: 12.5px; font-weight: 600; }
.quick-view__desc { color: var(--color-text-grey); font-size: 13.5px; line-height: 1.7; margin: 14px 0 0; }

.quick-view__swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick-view__swatch { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,.2); flex-shrink: 0; }
.quick-view__swatch.is-selected { border-color: var(--color-gold-accent); }

.quick-view__actions { display: flex; gap: 12px; margin-top: 22px; }
.quick-view__wishlist { flex: 0 0 auto; width: 44px; padding: 0; display: flex; align-items: center; justify-content: center; }
.quick-view__wishlist.is-active { color: var(--color-gold-accent); }
.quick-view__add { flex: 1; }
.quick-view__full-link { display: inline-block; margin-top: 18px; font-size: 12.5px; color: var(--color-text-grey-dim); }
.quick-view__full-link:hover { color: var(--color-gold-accent); }

@media (max-width: 767px) {
  .quick-view { padding: 0; align-items: flex-end; }
  .quick-view__frame { max-width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .quick-view__body { grid-template-columns: 1fr; }
  .quick-view__media { border-radius: 18px 18px 0 0; }
  .quick-view__media img, .quick-view__media-placeholder { min-height: 260px; }
  .quick-view__info { padding: 24px 20px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .quick-view__backdrop, .quick-view__frame { transition: none; }
}

/* Product card trigger button — same always-visible (not hover-only)
   convention as .product-card__wishlist, deliberately: a hover-reveal
   button is unreachable on touch devices, and this site's mobile-first
   rule (master brief) means the trigger has to work identically on a
   375px phone as on desktop, not degrade to "desktop-only". */
.product-card__quick-view {
  position: absolute; top: 10px; right: 50px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85); border: none; cursor: pointer;
  color: var(--color-charcoal-primary);
}
.product-card--dark .product-card__quick-view { background: rgba(15,15,15,.6); color: var(--color-beige-light); }
.product-card__quick-view:hover { color: var(--color-gold-accent); }
/* Matches .product-card__wishlist's own real 44px mobile size (2026-08-22
   final QA pass -- the spec's 44px touch-target rule is explicit and
   non-negotiable, and both icons are absolutely-positioned overlays so
   the real size costs no layout space). right:58px = wishlist's own
   6px right offset + its 44px width + an 8px gap between the two. */
@media (max-width: 639px) {
  .product-card__quick-view { width: 44px; height: 44px; top: 6px; right: 58px; }
}
