/* Quick View Modal Shared Styles */
.quickview-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.quickview-modal {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    padding: 40px;
    overflow-y: auto;
}

.quickview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
    z-index: 10;
}

.quickview-close:hover {
    background: var(--primary, #000);
    color: #fff;
}

.quickview-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.quickview-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
}

.quickview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qv-discount {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.quickview-info h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.qv-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qv-current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary, #000);
}

.qv-old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.qv-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.in-stock { background: #e8f5e9; color: #2e7d32; }
.out-stock { background: #ffebee; color: #c62828; }

.qv-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.qv-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-qv-cart, .btn-qv-buy, .btn-qv-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-qv-cart { background: var(--primary, #000); color: #fff; }
.btn-qv-cart:hover { background: var(--accent, #333); transform: translateY(-2px); }

.btn-qv-buy { background: #333; color: #fff; }
.btn-qv-buy:hover { background: #000; transform: translateY(-2px); }

.btn-qv-detail { color: #333; border: 1px solid #e0e0e0; }
.btn-qv-detail:hover { background: #f8f9fa; }

.quickview-loading {
    display: none;
    height: 400px;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary, #000);
}

@media (max-width: 768px) {
    .quickview-content { grid-template-columns: 1fr; gap: 25px; }
    .quickview-modal { padding: 30px 20px; }
    .quickview-image { height: 300px; }
}
