.hs-slideshow {
    position: relative;
    width: 100%;
}

/* ── Main slide ── */
.hs-slide__main {
    overflow: hidden;
    border-radius: 4px;
}

.hs-slide__main .swiper-slide {
    overflow: hidden;
}

.hs-slide__scene {
    position: relative;
    width: 100%;
}

.hs-slide__scene > img {
    width: 100%;
    height: auto;
    display: block;
}

/* Nav arrows */
.hs-slide__main .swiper-button-prev,
.hs-slide__main .swiper-button-next {
    color: #fff;
    opacity: 0;
    transition: opacity .3s;
}

.hs-slideshow:hover .swiper-button-prev,
.hs-slideshow:hover .swiper-button-next {
    opacity: 1;
}

.hs-slide__main .swiper-button-prev::after,
.hs-slide__main .swiper-button-next::after {
    font-size: 20px;
}

/* ── Hotspot dot ── */
.hs-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 0 0 3px rgba(0,0,0,.15);
    transition: transform .2s;
}

.hs-dot:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

.hs-dot__ping {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    animation: hs-ping 2s cubic-bezier(0,.2,.5,1) infinite;
}

@keyframes hs-ping {
    0%   { transform: scale(1); opacity: .8; }
    100% { transform: scale(2); opacity: 0; }
}

/* ── Tooltip (desktop) — horizontal: image left, content right ── */
.hs-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    /*min-width: 240px;*/
    max-width: 240px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s, visibility .25s, transform .25s;
    transform: translateX(-50%) translateY(6px);
    z-index: 10;
    /*display: flex;
    align-items: stretch;
    */
}

.hs-dot:hover .hs-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hs-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

/* Tooltip image — left side */
.hs-tooltip__img {
    flex-shrink: 0;
    /*width: 80px;*/
    overflow: hidden;
    border-radius: 6px 0 0 6px;
}

.hs-tooltip__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tooltip body — right side */
.hs-tooltip__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 14px;
    min-width: 0;
}

.hs-tooltip__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
}

a.hs-tooltip__name:hover {
    text-decoration: underline;
}

.hs-tooltip__price {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Tooltip flip: when dot is near right edge (anchored from right) */
.hs-dot[data-h-orient="right"] .hs-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(6px);
}
.hs-dot[data-h-orient="right"]:hover .hs-tooltip {
    transform: translateX(0) translateY(0);
}
.hs-dot[data-h-orient="right"] .hs-tooltip::after {
    left: auto;
    right: 12px;
    transform: none;
}

/* ── Thumbnails ── */
.hs-slide__thumbs {
    margin-top: 16px;
    overflow: hidden;
}

.hs-slide__thumbs .swiper-slide {
    width: auto;
    max-width: 160px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: .6;
    transition: opacity .3s, border-color .3s;
}

.hs-slide__thumbs .swiper-slide-thumb-active {
    border-color: #222;
    opacity: 1;
}

.hs-slide__thumbs .swiper-slide:hover {
    opacity: 1;
}

.hs-slide__thumbs .swiper-slide img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* ── Mobile panel + overlay (hidden on desktop) ── */
.hs-panel,
.hs-panel__trigger,
.hs-panel__overlay {
    display: none;
}

/* ══════════════════════════════
   MOBILE
   ══════════════════════════════ */
@media (max-width: 767px) {

    /* Hide desktop tooltips */
    .hs-tooltip {
        display: none !important;
    }

    /* Trigger button */
    .hs-panel__trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        bottom: 12px;
        left: 12px;
        z-index: 6;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,.92);
        border: none;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,.18);
        cursor: pointer;
        color: #222;
    }

    /* Overlay backdrop */
    .hs-panel__overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 9998;
    }

    .hs-panel__overlay.is-open {
        display: block;
    }

    /* Panel — fixed to viewport bottom */
    .hs-panel {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        background: #fff;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,.15);
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(100%);
        transition: transform .3s ease;
        pointer-events: none;
    }

    .hs-panel.is-open {
        transform: translateY(0);
        pointer-events: auto;
    }

    .hs-panel__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 16px 16px 8px;
        position: sticky;
        top: 0;
        background: #fff;
        border-radius: 12px 12px 0 0;
        z-index: 1;
    }

    .hs-panel__title {
        font-size: 18px;
        font-weight: 600;
        color: #222;
        line-height: 1.3;
    }

    .hs-panel__count {
        font-size: 13px;
        color: #888;
        margin-top: 2px;
    }

    .hs-panel__close {
        background: none;
        border: none;
        width: 20px;
        height: 20px;
        line-height: 1;
        color: #222;
        cursor: pointer;
        padding: 0;
    }
    .hs-panel__close:hover {
        background: none !important;
    }

    .hs-panel__list {
        padding: 0 16px 16px;
    }

    /* Product row — image left, content right */
    .hs-panel__item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
        color: inherit;
    }

    .hs-panel__item:last-child {
        border-bottom: none;
    }

    .hs-panel__item.is-highlight {
        background: #faf8f5;
        margin: 0 -16px;
        padding: 12px 16px;
        border-radius: 6px;
    }

    .hs-panel__thumb {
        flex-shrink: 0;
        width: 64px;
        height: 64px;
        border-radius: 6px;
        overflow: hidden;
        background: #f5f5f5;
    }

    .hs-panel__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hs-panel__info {
        flex: 1;
        min-width: 0;
    }

    .hs-panel__name {
        font-size: 14px;
        font-weight: 600;
        color: #222;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hs-panel__price {
        font-size: 13px;
        color: #666;
        margin-top: 4px;
    }

    .hs-panel__price del {
        color: #999;
        margin-right: 4px;
    }

    .hs-panel__price ins {
        text-decoration: none;
    }

    .hs-panel__arrow {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        color: #999;
        line-height: 1;
    }

    /* Thumbnails mobile */
    .hs-slide__thumbs .swiper-slide img {
        height: 70px;
    }

    .hs-slide__thumbs .swiper-slide {
        max-width: 110px;
    }
}
