/*
Theme Name:   Astra Child
Template:     astra
Version:      1.0.0
Description:  Astra Child Theme untuk toko afiliasi
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --warna-merah: #e8194b;
  --warna-merah-hover: #c4103a;
  --warna-kuning-bintang: #f5a623;
  --warna-teks: #333333;
  --warna-border: #e0e0e0;
  --font-utama: 'Poppins', sans-serif;
}

/* Semua elemen pakai Poppins */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, input {
  font-family: var(--font-utama) !important;
}

/* Sembunyikan judul halaman 
.page-title, .entry-title, h1.page-title, h1.entry-title {
  display: none !important;
}*/

/* =============================================
   HEADER
   ============================================= */
.site-header, #masthead, .main-header-bar {
  background-color: var(--warna-merah) !important;
  padding: 12px 0 !important;
}
.site-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  font-style: italic !important;
  margin: 0 !important;
}
.site-title a, .site-title a:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}
.site-description {
  color: rgba(255,255,255,0.85) !important;
  font-size: 11px !important;
  font-style: italic !important;
  margin: 0 !important;
}

/* =============================================
   MENU NAVIGASI — putih di bawah header
   ============================================= */

/* Bar putih bawah header */
#ast-desktop-header .ast-above-header-bar,
#ast-desktop-header .ast-below-header-bar,
.ast-primary-header-bar,
.main-navigation,
.ast-main-header-wrap {
  background: #ffffff !important;
}

/* Styling menu item */
.main-navigation ul li a,
.ast-nav-menu > li > a,
#primary-menu > li > a {
  font-family: var(--font-utama) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #444444 !important;
  padding: 12px 16px !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
  letter-spacing: 0.2px !important;
}

.main-navigation ul li a:hover,
.ast-nav-menu > li > a:hover,
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
  color: var(--warna-merah) !important;
  border-bottom: 2px solid var(--warna-merah) !important;
}

/* Panah dropdown */
.main-navigation ul li:has(> ul) > a::after,
#primary-menu li:has(> .sub-menu) > a::after {
  content: " ▾" !important;
  font-size: 10px !important;
  color: #aaa !important;
}

/* =============================================
   DROPDOWN SUB-MENU
   ============================================= */
.main-navigation ul li ul,
#primary-menu li .sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 190px !important;
  background: #ffffff !important;
  border-top: 2px solid var(--warna-merah) !important;
  border: 1px solid var(--warna-border) !important;
  border-top: 2px solid var(--warna-merah) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  z-index: 9999 !important;
  padding: 4px 0 !important;
  list-style: none !important;
  margin: 0 !important;
}

.main-navigation ul li:hover > ul,
#primary-menu li:hover > .sub-menu {
  display: block !important;
}

.main-navigation ul li ul li a,
#primary-menu li .sub-menu li a {
  padding: 9px 20px 9px 18px !important;
  font-size: 13px !important;
  color: #555 !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.main-navigation ul li ul li a::before,
#primary-menu li .sub-menu li a::before {
  content: "•" !important;
  color: var(--warna-merah) !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  line-height: 1 !important;
}
.main-navigation ul li ul li a:hover,
#primary-menu li .sub-menu li a:hover {
  background: #fff5f7 !important;
  color: var(--warna-merah) !important;
  border-bottom: none !important;
}

/* =============================================
   SECTION HEADER — NEW PRODUCTS + LIHAT SEMUA
   ============================================= */
.afilia-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 24px 0 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--warna-border) !important;
}
.afilia-section-header .section-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--warna-teks) !important;
  font-family: var(--font-utama) !important;
  letter-spacing: 0.5px !important;
}
.afilia-section-header .badge-shopping {
  background-color: var(--warna-merah) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  margin-left: 6px !important;
  letter-spacing: 0.3px !important;
}
.afilia-section-header .lihat-semua {
  color: var(--warna-merah) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-family: var(--font-utama) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 14px !important;
  border: 1.5px solid var(--warna-merah) !important;
  border-radius: 20px !important;
  transition: all 0.2s !important;
}
.afilia-section-header .lihat-semua:hover {
  background: var(--warna-merah) !important;
  color: #ffffff !important;
}

/* =============================================
   GRID PRODUK
   ============================================= */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products,
body ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

/* =============================================
   CARD PRODUK — tombol sejajar dengan flexbox
   ============================================= */
ul.products li.product,
.woocommerce ul.products li.product,
body ul.products li.product {
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid var(--warna-border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  /* KUNCI: flex column + tinggi penuh agar tombol selalu di bawah */
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}
ul.products li.product:hover {
  box-shadow: 0 6px 20px rgba(232,25,75,0.12) !important;
  transform: translateY(-2px) !important;
}

/* Gambar */
ul.products li.product a img,
ul.products li.product img,
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-bottom: 1px solid var(--warna-border) !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  flex-shrink: 0 !important;
}

/* Wrapper konten tengah — flex grow agar tombol terdorong ke bawah */
ul.products li.product .woocommerce-loop-product__link {
  display: block !important;
}

/* Nama produk */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
  font-family: var(--font-utama) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: var(--warna-teks) !important;
  padding: 10px 12px 4px !important;
  margin: 0 !important;
  /* 2 baris fixed — kunci sejajar tombol */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 42px !important; /* 2 baris × line-height */
  text-decoration: none !important;
}

/* Harga */
ul.products li.product .price,
.woocommerce ul.products li.product .price {
  font-family: var(--font-utama) !important;
  color: var(--warna-merah) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 2px 12px 6px !important;
  margin: 0 !important;
  display: block !important;
}

/* Bintang */
ul.products li.product .star-rating {
  margin: 0 12px 4px !important;
  font-size: 12px !important;
}
ul.products li.product .star-rating::before,
ul.products li.product .star-rating span::before {
  color: var(--warna-kuning-bintang) !important;
}

/* Nama toko */
.afilia-store-name {
  font-family: var(--font-utama) !important;
  font-size: 12px !important;
  color: #666 !important;
  padding: 0 12px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  /* flex-grow mendorong tombol ke bawah */
  flex: 1 !important;
  align-content: flex-start !important;
}
.afilia-store-name .centang { color: #2ea44f !important; font-weight: 700 !important; }

/* Sembunyikan kategori di card */
ul.products li.product .ast-woo-product-category,
ul.products li.product .product-category-link {
  display: none !important;
}

/* =============================================
   TOMBOL — selalu di bawah, sejajar semua card
   ============================================= */
ul.products li.product a.button img,
ul.products li.product .button img {
  display: none !important;
}

ul.products li.product a.button,
ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button {
  font-family: var(--font-utama) !important;
  background: var(--warna-merah) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 0 12px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 12px 12px !important;
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  /* Kunci: margin-top auto → selalu di paling bawah */
  margin-top: auto !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  box-sizing: border-box !important;
  min-height: 44px !important;
  letter-spacing: 0.3px !important;
}
ul.products li.product a.button::before,
ul.products li.product .button::before {
  content: "🛒" !important;
  font-size: 14px !important;
}
ul.products li.product a.button:hover,
ul.products li.product .button:hover {
  background: var(--warna-merah-hover) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  ul.products, .woocommerce ul.products, .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
  ul.products li.product a img, ul.products li.product img {
    height: 160px !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  ul.products, .woocommerce ul.products, .woocommerce-page ul.products, body ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 0 2px !important;
  }

  ul.products li.product a img, ul.products li.product img,
  .woocommerce ul.products li.product a img {
    height: 130px !important;
  }

  ul.products li.product .woocommerce-loop-product__title,
  ul.products li.product h2 {
    font-size: 11px !important;
    padding: 8px 8px 3px !important;
    min-height: 38px !important;
  }

  ul.products li.product .price {
    font-size: 12px !important;
    padding: 2px 8px 4px !important;
  }

  ul.products li.product .star-rating {
    margin: 0 8px 4px !important;
    font-size: 10px !important;
  }

  .afilia-store-name {
    font-size: 10px !important;
    padding: 0 8px 8px !important;
  }

  ul.products li.product a.button, ul.products li.product .button {
    font-size: 11px !important;
    padding: 10px 6px !important;
    min-height: 38px !important;
    gap: 4px !important;
  }
  ul.products li.product a.button::before, ul.products li.product .button::before {
    font-size: 12px !important;
  }

  /* Section header mobile */
  .afilia-section-header .section-title {
    font-size: 14px !important;
  }
  .afilia-section-header .lihat-semua {
    font-size: 12px !important;
    padding: 5px 10px !important;
  }
}

/* =============================================
   HALAMAN DETAIL PRODUK
   ============================================= */
.woocommerce div.product .product_title {
  font-family: var(--font-utama) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}
.woocommerce div.product .price {
  color: var(--warna-merah) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}
.woocommerce div.product .cart .single_add_to_cart_button {
  font-family: var(--font-utama) !important;
  background-color: var(--warna-merah) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  transition: background 0.2s !important;
}
.woocommerce div.product .cart .single_add_to_cart_button:hover {
  background-color: var(--warna-merah-hover) !important;
}
.woocommerce div.product form.cart .quantity { display: none !important; }
.woocommerce div.product .posted_in a { color: var(--warna-merah) !important; font-weight: 600 !important; }

/* Umum */
a { color: var(--warna-merah); }
a:hover { color: var(--warna-merah-hover); }

/* =============================================
   FIX TOMBOL SEJAJAR — override tambahan
   ============================================= */

/* Paksa semua card sama tinggi dalam grid */
.woocommerce ul.products,
ul.products {
  align-items: stretch !important;
}

/* Card harus stretch penuh */
ul.products li.product,
.woocommerce ul.products li.product {
  height: auto !important;
  min-height: 100% !important;
}

/* Nama produk: fix 2 baris SELALU */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2.woocommerce-loop-product__title {
  height: 42px !important;        /* fix height, bukan min-height */
  min-height: 42px !important;
  max-height: 42px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  margin-bottom: 0 !important;
}

/* Spacer transparan antara konten dan tombol */
ul.products li.product .price {
  flex-shrink: 0 !important;
}

/* Tombol benar-benar di paling bawah */
ul.products li.product a.button,
ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button {
  margin-top: auto !important;
  position: relative !important;
  bottom: 0 !important;
  flex-shrink: 0 !important;
}

/* FIX MENU DI HEADER — sembunyikan menu yang nyasar ke header merah */
.main-header-bar .main-navigation,
.main-header-bar #site-navigation,
.ast-primary-header-bar .main-navigation {
  display: none !important;
}

/* Tampilkan menu hanya di below/above header (bar putih) */
#ast-below-header .main-navigation,
#ast-above-header .main-navigation,
.ast-below-header-bar .main-navigation,
.ast-above-header-bar .main-navigation {
  display: flex !important;
}

/* =============================================
   HEADER RAPIH — mirip Afiliamart
   ============================================= */

/* Background header merah */
#masthead,
.site-header,
.main-header-bar,
.ast-primary-header-bar {
  background-color: #e8194b !important;
}

/* Logo teks — bold italic putih */
.site-branding .site-title,
.ast-site-identity .site-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  font-style: italic !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}
.site-branding .site-title a,
.ast-site-identity .site-title a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--font-utama) !important;
}
.site-branding .site-description,
.ast-site-identity .site-description {
  color: rgba(255,255,255,0.9) !important;
  font-size: 11px !important;
  font-style: italic !important;
  margin: 0 !important;
  font-family: var(--font-utama) !important;
}

/* Search bar */
.ast-search-menu-icon .search-field,
header .search-field,
.main-header-bar .search-field {
  background: #ffffff !important;
  border: none !important;
  border-radius: 4px 0 0 4px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  height: 42px !important;
  width: 100% !important;
  outline: none !important;
  color: #333 !important;
}
.ast-search-menu-icon .search-submit,
header .search-submit,
.main-header-bar .search-submit {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 4px 4px 0 !important;
  padding: 0 18px !important;
  height: 42px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: var(--font-utama) !important;
  white-space: nowrap !important;
}

/* Ikon header kanan — putih */
.main-header-bar .ast-masthead-custom-menu-items a,
.main-header-bar .ast-header-custom-item a,
.main-header-bar .menu-toggle,
.main-header-bar .ast-mobile-header-wrap .menu-toggle,
.header-main-layout-1 .ast-masthead-custom-menu-items svg,
.main-header-bar nav a {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* =============================================
   BAR KATEGORI — putih di bawah header
   ============================================= */

/* Bar navigasi secondary */
.ast-above-header-bar,
.ast-below-header-bar,
#ast-above-header,
#ast-below-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e8e8e8 !important;
  padding: 0 !important;
}

/* Wrapper isi bar kategori */
.ast-above-header-section,
.ast-below-header-section,
.ast-above-header-section-1,
.ast-below-header-section-1 {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

/* Label "Kategori" merah di kiri */
.ast-above-header-section::before,
.ast-below-header-section::before,
.ast-above-header-section-1::before,
.ast-below-header-section-1::before {
  content: "🏷 Kategori" !important;
  color: #e8194b !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  font-family: var(--font-utama) !important;
  white-space: nowrap !important;
  padding: 10px 16px 10px 0 !important;
  border-right: 1px solid #e0e0e0 !important;
  margin-right: 4px !important;
  flex-shrink: 0 !important;
}

/* Menu item kategori */
.ast-above-header-bar .menu li a,
.ast-below-header-bar .menu li a,
#ast-above-header .menu li a,
#ast-below-header .menu li a {
  font-family: var(--font-utama) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #444 !important;
  padding: 11px 14px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  display: block !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.2s !important;
}
.ast-above-header-bar .menu li a:hover,
.ast-below-header-bar .menu li a:hover,
#ast-above-header .menu li a:hover,
#ast-below-header .menu li a:hover {
  color: #e8194b !important;
  border-bottom: 2px solid #e8194b !important;
}

/* Scroll horizontal kalau banyak kategori */
.ast-above-header-bar .menu,
.ast-below-header-bar .menu,
#ast-above-header .menu,
#ast-below-header .menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ast-above-header-bar .menu::-webkit-scrollbar,
.ast-below-header-bar .menu::-webkit-scrollbar {
  display: none !important;
}

/* Dropdown sub-menu kategori */
.ast-above-header-bar .menu li,
.ast-below-header-bar .menu li,
#ast-above-header .menu li,
#ast-below-header .menu li {
  position: relative !important;
  flex-shrink: 0 !important;
  list-style: none !important;
}

.ast-above-header-bar .menu li ul,
.ast-below-header-bar .menu li ul,
#ast-above-header .menu li ul,
#ast-below-header .menu li ul {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 180px !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-top: 2px solid #e8194b !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
  z-index: 9999 !important;
  padding: 4px 0 !important;
  list-style: none !important;
}
.ast-above-header-bar .menu li:hover > ul,
.ast-below-header-bar .menu li:hover > ul,
#ast-above-header .menu li:hover > ul,
#ast-below-header .menu li:hover > ul {
  display: block !important;
}
.ast-above-header-bar .menu li ul li a,
.ast-below-header-bar .menu li ul li a,
#ast-above-header .menu li ul li a,
#ast-below-header .menu li ul li a {
  padding: 9px 18px !important;
  border-bottom: none !important;
  color: #555 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.ast-above-header-bar .menu li ul li a::before,
#ast-below-header .menu li ul li a::before {
  content: "•" !important;
  color: #e8194b !important;
  font-weight: 900 !important;
}
.ast-above-header-bar .menu li ul li a:hover,
#ast-below-header .menu li ul li a:hover {
  background: #fff5f7 !important;
  color: #e8194b !important;
}

/* Bar kategori custom via PHP hook */
.afilia-bar-wrapper {
  background: #ffffff !important;
  border-bottom: 1px solid #e8e8e8 !important;
  width: 100% !important;
}
.afilia-bar-wrapper .ast-container {
  display: flex !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}
.afilia-kat-label {
  color: #e8194b !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  font-family: var(--font-utama) !important;
  white-space: nowrap !important;
  padding: 10px 16px 10px 0 !important;
  border-right: 1px solid #e0e0e0 !important;
  margin-right: 4px !important;
  flex-shrink: 0 !important;
}
.afilia-bar-wrapper nav { flex: 1; overflow: hidden; }
.afilia-bar-wrapper .menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.afilia-bar-wrapper .menu::-webkit-scrollbar { display: none; }
.afilia-bar-wrapper .menu li { position: relative; flex-shrink: 0; list-style: none; }
.afilia-bar-wrapper .menu > li > a {
  font-family: var(--font-utama) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #444 !important;
  padding: 11px 14px !important;
  display: block !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.2s !important;
}
.afilia-bar-wrapper .menu > li > a:hover,
.afilia-bar-wrapper .menu > li.current-menu-item > a {
  color: #e8194b !important;
  border-bottom: 2px solid #e8194b !important;
}
/* Dropdown */
.afilia-bar-wrapper .menu li ul {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 180px !important;
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-top: 2px solid #e8194b !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
  z-index: 9999 !important;
  padding: 4px 0 !important;
  list-style: none !important;
}
.afilia-bar-wrapper .menu li:hover > ul { display: block !important; }
.afilia-bar-wrapper .menu li ul li a {
  padding: 9px 18px !important;
  font-size: 13px !important;
  color: #555 !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.afilia-bar-wrapper .menu li ul li a::before {
  content: "•" !important;
  color: #e8194b !important;
  font-weight: 900 !important;
}
.afilia-bar-wrapper .menu li ul li a:hover {
  background: #fff5f7 !important;
  color: #e8194b !important;
}

/* =============================================
   FIX HEADER — kecilkan, rapikan
   ============================================= */

/* Kurangi padding header agar tidak terlalu tinggi */
#masthead .main-header-bar,
.main-header-bar,
.ast-primary-header-bar {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  min-height: unset !important;
}

/* Paksa tinggi header lebih kecil */
#masthead,
.site-header {
  min-height: unset !important;
}

/* Logo lebih kecil */
.site-branding .site-title,
.ast-site-identity .site-title {
  font-size: 24px !important;
}

/* Sembunyikan admin bar gap jika ada */
.admin-bar .ast-fixed-header {
  top: 32px !important;
}

/* =============================================
   SEARCH BAR — muncul di header
   ============================================= */

/* Kalau search pakai form widget Astra */
.ast-search-menu-icon,
.ast-header-search {
  flex: 1 !important;
  max-width: 500px !important;
  margin: 0 20px !important;
}

.ast-search-menu-icon form,
.ast-header-search form,
header .search-form {
  display: flex !important;
  width: 100% !important;
}

.ast-search-menu-icon .search-field,
.ast-header-search .search-field,
header .search-field,
.main-header-bar .search-field {
  flex: 1 !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 4px 0 0 4px !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  height: 38px !important;
  outline: none !important;
  color: #333 !important;
  font-family: var(--font-utama) !important;
}

.ast-search-menu-icon .search-submit,
.ast-header-search .search-submit,
header .search-submit,
.main-header-bar .search-submit {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 4px 4px 0 !important;
  padding: 0 16px !important;
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: var(--font-utama) !important;
  white-space: nowrap !important;
}

/* Placeholder teks */
.main-header-bar .search-field::placeholder {
  color: #aaa !important;
  font-size: 13px !important;
}

/* Search bar inject via PHP */
.afilia-search-wrap {
  flex: 1 !important;
  max-width: 480px !important;
  margin: 0 20px !important;
}
.afilia-search-wrap form {
  display: flex !important;
  width: 100% !important;
}
.afilia-search-wrap .search-field {
  flex: 1 !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 4px 0 0 4px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  height: 38px !important;
  outline: none !important;
  color: #333 !important;
  font-family: var(--font-utama) !important;
}
.afilia-search-wrap .search-field::placeholder {
  color: #aaa !important;
}
.afilia-search-wrap .search-submit {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 4px 4px 0 !important;
  padding: 0 16px !important;
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: var(--font-utama) !important;
}

/* Pastikan header flex layout */
.main-header-bar .ast-container,
.main-header-bar .site-branding + * {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

/* =============================================
   SEARCH BAR DI HEADER — via astra_masthead_content
   ============================================= */
.afilia-search-wrap {
  flex: 1 !important;
  max-width: 500px !important;
  margin: 0 24px !important;
}
.afilia-search-wrap form {
  display: flex !important;
  width: 100% !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}
.afilia-search-wrap .search-field {
  flex: 1 !important;
  background: #ffffff !important;
  border: none !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  height: 38px !important;
  outline: none !important;
  color: #333 !important;
  font-family: var(--font-utama) !important;
  min-width: 0 !important;
}
.afilia-search-wrap .search-field::placeholder {
  color: #aaa !important;
}
.afilia-search-wrap .search-submit {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0 18px !important;
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: var(--font-utama) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.afilia-search-wrap .search-submit:hover {
  background: #333 !important;
}

/* Paksa header container flex agar search bar bisa di tengah */
.main-header-bar .ast-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

/* Kecilkan header */
.main-header-bar,
.ast-primary-header-bar {
  padding: 10px 0 !important;
  min-height: unset !important;
}

/* =============================================
   BAR KATEGORI
   ============================================= */
.afilia-bar-wrapper {
  background: #ffffff;
  border-bottom: 1px solid #ebebeb;
  width: 100%;
}
.afilia-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.afilia-kat-label {
  color: #e8194b;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-utama);
  white-space: nowrap;
  padding: 10px 16px 10px 0;
  border-right: 1px solid #e0e0e0;
  margin-right: 4px;
  flex-shrink: 0;
}
.afilia-kat-nav { flex: 1; overflow: hidden; }
.afilia-kat-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.afilia-kat-menu::-webkit-scrollbar { display: none; }
.afilia-kat-menu > li {
  position: relative;
  flex-shrink: 0;
  list-style: none;
}
.afilia-kat-menu > li > a {
  font-family: var(--font-utama) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #444 !important;
  padding: 11px 14px !important;
  display: block !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.2s !important;
}
.afilia-kat-menu > li > a:hover,
.afilia-kat-menu > li.current-menu-item > a {
  color: #e8194b !important;
  border-bottom: 2px solid #e8194b !important;
}

/* Sub-menu dropdown */
.afilia-kat-menu li ul {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 190px !important;
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-top: 2px solid #e8194b !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
  z-index: 9999 !important;
  padding: 4px 0 !important;
  list-style: none !important;
  margin: 0 !important;
}
.afilia-kat-menu li:hover > ul { display: block !important; }
.afilia-kat-menu li ul li a {
  padding: 9px 18px !important;
  font-size: 13px !important;
  color: #555 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  border-bottom: none !important;
  font-family: var(--font-utama) !important;
}
.afilia-kat-menu li ul li a::before {
  content: "•" !important;
  color: #e8194b !important;
  font-weight: 900 !important;
}
.afilia-kat-menu li ul li a:hover {
  background: #fff5f7 !important;
  color: #e8194b !important;
}

/* Panah untuk item yang punya sub-menu */
.afilia-kat-menu li:has(> ul) > a::after {
  content: " ▾" !important;
  font-size: 10px !important;
  color: #aaa !important;
}

/* =============================================
   SEARCH BAR — lebih panjang
   ============================================= */
.afilia-search-wrap {
  flex: 1 !important;
  max-width: 700px !important;
  margin: 0 30px !important;
}

/* =============================================
   IKON KANAN HEADER (WA + Cart)
   ============================================= */
.afilia-header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.afilia-header-icons a {
  color: #ffffff !important;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-family: var(--font-utama);
  opacity: 0.9;
  transition: opacity 0.2s;
}
.afilia-header-icons a:hover { opacity: 1 !important; }

.afilia-header-icons .icon-svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

/* Badge cart */
.afilia-cart-wrap {
  position: relative;
}
.afilia-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ffffff;
  color: #e8194b;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile — sembunyikan ikon label */
@media (max-width: 768px) {
  .afilia-search-wrap {
    max-width: 100% !important;
    margin: 0 10px !important;
  }
  .afilia-header-icons a span { display: none; }
}

/* =============================================
   SEARCH BAR — paksa lebih panjang
   ============================================= */
.afilia-search-wrap {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 600px !important;
  min-width: 300px !important;
  margin: 0 20px !important;
}
.afilia-search-wrap form {
  display: flex !important;
  width: 100% !important;
}
.afilia-search-wrap .search-field {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Pastikan header container stretch penuh */
.main-header-bar .ast-container {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 30px !important;
}

/* =============================================
   HEADER FINAL — kecil & rapi
   ============================================= */

/* Kecilkan header */
#masthead,
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-main-header-wrap {
  background-color: #e8194b !important;
  min-height: unset !important;
  padding: 0 !important;
}

.ast-primary-header-bar {
  padding: 8px 0 !important;
}

/* Grid row container — paksa satu baris */
.site-primary-header-wrap.ast-builder-grid-row-container,
.ast-builder-grid-row-has-sides {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  padding: 8px 30px !important;
  box-sizing: border-box !important;
  gap: 16px !important;
  min-height: unset !important;
}

/* Logo kolom kiri */
.ast-builder-grid-row-has-sides .ast-grid-section-left,
.ast-builder-grid-row-has-sides [class*="ast-left-section"] {
  flex-shrink: 0 !important;
  padding: 0 !important;
}

/* Kolom tengah kosong — collapse */
.ast-builder-grid-row-has-sides .ast-grid-section-center,
.ast-builder-grid-row-has-sides [class*="ast-center-section"] {
  display: none !important;
}

/* Kolom kanan — collapse juga, kita pakai inject JS */
.ast-builder-grid-row-has-sides .ast-grid-section-right,
.ast-builder-grid-row-has-sides [class*="ast-right-section"] {
  display: none !important;
}

/* Logo teks */
.site-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  font-style: italic !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-title a { color: #fff !important; text-decoration: none !important; }
.site-description {
  font-size: 10px !important;
  color: rgba(255,255,255,0.85) !important;
  font-style: italic !important;
  margin: 0 !important;
}

/* =============================================
   BANNER / HERO SECTION — background
   ============================================= */

/* Wrapper konten halaman */
.entry-content,
.ast-container.entry-content-wrap {
  padding: 0 !important;
}

/* Jika pakai slider plugin (Smart Slider / MetaSlider) */
.wp-block-cover,
.wp-block-group,
.metaslider,
.ms-theme-default {
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
}

/* Background abu terang untuk body */
body.home,
body.page-template-default {
  background-color: #f7f7f7 !important;
}

/* Konten area putih */
.site-content .ast-container,
#content .ast-container,
.content-area {
  background: #f7f7f7 !important;
}

/* Kartu produk tetap putih */
ul.products li.product {
  background: #ffffff !important;
}

/* =============================================
   BAR KATEGORI — lebih kecil
   ============================================= */
.afilia-bar-wrapper {
  background: #fff !important;
  border-bottom: 1px solid #ebebeb !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}
.afilia-bar-inner {
  padding: 0 30px !important;
  max-width: 100% !important;
}
.afilia-kat-menu > li > a {
  padding: 9px 14px !important;
  font-size: 13px !important;
}
.afilia-kat-label {
  padding: 9px 16px 9px 0 !important;
  font-size: 13px !important;
}

/* =============================================
   KONTEN AREA — background putih
   ============================================= */
.site-content,
#content,
.content-area,
.ast-container,
.entry-content,
.page-content,
.post-content,
#primary,
.ast-article-single,
.ast-page-builder-template {
  background: #ffffff !important;
}

/* Wrapper utama halaman */
#page,
.hfeed {
  background: #f7f7f7 !important;
}

/* Konten dalam halaman — putih dengan shadow ringan */
.site-content .ast-container,
#content > .ast-container,
.content-area > .ast-container {
  background: #ffffff !important;
  border-radius: 0 !important;
}

/* Entry / artikel / page content */
.entry-content,
.page-content {
  background: #ffffff !important;
  padding: 20px 0 !important;
}

/* Section produk & blog */
.afilia-section-header,
ul.products,
.afilia-blog-grid {
  background: #ffffff !important;
}

/* Wrapper konten keseluruhan */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  background: #ffffff !important;
  border-radius: 0 !important;
  padding: 24px !important;
}

/* =============================================
   FIX — search bar jangan ikut putih
   ============================================= */
.afilia-search-wrap,
.afilia-search-wrap form,
.afilia-search-wrap * {
  background: transparent !important;
}
.afilia-search-wrap .search-field {
  background: #ffffff !important;
  color: #333 !important;
}
.afilia-search-wrap .search-submit {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

/* =============================================
   KONTEN — hanya area produk & artikel putih
   ============================================= */

/* Reset dulu yang terlalu lebar tadi */
.site-content,
#content,
.content-area,
.ast-container,
#page,
.hfeed {
  background: transparent !important;
}

/* Hanya wrapper entry content yang putih */
.entry-content {
  background: #ffffff !important;
  padding: 24px !important;
  border-radius: 8px !important;
}

/* =============================================
   FIX SEARCH BAR — kembalikan seperti awal
   ============================================= */
.afilia-search-wrap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 600px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 16px !important;
}
.afilia-search-wrap form {
  display: flex !important;
  width: 100% !important;
  border-radius: 5px !important;
  overflow: hidden !important;
  background: transparent !important;
}
.afilia-search-wrap .search-field {
  flex: 1 !important;
  min-width: 0 !important;
  background: #ffffff !important;
  border: none !important;
  padding: 0 14px !important;
  height: 38px !important;
  font-size: 13px !important;
  outline: none !important;
  color: #333 !important;
}
.afilia-search-wrap .search-field::placeholder {
  color: #aaa !important;
}
.afilia-search-wrap .search-submit {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0 18px !important;
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* =============================================
   FIX SLIDER — full width, hapus jarak
   ============================================= */

/* Hapus padding/margin content area */
.entry-content {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Hilangkan jarak atas konten */
.site-content,
#content,
.content-area,
#primary {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Slider full width */
.metaslider,
.metaslider-wrap,
.ms-theme-default,
.flexslider,
[class*="metaslider"],
[class*="smartslider"],
.wp-block-cover,
.slider-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Semua gambar slider sama tinggi */
.metaslider img,
.ms-theme-default img,
.flexslider img,
[class*="metaslider"] img,
.slider-wrapper img {
  width: 100% !important;
  height: 400px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Hapus sidebar abu — paksa full width */
.ast-page-builder-template .entry-content,
.page-template-default .entry-content,
.home .entry-content,
.ast-full-width-layout .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Area konten setelah slider — padding normal */
.entry-content > *:not([class*="slider"]):not([class*="metaslider"]):not(.wp-block-cover) {
  padding: 0 30px !important;
}

/* =============================================
   GANTI WARNA TEMA → #7A8054
   ============================================= */
:root {
  --warna-merah: #7A8054 !important;
  --warna-merah-hover: #5e6340 !important;
}

/* Header */
#masthead,
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-main-header-wrap {
  background-color: #7A8054 !important;
}

/* Tombol, badge, aksen merah → ganti semua */
.afilia-section-header .badge-shopping,
ul.products li.product a.button,
ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce div.product .cart .single_add_to_cart_button,
.afilia-section-header .lihat-semua:hover {
  background: #7A8054 !important;
  background-color: #7A8054 !important;
}

ul.products li.product a.button:hover,
ul.products li.product .button:hover,
.woocommerce div.product .cart .single_add_to_cart_button:hover {
  background: #5e6340 !important;
  background-color: #5e6340 !important;
}

.afilia-section-header .lihat-semua {
  color: #7A8054 !important;
  border-color: #7A8054 !important;
}

ul.products li.product .price,
.woocommerce div.product .price {
  color: #7A8054 !important;
}

.afilia-kat-label { color: #7A8054 !important; }
.afilia-kat-menu > li > a:hover { color: #7A8054 !important; border-bottom-color: #7A8054 !important; }
.afilia-kat-menu li ul { border-top-color: #7A8054 !important; }
.afilia-kat-menu li ul li a::before { color: #7A8054 !important; }
.afilia-bar-wrapper { border-bottom-color: #d0d4b8 !important; }

a { color: #7A8054 !important; }
a:hover { color: #5e6340 !important; }

/* =============================================
   SEARCH BAR — lebih terlihat di header
   ============================================= */
.afilia-search-wrap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 580px !important;
  margin: 0 20px !important;
}
.afilia-search-wrap form {
  display: flex !important;
  width: 100% !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  /* Border putih tipis supaya terlihat di header */
  border: 1.5px solid rgba(255,255,255,0.6) !important;
  box-sizing: border-box !important;
}
.afilia-search-wrap .search-field {
  flex: 1 !important;
  min-width: 0 !important;
  /* Background putih semi-transparan */
  background: rgba(255,255,255,0.92) !important;
  border: none !important;
  padding: 0 14px !important;
  height: 38px !important;
  font-size: 13px !important;
  outline: none !important;
  color: #333 !important;
  font-family: 'Poppins', sans-serif !important;
}
.afilia-search-wrap .search-field::placeholder {
  color: #888 !important;
  font-size: 13px !important;
}
.afilia-search-wrap .search-submit {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0 18px !important;
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background 0.2s !important;
}
.afilia-search-wrap .search-submit:hover {
  background: #333 !important;
}

/* =============================================
   MOBILE HEADER FIX
   ============================================= */

/* Sembunyikan hamburger menu & mobile nav bawaan Astra */

/* Sembunyikan menu saja */
.menu-toggle,
.ast-mobile-menu-trigger,
.main-header-bar-navigation,
.ast-nav-menu-outside-full {
  display: none !important;
}
/* Di mobile, search bar tetap muncul */
@media (max-width: 768px) {

  /* Header tetap flex row di mobile */
  .site-primary-header-wrap,
  .ast-builder-grid-row-has-sides,
  .ast-builder-grid-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  /* Logo lebih kecil di mobile */
  .site-title {
    font-size: 18px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .site-description { display: none !important; }

  /* Search bar mobile */
  .afilia-search-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 8px !important;
  }
  .afilia-search-wrap .search-field {
    height: 34px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
  }
  .afilia-search-wrap .search-submit {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  /* Ikon kanan mobile — hanya tampil ikon tanpa label */
  .afilia-header-icons {
    gap: 12px !important;
    flex-shrink: 0 !important;
  }
  .afilia-header-icons a span { display: none !important; }
  .afilia-header-icons svg { width: 20px !important; height: 20px !important; }

  /* Section header NEW PRODUCTS mobile */
  .afilia-section-header {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    align-items: center !important;
  }
  .afilia-section-header .section-title {
    font-size: 13px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .afilia-section-header .section-title span { display: inline !important; }
  .afilia-section-header .badge-shopping {
    font-size: 10px !important;
    padding: 3px 7px !important;
    white-space: nowrap !important;
  }
  .afilia-section-header .lihat-semua {
    font-size: 11px !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
    margin-left: auto !important;
  }
}

/* =============================================
   SEMBUNYIKAN PRIMARY MENU BAWAAN ASTRA
   (yang berisi nama halaman)
   ============================================= */
.ast-primary-header-bar .main-navigation,
.ast-primary-header-bar #site-navigation,
.ast-primary-header-bar .ast-nav-menu,
#ast-desktop-header .main-navigation,
.ast-desktop-header .main-navigation {
  display: none !important;
}
/* =============================================
   PAKSA SEARCH BAR TAMPIL DI MOBILE
   ============================================= */
@media (max-width: 768px) {

  /* Tampilkan search bar */
  .afilia-search-wrap {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    order: 999 !important;
  }

  .afilia-search-wrap form {
    display: flex !important;
    width: 100% !important;
  }

  .afilia-search-wrap .search-field {
    display: block !important;
    width: 100% !important;
    height: 38px !important;
  }

  .afilia-search-wrap .search-submit {
    display: block !important;
    height: 38px !important;
  }

  /* Jangan sembunyikan mobile header Astra */
  .ast-mobile-header-wrap,
  #ast-mobile-header {
    display: block !important;
  }
}
/* Centering header & kategori */
#masthead {
  display: flex !important;
  justify-content: center !important;
}
#masthead > div {
  max-width: 1200px !important;
  width: 100% !important;
}
.afilia-bar-wrapper,
.afilia-bar-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
/* =============================================
   BLOG GRID
   ============================================= */
.afilia-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 40px;
}
.afilia-blog-card {
  background: #fff;
  border: 1px solid var(--warna-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.afilia-blog-img-placeholder {
  width: 100%;
  height: 160px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.afilia-blog-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.afilia-blog-date {
  font-size: 11px;
  color: #999;
  font-family: var(--font-utama);
  margin-bottom: 6px;
  display: block;
}
.afilia-blog-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 8px;
  font-family: var(--font-utama);
}
.afilia-blog-title a {
  color: var(--warna-teks);
  text-decoration: none;
}
.afilia-blog-title a:hover { color: #7A8054; }
.afilia-blog-excerpt {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  font-family: var(--font-utama);
  flex: 1;
  margin: 0 0 10px;
}
.afilia-blog-readmore {
  font-size: 12px;
  font-weight: 600;
  color: #7A8054;
  text-decoration: none;
  font-family: var(--font-utama);
  margin-top: auto;
}

@media (max-width: 768px) {
  .afilia-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .afilia-blog-grid {
    grid-template-columns: 1fr;
  }
}
/* =============================================
   2 PRODUK DI ATAS POSTINGAN BLOG
   ============================================= */
.afilia-produk-di-postingan {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--warna-border);
}
 
.afilia-produk-di-postingan ul.products {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 500px !important;
}
 
@media (max-width: 480px) {
  .afilia-produk-di-postingan ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 100% !important;
  }
}
 
/* =============================================
   FIX BAR KATEGORI — full width
   ============================================= */
.afilia-bar-wrapper {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}
 
.afilia-bar-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
/* Sembunyikan judul halaman Beranda */
.home .entry-title,
.home h1.entry-title,
.home .page-title,
.home h1.page-title {
  display: none !important;
}