/* =========================================================
   OBRAL-SHARED.CSS - Al Manar Herbafit
   Header & footer standalone, dipakai BARENG di halaman listing
   (page-jual-ekstrak.php) dan detail produk (single-produk_obral.php).
   ========================================================= */

/* ---------- HEADER STANDALONE ---------- */
.obral-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.obral-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.obral-header-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-dark);
  white-space: nowrap;
  text-decoration: none;
  flex: 0 0 auto;
}
.obral-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  padding: 0 !important;
  margin: 0 !important;
}
.obral-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none !important;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
}
.obral-search input:focus {
  border: none;
  background: none;
  outline: none !important;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
}
.obral-search button {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  min-width: 0 !important;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.obral-header-logo img {
  height: 38px;
  width: 38px;
  flex: 0 0 auto;
}

/* ---------- FOOTER STANDALONE ---------- */
.obral-footer {
  text-align: center;
  padding: 30px 20px;
  color: #fff;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.obral-footer a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .obral-header-brand { display: none; }
}