/* 
   Premium Quick View CSS 
   Style: Ultra Dark & High Conversion
*/

body.qv-open { overflow: hidden; }

.qv-modal {
    position: fixed;
    inset: 0;
    z-index: 100000050;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.qv-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.qv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
}

.qv-container {
    position: relative;
    width: min(1040px, 96vw);
    max-height: min(860px, 92vh);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 22px;
    background: #060e20;
    box-shadow: 0 30px 100px rgba(0,0,0,0.65);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.22s ease;
}

.qv-modal.active .qv-container {
    transform: translateY(0) scale(1);
}

.qv-close {
    position: sticky;
    top: 14px;
    float: right;
    z-index: 5;
    width: 38px;
    height: 38px;
    margin: 14px 14px -52px 0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: rgba(0,0,0,0.42);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.qv-loading,
.qv-error {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #dae2fd;
    background: #060e20;
}

.qv-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.16);
    border-top-color: #6366f1;
    animation: qvSpin 0.8s linear infinite;
}

@keyframes qvSpin { to { transform: rotate(360deg); } }

.qv-premium-wrapper {
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.qv-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .qv-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Gallery Styling */
.qv-main-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1/1;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}
.qv-main-frame img { width: 100%; height: 100%; object-fit: cover; }
.pxl-atm-container,
.pxl-atm-grid,
.pxl-atm-left,
.pxl-atm-right {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#qvBody .pxl-atm-frame img,
#qvBody #pxlAtmMain {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#qvBody .pxl-atm-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

#qvBody .pxl-thumb {
    width: 60px !important;
    height: 60px !important;
    flex: 0 0 60px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #050711 !important;
    border: 2px solid transparent !important;
    opacity: .68 !important;
}

#qvBody .pxl-thumb.active {
    border-color: #6366f1 !important;
    opacity: 1 !important;
}

#qvBody .pxl-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.qv-float-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff3b30;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 11px;
}

.qv-thumb-list { display: flex; gap: 10px; }
.qv-t-item {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #000;
    transition: all 0.2s;
}
.qv-t-item.active { border-color: #6366f1; }
.qv-t-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.qv-t-item.active img { opacity: 1; }

/* Content Side */
.qv-stars { color: #facc15; font-size: 13px; margin-bottom: 8px; }
.qv-stars span { color: #666; margin-left: 5px; }
.qv-main-title { font-size: 32px; font-weight: 800; margin: 0 0 15px; letter-spacing: -0.5px; }

.qv-top-pricing { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.qv-p-old { color: #666; text-decoration: line-through; font-size: 18px; }
.qv-p-new { color: #fff; font-size: 28px; font-weight: 800; }
.qv-p-save { background: rgba(255,59,48,0.1); color: #ff3b30; padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 11px; }

/* Marketing Elements */
.qv-marketing-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,59,48,0.05);
    border: 1px solid rgba(255,59,48,0.1);
    padding: 12px 18px;
    border-radius: 10px;
    color: #ff3b30;
    font-size: 14px;
    margin-bottom: 25px;
}
.qv-pulse {
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255,59,48, 0.4);
    animation: qvPulse 2s infinite;
}
@keyframes qvPulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255,59,48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48, 0); } }

/* Bundle Cards */
.qv-b-head { text-align: center; font-size: 11px; letter-spacing: 2.5px; color: #555; margin-bottom: 15px; font-weight: 800; }
.qv-card {
    background: #000;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.qv-card:hover { border-color: rgba(255,255,255,0.2); }
.qv-card.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 20px rgba(99,102,241,0.1);
}

.qv-card-radio {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qv-card.selected .qv-card-radio { border-color: #6366f1; }
.qv-radio-inner {
    width: 10px;
    height: 10px;
    background: #6366f1;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s;
}
.qv-card.selected .qv-radio-inner { transform: scale(1); }

.qv-card-name { font-weight: 800; font-size: 16px; margin-right: 12px; }
.qv-card-desc { font-size: 12px; color: #777; margin-top: 3px; }
.qv-card-badge {
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 5px;
    color: #000;
}
.qv-card-badge.most-popular { background: #facc15; }
.qv-card-badge.best-deal { background: #4ade80; }

.qv-card-price-col { text-align: right; }
.qv-card-price { font-weight: 800; font-size: 18px; }
.qv-card-comp { font-size: 13px; color: #444; text-decoration: line-through; }

/* Config Row Inside Card */
.qv-card-config {
    grid-column: 1 / -1;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.qv-conf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.qv-conf-num {
    width: 22px;
    height: 22px;
    background: #6366f1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}
.qv-conf-select {
    flex: 1;
    background: #111;
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.qv-conf-select:focus { border-color: #6366f1; }

/* Footer Actions */
.qv-footer-actions { margin-top: 30px; }
.qv-quantity-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.qv-quantity-wrap label { font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: #666; }
.qv-qty-ctrl {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
}
.qv-qty-dec, .qv-qty-inc { background:none; border:none; color:#fff; width:44px; height:44px; cursor:pointer; font-size: 18px; }
.qv-qty-dec:hover, .qv-qty-inc:hover { color: #6366f1; }
.qv-qty-val { width: 34px; text-align: center; font-weight: 700; font-size: 15px; }

.qv-add-to-cart {
    width: 100%;
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}
.qv-add-to-cart:hover { background: #4f46e5; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(99,102,241,0.4); }

.qv-buy-now {
    width: 100%;
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.qv-buy-now:hover { background: rgba(99,102,241,0.05); }

.qv-trust-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    color: #555;
    font-size: 12px;
}
.qv-trust-footer span { display: flex; align-items: center; gap: 6px; }
.qv-trust-footer svg { width: 14px; height: 14px; }
