/* Monginis - Product Quick View popup (see js/quickview.js)
   Uses the template's .quickview-product-modal and .product-summery styles;
   this file only covers what the template has no rule for. */
.mb-qv .modal-content {
    position: relative;
    min-height: 320px;
    border: 0;
    border-radius: 0;
}

.mb-qv__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 320px;
    padding: 40px;
    color: #555555;
    text-align: center;
}
.mb-qv__error .bi { font-size: 40px; color: #BC8157; }
.mb-qv__error p { margin: 0; font-size: 16px; }
.mb-qv__error.d-none { display: none !important; }

/* ---- loading: real card info shows at once, the rest shimmers ---- */
@keyframes mbQvShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mb-qv__skeleton { display: none; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.mb-qv__skeleton span,
.mb-qv .is-loading .mb-qv__title:empty,
.mb-qv .is-loading .mb-qv__price-value:empty,
.mb-qv .is-loading .mb-qv__img:not([src]),
.mb-qv .is-loading .mb-qv__img[src=""] {
    display: block;
    height: 14px;
    background: linear-gradient(90deg, #f3f3f3 25%, #e6e6e6 50%, #f3f3f3 75%);
    background-size: 200% 100%;
    animation: mbQvShimmer 1.4s ease-in-out infinite;
}
.mb-qv__skeleton span.is-short { width: 55%; }
.mb-qv .is-loading .mb-qv__skeleton { display: flex; }
.mb-qv .is-loading .mb-qv__title:empty { width: 70%; height: 30px; }
.mb-qv .is-loading .mb-qv__price-value:empty { display: inline-block; width: 60px; height: 20px; vertical-align: middle; }
.mb-qv .is-loading .mb-qv__img[src=""] { height: 100%; min-height: 320px; }
.mb-qv .is-loading .mb-qv__add { opacity: .55; pointer-events: none; }
.mb-qv__body { animation: mbQvFade .25s ease both; }
@keyframes mbQvFade { from { opacity: 0; } to { opacity: 1; } }

.mb-qv__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
}
/* contain, not cover: the whole photo always shows */
.mb-qv__img {
    width: 100%;
    height: 100%;
    max-height: min(560px, calc(100vh - 80px));
    object-fit: contain;
    display: block;
}
.mb-qv__img.is-unavailable { filter: grayscale(100%) opacity(.6); }
.mb-qv__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    background: #212121;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
}

.mb-qv__info {
    max-height: min(560px, calc(100vh - 80px));
    padding: 20px 30px 20px 20px;
    overflow-y: auto;
}

.mb-qv__variants { margin-bottom: 25px; }

/* the template's quantity buttons are divs; these are real buttons */
.mb-qv .qtybutton {
    padding: 0;
    border: 0;
    background: transparent;
}
.mb-qv__qty-input { -moz-appearance: textfield; }
.mb-qv__qty-input::-webkit-outer-spin-button,
.mb-qv__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mb-qv__qty-input:focus { outline: none; }

.mb-qv__added {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: #212121;
    font-size: 14px;
}
.mb-qv__added .bi-check-circle-fill { color: #BC8157; }
.mb-qv__added a { margin-left: auto; color: #BC8157; }
.mb-qv__added.d-none { display: none !important; }

.mb-qv .product-meta a:hover { color: #BC8157; }

@media (max-width: 991px) {
    .mb-qv__media { min-height: 0; }
    .mb-qv__img { max-height: 320px; }
    .mb-qv__info { max-height: none; padding: 20px 0 0; }
}
