
/* ==========================================
   FIX GALLERY HOKIEMAS88
   Versi lengkap - Desktop & Mobile
   ========================================== */

/* 1. CONTAINER GALERI */

.hdd02-gallery {
    width: 100%;
    max-width: 100%;
}

.hdd02-gallery__content {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}

.hdd02-gallery__list {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}

.hdd02-gallery__list > .swiper-wrapper {
    display: block !important;
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
}

/* 2. TAMPILKAN GAMBAR PERTAMA */

.hdd02-gallery__list .hdd02-gallery__item {
    display: none !important;
}

.hdd02-gallery__list .hdd02-gallery__item:first-child {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* 3. GAMBAR UTAMA */

.hdd02-gallery__list .hdd02-gallery__image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

.hdd02-gallery__list .hdd02-gallery__image .image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.hdd02-gallery__list .hdd02-gallery__image img {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* 4. AREA THUMBNAIL */

.hdd02-gallery__thumbnail {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px 0 !important;
    overflow: visible !important;
}

.hdd02-gallery__thumbnail-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 5. KOTAK THUMBNAIL */

.hdd02-gallery__thumbnail-item {
    display: block !important;
    position: relative !important;
    flex: 0 0 110px !important;
    width: 110px !important;
    max-width: 110px !important;
    height: 110px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 215, 0, 0.35) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: #2E0854 !important;
    box-sizing: border-box !important;
}

/* 6. HILANGKAN OVERLAY */

.hdd02-gallery__thumbnail-item::before,
.hdd02-gallery__thumbnail-item::after {
    content: none !important;
    display: none !important;
}

/* 7. LINK THUMBNAIL */

.hdd02-gallery__thumbnail-item a {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

/* 8. CONTAINER GAMBAR THUMBNAIL */

.hdd02-gallery__thumbnail-item .image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 9. GAMBAR THUMBNAIL */

.hdd02-gallery__thumbnail-item img,
.hdd02-gallery__thumbnail-item img.image__main {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 2 !important;
}

/* 10. THUMBNAIL AKTIF */

.hdd02-gallery__thumbnail-item--on {
    border: 2px solid #ffd700 !important;
}

/* 11. TOMBOL +4 LEBIH BANYAK */

.hdd02-gallery__thumbnail-item-text {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    background: linear-gradient(160deg, #2E0854 0%, #4B0082 100%) !important;
    border-radius: 12px !important;
}

.hdd02-gallery__thumbnail-item-text .text {
    color: #ffffff !important;
    text-align: center !important;
}

/* 12. RESPONSIVE TABLET */

@media (min-width: 768px) and (max-width: 1024px) {

    .hdd02-gallery__thumbnail-item {
        flex: 0 0 90px !important;
        width: 90px !important;
        max-width: 90px !important;
        height: 90px !important;
    }

    .hdd02-gallery__thumbnail-list {
        gap: 10px !important;
    }
}

/* 13. RESPONSIVE MOBILE */

@media (max-width: 767px) {

    .hdd02-gallery__list .hdd02-gallery__item:first-child {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }

    .hdd02-gallery__list .hdd02-gallery__image,
    .hdd02-gallery__list .hdd02-gallery__image .image {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .hdd02-gallery__list .hdd02-gallery__image img {
        width: 100% !important;
        height: auto !important;
    }

    .hdd02-gallery__thumbnail {
        display: block !important;
        padding: 12px 8px !important;
    }

    .hdd02-gallery__thumbnail-list {
        justify-content: center !important;
        gap: 8px !important;
    }

    .hdd02-gallery__thumbnail-item {
        flex: 0 0 68px !important;
        width: 68px !important;
        max-width: 68px !important;
        height: 68px !important;
        border-radius: 8px !important;
    }

    .hdd02-gallery__thumbnail-item-text {
        font-size: 11px !important;
    }
}

/* ==========================================
   FIX PITA PUTIH ATAS HERO (hanya area PDP header)
   ========================================== */

/* Banner promo Samsung tidak relevan — menghilangkan strip abu di atas hero */
.pd-g-product-detail-offer-banner {
    display: none !important;
}

/* Sub-nav anchor & menu — hindari latar putih + garis hujan terlihat error */
.pdd39-anchor-nav__menu {
    background-color: #2E0854 !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12) !important;
}

.pdd39-anchor-nav__menu::before {
    background-color: rgba(255, 215, 0, 0.2) !important;
}

.pdd39-anchor-nav__header {
    background-color: #2E0854 !important;
}

.pdd39-anchor-nav__header::after {
    background: rgba(255, 215, 0, 0.15) !important;
}

/* Kolom galeri hero — selaras body gradient */
.hdd02-pdp-header.hdd02-pdp-header--ux-v2,
.hdd02-pdp-header__gallery-area,
.hdd02-pdp-header__gallery,
#pd-header-gallery.hdd02-gallery,
.hdd02-gallery__content,
.hdd02-gallery__list {
    background-color: transparent !important;
}

.hdd02-pdp-header__buying-tool {
    background: transparent !important;
}

/* Kotak abu besar (min-height Samsung) di belakang banner utama */
.hdd02-pdp-header--ux-v2 .hdd02-gallery__list .hdd02-gallery__image,
.hdd02-gallery__list .hdd02-gallery__image {
    background: linear-gradient(180deg, #2E0854 0%, #1A0533 100%) !important;
    background-color: #1A0533 !important;
    border-radius: 0 !important;
}

.hdd02-pdp-header--ux-v2 .hdd02-gallery__list .hdd02-gallery__image .image,
.hdd02-pdp-header--ux-v2 .hdd02-gallery__image .image,
.hdd02-pdp-header--ux-v2 .hdd02-gallery__image .first-image {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.hdd02-gallery__thumbnail-item-image {
    background: #2E0854 !important;
}

.hdd02-gallery__thumbnail {
    background: transparent !important;
}

.hdd02-pdp-header--ux-v2 .hdd02-gallery__list .hdd02-gallery__item:first-child,
.hdd02-gallery__list .hdd02-gallery__item:first-child {
    height: auto !important;
    min-height: 0 !important;
}
