/* Quick View Modal Styles */
#quick-view-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 1000; }
.qv-content { background: #fff; border-radius: 10px; max-width: 980px; width: 92%; display: flex; gap: 20px; padding: 20px; position: relative; }
.qv-close { position: absolute; top: 8px; right: 8px; background: #111827; color: #fff; border: none; border-radius: 999px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; }
.qv-close i { pointer-events: none; }
.qv-image { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.qv-image img { max-width: 100%; max-height: 70vh; border-radius: 8px; transition: transform .2s ease; position: relative; z-index: 1; }
.qv-prev, .qv-next { position: absolute; top: 50%; transform: translateY(-50%); background: #111827; color: #fff; border: none; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; opacity: .95; z-index: 3; pointer-events: auto; }
.qv-prev { left: 10px; }
.qv-next { right: 10px; }
.qv-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2; }
.qv-name { margin: 0; font-size: 1.4rem; }
.qv-info { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.qv-price { font-size: 1.2rem; color: #1f2937; }
.qv-description { font-size: clamp(1.08rem, 1.4vw, 1.18rem); line-height: 1.7; color: #374151; max-height: 8.6rem; overflow: auto; padding: .8rem .9rem; border: 1px solid #e5e7eb; border-radius: .85rem; background: #f9fafb; width: 100%; }
.qv-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.qv-thumbs img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; border: 2px solid #e5e7eb; cursor: pointer; }
.qv-thumbs img.active { border-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79,70,229,.2); }
.qv-thumbs img.broken { opacity: .7; }
.qv-actions { margin-top: 10px; display: flex; gap: 10px; }
.qv-full-link.btn { padding: .6rem .8rem; background: #1f2937; color: #fff; border-radius: .4rem; text-decoration: none; }
.qv-add-btn { padding: .6rem .8rem; background: #10b981; color: #fff; border: none; border-radius: .4rem; cursor: pointer; }
.qv-lightbox-btn { padding: .6rem .8rem; background: #111827; color: #fff; border: none; border-radius: .4rem; cursor: pointer; }
.qv-counter { position: absolute; bottom: 10px; right: 10px; background: rgba(17,24,39,.75); color: #fff; padding: .25rem .5rem; border-radius: .4rem; font-size: .85rem; z-index: 3; }
.qv-variants { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.qv-variant { padding: .4rem .6rem; border: 1px solid #e5e7eb; border-radius: .4rem; cursor: pointer; background: #fff; }
.qv-variant.active { border-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79,70,229,.2); }
.qv-variant.disabled { opacity: .5; cursor: not-allowed; }
.qv-spinner { width: 64px; height: 64px; border-radius: 50%; border: 4px solid #e5e7eb; border-top-color: #4f46e5; animation: qvspin .8s linear infinite; }
@keyframes qvspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 768px) {
  .action-btn.quick-view-btn { display: none; }
}

/* Lightbox */
#qv-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 10000; }
#qv-lightbox .lb-img { max-width: 90%; max-height: 85vh; border-radius: 8px; }
#qv-lightbox .lb-prev, #qv-lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: #111827; color: #fff; border: none; border-radius: 999px; width: 44px; height: 44px; cursor: pointer; opacity: .95; }
#qv-lightbox .lb-prev { left: 20px; }
#qv-lightbox .lb-next { right: 20px; }
#qv-lightbox .lb-close { position: absolute; top: 20px; right: 20px; background: transparent; color: #fff; border: none; font-size: 24px; cursor: pointer; }
.attribute-group { margin-top: 6px; }
.attribute-group label { display:block; font-weight:600; margin-bottom:4px; }
.attribute-options { display:flex; gap:8px; flex-wrap:wrap; }
.attribute-option { padding:.4rem .6rem; border:1px solid #e5e7eb; border-radius:.4rem; cursor:pointer; background:#fff; }
.attribute-option.color-swatch { width: 32px; height: 32px; border-radius: 999px; border: 2px solid #e5e7eb; display:inline-flex; align-items:center; justify-content:center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.attribute-option.selected { border-color:#4f46e5; box-shadow:0 0 0 2px rgba(79,70,229,.2); }
.attribute-option.disabled { opacity:.5; cursor:not-allowed; }
