/**
 * Quick View Modal Styles
 */

/* Quick View Modal */
.pcc-quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.pcc-quick-view-modal.active {
    display: flex;
}

.pcc-quick-view-content {
    background: #fff;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.pcc-quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pcc-quick-view-close:hover {
    background: #f5f5f5;
}

.pcc-quick-view-body {
    padding: 30px;
}

.pcc-quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pcc-quick-view-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.pcc-quick-view-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pcc-quick-view-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.pcc-quick-view-price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Variation Swatches Support */
.pcc-quick-view-details .variations_form {
    margin-top: 15px;
}

.pcc-quick-view-details .variations {
    margin-bottom: 20px;
}

.pcc-quick-view-details .variations td {
    padding: 5px 0;
    display: block;
}

.pcc-quick-view-details .variations td.label {
    font-weight: 600;
    margin-bottom: 8px;
}

.pcc-quick-view-details .variations td.value {
    margin-bottom: 15px;
}

/* Variation Swatches Plugin Styles */
.pcc-quick-view-details .tawcvs-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pcc-quick-view-details .single_variation_wrap {
    margin-top: 15px;
}

.pcc-quick-view-details .single_add_to_cart_button {
    width: 100%;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pcc-quick-view-details .single_add_to_cart_button:hover {
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .pcc-quick-view-product {
        grid-template-columns: 1fr;
    }
    
    .pcc-quick-view-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .pcc-quick-view-body {
        padding: 20px;
    }
}

/* Loading Spinner */
.pcc-loading {
    text-align: center;
    padding: 40px;
}

.pcc-loading::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: pcc-spin 1s linear infinite;
}

@keyframes pcc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
