/* Quick View Modal Styling */
#qv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#qv-modal-overlay.open {
    display: flex;
    opacity: 1;
}

#qv-modal-container {
    background: #fff;
    width: 900px;
    max-width: 95%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow-y: auto;
    border-radius: 3px;
    animation: qvFadeIn 0.4s ease forwards;
}

@keyframes qvFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

#qv-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    transition: color 0.2s;
}

#qv-close:hover {
    color: #000;
}

#qv-content {
    display: flex;
    flex-wrap: wrap;
    min-height: 400px;
}

.qv-left {
    flex: 1;
    min-width: 300px;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.qv-left img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.qv-right {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.qv-right h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #555;
    text-transform: uppercase;
}

.qv-right .divider {
    width: 30px;
    height: 3px;
    background: rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.qv-right .price-wrapper {
    margin-bottom: 25px;
}

.qv-right .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111;
}

.qv-right .price del {
    color: #999;
    font-size: 1.1rem;
    margin-right: 10px;
}

.qv-right .price ins {
    text-decoration: none;
    color: #000;
}

.qv-right .parcelamento {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

.qv-cart-form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

.qv-quantity {
    display: flex;
    border: 1px solid #ddd;
}

.qv-quantity button {
    background: #f9f9f9;
    border: none;
    width: 30px;
    height: 35px;
    cursor: pointer;
}

.qv-quantity input {
    width: 40px;
    text-align: center;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-top: none;
    border-bottom: none;
    font-weight: bold;
}

.qv-buy-btn {
    flex: 1;
    background: #b5090a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.qv-buy-btn:hover {
    background: #8e0708;
}

.qv-metadata {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Spinner */
.qv-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #b5090a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: qvSpin 1s linear infinite;
    margin: auto;
}

@keyframes qvSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    #qv-content { flex-direction: column; }
    .qv-left, .qv-right { min-width: 100%; }
    #qv-modal-container { max-height: 85vh; }
}
