@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Marcellus-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans.woff2') format('woff2');
}

:root {
  --pm-primary: #5C2A2A;
  --pm-accent: #9A4B2E;
  --pm-gold: #E8C77B;
  --pm-bg: #F4EDE2;
  --pm-card: #FFFCF6;
  --pm-text: #3D2B1F;
  --pm-text-secondary: #6B5B49;
  --pm-text-muted: #9A8B79;
  --pm-border: #EBDDC7;
  --pm-border-light: #E0CFB6;
  --pm-nav-inactive: #A8997F;
  --pm-star: #E8B23C;
  --pm-green: #1FA855;
  --pm-red: #B5532E;

  --f7-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --f7-text-color: var(--pm-text);
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--pm-bg);
  color: var(--pm-text);
}

.page {
  background: var(--pm-bg);
}

.page-content {
  background: var(--pm-bg);
}

.font-marcellus {
  font-family: 'Marcellus', serif;
}

.header-main {
  background: var(--pm-primary);
  color: #F7ECDA;
  padding: 28px;
  background-image: radial-gradient(circle at 6px 6px, rgba(232,199,123,.10) 2px, transparent 2px);
  background-size: 18px 18px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.header-icons {
  display: flex;
  gap: 10px;
}

.icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(247,236,218,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-circle .badge-dot {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E8975B;
  border: 1.5px solid var(--pm-primary);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: #F7ECDA;
  border-radius: 14px;
  height: 46px;
  overflow: hidden;
  margin-top: 16px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  color: var(--pm-text);
  padding: 0 10px;
  height: 100%;
}

.search-bar input::placeholder {
  color: #8A6A4A;
}

.search-btn {
  flex: none;
  height: 100%;
  width: 80px;
  padding: 0 16px;
  background: var(--pm-accent);
  border: none;
  color: #F7ECDA;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.section-title {
  font-family: 'Marcellus', serif;
  font-size: 18px;
  color: var(--pm-text);
  margin-top: 4px;
}

.hero-slide {
  height: 190px;
  position: relative;
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hero-dot {
  height: 6px;
  border-radius: 3px;
  transition: all .35s;
  cursor: pointer;
}

.hero-dot.active {
  width: 18px;
  background: var(--pm-gold);
}

.hero-dot.inactive {
  width: 6px;
  background: rgba(247,236,218,0.45);
}

.category-scroll {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 60px;
  flex: none;
}

.category-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #FBF4E8;
  border: 1px solid var(--pm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-accent);
}

.category-label {
  font-size: 11.5px;
  color: var(--pm-text-secondary);
  text-align: center;
  font-weight: 500;
}

.mitra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.mitra-card {
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  background: var(--pm-card);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.mitra-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F4EDE2;
  border: 1px solid var(--pm-border);
  flex: none;
  overflow: hidden;
}

.mitra-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pm-text);
}

.mitra-desc {
  font-size: 10.5px;
  color: var(--pm-text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.product-card {
  position: relative;
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 18px;
  overflow: hidden;
}

/* Tombol keinginan di sudut kartu, seperti pada kartu web. */
.product-suka {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,252,246,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-image {
  height: 118px;
  position: relative;
  background-image: radial-gradient(circle at 6px 6px, rgba(0,0,0,.05) 2px, transparent 2px);
  background-size: 15px 15px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.product-badges {
  position: relative;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(247,236,218,.92);
  color: #7A2E2E;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  letter-spacing: .03em;
}

.product-info {
  padding: 10px 11px 12px;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pm-text);
  line-height: 1.3;
  overflow: hidden;
}

.product-price {
  font-family: 'Marcellus', serif;
  font-size: 16px;
  color: var(--pm-accent);
  margin-top: 4px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--pm-text-muted);
  font-size: 11px;
}

.load-more-btn {
  width: 100%;
  margin-top: 16px;
  height: 46px;
  border-radius: 13px;
  border: 1.5px solid var(--pm-border-light);
  background: var(--pm-card);
  color: var(--pm-accent);
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.tren-scroll {
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.tren-scroll::-webkit-scrollbar {
  display: none;
}

.tren-track {
  display: flex;
  gap: 12px;
}

.tren-card {
  flex: none;
  width: 128px;
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  overflow: hidden;
}

.tren-image {
  height: 84px;
  background-image: radial-gradient(circle at 6px 6px, rgba(0,0,0,.05) 2px, transparent 2px);
  background-size: 14px 14px;
  overflow: hidden;
}

.tren-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tren-info {
  padding: 8px 10px 10px;
}

.tren-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-text);
  line-height: 1.3;
  height: 30px;
  overflow: hidden;
}

.tren-price {
  font-family: 'Marcellus', serif;
  font-size: 14px;
  color: var(--pm-accent);
  margin-top: 3px;
}

.tren-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: #9A8B79;
  font-size: 10px;
}

.bottom-nav {
  height: 74px;
  background: var(--pm-card);
  border-top: 1px solid var(--pm-border);
  display: flex;
  align-items: center;
  padding: 0 14px 8px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 13500;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--pm-nav-inactive);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
  color: var(--pm-red);
}

.nav-item.active span {
  font-weight: 700;
}

.nav-item span {
  font-size: 11px;
  font-weight: 500;
}

.page-content-inner {
  padding: 18px 20px 96px;
}

.placeholder-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  color: var(--pm-text-muted);
}

.placeholder-page svg {
  margin-bottom: 16px;
  color: var(--pm-border-light);
}

.placeholder-page h3 {
  font-family: 'Marcellus', serif;
  color: var(--pm-text-secondary);
  margin-bottom: 8px;
}

/* ===== Account Pages ===== */

.profile-header {
  background: var(--pm-primary);
  color: #F7ECDA;
  padding: 28px;
  background-image: radial-gradient(circle at 6px 6px, rgba(232,199,123,.10) 2px, transparent 2px);
  background-size: 18px 18px;
}

.profile-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(247,236,218,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Marcellus', serif;
  font-size: 24px;
  color: #F7ECDA;
  flex: none;
  border: 2px solid rgba(247,236,218,.3);
}

.profile-info h2 {
  font-family: 'Marcellus', serif;
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 4px;
  color: #F7ECDA;
}

.profile-info p {
  font-size: 13px;
  margin: 0;
  color: rgba(247,236,218,.7);
}

.akun-content {
  padding: 20px 20px 100px;
}

.akun-card {
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.akun-card-title {
  font-family: 'Marcellus', serif;
  font-size: 16px;
  color: var(--pm-text);
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--pm-border);
}

.akun-card-body {
  padding: 10px 18px 18px;
}

.akun-field {
  margin-bottom: 14px;
}

.akun-field:last-child {
  margin-bottom: 0;
}

.akun-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.akun-field input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--pm-border);
  border-radius: 11px;
  background: var(--pm-bg);
  padding: 0 14px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  color: var(--pm-text);
  outline: none;
  -webkit-appearance: none;
}

.akun-field input:focus {
  border-color: var(--pm-accent);
}

.akun-field .input-wrap {
  position: relative;
}

.akun-field .toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--pm-text-muted);
  display: flex;
  width: 26px;
}

.akun-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.akun-btn-primary {
  background: var(--pm-accent);
  color: #F7ECDA;
}

.akun-btn-primary:active {
  opacity: .85;
}

.akun-btn-danger {
  background: #B5532E;
  color: #F7ECDA;
}

.akun-btn-danger:active {
  opacity: .85;
}

.akun-btn-outline {
  background: transparent;
  color: var(--pm-accent);
  border: 1.5px solid var(--pm-border-light);
}

.akun-btn-outline:active {
  background: var(--pm-bg);
}

.akun-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}


.akun-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--pm-text);
  font-size: 14px;
  font-weight: 500;
}

.akun-menu a:active {
  background: var(--pm-bg);
}

.akun-menu .menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pm-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--pm-accent);
}

.akun-menu .menu-text {
  flex: 1;
}

.akun-menu .menu-arrow {
  color: var(--pm-border-light);
  flex: none;
}

.akun-menu .menu-arrow svg {
  display: block;
}

.akun-link-danger {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--pm-red);
  text-decoration: none;
  font-weight: 500;
}

.akun-footer {
  text-align: center;
  padding: 20px 0 10px;
  font-size: 11px;
  color: var(--pm-text-muted);
  line-height: 1.6;
}

/* ===== Auth Pages ===== */

.auth-page .page-content {
  display: flex;
  flex-direction: column;
}

.auth-header {
  background: var(--pm-primary);
  padding: 40px 24px 36px;
  text-align: center;
  background-image: radial-gradient(circle at 6px 6px, rgba(232,199,123,.10) 2px, transparent 2px);
  background-size: 18px 18px;
}

.auth-header .auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(247,236,218,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-gold);
}

.auth-header h2 {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  font-weight: 400;
  color: #F7ECDA;
  margin: 0 0 6px;
}

.auth-header p {
  font-size: 14px;
  color: rgba(247,236,218,.65);
  margin: 0;
}

.auth-body {
  padding: 24px 20px 40px;
  flex: 1;
}

.auth-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--pm-text-secondary);
  text-decoration: none;
}

.auth-link em {
  color: var(--pm-accent);
  font-style: normal;
  font-weight: 600;
}

.auth-note {
  text-align: center;
  font-size: 12px;
  color: var(--pm-text-muted);
  margin: 16px 0 0;
  line-height: 1.4;
}

.auth-footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  color: var(--pm-text-muted);
  line-height: 1.6;
}

.auth-footer a {
  color: var(--pm-accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-divider {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: var(--pm-text-muted);
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--pm-border);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

/* ===== Popup ===== */

.lupa-sandi-popup {
  background: var(--pm-bg);
}

.lupa-sandi-popup .popup-header {
  background: var(--pm-primary);
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
  background-image: radial-gradient(circle at 6px 6px, rgba(232,199,123,.10) 2px, transparent 2px);
  background-size: 18px 18px;
}

.lupa-sandi-popup .popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(247,236,218,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-gold);
}

.lupa-sandi-popup .popup-header h2 {
  font-family: 'Marcellus', serif;
  font-size: 20px;
  font-weight: 400;
  color: #F7ECDA;
  margin: 0 0 6px;
}

.lupa-sandi-popup .popup-header p {
  font-size: 13px;
  color: rgba(247,236,218,.65);
  margin: 0;
}

.lupa-sandi-popup .popup-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(247,236,218,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,236,218,.7);
  cursor: pointer;
}

.lupa-sandi-popup .popup-body {
  padding: 20px;
}

/* ===== Role Selector ===== */

.role-options {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 10px;
}

.role-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 6px;
  border: 1.5px solid var(--pm-border);
  border-radius: 14px;
  background: var(--pm-card);
  cursor: pointer;
  text-align: center;
  -webkit-appearance: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: border-color .15s, background .15s;
  position: relative;
}

.role-btn:active {
  opacity: .8;
}

.role-btn.active {
  border-color: var(--pm-accent);
  background: rgba(154, 75, 46, .06);
}

.role-btn .role-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pm-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--pm-accent);
}

.role-btn.active .role-icon {
  background: var(--pm-accent);
  color: #F7ECDA;
}

.role-btn .role-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-text);
  line-height: 1.2;
}

.role-btn .role-text small {
  display: block;
  font-size: 9.5px;
  color: var(--pm-text-muted);
  margin-top: 2px;
  line-height: 1.2;
}

/* ===== Select & Textarea ===== */

.akun-field select,
.akun-field textarea {
  width: 100%;
  border: 1.5px solid var(--pm-border);
  border-radius: 11px;
  background: var(--pm-bg);
  padding: 0 14px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  color: var(--pm-text);
  outline: none;
  -webkit-appearance: none;
}

.akun-field select {
  height: 44px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A8B79' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.akun-field select:focus,
.akun-field textarea:focus {
  border-color: var(--pm-accent);
}

.akun-field textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 44px;
}

/* ===== Section Divider ===== */

.section-divider {
  font-size: 12px;
  font-weight: 700;
  color: var(--pm-accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 14px 0 4px;
  margin: 6px 0 10px;
  border-bottom: 1px solid var(--pm-border);
}

/* ===== File Upload ===== */

.file-upload {
  cursor: pointer;
}

.file-upload .file-upload-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  border: 1.5px dashed var(--pm-border);
  border-radius: 11px;
  background: var(--pm-bg);
  padding: 0 14px;
  color: var(--pm-text-muted);
  font-size: 13px;
  transition: border-color .15s, background .15s;
}

.file-upload .file-upload-placeholder:active {
  border-color: var(--pm-accent);
  background: rgba(154, 75, 46, .04);
}

.file-upload .file-upload-placeholder svg {
  flex: none;
}

/* ===== Pesanan Status ===== */

.pesanan-status-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  position: relative;
  color: var(--pm-accent);
  cursor: pointer;
}

.pesanan-status-item span {
  font-size: 11px;
  color: var(--pm-text-secondary);
  font-weight: 500;
}

.pesanan-badge {
  position: absolute;
  top: -4px;
  right: 18px;
  background: var(--pm-red);
  color: #fff !important;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.pesanan-badge.visible {
  display: flex;
}

/* ===== File Upload ===== */

.file-upload.has-file .file-upload-placeholder {
  border-style: solid;
  border-color: var(--pm-green);
  color: var(--pm-green);
  background: rgba(31, 168, 85, .04);
}

/* ===== Dialog Override ===== */

.dialog-backdrop {
  background: rgba(61, 43, 31, 0.5) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dialog {
  width: 300px !important;
  border-radius: 20px !important;
  background: var(--pm-card) !important;
  box-shadow: 0 12px 40px rgba(61, 43, 31, 0.2) !important;
  overflow: hidden !important;
}

.dialog-inner {
  padding: 28px 24px 18px !important;
  text-align: center !important;
}

.dialog-title {
  font-family: 'Marcellus', serif !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  color: var(--pm-text) !important;
  line-height: 1.3 !important;
  margin: 0 0 8px !important;
}

.dialog-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--pm-text-secondary) !important;
  line-height: 1.5 !important;
}

.dialog-buttons {
  display: flex !important;
  gap: 10px !important;
  padding: 8px 24px 20px !important;
  justify-content: center !important;
}

.dialog-buttons-vertical .dialog-buttons {
  flex-direction: column;
}

.dialog-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  border-radius: 12px !important;
  border: none !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 0 20px !important;
  flex: 1 !important;
  background: var(--pm-bg) !important;
  color: var(--pm-text) !important;
  transition: opacity 0.15s !important;
}

.dialog-button:active {
  opacity: 0.75 !important;
}

.dialog-button-bold {
  background: var(--pm-accent) !important;
  color: #F7ECDA !important;
}

.dialog-no-buttons .dialog-buttons {
  display: none;
}

.dialog-input {
  width: 100% !important;
  height: 44px !important;
  border: 1.5px solid var(--pm-border) !important;
  border-radius: 11px !important;
  background: var(--pm-bg) !important;
  padding: 0 14px !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 14px !important;
  color: var(--pm-text) !important;
  outline: none !important;
  -webkit-appearance: none !important;
  margin-top: 12px !important;
}

.dialog-input:focus {
  border-color: var(--pm-accent) !important;
}

.dialog-input-double .dialog-input {
  margin-top: 8px;
}

.dialog-input-double .dialog-input:first-child {
  margin-top: 12px;
}

/* ===== Bahan Pokok Page ===== */

.bp-content {
  padding: 16px 20px 96px;
}

.bp-featured {
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 20px;
  padding: 16px;
}

.bp-featured-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bp-featured-name {
  font-size: 13px;
  color: #8A7763;
}

.bp-featured-price {
  font-family: 'Marcellus', serif;
  font-size: 27px;
  color: var(--pm-text);
  margin-top: 3px;
}

.bp-featured-price .unit {
  font-size: 14px;
  color: #9A8B79;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.bp-change-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
}

.bp-change-badge.up {
  background: #FBE6DD;
  color: #C0492A;
}

.bp-change-badge.down {
  background: #E0F3E6;
  color: #1FA855;
}

.bp-change-badge.same {
  background: #F0EDE8;
  color: #9A8B79;
}

.bp-change-label {
  font-size: 11px;
  color: #9A8B79;
  margin-top: 5px;
}

.bp-featured-chart {
  width: 100%;
  height: 110px;
  margin-top: 10px;
}

.bp-day-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #B0A18C;
  margin-top: 2px;
}

.bp-periode-filter {
  display: flex;
  gap: 6px;
  margin: 12px 0 8px;
}

.bp-periode-btn {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #9A8B79;
  background: #F4EDE2;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}

.bp-periode-btn.aktif {
  background: #5C2A2A;
  color: #F7ECDA;
}

.bp-periode-btn:active {
  opacity: .7;
}

.bp-chart-wrap {
  position: relative;
}

.bp-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  margin-bottom: 8px;
  background: #3D2B1F;
  color: #F7ECDA;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(61,43,31,.25);
}

.bp-tooltip-date {
  font-weight: 500;
  opacity: .75;
}

.bp-tooltip-price {
  font-weight: 700;
  font-family: 'Marcellus', serif;
  font-size: 13px;
}

.bp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #3D2B1F;
}

.bp-section-title {
  font-family: 'Marcellus', serif;
  font-size: 17px;
  color: var(--pm-text);
  margin: 22px 0 12px;
}

.bp-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  height: calc(100vh - 540px);
  overflow-y: auto;
  mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}

.bp-item {
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}

.bp-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A4A2A;
  flex: none;
}

.bp-item-info {
  flex: 1;
  min-width: 0;
}

.bp-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pm-text);
}

.bp-item-unit {
  font-size: 11px;
  color: #9A8B79;
  margin-top: 2px;
}

.bp-item-spark {
  flex: none;
}

.bp-item-right {
  text-align: right;
  min-width: 74px;
}

.bp-item-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pm-text);
}

.bp-item-change {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

/* ===== Kategori Page (Retail Catalog) ===== */

.kategori-filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.kategori-filter-btn {
  flex: none;
  width: 36px;
  height: 34px;
  border-radius: 10px;
  background: rgba(247,236,218,.15);
  border: 1.5px solid rgba(247,236,218,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #F7ECDA;
}

.kategori-filter-btn:active {
  background: rgba(247,236,218,.25);
}

.kategori-chips {
  display: flex;
  gap: 9px;
  overflow-x: scroll;
  flex: 1;
  height: 32px;
  -webkit-overflow-scrolling: touch;
}

.kategori-chips::-webkit-scrollbar {
  display: none;
}

.kategori-chip {
  flex: none;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  background: transparent;
  color: rgba(247,236,218,.7);
  border: 1.5px solid rgba(247,236,218,.25);
}

.kategori-chip.active {
  background: #F7ECDA;
  color: #3D2B1F;
  font-weight: 600;
  border-color: #F7ECDA;
}

.kategori-chip:active {
  opacity: .7;
}

.kategori-info {
  font-size: 12.5px;
  color: var(--pm-text-muted);
  margin-bottom: 14px;
}

/* ===== Product Heart Icon ===== */

.product-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,252,246,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.product-fav:active {
  transform: scale(.9);
}

/* ===== Filter Bottom Sheet ===== */

.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(29,18,10,.45);
  z-index: 14000;
}

.filter-sheet {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pm-card);
  border-radius: 22px 22px 0 0;
  z-index: 14001;
  padding: 0 0 20px;
  box-shadow: 0 -4px 30px rgba(61,43,31,.15);
}

.filter-sheet-handle {
  display: flex;
  justify-content: center;
  padding-top: 12px;
  margin-bottom: 4px;
}

.filter-sheet-handle-bar {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--pm-border-light);
}

.filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--pm-border);
}

.filter-sheet-title {
  font-family: 'Marcellus', serif;
  font-size: 18px;
  color: var(--pm-text);
}

.filter-sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--pm-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pm-text-secondary);
}

.filter-sheet-close:active {
  opacity: .7;
}

.filter-sheet-list {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 50vh;
  overflow-y: auto;
}

.filter-sheet-action {
  padding: 4px 18px 0;
}

.filter-sheet-apply {
  width: 100%;
  height: 48px;
  border-radius: 13px;
  border: none;
  background: var(--pm-accent);
  color: #F7ECDA;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.filter-sheet-apply:active {
  opacity: .85;
}

/* ===== Grosir / Wholesale (KDMP-style) ===== */


