:root {
    --color-primary: #629D23;
    --color-white-quick-view: #ffffff;
    --color-body: #6E777D;
}

.easyel-quick-view-quick-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: none;
    color: inherit;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
    transition: color 0.3s;
    line-height: inherit;
}
.easyel-quick-view-quick-view-btn:hover {
    color: inherit;
    text-decoration: none;
}
.easyel-quick-view-quick-view-btn .easyel-quick-view-btn-icon {
   display: flex;
   align-items: center;
}


/* Tooltip Mode */
.easyel-quick-view-quick-view-btn.easyel-quick-view-tooltip {
    position: relative;
    padding: 10px;
    border-radius: 50%;
    line-height: 1;
}
.easyel-quick-view-quick-view-btn.easyel-quick-view-tooltip::before,
.easyel-quick-view-quick-view-btn.easyel-quick-view-tooltip::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 10;
}
.easyel-quick-view-quick-view-btn.easyel-quick-view-tooltip::before {
    content: attr(data-easyel-quick-view-tooltip);
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1e293b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.3;
}
.easyel-quick-view-quick-view-btn.easyel-quick-view-tooltip::after {
    content: '';
    bottom: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 4px solid transparent;
    border-top-color: #1e293b;
}
.easyel-quick-view-quick-view-btn.easyel-quick-view-tooltip:hover::before,
.easyel-quick-view-quick-view-btn.easyel-quick-view-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Overlay */
.easyel-quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.easyel-quick-view-overlay.easyel-quick-view-visible {
    opacity: 1;
}

/* Popup */
.easyel-quick-view-popup {
    position: relative;
    background: var(--color-white-quick-view);
    border-radius: 8px;
    max-width: 950px;
    width: 90%;
    max-height: 85vh;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: easyel-quick-view-popupIn 0.3s ease;
}
@keyframes easyel-quick-view-popupIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Close Button */
.easyel-quick-view-close-btn {
    position: absolute;
    right: -50px;
    top: -50px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white-quick-view);
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
}
.easyel-quick-view-close-btn:hover {
    color: red;
    background: var(--color-white-quick-view);
}

.easyel-quick-view-close-btn:focus {
    background: var(--color-white-quick-view);
}

/* Popup Content */
.easyel-quick-view-popup-content {
    padding: 30px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 8px;
}

/* Page Loader - separate div on body, centered on screen */
.easyel-quick-view-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}
.easyel-quick-view-page-loader img {
    max-width: 60px;
    max-height: 60px;
}
.easyel-quick-view-loader img {
    max-width: 60px;
    max-height: 60px;
}
.easyel-quick-view-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #333;
    border-radius: 50%;
    animation: easyel-quick-view-spin 0.8s linear infinite;
}
@keyframes easyel-quick-view-spin {
    to { transform: rotate(360deg); }
}

/* Product Wrapper */
.easyel-quick-view-product-wrapper {
    display: flex;
    gap: 40px;
}

/* Product Images */
.easyel-quick-view-product-images {
    flex: 0 0 45%;
    max-width: 45%;
}
.easyel-quick-view-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f8f8f8;
    border: 1px solid #f1f1f1;
}
.easyel-quick-view-slide {
    display: none;
}
.easyel-quick-view-slide.active {
    display: block;
}
.easyel-quick-view-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox Trigger & Zoom */
.easyel-quick-view-lightbox-trigger {
    display: block;
    position: relative;
    cursor: crosshair;
    text-decoration: none;
    overflow: hidden;
}
.easyel-quick-view-lightbox-trigger .zoomImg {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    border: none;
    max-width: none;
    max-height: none;
    pointer-events: none;
    z-index: 1;
}
.easyel-quick-view-zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}
.easyel-quick-view-zoom-icon svg {
    width: 18px;
    height: 18px;
}
.easyel-quick-view-lightbox-trigger:hover .easyel-quick-view-zoom-icon {
    opacity: 1;
}

/* Lightbox */
.easyel-quick-view-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.easyel-quick-view-lightbox.easyel-lightbox-visible {
    opacity: 1;
}
.easyel-quick-view-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}
.easyel-quick-view-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.easyel-quick-view-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    animation: easyel-lightbox-fadeIn 0.3s ease;
}
@keyframes easyel-lightbox-fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.easyel-quick-view-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}
.easyel-quick-view-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.easyel-quick-view-lightbox-prev,
.easyel-quick-view-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
.easyel-quick-view-lightbox-prev {
    left: 20px;
}
.easyel-quick-view-lightbox-next {
    right: 20px;
}
.easyel-quick-view-lightbox-prev:hover,
.easyel-quick-view-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Gallery Navigation */
.easyel-quick-view-gallery-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}
.easyel-quick-view-nav-prev,
.easyel-quick-view-nav-next {
    height: 33px;
    width: 33px;
    border-radius: 6px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: none;
    background-image: none;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    padding: 0;
}
.easyel-quick-view-nav-prev i,
.easyel-quick-view-nav-next i {
    color: #2C3C28;
    font-weight: 500;
    transition: 0.3s;
}
.easyel-quick-view-nav-prev:hover,
.easyel-quick-view-nav-next:hover,
.easyel-quick-view-nav-prev:focus,
.easyel-quick-view-nav-next:focus {
    background: var(--color-primary);
}

.easyel-quick-view-nav-prev:hover i,
.easyel-quick-view-nav-next:hover i,
.easyel-quick-view-nav-prev:focus i,
.easyel-quick-view-nav-next:focus i {
    color: var(--color-white-quick-view);
}
.easyel-quick-view-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}
.easyel-quick-view-thumb {
    flex: 0 0 auto;
    max-width: 85px;
    border: 1px solid #f1f1f1;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.4;
    transition: border-color 0.2s, opacity 0.2s, margin-left 0.3s ease;
}
.easyel-quick-view-thumb.active {
    opacity: 1;
}
.easyel-quick-view-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product Details */
.easyel-quick-view-product-details {
    flex: 1;
    min-width: 0;
}
.easyel-quick-view-product-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.3;
    color: #2C3C28;
}
.easyel-quick-view-stock {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border: 1px solid #ededed;
    border-radius: 4px;
    margin-left: 5px;
    display: inline-block;
    transform: translateY(-3px);
}
.easyel-quick-view-stock.in-stock {
    color: #98bd25;
}
.easyel-quick-view-stock.out-of-stock {
    color: #d63638;
}
.easyel-quick-view-product-title a {
    color: inherit;
    text-decoration: none;
}
.easyel-quick-view-product-title a:hover {
    color: inherit;
}

/* Badge */
.easyel-quick-view-badge {
    background: var(--color-primary);
    padding: 0px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--color-white-quick-view);
    margin-right: 12px;
}

/* Rating */
.easyel-quick-view-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}
.easyel-quick-view-product-rating .star-rating {
    font-size: 14px;
    color: #ffcd00;
}
.easyel-quick-view-rating-count {
    color: #666;
    font-size: 13px;
}

/* Price */
.easyel-quick-view-product-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.easyel-quick-view-product-price del {
    color: #cfcfcf;
    font-weight: 600;
    font-size: 20px;
    text-decoration: line-through;
}
.easyel-quick-view-product-price ins {
    text-decoration: none;
    color: var(--color-primary);
}

/* Excerpt */
.easyel-quick-view-product-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-body);
    margin-bottom: 20px;
    max-width: 540px;
}
.easyel-quick-view-product-excerpt p:last-child {
    margin-bottom: 0;
}

/* Add to Cart */
.easyel-quick-view-add-to-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.easyel-quick-view-quantity-wrapper {
    width: 123px;
    display: flex;
    padding: 3px 10px;
    border-style: solid;
    border-width: 1px;
    border-color: #e2e2e2;
    border-radius: 6px;
    height: 49px;
    justify-content: center;
    align-items: center;
}
.easyel-quick-view-qty-btn {
    width: 36px;
    height: 38px;
    background: var(--color-white-quick-view);
    border: none !important;
    cursor: pointer;
    transition: background 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #d3d3d3 !important;
    width: 20px;
    height: 20px;
    fill: #d3d3d3;
    box-shadow: none;
}
.easyel-quick-view-qty-btn:hover,
.easyel-quick-view-qty-btn:focus {
    background: var(--color-white-quick-view) !important;
    background-color: var(--color-white-quick-view) !important;
    border: none !important;
    color: #d3d3d3 !important;
}
.easyel-quick-view-qty-input {
    border: none;
    background: var(--color-white-quick-view);
    padding: 0;
    margin: 0;
    outline: none;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
    border: none !important;
    text-align: center;
    max-width: 55px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}
.easyel-quick-view-qty-input::-webkit-outer-spin-button,
.easyel-quick-view-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.easyel-quick-view-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #333;
    color: var(--color-white-quick-view) !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
}
.easyel-quick-view-cart-btn:hover {
    background: #555;
    color: var(--color-white-quick-view) !important;
    text-decoration: none;
}
.easyel-quick-view-cart-btn.easyel-quick-view-adding {
    opacity: 0.7;
    pointer-events: none;
}
.easyel-quick-view-cart-btn.easyel-quick-view-added {
    background: #46b450;
}
.easyel-quick-view-cart-btn.easyel-quick-view-cart-btn-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}
.easyel-quick-view-cart-btn-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.easyel-quick-view-cart-btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Product Meta */
.easyel-quick-view-product-meta {
    margin-bottom: 20px;
}
.easyel-quick-view-product-meta span {
    font-size: 16px;
    color: var(--color-body);
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
}
.easyel-quick-view-product-meta span strong {
    display: inline-block;
    font-weight: 700;
}
.easyel-quick-view-product-meta a {
    color: var(--color-body);
    text-decoration: none;
}
.easyel-quick-view-product-meta a:hover {
    color: var(--color-primarys);
}

/* Social Share */
.easyel-quick-view-social-share {
    display: flex;
    align-items: center;
}
.easyel-quick-view-share-title {
    font-size: 16px;
    font-weight: 400;
    color: #6E777D;
    margin-right: 10px;
}
.easyel-quick-view-share-buttons {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}
.easyel-quick-view-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #000;
    font-size: 16px;
    margin-right: 10px;
    transition: all 0.2s;
    text-decoration: none;
}
.easyel-quick-view-share-btn:hover {
    transform: none;
    color: var(--color-primary);
}
.easyel-quick-view-share-btn svg {
    width: 16px;
    height: 16px;
}

.easyel-quick-view-share-buttons a:hover svg {
    fill: var(--color-primary);
}



/* ========================
   Variation Selectors
   ======================== */
.easyel-qv-variations-wrap {
    margin-bottom: 20px;
}

.easyel-qv-variations tr td {
    border: none;
}
.easyel-qv-variation-row {
    margin-bottom: 15px;
}
.easyel-qv-variation-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2C3C28;
    margin-bottom: 8px;
}
.easyel-qv-variation-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: var(--color-white-quick-view);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: auto;
}
.easyel-qv-variation-select:focus {
    border-color: #333;
}

/* Reset link */
.easyel-qv-reset-variations {
    display: inline-block;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.easyel-qv-reset-variations:hover {
    color: #e74c3c;
    text-decoration: none;
}

/* Disabled add to cart for variable */
.easyel-qv-add-variable-to-cart[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Added to cart message */
.easyel-quick-view-cart-message {
    padding: 10px 16px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 13px;
}
.easyel-quick-view-cart-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    margin-bottom: 25px;
}
.easyel-quick-view-cart-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* No Image */
.easyel-quick-view-no-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

body .easyel-quick-view-popup-content .easyel-quick-view-cart-btn {
    background: var(--color-primary);
    border-radius: 6px;
    display: block;
    max-width: max-content;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 700;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body .easyel-quick-view-popup-content .easyel-quick-view-cart-btn:hover {
    background: #2c3c28;
}

/* Toast Notification */
.easyel-quick-view-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000010;
    background: var(--color-white-quick-view);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 420px;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.easyel-quick-view-toast.easyel-quick-view-toast-visible {
    opacity: 1;
    transform: translateX(0);
}
.easyel-quick-view-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.easyel-quick-view-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white-quick-view);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.easyel-quick-view-toast-message {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}
.easyel-quick-view-toast-cart-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--color-primary);
    color: var(--color-white-quick-view) !important;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}
.easyel-quick-view-toast-cart-btn:hover {
    background: #2c3c28;
    color: var(--color-white-quick-view) !important;
    text-decoration: none !important;
}
.easyel-quick-view-toast-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
    color: var(--color-white-quick-view);
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.easyel-quick-view-toast-close:hover {
    background: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .easyel-quick-view-popup {
        width: 95%;
        max-height: 90vh;
    }
    .easyel-quick-view-popup-content {
        padding: 20px;
    }
    .easyel-quick-view-product-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .easyel-quick-view-product-images {
        flex: none;
        max-width: 100%;
    }
    .easyel-quick-view-product-title {
        font-size: 18px;
    }
    .easyel-quick-view-product-price {
        font-size: 18px;
    }
    .easyel-quick-view-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: 0;
    }
}

/* Wishlist + Compare wrapper below the add-to-cart button */
.easyel-quick-view-extra-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
    margin-bottom: 20px;
}
.easyel-quick-view-extra-actions .easyel-quick-view-extra-action {
    display: inline-flex;
    align-items: center;
}
.easyel-quick-view-extra-actions .easyel-quick-view-extra-action a,
.easyel-quick-view-extra-actions .easyel-quick-view-extra-action button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
