/*
 * viewer360.css — 360° prohlížeč na detailu produktu (M-60, 2026-10).
 * Načítá se jen u produktu s galerií 'rotace-360' (Detail/default.phtml, blok extra_assets). Logika: viewer360.js.
 */

/* štítek "360°" na hlavní fotce */
.detail-img--main {
    position: relative;
}
.detail-360-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 7px 12px;
    border: 0;
    border-radius: 16px;
    background: rgba(34, 34, 34, .85);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.detail-360-badge:hover,
.detail-360-badge:focus {
    background: #ed1c24;
}

/* dlaždice "360°" v náhledech (rozměry jako .detail-img--thumb) */
.detail-360-tile {
    position: relative;
    display: block;
    width: 100%;
    height: 88px;
    padding: 0;
    border: 0;
    background: #fff;
    line-height: 88px;
    text-align: center;
    cursor: pointer;
}
.detail-thumbnails:not(.border) .detail-360-tile {
    width: calc(100% - 2px);
    margin-right: 2px;
    border: 1px solid #d7d7d7;
}
.detail-thumbnails.border .detail-360-tile {
    border-right: 1px solid #d7d7d7;
}
.detail-360-tile img {
    display: inline-block;
    max-width: 80px;
    max-height: 80px;
    vertical-align: middle;
    opacity: .35;
}
.detail-360-tile__label {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    color: #ed1c24;
    font-size: 20px;
    font-weight: 700;
    line-height: 88px;
}
.detail-360-tile:hover img,
.detail-360-tile:focus img {
    opacity: .2;
}

/* popup */
.v360-mfp .mfp-preloader {
    display: none;
}
.v360-popup {
    position: relative;
    width: 1100px;
    max-width: 100%;
    margin: 20px auto;
    padding: 40px 15px 10px;
}
@media (max-width: 767px) {
    .v360-popup {
        margin: 0 auto;
        padding: 40px 5px 10px;
    }
}
.v360 {
    background: #fff;
}
.v360:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}
.v360:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}
.v360-stagebox {
    position: relative;
    margin: 0 auto;
}
.v360-stage {
    min-height: 120px;
    touch-action: none;
}

/* nápověda (CZ/SK, zmizí při první interakci) */
.v360-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 3;
    max-width: 95%;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .3s;
}
.v360-hint.off {
    opacity: 0;
}
.v360-hint span + span:before {
    content: "\00b7";
    margin: 0 8px;
    opacity: .6;
}
@media (max-width: 480px) {
    .v360-hint {
        font-size: 12px;
    }
    .v360-hint span {
        display: block;
    }
    .v360-hint span + span:before {
        content: none;
    }
}

/* lišta tlačítek */
.v360-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
}
.v360-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #222;
    color: #fff;
    cursor: pointer;
}
.v360-btn:hover,
.v360-btn:focus,
.v360-btn.on {
    background: #ed1c24;
}
.v360-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
