.hf-product-page .product-details-container,
.hf-product-page .hf-product-details-shell,
.hf-product-page .col-product-details-left #product_slider_container {
    min-height: 0 !important;
    height: auto !important;
}

.hf-product-page .col-product-details-left,
.hf-product-page .col-product-details-right {
    align-self: flex-start;
}

.hf-product-page .product-slider-wrapper {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 0;
    opacity: 1;
}

.hf-product-page .product-slider-wrapper.product-slider-wrapper-single {
    grid-template-columns: minmax(0, 1fr);
}

.hf-product-page .product-slider-wrapper.product-slider-wrapper-single .thumb-slider-wrapper {
    display: none !important;
}

.hf-product-page .product-slider-wrapper .thumb-slider-wrapper {
    flex: none;
    width: 78px;
    min-height: 0;
    height: clamp(360px, 36vw, 620px) !important;
    max-height: 620px;
    overflow: hidden;
}

.hf-product-page .product-slider-wrapper .thumb-slider,
.hf-product-page .product-slider-wrapper .thumb-slider .swiper-wrapper {
    height: 100%;
}

.hf-product-page .product-slider-wrapper .thumb-slider .swiper-wrapper {
    align-items: flex-start;
}

.hf-product-page .product-slider-wrapper .thumb-slider .swiper-slide {
    width: 78px !important;
    height: 78px !important;
    margin: 0 0 12px !important;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    opacity: 1;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hf-product-page .product-slider-wrapper .thumb-slider .swiper-slide:hover {
    transform: translateY(-1px);
}

.hf-product-page .product-slider-wrapper .thumb-slider .swiper-slide img {
    max-width: 84% !important;
    max-height: 84% !important;
}

.hf-product-page .product-slider-wrapper .product-media-thumb {
    position: relative;
}

.hf-product-page .product-slider-wrapper .product-media-thumb-image {
    width: auto !important;
    height: auto !important;
    max-width: 84% !important;
    max-height: 84% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: auto !important;
}

.hf-product-page .product-slider-wrapper .product-media-thumb--video .product-media-thumb-image {
    opacity: 0.92;
}

.hf-product-page .product-slider-wrapper .product-media-thumb-label {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}

.hf-product-page .product-slider-wrapper .product-media-thumb-icon {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}

.hf-product-page .product-slider-wrapper .thumb-slider .swiper-slide-thumb-active {
    border-color: rgba(252, 163, 17, 0.62);
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.16), 0 16px 26px rgba(15, 23, 42, 0.08);
}

.hf-product-page .product-slider-wrapper .thumb-slider .swiper-slide-thumb-active img {
    border-color: transparent !important;
}

.hf-product-page .product-slider-wrapper .slider-for-container {
    position: relative;
    min-height: 0;
    aspect-ratio: 1 / 1;
    max-height: 620px;
    height: auto;
    border: 1px solid #e8eef5;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hf-product-page .product-slider-wrapper .product-slider,
.hf-product-page .product-slider-wrapper .product-slider .swiper-wrapper,
.hf-product-page .product-slider-wrapper .product-slider .swiper-slide,
.hf-product-page .product-slider-wrapper .product-slider .swiper-slide a {
    height: 100%;
}

.hf-product-page .product-slider-wrapper .product-media-slide,
.hf-product-page .product-slider-wrapper .product-media-link,
.hf-product-page .product-slider-wrapper .product-media-video-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 8px;
    box-sizing: border-box;
    overflow: visible;
    background: transparent;
    touch-action: manipulation;
}

.hf-product-page .product-slider-wrapper .product-slider .swiper-slide {
    padding: 20px;
    box-sizing: border-box;
}

.hf-product-page .product-slider-wrapper .product-media-image {
    max-width: 94% !important;
    max-height: 94% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: auto !important;
}

.hf-product-page .product-slider-wrapper .product-media-slide--video {
    background: #f7f9fc;
}

.hf-product-page .product-slider-wrapper .product-media-video-shell {
    padding: 14px;
}

.hf-product-page .product-slider-wrapper .product-media-video-shell video,
.hf-product-page .product-slider-wrapper .product-media-slide--video .plyr,
.hf-product-page .product-slider-wrapper .product-media-slide--video .plyr__video-wrapper {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.hf-product-page .product-slider-wrapper .product-media-video-shell video {
    display: block;
    border-radius: 18px;
    background: #0f172a;
    object-fit: contain;
}

.hf-product-page .product-slider-wrapper .product-slider .swiper-button-next,
.hf-product-page .product-slider-wrapper .product-slider .swiper-button-prev {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    color: #111827;
}

.hf-product-page .product-slider-wrapper .product-slider .swiper-button-next::after,
.hf-product-page .product-slider-wrapper .product-slider .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

.product-media-mobile-counter {
    display: none;
}

.product-media-mobile-counter.is-hidden {
    display: none !important;
}

.product-lightbox-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-lightbox-topbar {
    position: absolute;
    top: 22px;
    left: 24px;
    right: 24px;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    pointer-events: none;
}

.product-lightbox-topbar > * {
    pointer-events: auto;
}

.product-lightbox-topbar.single-image .product-lightbox-counter {
    opacity: 0;
}

.product-lightbox-share-top {
    max-width: calc(100% - 150px);
}

.product-lightbox-share-top .product-share ul {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    list-style: none !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1) !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.product-lightbox-share-top .product-share ul::-webkit-scrollbar {
    display: none;
}

.product-lightbox-share-top .product-share li a,
.product-lightbox-share-top .product-share li button {
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    font-size: 16px !important;
    transition: all 0.25s ease !important;
}

.product-lightbox-share-top .product-share li a:hover,
.product-lightbox-share-top .product-share li button:hover {
    background: #fca311 !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
}

.product-lightbox-counter {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 74px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.98), rgba(214, 98, 12, 0.96));
    box-shadow: 0 12px 28px rgba(214, 98, 12, 0.28);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.02em;
    z-index: 100003;
}

.product-lightbox-divider {
    opacity: 0.72;
}

.product-lightbox-cart-wrapper {
    display: flex;
    justify-content: center;
}

.glightbox-product-cart-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    box-shadow: 0 10px 24px rgba(229, 122, 1, 0.18);
}

.glightbox-product-cart-trigger.disabled,
.glightbox-product-cart-trigger:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.glightbox-clean .gslide-description {
    background: rgba(255, 255, 255, 0.98) !important;
}

.glightbox-clean .gdesc-inner {
    padding: 18px 20px !important;
}

@media (max-width: 768px) {
    .hf-product-page .product-slider-wrapper {
        display: block;
        gap: 0;
    }

    .hf-product-page .product-slider-wrapper .thumb-slider-wrapper {
        display: none !important;
        height: auto !important;
    }

    .hf-product-page .product-slider-wrapper .slider-for-container {
        aspect-ratio: 1 / 1;
        max-height: none;
        border-radius: 18px;
    }

    .product-media-mobile-counter {
        position: absolute;
        right: 12px;
        bottom: 12px;
        z-index: 5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 58px;
        padding: 7px 11px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.36);
        background: linear-gradient(135deg, rgba(252, 163, 17, 0.98), rgba(214, 98, 12, 0.96));
        color: #fff3cf;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
        box-shadow: 0 12px 28px rgba(214, 98, 12, 0.28);
        pointer-events: none;
    }

    .hf-product-page .product-slider-wrapper .product-slider .swiper-slide {
        padding: 16px 16px 18px;
    }

    .hf-product-page .product-slider-wrapper .product-media-slide,
    .hf-product-page .product-slider-wrapper .product-media-link {
        padding: 12px;
    }

    .hf-product-page .product-slider-wrapper .product-media-image {
        max-width: 92% !important;
        max-height: 92% !important;
    }

    .hf-product-page .product-slider-wrapper .product-media-video-shell {
        padding: 8px;
    }

    .hf-product-page .product-slider-wrapper .product-media-video-shell video {
        border-radius: 14px;
    }

    .product-lightbox-topbar {
        top: 10px;
        left: 10px;
        right: 10px;
        gap: 8px;
    }

    .product-lightbox-share-top {
        max-width: calc(100% - 104px);
    }

    .product-lightbox-share-top .product-share ul {
        gap: 1px !important;
        padding: 4px 5px !important;
    }

    .product-lightbox-share-top .product-share li a,
    .product-lightbox-share-top .product-share li button {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }

    .product-lightbox-counter {
        right: 14px;
        bottom: calc(84px + env(safe-area-inset-bottom));
        min-width: 56px;
        padding: 7px 11px;
        font-size: 11px;
    }

    .glightbox-mobile .glightbox-container .ginner-container {
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 58px 0 104px !important;
        min-height: 100dvh !important;
        height: 100dvh !important;
    }

    .glightbox-mobile .glightbox-container .gslider,
    .glightbox-mobile .glightbox-container .gslide,
    .glightbox-mobile .glightbox-container .gslide-inner-content {
        width: 100%;
        height: 100%;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .glightbox-mobile .glightbox-container .gslide-media {
        display: flex !important;
        flex: 1 1 auto;
        width: 100% !important;
        min-height: 0;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 0 10px !important;
        box-shadow: none !important;
    }

    .glightbox-mobile .glightbox-container .gslide-image {
        display: flex !important;
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .glightbox-mobile .glightbox-container .gslide-image img {
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 170px) !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    .glightbox-mobile .glightbox-container .gslide-description {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%) !important;
        max-height: none !important;
        padding: 8px 10px calc(16px + env(safe-area-inset-bottom)) !important;
    }

    .glightbox-mobile .glightbox-clean .gdesc-inner {
        padding: 0 !important;
    }

    .glightbox-mobile .product-lightbox-panel {
        gap: 10px;
    }

    .glightbox-product-cart-trigger {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        border-radius: 16px;
    }
}
