/*
Theme Name: Astra Child
Template: astra
Description: Custom styling for CompareHarga
*/

/* ==========================================================
   🌟 GLOBAL STYLE
   ========================================================== */
body {
  background-color: #faf6ef !important;
  font-family: "Inter", system-ui, sans-serif;
  color: #222;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================
   🧭 HEADER & NAVBAR
   ========================================================== */
.main-header-bar,
.site-header {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header-bar .ast-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-header-menu > .menu-item > a {
  font-weight: 500;
  color: #444 !important;
  transition: color 0.2s ease;
}

.main-header-menu > .menu-item > a:hover {
  color: #0077b6 !important;
}

/* Tombol Subscribe */
.subscribe-btn,
.menu-item a.subscribe {
  background: #d97706;
  color: #fff !important;
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 600;
  transition: 0.25s;
}

.subscribe-btn:hover,
.menu-item a.subscribe:hover {
  background: #b45309;
}

/* ==========================================================
   📱 MOBILE MENU AESTHETICS
   ========================================================== */
.ast-mobile-popup-inner {
  background: #fffdf8 !important;
}

.ast-builder-menu-mobile .menu-link {
  font-weight: 600;
  color: #222 !important;
  border-bottom: 1px solid #eee;
  padding: 14px 20px;
}

.ast-builder-menu-mobile .menu-link:hover {
  background: #f8f5ef;
}

.ast-mobile-popup-drawer .ast-button-wrap .ast-custom-button {
  background: #d59a3c !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 10px;
  padding: 10px 18px !important;
}

/* ==========================================================
   🦶 FOOTER
   ========================================================== */
.site-footer {
  text-align: center;
  justify-content: center;
}

/* ==========================================================
   ✅ ALIGNMENT FIX HALAMAN POST
   ========================================================== */
body.single-post .site-main .entry-content .compareharga-section {
  text-align: left !important;
  margin: 0 auto !important;
  max-width: 900px;
}

body.single-post .site-main .entry-content .compareharga-section * {
  text-align: left !important;
}

body.single-post .entry-content {
  text-align: left !important;
}

body.single-post .compareharga-section h3,
body.single-post .compareharga-section p {
  text-align: left !important;
}

body.single-post .compareharga-table-inner th,
body.single-post .compareharga-table-inner td {
  text-align: left;
}

body.single-post .compareharga-table-inner td:nth-child(2),
body.single-post .compareharga-table-inner th:nth-child(2) {
  text-align: right !important;
}

body.single-post .compareharga-table-inner td:nth-child(3),
body.single-post .compareharga-table-inner th:nth-child(3) {
  text-align: center !important;
}

/* ==========================================================
   🧾 FIX RESPONSIVE TABLE
   ========================================================== */
.compareharga-table {
  background: #fffdfa;
  border: 1px solid #f0e8db;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 18px;
  margin-bottom: 25px;
}

.compareharga-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
}

.compareharga-table-inner {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.compareharga-table-inner th,
.compareharga-table-inner td {
  padding: 10px 12px;
  border: 1px solid #eee;
  font-size: 0.9rem;
  color: #333;
}

.compareharga-table-inner th {
  background: #fafafa;
  font-weight: 600;
}

/* Scrollbar lembut */
.compareharga-table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.compareharga-table-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}
.compareharga-table-wrapper::-webkit-scrollbar-track {
  background: #f9f9f9;
}

/* Mobile */
@media (max-width: 768px) {
  .compareharga-table-inner {
    min-width: 480px;
  }
}
