body {
  background: #f0f0f0 !important;
}
#main {
  background-color: #F0F0F0 !important;
}
.custom-product-page {
  margin-top: 20px;
}
.mils-tags {
  padding-bottom: 2em;
}
.mils-tags span.tagged_as {
  display: flex;
  width: max-content;
  gap: 5px;
}
.mils-tags span.tagged_as a {
  color: #fff;
  font-weight: 600;
  font-size: 1.3em;
  letter-spacing: 1.2px;
  background: #ADADAD;
  padding: 5px 15px;
  border-radius: .4em;
}
.mils-tags span.tagged_as a:hover {
  color: #fff;
}
.product-title-container h1.entry-title {
  font-weight: 700;
  color: #505050;
  font-size: 3em;
  margin-bottom: 1em;
}
.product-title-container .is-divider {
  display: none !important;
}
.price-wrapper .price.product-page-price {
  line-height: 2em;
}
span.woocommerce-Price-amount.amount {
  font-weight: 500;
  font-size: 1.8em;
  color: #505050;
}
.breadcrumbs a {
  font-weight: 500;
  font-size: 1.2em;
}
.product-short-description {
  display: none !important;
}
.cfvsw-product-page table.variations .label label {
  font-weight: 500;
  font-size: 1.3em;
  letter-spacing: 1.2px;
}
.cfvsw-swatches-option.cfvsw-label-option {
  padding: 10px 20px;
  border-radius: .6em !important;
}
table.variations {
  border-spacing: 0em 1em;
}
.ux-quantity {
  border: 1px solid rgba(0, 0, 0, .5);
  border-radius: .4em;
  overflow: hidden;
  padding: 5px 20px;
  background: #fff;
  margin: 0 !important;
}
.ux-quantity input, .quantity .button.minus, .quantity .button.plus {
  border-style: none !important;
  background-color: #fff;
  box-shadow: none !important;
}
.current .breadcrumb-step, [data-icon-label]:after, .button#place_order, .button.checkout, .checkout-button, .single_add_to_cart_button.button, .sticky-add-to-cart-select-options-button {
  text-decoration: none;
  text-transform: none;
  font-weight: 400;
  padding: 5px 30px;
  border-radius: .4em;
  overflow: hidden;
}
*[display="false"] {
  display: none !important;
}
.woocommerce-variation-add-to-cart {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: max-content 1fr max-content;
  grid-gap: 1em;
}
.yith-wcwl-add-to-wishlist {
  margin: 0;
  width: max-content;
  margin: 0;
  padding: 5px 15px;
  display: grid;
  justify-items: center;
  align-items: center;
  background-color: #D4D4D4;
  border-radius: .5em;
}
.yith-wcwl-add-to-wishlist span {
  display: none;
}
.single_add_to_cart_button {
  margin: 0 !important;
  background-color: #2F3133 !important;
}
.yith-wcwl-add-button .add_to_wishlist svg.yith-wcwl-icon-svg, .yith-wcwl-add-button .add_to_wishlist img {
  margin: 0;
}
.cfvsw-label-option, .cfvsw-image-option {
  border: 1px solid #00000000;
}
.cfvsw-swatches-option:not( .cfvsw-swatches-disabled, .cfvsw-swatches-out-of-stock ):hover {
  border-color: #000000c7;
}

/* Sembunyikan Tabs Bawaan Flatsome */
.product-footer .woocommerce-tabs.wc-tabs-wrapper,
.woocommerce-tabs.wc-tabs-wrapper.tabbed-content {
    display: none !important;
}

/* Container Utama */
.woocommerce-tabs-accordion.custom-accordion {
    margin-top: 30px;
    border-top: 2px solid #c8c8c8;
    border-bottom: 2px solid #c8c8c8;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    clear: both;
}

/* Item Wrapper */
.woocommerce-tabs-accordion .accordion-item {
    border-bottom: 2px solid #c8c8c8;
    background: #ffffff00;
}

.woocommerce-tabs-accordion .accordion-item:last-child {
    border-bottom: none;
}

/* Header (Judul) */
.woocommerce-tabs-accordion .accordion-header {
    background-color: #fcfcfc00;
    padding: 20px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    outline: none;

}

/* Hover Effect */
.woocommerce-tabs-accordion .accordion-header:hover {
    background-color: #ffffff00;
}

/* Remove default marker */
.woocommerce-tabs-accordion .accordion-header::-webkit-details-marker {
    display: none;
}
/* Panah Chevron (Kanan) menggunakan CSS Border */
.accordion-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg); /* Membentuk panah ke bawah */
    transition: transform 0.3s ease;
    margin-right: 5px;
}

/* STATE: OPEN (Saat Terbuka) */
.woocommerce-tabs-accordion .accordion-item[open] .accordion-arrow {
    transform: rotate(-135deg); /* Memutar panah ke atas */
    border-color: #333;
}

/* Ubah warna header saat terbuka */
.woocommerce-tabs-accordion .accordion-item[open] .accordion-header {
    background-color: #ffffff00;
    border-bottom: 1px solid #f0f0f0;
}

/* Konten dengan Animasi Slide Down */
.woocommerce-tabs-accordion .accordion-content {
    padding: 20px;
    background: #ffffff00;

    line-height: 1.6;
    color: #555;
    /* Animasi */
    animation: slideDown 0.4s ease-out;
    transform-origin: top;
}

/* Keyframes untuk efek smooth opening */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix untuk Judul Ganda di Description/Reviews */
.woocommerce-tabs-accordion .accordion-content > h2:first-child,
.woocommerce-tabs-accordion .accordion-content > h3:first-child {
    display: none;
}
.is-sticky-column {
    top: 90px !important; 
}
.accordion-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-title-wrapper .material-icons {
    font-size: 20px;
    color: #555;
    line-height: 1;
    display: inline-block;
}

.accordion-header:hover .accordion-title-wrapper .material-icons,
.accordion-item[open] .accordion-title-wrapper .material-icons {
    color: #333;
}

accordion-title-wrapper .custom-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Styling SVG */
.accordion-title-wrapper .custom-svg-icon svg {
    width: 1.125em; /* Ukuran relatif terhadap teks (kira-kira 18px) */
    height: 1.125em;
    stroke-width: 2px; /* Ketebalan garis, sesuaikan jika perlu */
    transition: all 0.3s ease;
    color: #555; /* Warna default (abu-abu) */
}

.accordion-title-wrapper i {
    font-size: 1.125em;
}

/* Styling Wrapper Icon */
.accordion-title-wrapper .custom-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-right: 2px; /* Sedikit penyesuaian jarak */
}

/* Styling SVG (Ukuran & Garis) */
.accordion-title-wrapper .custom-svg-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.3px;
    transition: all 0.3s ease;
    color: #555;   /* Warna default (Abu-abu) */
}
.accordion-title-text {
    font-size: 1.3em;
    font-weight: 500;
}

@media (max-width: 767px) {
  .product-title-container h1.entry-title {
    font-size: 1.6em;
  }
  .product-page-price {
    font-size: .8em
  }
}
/* === FIXED: SLIDER THUMBNAIL DENGAN SCROLL === */

/* 1. Container Slider */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important; /* Paksa satu baris lurus */
    overflow-x: auto !important; /* Wajib auto agar scrollbar muncul */
    overflow-y: hidden !important;
    width: 100% !important;
    padding: 10px 0 !important;
    
    /* UX Modern */
    scroll-snap-type: x mandatory; /* Agar berhenti pas di gambar */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scroll untuk iOS */
    
    /* Penting: Izinkan browser menangani geseran */
    touch-action: pan-x;
    cursor: grab;
}

/* 2. Item Thumbnail (3 Gambar per Slide) */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li {
    /* Mencegah gambar menyusut (Shrink) agar overflow terjadi */
    flex: 0 0 33.333% !important; 
    max-width: 33.333% !important;
    width: 33.333% !important;
    
    /* Snap align */
    scroll-snap-align: start;
    
    padding: 0 5px !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

/* 3. Gambar */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    opacity: 0.5;
    transition: opacity 0.3s;
    display: block !important;
}

/* 4. Highlight Gambar Aktif */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
    border: 1px solid #333 !important;
}

/* --- BAGIAN PENTING: SCROLLBAR NAVIGASI --- */

/* Tampilkan scrollbar tipis agar user Desktop bisa menggeser */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
    height: 6px; /* Tinggi scrollbar (cukup tebal untuk diklik mouse) */
    display: block !important; /* Paksa muncul */
}

/* Track (Jalur) Scrollbar */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}

/* Handle (Batang) Scrollbar yang bergerak */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar-thumb {
    background: #ccc; /* Warna batang */
    border-radius: 4px;
}

/* Efek saat mouse diarahkan ke scrollbar */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar-thumb:hover {
    background: #888; 
}

/* --- Styling Video di Dalam Slider Thumbnail --- */

/* --- SYSTEM VIDEO OVERLAY --- */

/* 1. Mengatur Player Video Utama agar menutupi gambar produk */
.mils-video-overlay {
    display: none; /* Sembunyi default */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Menutupi area hijau sepenuhnya */
    background: #000;
    z-index: 99; /* Pastikan di atas gambar */
    align-items: center;
    justify-content: center;
}

/* Membuat Iframe Responsive di Tengah */
.mils-video-responsive {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.mils-video-responsive iframe {
    width: 100%;
    height: 100%; /* Full area */
    object-fit: contain;
}

/* 2. Styling Thumbnail Video di Slider Bawah */
.mils-video-thumb-li {
    position: relative;
    cursor: pointer;
    flex: 0 0 33.333% !important; /* Wajib sama dengan settingan slider kamu */
    max-width: 33.333% !important;
    padding: 0 5px !important;
    box-sizing: border-box;
}

/* Gambar Thumbnail Youtube */
.mils-video-thumb-li img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0.6;
    transition: 0.3s;
}

/* Efek Highlight saat Aktif */
.mils-video-thumb-li img.flex-active {
    opacity: 1 !important;
    border: 2px solid #000; /* Border penanda */
}

/* Ikon Play Kecil di tengah Thumbnail (Pemanis) */
.mils-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none; /* Agar klik tembus ke li */
}

/* --- Tambahan Tombol Close --- */
.mils-close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: 0.2s;
}
.mils-close-video:hover {
    background: red;
}

/* Pastikan Overlay tetap absolute dan full terhadap PARENT-nya (Viewport) */
.mils-video-overlay {
    position: absolute !important; /* Paksa absolute */
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 999;
}
