/* ==============================================================
   HALAMAN TOKO & KATEGORI
   ============================================================== */
.woocommerce-breadcrumb, .woocommerce-products-header, .woocommerce-result-count { display: none !important; }
#secondary, .widget-area, #sidebar { display: none !important; }

/* Header Toko Premium */
.ghv-shop-header-wrapper { background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%); position: relative; padding: 20px 15px 0 15px; margin-bottom: 20px; overflow: hidden; }
.ghv-sh-bg-blob { position: absolute; right: -20px; top: 10px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(128, 128, 128, 0.10) 0%, rgba(128,128,128, 0) 70%); border-radius: 50%; z-index: 0; pointer-events: none; }
.ghv-sh-bg-stars { position: absolute; right: 20px; top: 30px; color: rgba(128, 128, 128, 0.10); font-size: 1.5rem; z-index: 0; pointer-events: none; }
.ghv-sh-title-area { display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; margin-bottom: 20px; }
.ghv-sh-icon { width: 55px; height: 55px; background: #fff; border: 2px solid rgba(128, 128, 128, 0.10); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--color-primary); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.ghv-sh-text h1 { margin: 0; font-size: 1.8rem; font-weight: 800; color: #222; line-height: 1.2; }
.ghv-sh-text p { margin: 3px 0 0 0; font-size: 0.85rem; color: #888; font-weight: 500; }

/* Filter & Sorting */
.ghv-sh-toolbar { display: flex; background: #fff; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; position: relative; z-index: 2; border: 1px solid #f2f2f2;}
.ghv-sh-filter, .ghv-sh-sort { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0; font-weight: 600; font-size: 0.9rem; color: #333; }
.ghv-sh-filter i, .ghv-sh-sort i { color: var(--color-primary); font-size: 1rem; }
.ghv-sh-divider { width: 1px; background: #eaeaea; margin: 12px 0; }
.custom-sort-form { position: relative; }
.custom-sort-form select { appearance: none; -webkit-appearance: none; border: none; background: transparent; font-weight: 600; color: #333; font-size: 0.9rem; padding-right: 15px; outline: none; cursor: pointer; }
.custom-sort-form::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 0.7rem; color: #333; pointer-events: none; }

/* Slider Kategori (Kapsul) */
.ghv-sh-cat-slider { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 5px; position: relative; z-index: 2; }
.ghv-sh-cat-slider::-webkit-scrollbar { display: none; }
.ghv-sh-cat-item { display: flex; align-items: center; gap: 6px; padding: 8px 18px; background: #fff; border: 1px solid #EAEAEA; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: #555; white-space: nowrap; text-decoration: none; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02);}
.ghv-sh-cat-item.active { border-color: var(--color-primary); color: var(--color-primary); }

/* Grid Produk 2 Kolom */
ul.products { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; margin: 0 15px 30px 15px !important; padding: 0 !important; list-style: none !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
ul.products li.product { width: 100% !important; margin: 0 !important; padding: 0 !important; border: 1px solid var(--color-border) !important; border-radius: 12px !important; overflow: hidden !important; position: relative !important; background: #fff !important; clear: none !important; float: none !important; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
ul.products li.product > a.woocommerce-LoopProduct-link, ul.products li.product .onsale, ul.products li.product .button:not(.ghv-custom-add-to-cart), ul.products li.product .star-rating, ul.products li.product .price, ul.products li.product .woocommerce-loop-product__title, ul.products li.product .added_to_cart { display: none !important; }

/* Pagination */
.woocommerce-pagination { padding: 0 15px 30px 15px; border: none !important; }
.woocommerce-pagination ul.page-numbers { border: none !important; display: flex; justify-content: center; gap: 5px; margin: 0; padding: 0;}
.woocommerce-pagination ul.page-numbers li { border: none !important; }
.woocommerce-pagination ul.page-numbers li a, .woocommerce-pagination ul.page-numbers li span { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 8px; background: #fff; border: 1px solid var(--color-border); color: var(--color-text-main); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.woocommerce-pagination ul.page-numbers li span.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* =========================================================
   LAYOUT HALAMAN TOKO (SHOP) - DESKTOP 3 KOLOM + SIDEBAR KIRI
   ========================================================= */
@media (min-width: 992px) {
    .ghv-shop-grid-container {
        display: flex !important;
        flex-wrap: wrap;
        max-width: 1250px;
        margin: 40px auto;
        gap: 40px;
        padding: 0 20px;
        align-items: flex-start;
    }
    
    .ghv-shop-grid-container #secondary,
    .ghv-shop-grid-container .widget-area {
        width: 25% !important;
        order: 1; 
        display: block !important;
    }
    
    .ghv-shop-grid-container #primary,
    .ghv-shop-grid-container .content-area {
        width: calc(75% - 40px) !important;
        order: 2; 
    }

    .ghv-shop-grid-container ul.products {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 25px !important;
    }
    .ghv-shop-grid-container ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* =========================================================
   LAYOUT TOKO (SIDEBAR KIRI & PRODUK KANAN)
   ========================================================= */
@media (min-width: 992px) {
    .ghv-shop-container {
        display: flex; align-items: flex-start; gap: 30px;
        max-width: 1250px; margin: 30px auto; padding: 0 20px;
    }
    .ghv-shop-sidebar {
        width: 270px; flex-shrink: 0; background: #fff;
        border-radius: 16px; padding: 25px; box-shadow: 0 4px 25px rgba(0,0,0,0.04);
        position: sticky; top: 20px; /* Sidebar akan melayang mengikuti scroll */
    }
    .ghv-shop-content { width: calc(100% - 300px); }
    
    .ghv-shop-content ul.products {
        display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important;
    }
    .ghv-shop-content ul.products li.product { width: 100% !important; margin: 0 !important; }
}

/* Sembunyikan sidebar di HP agar tidak menuhi layar */
@media (max-width: 991px) {
    .ghv-shop-sidebar { display: none; } 
    .ghv-shop-container { padding: 0 15px; }
}

/* =========================================================
   DESAIN WIDGET SIDEBAR (GAYA PREMIUM BOCI)
   ========================================================= */
.ghv-sidebar-header {
    font-size: 1.1rem; font-weight: 800; color: #111; margin-bottom: 25px;
    display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 2px solid #f2f2f2;
}

.ghv-widget { margin-bottom: 35px; }
.ghv-widget-title { font-size: 0.95rem; font-weight: 800; color: #222; margin-bottom: 15px; }

/* 1. Kategori (Gaya Kotak Centang/Checkbox) */
.ghv-widget.widget_product_categories ul { list-style: none; padding: 0; margin: 0; }
.ghv-widget.widget_product_categories ul li { padding: 8px 0; display: flex; justify-content: space-between; align-items: center; }
.ghv-widget.widget_product_categories ul li a { 
    color: #555; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: 0.2s; display: flex; align-items: center; gap: 10px; 
}
.ghv-widget.widget_product_categories ul li a::before {
    content: ''; display: inline-block; width: 14px; height: 14px; border: 1.5px solid #ccc; border-radius: 4px; transition: 0.2s;
}
.ghv-widget.widget_product_categories ul li a:hover { color: var(--color-primary); }
.ghv-widget.widget_product_categories ul li a:hover::before { border-color: var(--color-primary); }
.ghv-widget.widget_product_categories ul li .count { color: #888; font-size: 0.75rem; font-weight: 600; background: #f9f9f9; padding: 2px 8px; border-radius: 50px; }

/* 2. Filter Harga (Slider Bar) */
.widget_price_filter .price_slider_wrapper .ui-slider { background: #eaeaea; height: 4px; border-radius: 10px; margin-bottom: 20px; position: relative; margin-top: 15px; }
.widget_price_filter .price_slider_wrapper .ui-slider-range { background: var(--color-primary); height: 100%; position: absolute; border-radius: 10px; }
.widget_price_filter .price_slider_wrapper .ui-slider-handle { 
    width: 16px; height: 16px; background: #fff; border: 3px solid var(--color-primary); border-radius: 50%; position: absolute; top: -6px; cursor: pointer; outline: none; box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}
.widget_price_filter .price_slider_amount { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 600; color: #555; }
.widget_price_filter .price_slider_amount .button { display: none !important; } /* Sembunyikan tombol filter agar otomatis seperti Boci */
.widget_price_filter .price_label { font-size: 0.8rem; color: #888; }

/* 3. Produk Terlaris */
.ghv-widget.widget_products ul.product_list_widget { list-style: none; padding: 0; }
.ghv-widget.widget_products ul.product_list_widget li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f9f9f9; }
.ghv-widget.widget_products ul.product_list_widget li img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ghv-widget.widget_products ul.product_list_widget li .product-title { display: block; font-size: 0.8rem; font-weight: 700; color: #222; text-decoration: none; margin-bottom: 4px; line-height: 1.3; }
.ghv-widget.widget_products ul.product_list_widget li .product-title:hover { color: var(--color-primary); }
.ghv-widget.widget_products ul.product_list_widget li .star-rating { font-size: 0.7rem; color: #FFC107; margin-bottom: 4px; }
.ghv-widget.widget_products ul.product_list_widget li .amount { font-weight: 800; color: var(--color-primary); font-size: 0.85rem; }
.ghv-widget.widget_products ul.product_list_widget li del .amount { color: #aaa; font-weight: 500; font-size: 0.7rem; margin-right: 5px;}
/* Extracted ghv_shop_page_css */
/* MENGHILANGKAN ELEMEN BAWAAN & WIDGET SAMPING/BAWAH */
            .woocommerce-breadcrumb, .woocommerce-products-header { display: none !important; }
            #secondary, .widget-area, #sidebar { display: none !important; }

            /* ==================================================== */
            /* CSS HEADER TOKO PREMIUM */
            /* ==================================================== */
            .ghv-shop-header-wrapper {
                background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
                position: relative;
                padding: 20px 15px 0 15px;
                margin-bottom: 20px;
                overflow: hidden;
            }
            .ghv-sh-bg-blob {
                position: absolute; right: -20px; top: 10px; width: 180px; height: 180px;
                background: radial-gradient(circle, rgba(128, 128, 128, 0.10) 0%, rgba(128, 128, 128, 0.10); /* Faint pink */
                border-radius: 50%; z-index: 0; pointer-events: none;
            }
            .ghv-sh-bg-stars {
                position: absolute; right: 20px; top: 30px; color: rgba(128, 128, 128, 0.10); font-size: 1.5rem; z-index: 0; pointer-events: none;
            }

            .ghv-sh-title-area { display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; margin-bottom: 20px; }
            .ghv-sh-icon { width: 55px; height: 55px; background: #fff; border: 2px solid rgba(128, 128, 128, 0.10); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--color-primary); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
            .ghv-sh-text h1 { margin: 0; font-size: 1.8rem; font-weight: 800; color: #222; line-height: 1.2; }
            .ghv-sh-text p { margin: 3px 0 0 0; font-size: 0.85rem; color: #888; font-weight: 500; }

            .ghv-sh-toolbar { display: flex; background: #fff; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; position: relative; z-index: 2; border: 1px solid #f2f2f2;}
            .ghv-sh-filter, .ghv-sh-sort { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0; font-weight: 600; font-size: 0.9rem; color: #333; }
            .ghv-sh-filter i, .ghv-sh-sort i { color: var(--color-primary); font-size: 1rem; }
            .ghv-sh-divider { width: 1px; background: #eaeaea; margin: 12px 0; }
            
            .custom-sort-form { position: relative; }
            .custom-sort-form select { appearance: none; -webkit-appearance: none; border: none; background: transparent; font-weight: 600; color: #333; font-size: 0.9rem; padding-right: 15px; outline: none; font-family: inherit; cursor: pointer; }
            .custom-sort-form::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 0.7rem; color: #333; pointer-events: none; }

            .ghv-sh-cat-slider { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 5px; position: relative; z-index: 2; }
            .ghv-sh-cat-slider::-webkit-scrollbar { display: none; }
            .ghv-sh-cat-item { display: flex; align-items: center; gap: 6px; padding: 8px 18px; background: #fff; border: 1px solid #EAEAEA; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: #555; white-space: nowrap; text-decoration: none; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02);}
            .ghv-sh-cat-item.active { border-color: var(--color-primary); color: var(--color-primary); }
            .ghv-sh-cat-item i { font-size: 0.9rem; color: #888; }
            .ghv-sh-cat-item.active i { color: var(--color-primary); }

            /* ==================================================== */
            /* GRID PRODUK & KARTU BAWAHNYA */
            /* ==================================================== */
            ul.products { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; margin: 0 15px 30px 15px !important; padding: 0 !important; list-style: none !important; }
            .woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
            ul.products li.product { width: 100% !important; margin: 0 !important; padding: 0 !important; border: 1px solid var(--color-border) !important; border-radius: 12px !important; overflow: hidden !important; position: relative !important; background: #fff !important; clear: none !important; float: none !important; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
            ul.products li.product > a.woocommerce-LoopProduct-link, ul.products li.product .onsale, ul.products li.product .button:not(.ghv-custom-add-to-cart), ul.products li.product .star-rating, ul.products li.product .price, ul.products li.product .woocommerce-loop-product__title, ul.products li.product .added_to_cart { display: none !important; }

            /* PAGINATION (Pindah Halaman) */
            .woocommerce-pagination { padding: 0 15px 30px 15px; border: none !important; }
            .woocommerce-pagination ul.page-numbers { border: none !important; display: flex; justify-content: center; gap: 5px; margin: 0; padding: 0;}
            .woocommerce-pagination ul.page-numbers li { border: none !important; }
            .woocommerce-pagination ul.page-numbers li a, .woocommerce-pagination ul.page-numbers li span { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 8px; background: #fff; border: 1px solid var(--color-border); color: var(--color-text-main); font-weight: 600; text-decoration: none; padding: 0; font-size: 0.9rem; }
            .woocommerce-pagination ul.page-numbers li span.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

