:root {
  --cs-green: #00a884;
  --cs-green-dark: #008f71;
  --cs-ink: #12315b;
  --cs-bg: #ffffff;
  --cs-muted: #f6f8fa;
  --cs-border: #e5e7eb;
  --cs-text: #12315b;
  --cs-subtle: #5b6b82;
  --cs-danger: #b42318;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(18, 49, 91, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--cs-text);
  background: var(--cs-bg);
  min-height: 100vh;
}

a {
  color: var(--cs-green-dark);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--cs-border);
}

.brand {
  font-weight: 700;
  color: var(--cs-ink) !important;
  letter-spacing: -0.02em;
}

.brand .brand-name {
  color: var(--cs-green);
}

.brand .brand-name span {
  margin-left: 0.28em;
  color: var(--cs-ink);
}

.cover {
  height: 180px;
  background: linear-gradient(135deg, #e8f7f2 0%, #f6f8fa 55%, #e7eef7 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--cs-border);
}

@media (min-width: 768px) {
  .cover {
    height: 240px;
  }
}

.profile-wrap {
  margin-top: -48px;
}

.logo-frame {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  width: 100%;
  height: 100%;
  background: #e8f7f2;
  color: var(--cs-green);
  font-weight: 700;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.1rem);
  line-height: 1.2;
}

.hero h1 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.15;
}

h1, h2, h3 {
  color: var(--cs-ink);
  letter-spacing: -0.02em;
}

.biz-name {
  font-size: 1.55rem;
}

@media (min-width: 768px) {
  .biz-name {
    font-size: 2rem;
  }
}

.badge-cat {
  background: #e8f7f2;
  color: var(--cs-green-dark);
  font-weight: 600;
}

.lead-desc {
  color: var(--cs-subtle);
  max-width: 46rem;
}

.local-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cs-border);
}

.local-nav a {
  color: var(--cs-subtle);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 0.35rem;
  border-bottom: 2px solid transparent;
}

.local-nav a:hover,
.local-nav a.active {
  color: var(--cs-ink);
  border-bottom-color: var(--cs-green);
}

.btn-wa {
  background: var(--cs-green);
  border-color: var(--cs-green);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
}

.btn-wa:hover,
.btn-wa:focus {
  background: var(--cs-green-dark);
  border-color: var(--cs-green-dark);
  color: #fff;
}

.btn-outline-ink {
  border-color: var(--cs-border);
  color: var(--cs-ink);
  border-radius: 999px;
  font-weight: 600;
}

.btn-outline-ink:hover {
  background: var(--cs-muted);
  color: var(--cs-ink);
  border-color: var(--cs-border);
}

.toolbar {
  background: var(--cs-muted);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.form-control,
.form-select {
  border-color: var(--cs-border);
  border-radius: 10px;
  color: var(--cs-ink);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cs-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 132, 0.15);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #cfe9e2;
  color: inherit;
}

.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--cs-border);
  overflow: hidden;
}

/* Gambar ditampilkan utuh (tidak dipotong), di atas latar putih. */
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa7b8;
  font-size: 2rem;
  background: var(--cs-muted);
}

.disc-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e53935;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.card-body-tight {
  padding: 0.7rem 0.8rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.prod-name {
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  color: var(--cs-ink);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.45rem;
}

.price {
  font-weight: 800;
  color: var(--cs-green-dark);
  font-size: 1.02rem;
}

.compare {
  color: #8a97a8;
  text-decoration: line-through;
  font-size: 0.8rem;
}

.avail {
  margin-top: auto;
  padding-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--cs-green-dark);
  font-weight: 600;
}

.empty-box,
.error-box {
  background: var(--cs-muted);
  border: 1px dashed var(--cs-border);
  border-radius: var(--radius);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.about-card {
  background: var(--cs-muted);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.breadcrumb {
  background: transparent;
  padding: 0;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--cs-muted);
  border: 1px solid var(--cs-border);
  border-radius: 16px;
  overflow: hidden;
}

.gallery-main {
  position: relative;
  background: #fff;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-zoom {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(18, 49, 91, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-scroll {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-x pan-y pinch-zoom;
  padding: 16px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  background: #fff;
  border-radius: 6px;
}

.lightbox.zoomed .lightbox-scroll {
  align-items: flex-start;
  justify-content: flex-start;
}

.lightbox.zoomed .lightbox-img {
  max-width: none;
  max-height: none;
  width: 200%;
  height: auto;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lightbox-open {
  overflow: hidden;
}

/* Tombol aksi di profil bisnis dan detail produk: tinggi dan gaya sama. */
.biz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-biz {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  border-width: 1px;
  border-style: solid;
  border-radius: 999px;
}

.btn-biz.btn-lg {
  min-height: 52px;
}

.btn-biz.btn-outline-ink {
  border-color: #c9d1dc;
}

.btn-biz.btn-outline-ink:hover {
  border-color: var(--cs-green);
  color: var(--cs-green-dark);
}

@media (max-width: 575.98px) {
  .biz-actions .btn-biz {
    flex: 1 1 calc(50% - 0.3rem);
    justify-content: center;
  }
  /* Hubungi Penjual selalu satu baris penuh; Situs Web dan Lihat Peta berbagi baris di bawahnya. */
  .biz-actions .btn-wa {
    flex-basis: 100%;
  }
}

.detail-price {
  font-size: 1.6rem;
  font-weight: 800;
}

.sticky-buy {
  background: transparent;
  padding: 0;
}

.site-footer {
  border-top: 1px solid var(--cs-border);
  color: var(--cs-subtle);
  font-size: 0.9rem;
}

.status-404 {
  min-height: 60vh;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip-link:focus {
  left: 8px;
  background: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 100;
  border-radius: 8px;
}

/* ===== Situs pemasaran ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  background: #fff;
  color: var(--cs-ink);
  font-size: 1.4rem;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--cs-border);
  padding: 8px 16px 16px;
  flex-direction: column;
  gap: 4px;
}

.site-nav.open {
  display: flex;
}

.site-nav > a {
  padding: 10px 4px;
  color: var(--cs-ink);
  text-decoration: none;
  font-weight: 500;
}

.site-nav > a[aria-current="page"] {
  color: var(--cs-green-dark);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    border: 0;
    padding: 0;
  }
  .site-nav > a {
    padding: 4px 0;
  }
  .nav-actions {
    margin: 0 0 0 8px;
  }
}

.site-footer {
  background: var(--cs-muted);
  border-top: 1px solid var(--cs-border);
}

.footer-h {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-subtle);
  margin-bottom: 0.75rem;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--cs-text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cs-green-dark);
  text-decoration: underline;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cs-border);
  background: #fff;
  color: var(--cs-text);
  font-size: 1.1rem;
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--cs-green-dark);
  border-color: var(--cs-green-dark);
}

.hero {
  background: linear-gradient(135deg, #e8f7f2 0%, #f6f8fa 60%, #e7eef7 100%);
  border-bottom: 1px solid var(--cs-border);
}

.band {
  background: var(--cs-muted);
  border-top: 1px solid var(--cs-border);
  border-bottom: 1px solid var(--cs-border);
}

.cta {
  background: var(--cs-ink);
  color: #fff;
}

.cta h2 {
  color: #fff;
}

.cta-card {
  background: #e8f7f2;
  border-radius: var(--radius);
  padding: 32px 20px;
}

.benefit,
.step,
.contact-card,
.dl-card,
.plan-card {
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.benefit > i,
.contact-card > i,
.dl-card > i {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e8f7f2;
  color: var(--cs-green-dark);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.benefit p,
.step p {
  color: var(--cs-subtle);
  margin-bottom: 0;
}

.step-n {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cs-green);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  color: var(--cs-ink);
  text-decoration: none;
  font-weight: 600;
}

.feature-mini i {
  color: var(--cs-green);
  font-size: 1.25rem;
}

.feature-mini:hover {
  border-color: var(--cs-green);
}

.feature-row {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--cs-border);
}

.feature-row > div:first-child i {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #e8f7f2;
  color: var(--cs-green-dark);
  font-size: 1.6rem;
}

.feature-row p {
  color: var(--cs-subtle);
  margin-bottom: 0;
  max-width: 46rem;
}

.mock-chat {
  background: #efeae2;
  border: 1px solid var(--cs-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  max-width: 380px;
  margin-left: auto;
}

.mock-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfd8dc;
}

.mock-chat .bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  background: #fff;
}

.mock-chat .bubble.out {
  background: #d9fdd3;
  margin-left: auto;
}

.ai-chip {
  display: inline-block;
  background: #e7f6f2;
  color: var(--cs-green-dark);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 1px 5px;
  margin-right: 4px;
}

.faq details {
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cs-ink);
}

.faq p {
  margin: 10px 0 0;
  color: var(--cs-subtle);
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-price strong {
  font-size: 1.8rem;
  color: var(--cs-ink);
}

.plan-price span {
  color: var(--cs-subtle);
}

.plan-trial {
  color: var(--cs-green-dark);
  font-weight: 600;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
}

.plan-list li {
  padding: 5px 0;
}

.plan-list i {
  color: var(--cs-green);
  margin-right: 4px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.soon {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--cs-muted);
  color: var(--cs-subtle);
  font-weight: 600;
}

.biz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .biz-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.biz-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

.biz-card:hover {
  border-color: var(--cs-green);
  box-shadow: var(--shadow);
}

.biz-logo {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #e8f7f2;
  color: var(--cs-green);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biz-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biz-info {
  min-width: 0;
}

.biz-title {
  font-weight: 700;
  color: var(--cs-ink);
}

.biz-desc {
  color: var(--cs-subtle);
  font-size: 0.9rem;
  margin: 6px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.biz-loc {
  color: var(--cs-subtle);
  font-size: 0.85rem;
}

.legal {
  max-width: 48rem;
  margin: 0 auto;
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.legal h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
}

.legal p,
.legal li {
  color: #2b3c57;
  line-height: 1.7;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-card {
  display: block;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: var(--radius);
  color: var(--cs-subtle);
  text-decoration: none;
}

.guide-card:hover {
  border-color: var(--cs-green);
  box-shadow: var(--shadow);
}

.guide-title {
  font-weight: 700;
  color: var(--cs-ink);
  margin-bottom: 4px;
}

.guide-steps li {
  margin-bottom: 0.4rem;
}

.guide-tips {
  background: #e8f7f2;
  border-radius: 12px;
  padding: 14px 14px 14px 34px;
}

.site-header .brand {
  font-size: 1.65rem;
  line-height: 1;
}

.site-header .brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.site-footer .brand {
  font-size: 1.35rem;
  line-height: 1;
}

.site-footer .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand-logo {
  flex: 0 0 auto;
}

/* Tombol Masuk dan Daftar di header: tinggi dan padding sama. */
.nav-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.2;
  border-width: 1px;
  border-style: solid;
  white-space: nowrap;
}

.nav-actions .btn-outline-ink {
  border-color: #c9d1dc;
}

.nav-actions .btn-outline-ink:hover {
  border-color: var(--cs-green);
  color: var(--cs-green-dark);
}

@media (max-width: 991.98px) {
  .nav-actions .btn {
    flex: 1 1 0;
  }
}
