/* Button styling */
.woocommerce ul.products li.product .quick-view-btn {
    pointer-events: auto; /* Allow Quick View button clicks */
}

.quick-view-btn {
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    background: #02403d;
    color: #ffffff;
    transition: 0.3s;
    margin-bottom: 15px;
}
.quick-view-btn:hover {
    background: #036b65;
}

/* Overlay background */
.qv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* Popup box */
.qv-popup {
    background: #fff;
    border-radius: 10px;
    max-width: 850px;
    width: 90%;
    padding: 20px;
    position: relative;
    z-index: 100000;
    animation: fadeInScale 0.3s ease-in-out;
}

/* Close button */
.qv-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* Scrollable content */
.qv-content {
    max-height: 80vh;
    overflow-y: auto;
}

/* Content layout */
.qv-wrapper {
    display: flex;
    gap: 20px;
    max-width: 800px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.qv-left img {
    max-width: 250px;
    border-radius: 8px;
}

.qv-right {
    flex: 1;
}

.qv-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.qv-category, .qv-attributes {
    margin-bottom: 15px;
}

.qv-call-btn {
    display: inline-block;
    background: #f15025;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
.qv-call-btn:hover {
    background: #d9441e;
    color: white;
}

/* Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
  .qv-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .qv-left img {
    max-width: 100%;
  }
}

.qv-main-img img {
    max-width: 300px !important;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.qv-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.qv-gallery-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.qv-gallery-item img:hover {
    transform: scale(1.1);
    border-color: #02403d;
}

.qv-gallery .qv-gallery-item.active img {
    border: 1px solid #02403d;
}

.qv-right strong {
    color: #02403d;
    font-weight: 600;
}

.qv-short-desc, .qv-desc {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}
.qv-content {
    scrollbar-width: thin;
    scrollbar-color: #02403d #f1f1f1;
}
.qv-content::-webkit-scrollbar {
    width: 6px;
}
.qv-content::-webkit-scrollbar-thumb {
    background: #02403d;
    border-radius: 3px;
}

.qv-weight {
    margin: 0px 0px 10px 0px;
}

.qv-dimensions {
    margin: 0px 0px 10px 0px;
}