/* ==============================================================
   HALAMAN PRODUK TUNGGAL (SINGLE PRODUCT)
   ============================================================== */
.single-product #secondary, .single-product .widget-area, .single-product .mobile-bottom-nav { display: none !important; }
body.single-product { padding-bottom: 90px !important; }

/* Layout Atas */
.woocommerce-product-gallery { border-radius: 16px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.ghv-single-title { font-size: 1.5rem; font-weight: 800; color: #222; margin: 0 0 8px 0; line-height: 1.3;}
.ghv-single-rating { display: flex; align-items: center; gap: 5px; font-size: 0.95rem; margin-bottom: 15px; }
.ghv-single-rating .fa-star { color: #FFC107; }
.ghv-single-rating span { font-weight: 700; color: #333; }
.ghv-single-rating .ghv-sales { color: #888; font-weight: 500; font-size: 0.85rem; }

/* Harga */
.ghv-single-price-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.ghv-price-sale { font-size: 1.7rem; font-weight: 800; color: var(--color-primary); }
.ghv-price-reg { font-size: 1.05rem; color: #a0a0a0; font-weight: 500; }
.ghv-price-save { background: rgba(196, 106, 130, 0.08); color: var(--color-primary); padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; border: 1px solid rgba(196, 106, 130, 0.15);}

/* Variasi Pill Kapsul */
table.variations { border: none; width: 100%; margin-bottom: 25px; }
table.variations th { padding: 0 0 10px 0; font-size: 0.85rem; font-weight: 600; color: #333; text-align: left; }
table.variations td { padding: 0; display: block; }
.woocommerce-variation-price { margin-bottom: 15px; font-weight: 600; font-size: 1.2rem; color: var(--color-primary); }
.ghv-swatch-container { display: flex; flex-wrap: wrap; gap: 10px; }
.ghv-swatch { padding: 8px 18px; border: 1px solid #EAEAEA; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: #555; cursor: pointer; transition: 0.2s; background: #fff;}
.ghv-swatch.active { border-color: var(--color-primary); color: var(--color-primary); background: rgba(196, 106, 130, 0.05); }

/* Tombol Qty +/- */
.woocommerce div.product form.cart div.quantity { float: none; margin: 0 0 20px 0; }
.ghv-qty-wrap { display: inline-flex; align-items: center; border: 1px solid #EAEAEA; border-radius: 50px; height: 44px; overflow: hidden; background: #fff;}
.ghv-qty-btn { background: none; border: none; width: 40px; height: 100%; font-size: 1.2rem; color: #555; cursor: pointer; display:flex; align-items:center; justify-content:center;}
.ghv-qty-wrap input.qty { width: 40px; border: none; text-align: center; font-weight: 700; font-size: 1rem; color: #333; background: transparent; padding:0; -moz-appearance: textfield;}
.ghv-qty-wrap input.qty::-webkit-outer-spin-button, .ghv-qty-wrap input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single_add_to_cart_button { display: none !important; } /* Asli disembunyikan */

/* Trust Badges & Accordion */
.ghv-sp-trust-badges { background: #fafafa; border-radius: 12px; display: flex; justify-content: space-between; padding: 15px 10px; margin-bottom: 25px; border: 1px solid #f2f2f2;}
.ghv-sp-trust-badges div { display: flex; align-items: center; gap: 5px; font-size: 0.65rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase;}
.ghv-sp-accordions { border: 1px solid #f2f2f2; border-radius: 16px; overflow: hidden; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.02);}
.ghv-accordion-item { border-bottom: 1px solid #f2f2f2; }
.ghv-acc-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: #333; font-size: 0.9rem; cursor: pointer; background: #fff;}
.ghv-acc-body { padding: 0 20px 20px 44px; font-size: 0.85rem; color: #666; line-height: 1.6; background: #fff; display: none;}
.ghv-accordion-item.active .acc-arrow { transform: rotate(180deg); }

/* Sticky Bar Bawah */
.ghv-sp-sticky-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; padding: 12px 15px; display: flex; gap: 10px; box-shadow: 0 -5px 20px rgba(0,0,0,0.08); z-index: 10000; border-top: 1px solid #f2f2f2;}
.ghv-sp-sticky-btn-wish { width: 48px; height: 48px; border: 1px solid #EAEAEA; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #666; background: #fff; cursor: pointer; outline: none; }
.ghv-sp-sticky-btn-add { flex: 1; height: 48px; border: 1.5px solid var(--color-primary); border-radius: 14px; background: #fff; color: var(--color-primary); font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.ghv-sp-sticky-btn-buy { flex: 1; height: 48px; border: none; border-radius: 14px; background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.85rem; box-shadow: 0 4px 10px rgba(196, 106, 130, 0.3); cursor: pointer; }

/* Produk Terkait */
.related.products h2 { font-size:1.1rem !important; font-weight:700 !important; margin-bottom:15px !important;}

/* Extracted ghv_single_product_ui_script */
/* MENCEGAH HORIZONTAL SCROLL & MENGHAPUS WIDGET LAMAN/ARSIP */
        html, body { overflow-x: hidden !important; }
        .ghv-sp-main-wrapper { max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }
        
        /* PEMUSNAH WIDGET BAWAAN (Laman, Arsip, Kategori) */
        .single-product #secondary, .single-product .widget-area, .single-product #sidebar, 
        .single-product aside, .single-product .footer-widgets, .single-product .widget { 
            display: none !important; width: 0 !important; height: 0 !important; padding: 0 !important; margin: 0 !important; 
        }

        .page-title, header.entry-header, .product_title:not(.ghv-single-title), .woocommerce-breadcrumb { display: none !important; }
        .woocommerce-tabs.wc-tabs-wrapper { display: none !important; }

        /* NOTIFIKASI POPUP KERANJANG */
        body.single-product .woocommerce-message, body.single-product .woocommerce-error, body.single-product .woocommerce-info {
            position: fixed !important; top: 20px !important; left: 50% !important; transform: translateX(-50%) !important;
            z-index: 99999 !important; background: var(--color-primary, #333) !important; color: #fff !important;
            padding: 12px 20px !important; border-radius: 8px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
            display: flex !important; align-items: center !important; justify-content: space-between !important;
            width: 90% !important; max-width: 450px !important; border: none !important; font-size: 0.85rem !important; 
            margin: 0 !important; animation: ghvSlideDown 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards !important;
            border-top: none !important;
        }
        body.single-product .woocommerce-message a.button {
            background: #fff !important; color: var(--color-primary, #333) !important; padding: 6px 12px !important;
            border-radius: 6px !important; text-decoration: none !important; font-size: 0.75rem !important;
            font-weight: 700 !important; margin-left: 10px !important; border: none !important; display: inline-block !important;
        }
        body.single-product .woocommerce-message::before { display: none !important; }
        @keyframes ghvSlideDown { from { top: -60px; opacity: 0; } to { top: 20px; opacity: 1; } }

        /* UI MOBILE */
        body.single-product { padding-bottom: 90px !important; background: #fff !important; }
        span.onsale { position: absolute !important; top: 15px !important; left: 15px !important; background: var(--color-primary) !important; color: #fff !important; font-size: 0.7rem !important; padding: 4px 10px !important; border-radius: 6px !important; font-weight: 700 !important; z-index: 99 !important; border: none !important; text-transform: uppercase; min-height: auto !important; min-width: auto !important; line-height: 1.2 !important;}
        .woocommerce-product-gallery { margin: 0 0 20px 0; border-radius: 0; box-shadow: none; width: 100%; }
        .woocommerce-product-gallery .flex-viewport { border-radius: 0 !important; }
        .woocommerce-product-gallery .flex-control-nav { padding: 0 15px 10px 15px; margin-bottom: 10px; }
        .woocommerce-product-gallery .flex-control-nav li img { border-radius: 6px; border: 1.5px solid transparent; }
        .woocommerce-product-gallery .flex-control-nav li img.flex-active { border-color: var(--color-primary); }

        .summary.entry-summary { padding: 0 15px; }
        .ghv-single-title { font-size: 1.4rem; font-weight: 700; color: #222; margin: 0 0 5px 0; line-height: 1.3;}
        .ghv-single-rating { display: flex; align-items: center; gap: 5px; font-size: 0.9rem; margin-bottom: 15px; }
        .ghv-single-rating .fa-star { color: #FFC107; }
        .ghv-single-rating .rating-val { font-weight: 700; color: #333; }
        .ghv-single-rating .ghv-sales { color: #999; font-weight: 500; font-size: 0.8rem; }
        .ghv-single-price-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
        .ghv-price-sale { font-size: 1.8rem; font-weight: 700; color: #222; }
        .ghv-price-reg { font-size: 1rem; color: #999; font-weight: 500; text-decoration: line-through; }
        .ghv-price-save { background: #fff; color: var(--color-primary); border: 1px solid var(--color-primary); padding: 3px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700;}

        /* Form Variasi */
        table.variations { border: none; width: 100%; margin-bottom: 5px; }
        table.variations tr { display: flex; flex-direction: column; margin-bottom: 10px; }
        table.variations th { padding: 0 0 6px 0; font-size: 0.85rem; font-weight: 600; color: #111; text-align: left; }
        table.variations td { padding: 0; display: block; }
        .woocommerce-variation-price { display: none !important; }

        .ghv-variations-wrapper { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
        .ghv-swatch-container { display: flex; flex-wrap: wrap; gap: 8px; }
        .ghv-swatch { padding: 6px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.8rem; font-weight: 500; color: #444; cursor: pointer; transition: 0.2s; background: #fff; line-height: 1.2;}
        .ghv-swatch.active { border: 1.5px solid var(--color-primary) !important; background: #fff !important; color: var(--color-primary) !important; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; }
        .ghv-swatch.active::after { content: '\f058'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 0.85rem;}
        .reset_variations { display: inline-flex !important; align-items: center; font-size: 0.8rem; color: var(--color-primary) !important; text-decoration: none !important; border: 1px solid var(--color-primary) !important; background: #fff; padding: 6px 14px; border-radius: 6px; transition: 0.2s; font-weight: 500; line-height: 1.2;}
        .reset_variations:hover { background: #fafafa; }

        .woocommerce-variation-availability { margin-top: 10px; width: 100%; display: block; }
        .woocommerce-variation-availability .stock { color: var(--color-primary) !important; background: #fff !important; border: 1px solid var(--color-primary); font-size: 0.8rem !important; font-weight: 600 !important; padding: 6px 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; line-height: 1.2;}
        .woocommerce-variation-availability .stock::before { content: '\f466'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 0.9rem;}

        .woocommerce div.product form.cart div.quantity { float: none; margin: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f2f2f2; padding-bottom: 15px; margin-bottom: 20px; margin-top: 15px;}
        .ghv-qty-label { font-size: 0.9rem; font-weight: 600; color: #111; }
        .ghv-qty-wrap { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 6px; height: 36px; overflow: hidden; background: #fff;}
        .ghv-qty-btn { background: none; border: none; width: 35px; height: 100%; font-size: 1.1rem; color: #555; cursor: pointer; display:flex; align-items:center; justify-content:center;}
        .ghv-qty-wrap input.qty { width: 35px; border: none; text-align: center; font-weight: 600; font-size: 0.95rem; color: #222; height: 100%; background: transparent; padding:0; -moz-appearance: textfield;}
        .ghv-qty-wrap input.qty::-webkit-outer-spin-button, .ghv-qty-wrap input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

        .single_add_to_cart_button { display: none !important; }

        /* Trust Badges */
        .ghv-sp-trust-badges { display: flex; justify-content: space-between; background: #fff; border: 1px solid #eaeaea; padding: 15px 10px; border-radius: 8px; margin-bottom: 20px;}
        .ghv-sp-trust-badges .tb-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.65rem; font-weight: 700; color: var(--color-primary); flex: 1; text-align: center;}
        .ghv-sp-trust-badges i { font-size: 1.2rem; color: var(--color-primary); }

        /* Accordions */
        .ghv-sp-accordions { border: 1px solid #eee; border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
        .ghv-accordion-item { border-bottom: 1px solid #eee; }
        .ghv-accordion-item:last-child { border-bottom: none; }
        .ghv-acc-header { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; font-weight: 500; color: #222; font-size: 0.85rem; cursor: pointer; background: #fff;}
        .ghv-acc-header i:first-child { width: 20px; color: #555; font-size: 0.9rem;}
        .ghv-acc-header .acc-arrow { color: #888; transition: transform 0.3s; font-size: 0.8rem;}
        .ghv-accordion-item.active .acc-arrow { transform: rotate(180deg); }
        .ghv-acc-body { padding: 0 15px 15px 35px; font-size: 0.8rem; color: #666; line-height: 1.5; background: #fff;}

        .ghv-desktop-actions { display: none; }

        /* Bar Sticky Bawah (Mobile) */
        .ghv-sp-sticky-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; padding: 12px 15px; display: flex; gap: 10px; box-shadow: 0 -5px 20px rgba(0,0,0,0.06); z-index: 10000; border-top: 1px solid #f2f2f2;}
        .ghv-sp-sticky-btn-wish { width: 44px; height: 44px; border: 1px solid #ddd; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #555; background: #fff; flex-shrink: 0; cursor: pointer; transition: 0.2s;}
        .ghv-sp-sticky-btn-add { flex: 1; height: 44px; border: 1.5px solid var(--color-primary); border-radius: 6px; background: #fff; color: var(--color-primary); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: 0.2s;}
        .ghv-sp-sticky-btn-buy { flex: 1; height: 44px; border: none; border-radius: 6px; background: var(--color-primary); color: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0, 0.1);}

        /* Header Produk Terkait */
        .related.products { padding: 0 15px; margin-top: 30px; clear: both;}
        .related.products > h2 { font-size: 1.1rem !important; font-weight: 700 !important; color: #222 !important; margin-bottom: 15px !important; display: flex; justify-content: space-between; align-items: center; }
        .related.products > h2::after { content: 'Lihat semua \203A'; font-size: 0.85rem; color: var(--color-primary); font-weight: 600; }

        /* TATA LETAK DESKTOP */
        @media (min-width: 992px) {
            body.single-product { padding-bottom: 0 !important; background: var(--color-background) !important; }
            .single-product div.product { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; max-width: 1200px; margin: 40px auto; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); }
            .single-product .woocommerce-product-gallery { width: calc(45% - 20px) !important; margin: 0 !important; box-shadow: none; border: 1px solid #f2f2f2; border-radius: 8px; }
            .single-product .summary.entry-summary { width: calc(55% - 20px) !important; margin: 0 !important; padding: 0 !important; }
            .ghv-sp-sticky-bar { display: none !important; }
            .ghv-desktop-actions { display: flex; gap: 15px; margin-top: 30px; }
            .ghv-desktop-actions button { flex: 1; height: 48px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px;}
            .ghv-desk-btn-add { border: 1.5px solid var(--color-primary); background: #fff; color: var(--color-primary); }
            .ghv-desk-btn-add:hover { background: #fafafa; }
            .ghv-desk-btn-buy { border: none; background: var(--color-primary); color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
            .ghv-desk-btn-buy:hover { opacity: 0.9; transform: translateY(-2px); }
            .single-product .related.products { width: 100% !important; flex: 0 0 100% !important; max-width: 1200px; margin: 50px auto 0 auto; padding: 0; }
            .related ul.products { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 20px !important; }
        }

