
/* Product Quick View Modal Styles - OceanWP Compatible */
.pqv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.pqv-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.pqv-modal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: auto;
}

.pqv-modal-content {
    background: #fff;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.pqv-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pqv-modal-close:hover {
    background: #13aff0;
    color: #fff;
    transform: rotate(90deg);
}

.pqv-modal-body {
    padding: 40px;
}

.pqv-content {
    display: flex;
    gap: 40px;
}

.pqv-product-images {
    flex: 0 0 45%;
}

.pqv-product-info {
    flex: 1;
}

/* FlexSlider Custom Styles */
#pqv-slider {
    margin: 0 0 20px;
    border: none;
    background: #f9f9f9;
    min-height: 300px;
}

#pqv-slider .slides {
    margin: 0;
    padding: 0;
}

#pqv-slider .slides img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

#pqv-carousel {
    margin: 0;
    border: none;
}

#pqv-carousel .slides {
    margin: 0;
    padding: 0;
}

#pqv-carousel .slides li {
    width: 80px !important;
    height: 80px !important;
    margin-right: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
}

#pqv-carousel .slides li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#pqv-carousel .slides li:hover,
#pqv-carousel .slides li.flex-active-slide {
    opacity: 1;
    border-color: #13aff0;
}

/* FlexSlider Navigation */
.pqv-product-images .flexslider .flex-direction-nav {
    *height: 0;
}

.pqv-product-images .flexslider .flex-direction-nav a {
    width: 40px;
    height: 40px;
    margin: -20px 0 0;
    background: rgba(19, 175, 240, 0.9);
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 50%;
    z-index: 10;
    cursor: pointer;
    text-indent: -9999px;
    opacity: 0;
    transition: all 0.3s ease;
}

.pqv-product-images .flexslider:hover .flex-direction-nav a {
    opacity: 1;
}

.pqv-product-images .flexslider .flex-direction-nav .flex-prev {
    left: 10px;
}

.pqv-product-images .flexslider .flex-direction-nav .flex-next {
    right: 10px;
}

.pqv-product-images .flexslider .flex-direction-nav a:before {
    font-family: "flexslider-icon";
    font-size: 20px;
    display: inline-block;
    content: "\f001";
    color: #fff;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    line-height: 40px;
    text-align: center;
    text-indent: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pqv-product-images .flexslider .flex-direction-nav a.flex-next:before {
    content: "\f002";
}

/* Fix for FlexSlider visibility */
.pqv-product-images .flexslider {
    opacity: 1 !important;
}

.pqv-product-images .flex-viewport {
    max-height: 600px;
}

/* No image placeholder */
.pqv-no-image {
    background: #f5f5f5;
    padding: 40px;
    text-align: center;
    border-radius: 3px;
}

.pqv-no-image img {
    max-width: 100%;
    height: auto;
}

/* Product Info Styles */
.pqv-product-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
    line-height: 1.3;
}

.pqv-product-rating {
    margin-bottom: 15px;
}

.pqv-product-rating .star-rating {
    font-size: 14px;
}

.pqv-product-price {
    font-size: 24px;
    font-weight: 600;
    color: #13aff0;
    margin-bottom: 20px;
}

.pqv-product-price del {
    color: #999;
    font-size: 18px;
    margin-right: 10px;
}

.pqv-product-short-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Form Styles */
.pqv-add-to-cart-form {
    margin-bottom: 25px;
}

.pqv-attribute-row,
.pqv-quantity-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pqv-attribute-row label,
.pqv-quantity-row label {
    min-width: 100px;
    font-weight: 600;
    color: #333;
}

.pqv-attribute-row select,
.pqv-quantity-row input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.pqv-quantity-row input {
    width: 80px;
}

.pqv-add-to-cart-button {
    background: #13aff0;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pqv-add-to-cart-button:hover {
    background: #0e8cc7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 175, 240, 0.3);
}

.pqv-out-of-stock {
    color: #e74c3c;
    font-weight: 600;
    font-size: 16px;
}

/* Product Meta */
.pqv-product-meta {
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.pqv-product-meta span {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.pqv-product-meta strong {
    color: #333;
}

/* Product Actions */
.pqv-product-actions {
    margin-top: 20px;
}

.pqv-view-details {
    display: inline-block;
    color: #13aff0;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.pqv-view-details:after {
    content: "→";
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.pqv-view-details:hover {
    color: #0e8cc7;
}

.pqv-view-details:hover:after {
    margin-left: 10px;
}

/* Quick View Button */
.pqv-trigger {
    background: #13aff0;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pqv-trigger:hover {
    background: #0e8cc7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 175, 240, 0.3);
}

/* Loop Item Integration */
.elementor-loop-item .pqv-trigger {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.elementor-widget-woocommerce-product-images .pqv-trigger {
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .pqv-content {
        flex-direction: column;
    }
    
    .pqv-modal-body {
        padding: 20px;
    }
    
    .pqv-product-title {
        font-size: 22px;
    }
    
    .pqv-attribute-row,
    .pqv-quantity-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pqv-attribute-row label,
    .pqv-quantity-row label {
        margin-bottom: 5px;
    }
}

/* Loading State */
.pqv-loading {
    text-align: center;
    padding: 40px;
}

.pqv-loading:after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #13aff0;
    border-radius: 50%;
    animation: pqv-spin 1s linear infinite;
}

@keyframes pqv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
