@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Poppins", sans-serif;
}

/* Sembunyikan tombol add_to_cart hanya di halaman dengan ID 123 */
.page-id-176 .product_type_variable.add_to_cart_button {
  display: none !important;
}

.page-id-176 a {
  text-decoration: none !important;
}

.custom-filter-container {
  margin: 2rem 0;
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
  align-items: flex-start;
}

.custom-filter-left {
  flex: 1;
}

.custom-filter-right {
  flex: 1;
}

#notes {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;

  /* tambahan untuk scroll & tinggi */
  min-height: 120px;
  max-height: 400px;
  overflow-y: auto; /* scroll vertikal */
}

.notes-text {
  font-size: 18px;
  text-align: center;
  font-weight: 400;
  color: #524233;
}

.note {
  display: inline-block;
  min-width: 100px;
  padding: 10px 15px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  margin: 5px;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.note:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#filter-notes {
  margin-top: 1rem;
}

.filtered-note {
  background: #ddd;
  padding: 6px 10px;
  margin: 0 5px 5px 0;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
}

/* ===== Daftar Produk (hasil filter) ===== */
#daftar-produk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0 auto;
  margin-top: 1em;
  list-style: none;
}

#daftar-produk .product,
#daftar-produk > li {
  width: 100% !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

#daftar-produk img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 576px) {
  #daftar-produk {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }
}

/* ===== Rekomendasi Produk ===== */
#rekomendasi-produk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#rekomendasi-produk .product,
#rekomendasi-produk > li {
  width: 100% !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

#rekomendasi-produk img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 576px) {
  #rekomendasi-produk {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }
}

#daftar-produk {
  position: relative;
}

#daftar-produk .loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 10%);
}

.product_type_simple {
  font-size: 16px !important;
  font-weight: 700 !important;
}

.woocommerce-loop-product__title {
  padding-top: 1rem;
  font-size: 1em;
}

/* Modal ukuran */
#sizeModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9999;
}
.size-modal-content {
  background: #fff;
  padding: 20px;
  max-width: 400px;
  margin: 10% auto;
  border-radius: 8px;
  text-align: center;
}

.variation-item {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin: 10px 0;
}

.variation-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 8px;
}

.qty-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

/* Hide price on single product page */
.single-product .price,
.single-product .woocommerce-variation-price {
  display: none !important;
}

/* Hide product category (like 'Uncategorized') */
.single-product .posted_in,
.single-product .product_meta {
  display: none !important;
}

/* Sembunyikan breadcrumb */
.woocommerce-breadcrumb {
  display: none !important;
}

@media (min-width: 922px) {
  .woocommerce #content .ast-woocommerce-container div.product div.summary,
  .woocommerce .ast-woocommerce-container div.product div.summary,
  .woocommerce-page #content .ast-woocommerce-container div.product div.summary,
  .woocommerce-page .ast-woocommerce-container div.product div.summary {
    width: 80% !important; /* ubah sesuai kebutuhan */
  }
}

/* Tengahkan layout */
.single-product .product {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.single-product .summary.entry-summary {
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

/* Perbesar gambar atribut */
.variations_form img {
  width: 130px !important;
  height: 130px !important;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

/* Hover & selected */
.variations_form img:hover {
  border-color: #b36b00;
  transform: scale(1.05);
}
.variations_form img.selected {
  border-color: #b36b00;
  box-shadow: 0 0 10px rgba(179, 107, 0, 0.5);
}

/* Rapiin jarak antar bagian */
.variations_form table.variations tr {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

/* Spasi bawah tombol add to cart */
.single-product form.cart {
  margin-top: 30px;
}

/* === Atur ukuran keseluruhan kotak variasi === */
.variable-item.image-variable-item {
  width: 120px !important;
  height: 160px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* === Variasi non-gambar (misal warna atau teks) tetap normal === */
.variable-item:not(.image-variable-item) {
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 10px; /* opsional biar rapi */
  border-radius: 6px;
}

/* === Atur isi di dalam kotak === */
.variable-item.image-variable-item .variable-item-contents {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* === Atur gambar agar proporsional dan tidak gepeng === */
.variable-item.image-variable-item .variable-item-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 16px !important;
}

/* === Tambahkan jarak antar item === */
.image-variable-items-wrapper .variable-item {
  margin: 8px !important;
}

/* === Efek saat dipilih === */
.variable-item.selected {
  border: 3px solid #333 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

.single-product .single-product-category {
  display: none !important;
}

.wc-proceed-to-checkout .checkout-button.button.alt.wc-forward:last-of-type {
  display: none !important;
}
