/* Mobilmax Experience v8 — optional layer, independent of v7 */
.mm-qv-open {
    overflow: hidden !important
}

.mm-qv-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(8, 13, 22, .64);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(5px)
}

.mm-qv-dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: min(90dvh, 760px);
    overflow: auto;
    background: #fff;
    color: #101827;
    border-radius: 22px;
    box-shadow: 0 28px 90px #0005;
    padding: 24px;
    font-family: inherit
}

.mm-qv-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: #101827;
    font-size: 23px;
    cursor: pointer
}

.mm-qv-photo {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 18px
}

.mm-qv-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.mm-qv-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px
}

.mm-qv-price {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 10px
}

.mm-qv-availability {
    font-size: 13px;
    color: #475569;
    margin-bottom: 18px
}

.mm-qv-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.mm-qv-action {
    flex: 1 1 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #dce2ea;
    border-radius: 12px;
    background: #fff;
    color: #101827;
    padding: 12px;
    text-decoration: none;
    font-weight: 750;
    font-size: 13px;
    cursor: pointer
}

.mm-qv-action.mm-primary {
    background: #101827;
    border-color: #101827;
    color: #fff
}

.mm-qv-action:focus-visible,
.mm-qv-close:focus-visible,
.mm-qv-trigger:focus-visible {
    outline: 3px solid #e11d48;
    outline-offset: 3px
}

.mm-qv-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #101827;
    border: 1px solid #dce2ea;
    border-radius: 9px;
    padding: 6px 10px;
    font: 700 12px inherit;
    cursor: pointer;
    margin-top: 8px
}

.mm-qv-trigger:hover {
    border-color: #e11d48;
    color: #e11d48
}

.mm-qv-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    background: #101827;
    color: #fff;
    border-radius: 12px;
    padding: 10px 18px;
    font: 600 13px inherit;
    box-shadow: 0 10px 30px #0004
}

@media(max-width:600px) {
    .mm-qv-backdrop {
        align-items: flex-end;
        padding: 0
    }

    .mm-qv-dialog {
        width: 100%;
        max-height: 88dvh;
        border-radius: 22px 22px 0 0;
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom))
    }

    .mm-qv-photo {
        height: 210px
    }

    .mm-qv-trigger {
        display: none
    }
}

@media(prefers-reduced-motion:no-preference) {
    .mm-qv-dialog {
        animation: mm-qv-in .18s ease-out
    }

    @keyframes mm-qv-in {
        from {
            opacity: .7;
            transform: translateY(12px)
        }

        to {
            opacity: 1;
            transform: translateY(0)
        }
    }
}

/* v8.2 — prevent iOS native image/link previews within catalog cards */
.mm-qv-card,
.mm-qv-card a,
.mm-qv-card img,
.mm-qv-card .name {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none;
    user-select: none
}

.mm-qv-card img {
    -webkit-user-drag: none
}

.mm-qv-photo {
    position: relative;
    overflow: hidden;
    touch-action: pan-y
}

.mm-qv-gallery-prev,
.mm-qv-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2
}

.mm-qv-gallery-prev {
    left: 9px
}

.mm-qv-gallery-next {
    right: 9px
}

.mm-qv-gallery-counter {
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827cc;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px
}

.mm-qv-gallery-prev[hidden],
.mm-qv-gallery-next[hidden],
.mm-qv-gallery-counter[hidden] {
    display: none !important
}

@media(hover:hover) {
    .mm-qv-card {
        position: relative
    }

    .mm-qv-card .mm-qv-trigger {
        cursor: pointer
    }
}

/* v8.3 — swipe-friendly photo gallery and loading feedback */
.mm-qv-photo img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none
}

.mm-qv-gallery-status {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    text-align: center;
    font-size: 11px;
    color: #475569;
    pointer-events: none
}

.mm-qv-photo:has(.mm-qv-gallery-counter:not([hidden])) .mm-qv-gallery-status {
    bottom: 38px
}

.mm-qv-gallery-prev,
.mm-qv-gallery-next {
    touch-action: manipulation
}

/* Mobilmax – viditelné zavírací tlačítko */
.mm-qv-close,
.mm-quickview-close,
.mm-quick-view-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 100 !important;

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

    width: 42px !important;
    height: 42px !important;

    background: #111827 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 50% !important;

    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer;
}