/* Override harga WooCommerce: warna hitam pekat & spasi yang jelas */

/* Single product summary price: paksa hitam pekat */
.woocommerce div.product .summary .price,
.woocommerce div.product .summary.entry-summary .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #000 !important;
  font-weight: 700;
  line-height: 1.5;
  margin: 14px 0 12px !important;
  font-size: 24px !important;
  display: block;
}
.woocommerce div.product .summary .price *,
.woocommerce div.product .summary.entry-summary .price * {
  font-size: 22px !important;
  line-height: 1.4 !important;
}

/* Super-spesifik: target amount dalam summary entry-summary agar tak kembali abu-abu */
body.single-product .woocommerce div.product .summary.entry-summary p.price span.woocommerce-Price-amount.amount,
body.single-product .woocommerce div.product .summary.entry-summary p.price span.woocommerce-Price-amount.amount bdi,
body.single-product .woocommerce div.product .summary.entry-summary p.price .woocommerce-Price-currencySymbol {
  color: #000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

/* Target elemen dalam price agar tidak kembali abu-abu */
.woocommerce .price .woocommerce-Price-amount,
.woocommerce .price .amount,
.woocommerce .price bdi,
.woocommerce div.product .summary .price .amount,
.woocommerce div.product .summary .price .woocommerce-Price-amount,
.woocommerce div.product .summary .price bdi,
.woocommerce div.product .summary .price .woocommerce-Price-amount,
.woocommerce div.product .summary .price bdi,
.woocommerce div.product p.price .woocommerce-Price-amount,
.woocommerce div.product p.price bdi,
.woocommerce div.product span.price .woocommerce-Price-amount,
.woocommerce div.product span.price bdi {
  color: #000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

/* Harga diskon (ins) tetap hitam tebal untuk harga aktif */
.woocommerce .price ins,
.woocommerce .price ins .amount,
.woocommerce .price ins bdi {
  color: #000 !important;
  font-weight: 700 !important;
}

/* Product grid / archive price di bawah gambar */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount {
  color: #000 !important;
  font-weight: 700;
}
.woocommerce ul/products li.product .price,
.woocommerce ul.products li.product .price {
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Tambahkan jeda di bawah harga single product agar tidak berhimpitan dengan qty atau tombol */
body.single-product .woocommerce div.product .summary.entry-summary .price {
  padding-bottom: 10px !important;
}

/* Tambahkan jarak di atas qty & tombol agar tidak menghimpit harga */
body.single-product .woocommerce div.product .summary.entry-summary .quantity,
body.single-product .woocommerce div.product .summary.entry-summary .single_add_to_cart_button,
body.single-product .woocommerce div.product .summary.entry-summary form.cart {
  margin-top: 12px !important;
}

/* Pastikan harga tidak menempel ke gambar dengan menambah ruang di container summary */
body.single-product .woocommerce div.product .summary.entry-summary {
  padding-top: 16px;
}

/* Tambahkan garis pemisah halus di bawah harga agar hierarki jelas */
body.single-product .woocommerce div.product .summary.entry-summary .price {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Pastikan area harga tidak kolaps ketika ada variasi atau badge */
body.single-product .woocommerce div.product .summary.entry-summary .price,
body.single-product .woocommerce div.product .summary.entry-summary p.price {
  min-height: 28px;
}

/* Cart table price & subtotal */
.woocommerce-cart-form td.product-price .woocommerce-Price-amount,
.woocommerce-cart-form td.product-subtotal .woocommerce-Price-amount,
.woocommerce-cart-form td.product-price .amount,
.woocommerce-cart-form td.product-subtotal .amount {
  color: #000 !important;
  font-weight: 700;
}
.woocommerce-cart-form td.product-price,
.woocommerce-cart-form td.product-subtotal {
  vertical-align: middle;
}

/* Harga promo: harga coret dibuat lebih kalem */
.woocommerce .price del,
.woocommerce .price del .amount,
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del .amount {
  color: #777 !important;
  font-weight: 500;
}

/* ====== CART & CART TOTALS: paksa warna hitam pekat ====== */
/* Baris harga pada tabel cart (product-price & product-subtotal) */
.woocommerce .woocommerce-cart-form table.shop_table.shop_table_responsive.cart td.product-price .woocommerce-Price-amount,
.woocommerce .woocommerce-cart-form table.shop_table.shop_table_responsive.cart td.product-subtotal .woocommerce-Price-amount,
.woocommerce .woocommerce-cart-form table.shop_table.shop_table_responsive.cart td.product-price .amount,
.woocommerce .woocommerce-cart-form table.shop_table.shop_table_responsive.cart td.product-subtotal .amount,
.woocommerce .woocommerce-cart-form table.shop_table.shop_table_responsive.cart td.product-price .woocommerce-Price-currencySymbol,
.woocommerce .woocommerce-cart-form table.shop_table.shop_table_responsive.cart td.product-subtotal .woocommerce-Price-currencySymbol {
  color: #000 !important;
  font-weight: 700 !important;
}

/* Umumkan di semua cell tabel cart untuk mencegah pewarnaan abu-abu */
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal,
.woocommerce .woocommerce-cart-form table.shop_table td.product-price,
.woocommerce .woocommerce-cart-form table.shop_table td.product-subtotal {
  color: #000 !important;
}

/* Cart totals (subtotal & total) */
.woocommerce .cart_totals table.shop_table tr.cart-subtotal td .woocommerce-Price-amount,
.woocommerce .cart_totals table.shop_table tr.cart-subtotal td .amount,
.woocommerce .cart_totals table.shop_table tr.cart-subtotal td .woocommerce-Price-currencySymbol,
.woocommerce .cart_totals table.shop_table tr.order-total td .woocommerce-Price-amount,
.woocommerce .cart_totals table.shop_table tr.order-total td .amount,
.woocommerce .cart_totals table.shop_table tr.order-total td .woocommerce-Price-currencySymbol {
  color: #000 !important;
  font-weight: 700 !important;
}

/* Fallback umum untuk semua angka pada tabel WooCommerce */
.woocommerce table.shop_table .woocommerce-Price-amount,
.woocommerce table.shop_table .amount,
.woocommerce table.shop_table .woocommerce-Price-currencySymbol {
  color: #000 !important;
  font-weight: 700 !important;
}

.wc-block-components-product-price,
.wc-block-grid__product-price,
.wc-block-featured-product__price,
.wc-block-components-formatted-money-amount,
.wc-block-components-product-price__value,
.wc-block-components-product-price__regular,
.wc-block-components-product-price__value.is-discounted {
  color: #000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
.wc-block-components-product-price del,
.wc-block-grid__product-price del,
.wc-block-featured-product__price del {
  color: #777 !important;
  font-weight: 500 !important;
}
.wc-block-components-product-price ins,
.wc-block-grid__product-price ins,
.wc-block-featured-product__price ins {
  color: #000 !important;
  font-weight: 700 !important;
}

body.single-product .woocommerce div.product .summary.entry-summary .price .woocommerce-Price-amount.amount,
body.single-product .woocommerce div.product .summary.entry-summary .price .woocommerce-Price-amount.amount bdi,
body.single-product .woocommerce div.product .summary.entry-summary .price .woocommerce-Price-currencySymbol {
  font-size: 28px !important;
  line-height: 1.5 !important;
}
