.nstudio-qv-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.nstudio-qv-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nstudio-qv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.nstudio-qv-dialog {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 1000px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

.nstudio-qv-loading {
    padding: 60px;
    text-align: center;
    font-size: 16px;
}

.nstudio-qv-error {
    padding: 50px;
    text-align: center;
}

body.nstudio-qv-open {
    overflow: hidden;
}


/* =========================================
   QUICK VIEW CONTENT
   ========================================= */

.nstudio-qv-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    padding: 28px;
    background: #fff;
    box-sizing: border-box;
}

.nstudio-qv-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #fff;
    color: #ff7214;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.nstudio-qv-close:hover {
    background: #DE5E09;
     color: #fff;
}


/* =========================================
   MAIN GRID
   ========================================= */

.nstudio-qv-grid {
    display: grid;
    grid-template-columns: 52% 48%;
    gap: 34px;
    align-items: start;
}


/* =========================================
   GALLERY
   ========================================= */

.nstudio-qv-gallery {
    min-width: 0;
}

.nstudio-qv-main-image {
    position: relative;

    width: 100%;
    height: 510px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
}

.nstudio-qv-main-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.nstudio-qv-gallery-arrow {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .94);
    color: #555;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.nstudio-qv-gallery-arrow:hover {
    background: #fff;
    color: #222;
}

.nstudio-qv-prev {
    left: 8px;
}

.nstudio-qv-next {
    right: 8px;
}


/* =========================================
   THUMBNAILS
   ========================================= */

.nstudio-qv-thumbnail-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    width: 100%;
}

.nstudio-qv-thumbnails {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nstudio-qv-thumbnail {
    position: relative;
    flex: 0 0 calc((100% - 40px) / 6);

    width: calc((100% - 40px) / 6);
    height: 72px;

    padding: 2px;

    border: 1px solid #ddd;
    background: #fff;

    cursor: pointer;
    box-sizing: border-box;
}

.nstudio-qv-thumbnail:hover {
    border-color: #777;
}

.nstudio-qv-thumbnail.is-active {
    border: 2px solid #222;
}

.nstudio-qv-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================
   THUMBNAIL MORE
   ========================================= */

.nstudio-qv-thumbnail-more {
    overflow: hidden;
}

.nstudio-qv-thumbnail-more-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, .48);

    color: #fff;

    font-size: 20px;
    font-weight: 700;

    pointer-events: none;
}


/* =========================================
   THUMBNAIL ARROWS
   ========================================= */

.nstudio-qv-thumbnail-arrow {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #ddd;
    border-radius: 50%;

    background: #fff;
    color: #555;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 1px 5px rgba(0, 0, 0, .10);
}

.nstudio-qv-thumbnail-arrow:hover {
    background: #f7f7f7;
    color: #222;
    border-color: #aaa;
}


/* =========================================
   PRODUCT INFO
   ========================================= */

.nstudio-qv-info {
    padding: 12px 28px 10px 0;
}

.nstudio-qv-title {
    margin: 0 0 8px;

    font-size: 25px;
    line-height: 1.3;

    font-weight: 600;

    color: #222;
}

.nstudio-qv-stock {
    margin-bottom: 14px;

    font-size: 13px;

    color: #555;

    text-transform: uppercase;

    letter-spacing: .3px;
}

.nstudio-qv-stock-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 5px;

    border-radius: 50%;

    background: #4c9a4c;
}


/* =========================================
   PRICE
   ========================================= */

.nstudio-qv-price {
    display: flex;

    align-items: baseline;

    flex-wrap: wrap;

    gap: 10px;

    padding: 14px 0;

    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    font-size: 24px;

    font-weight: 600;

    color: #222;
}

.nstudio-qv-old-price {
    font-size: 15px;

    font-weight: 400;

    color: #777;

    text-decoration: line-through;
}

.nstudio-qv-discount {
    font-size: 14px;

    font-weight: 700;

    color: #d00000;
}

.nstudio-qv-sku {
    margin: 10px 0 22px;

    font-size: 12px;

    color: #777;
}


/* =========================================
   OPTIONS
   ========================================= */

.nstudio-qv-options {
    margin-bottom: 20px;
}

.nstudio-qv-option {
    margin-bottom: 18px;
}

.nstudio-qv-option-label {
    display: block;

    margin-bottom: 9px;

    font-size: 14px;

    font-weight: 600;

    color: #222;
}

.nstudio-qv-option-label span {
    color: #d00000;
}


/* =========================================
   COLOR SWATCHES
   ========================================= */

.nstudio-qv-color-swatches {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 8px;
}

.nstudio-qv-color-swatch {
    width: 34px;
    height: 34px;

    padding: 0;

    border: 2px solid #ddd;

    border-radius: 50%;

    cursor: pointer;

    box-sizing: border-box;
   background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .08);

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.nstudio-qv-color-swatch:hover {
    border-color: #777;

    transform: scale(1.05);
}

.nstudio-qv-color-swatch.is-selected {
    border: 2px solid #222;

    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px #222;
}

.nstudio-qv-selected-value {
    min-height: 17px;

    margin-top: 7px;

    font-size: 12px;

    color: #777;
}


/* =========================================
   SIZE BUTTONS
   ========================================= */

.nstudio-qv-size-options {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.nstudio-qv-size-button {
    min-width: 55px;
    min-height: 40px;

    padding: 7px 12px;

    border: 1px solid #ccc;

    background: #fff;

    color: #222;

    font-size: 13px;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}

.nstudio-qv-size-button:hover {
    border-color: #222;
}

.nstudio-qv-size-button.is-selected {
    border-color: #222;

    background: #222;

    color: #fff;
}


/* =========================================
   QUANTITY + CART
   ========================================= */

.nstudio-qv-qty-cart {
    display: grid;

    grid-template-columns: 120px minmax(0, 1fr);

    gap: 12px;

    align-items: stretch;
}

.nstudio-qv-qty {
    display: flex;

    height: 46px;

    border: 1px solid #ccc;

    box-sizing: border-box;
}

.nstudio-qv-qty button {
    width: 34px;

    padding: 0;

    border: 0;

    background: #fff;

    color: #222;

    font-size: 20px;

    cursor: pointer;
}

.nstudio-qv-qty button:hover {
    background: #f5f5f5;
}

.nstudio-qv-qty input {
    width: 50px;

    padding: 0;

    border: 0;

    background: #fff;

    text-align: center;

    font-size: 14px;

    color: #222;

    -moz-appearance: textfield;
}

.nstudio-qv-qty input::-webkit-inner-spin-button,
.nstudio-qv-qty input::-webkit-outer-spin-button {
    -webkit-appearance: none;

    margin: 0;
}

.nstudio-qv-cart-button {
    min-height: 46px;

    border: 1px solid #14a000;

    background: #14a000;

    color: #fff;

    font-size: 14px;

    font-weight: 600;

    text-transform: uppercase;

    cursor: pointer;

    transition: opacity .2s ease;
}

.nstudio-qv-cart-button:hover {
   /* opacity: .85;*/
  background: #DE5E09;
  border: 1px solid #DE5E09;
}

.nstudio-qv-cart-button:disabled {
    opacity: .6;

    cursor: wait;
}


/* =========================================
   WISHLIST / COMPARE
   ========================================= */

.nstudio-qv-extra-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 28px;

    margin: 22px 0;

    padding-bottom: 20px;

    border-bottom: 1px solid #ddd;
}

.nstudio-qv-extra-action {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #333;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: .4px;

    text-decoration: none;

    text-transform: uppercase;
}

.nstudio-qv-extra-action:hover {
    color: #000;
}


/* =========================================
   DESCRIPTION
   ========================================= */

.nstudio-qv-description {
    margin: 18px 0;

    font-size: 13px;

    line-height: 1.6;

    color: #444;
}


/* =========================================
   PRODUCT BUTTON
   ========================================= */

.nstudio-qv-product-button {
    display: flex;

    min-height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid #ff7214;

    background: #ff7214;

    color: #fff;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;
}

.nstudio-qv-product-button:hover {
    background: #DE5E09;
}


/* =========================================
   MESSAGES
   ========================================= */

.nstudio-qv-success {
    margin-top: 10px;

    padding: 10px;

    background: #f1f8f1;

    color: #246b24;

    font-size: 14px;
}

.nstudio-qv-error {
    margin-top: 10px;

    padding: 10px;

    background: #fff2f2;

    color: #b00000;

    font-size: 14px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .nstudio-qv-dialog {
        width: calc(100% - 24px);

        max-height: calc(100vh - 24px);
    }

    .nstudio-qv-content {
        padding: 20px;
    }

    .nstudio-qv-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .nstudio-qv-main-image {
        height: 360px;
    }

    .nstudio-qv-info {
        padding: 0;
    }

    .nstudio-qv-title {
        font-size: 20px;
    }

    .nstudio-qv-qty-cart {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .nstudio-qv-extra-actions {
        gap: 15px;
    }

    .nstudio-qv-extra-action {
        font-size: 12px;
    }
}
/* =========================================
   QUICK VIEW THUMBNAIL NAVIGATION - OVERRIDE
   ========================================= */

.nstudio-qv-thumbnail-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
}

.nstudio-qv-thumbnails {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.nstudio-qv-thumbnail {
    position: relative !important;
    flex: 0 0 calc((100% - 40px) / 6) !important;
    width: calc((100% - 40px) / 6) !important;
    height: 72px !important;
    min-width: 0 !important;
    padding: 2px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.nstudio-qv-thumbnail img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}


/* +25 overlay */

.nstudio-qv-thumbnail-more {
    position: relative !important;
    overflow: hidden !important;
}

.nstudio-qv-thumbnail-more-overlay {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(0, 0, 0, .48) !important;

    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    pointer-events: none !important;
    z-index: 5 !important;
}


/* kleine pijltjes */

.nstudio-qv-thumbnail-arrow {
    flex: 0 0 32px !important;

    width: 32px !important;
    height: 32px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #ddd !important;
    border-radius: 50% !important;

    background: #fff !important;
    color: #555 !important;

    font-size: 22px !important;
    line-height: 1 !important;

    cursor: pointer !important;

    box-sizing: border-box !important;
}

.nstudio-qv-thumbnail-arrow:hover {
    background: #f7f7f7 !important;
    color: #222 !important;
    border-color: #aaa !important;
}

.nstudio-qv-thumbnail-arrow:disabled {
    opacity: .35 !important;
    cursor: default !important;
}
/* =========================================
   COLOR SWATCH HOVER POPUP
   ========================================= */

.nstudio-qv-color-swatch {
    position: relative;
    overflow: visible !important;
}

.nstudio-qv-color-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 8px;
    min-width: 90px;

    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .15s ease,
        visibility .15s ease;
}

.nstudio-qv-color-swatch:hover .nstudio-qv-color-tooltip {
    opacity: 1;
    visibility: visible;
}

.nstudio-qv-color-tooltip-image,
.nstudio-qv-color-tooltip-color {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.nstudio-qv-color-tooltip-color {
    border: 1px solid #ddd;
}

.nstudio-qv-color-tooltip-name {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
    color: #222;
    text-align: center;
    white-space: nowrap;
}
/* =========================================
   CORRECTE VORM KLEUR-SWATCHES
   ========================================= */

/* Kleine kleur-swatches: ROND */
.nstudio-qv-color-swatch .nstudio-qv-swatch-image,
.nstudio-qv-color-swatch .nstudio-qv-swatch-color {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50% !important;
}

/* Grote hover-afbeelding: VIERKANT */
.nstudio-qv-color-tooltip-image,
.nstudio-qv-color-tooltip-color {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: cover;
    border-radius: 0 !important;
}
