/* ==========================================================
   Template E-commerce Mobile First (gaya TikTok Shop)
   Di desktop tampilan tetap satu kolom selebar ponsel.
   ========================================================== */

:root {
  --red: #fe2c55;
  --red-dark: #e0173f;
  --cyan: #25f4ee;
  --ink: #161823;
  --muted: #7b7d86;
  --line: #ececee;
  --bg: #f4f4f5;
  --card: #ffffff;
  --radius: 12px;
  --app-w: 430px;
  --nav-h: 58px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fffafb;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

i[data-icon] {
  display: inline-flex;
  width: 22px;
  height: 22px;
}

i[data-icon] svg {
  width: 100%;
  height: 100%;
}

/* ---------- Kerangka aplikasi (selalu lebar ponsel) ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: var(--app-w);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 0 1px #bbb7b8, 0 20px 80px rgba(0, 0, 0, .6);
}

.views {
  position: relative;
  flex: 1;
  min-height: 0;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
  scrollbar-width: none;
}

.view::-webkit-scrollbar {
  display: none;
}

.view.active {
  display: block;
}

/* ---------- Top bar & pencarian ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: var(--card);
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.search i {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.badge-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  display: grid;
  place-items: center;
}

.badge-count[hidden] {
  display: none;
}

/* ---------- Logo brand ---------- */
.brand-logo {
  flex: none;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.3px;
  white-space: nowrap;
}

.brand-logo b {
  color: var(--red);
}

/* ---------- Halaman Promo ---------- */
.promo-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 0;
}

.promo-tab {
  flex: 1;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  transition: .15s;
}

.promo-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.promo-list {
  padding: 12px 12px 20px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.promo-group {
  margin-bottom: 16px;
}

.promo-group .promo-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.promo-group .promo-group-head h3 {
  font-size: 14px;
  font-weight: 700;
}

.promo-group .promo-group-head span {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Chip kategori & urutan ---------- */
.chips,
.sorts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  scrollbar-width: none;
}

.chips {
  background: var(--card);
  padding-top: 2px;
}

.chips::-webkit-scrollbar,
.sorts::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  transition: .15s;
}

.chip.active {
  background: var(--ink);
  color: #fff;
}

.sorts .chip {
  background: var(--card);
  border: 1px solid var(--line);
}

.sorts .chip.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- Banner carousel ---------- */
.carousel-wrap {
  position: relative;
  padding: 10px 12px 0;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius);
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.banner {
  flex: none;
  width: 100%;
  aspect-ratio: 2 / 1;
  scroll-snap-align: center;
  position: relative;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.banner h3 {
  font-size: 22px;
  line-height: 1.15;
  max-width: 60%;
}

.banner p {
  font-size: 12px;
  opacity: .9;
  margin: 6px 0 12px;
  max-width: 60%;
}

.banner .cta {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.banner .art {
  position: absolute;
  right: 12px;
  bottom: -6px;
  font-size: 96px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25));
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  transition: .2s;
}

.dots span.on {
  width: 16px;
  background: #fff;
}

/* ---------- Keunggulan ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
}

.perks div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 10px;
  background: var(--card);
  font-size: 11px;
  font-weight: 600;
}

.perks i {
  width: 16px;
  height: 16px;
  color: var(--red);
}

/* ---------- Flash sale ---------- */
.flash {
  margin: 0 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffe8ed 0%, #fff 55%);
}

.flash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.flash-head h2 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: var(--red);
}

.flash-head h2 i {
  width: 18px;
  height: 18px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 12px;
}

.countdown span {
  min-width: 24px;
  padding: 3px 4px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.flash-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.flash-list::-webkit-scrollbar {
  display: none;
}

.flash-item {
  flex: none;
  width: 104px;
  cursor: pointer;
}

.flash-item .thumb {
  border-radius: 10px;
  font-size: 44px;
}

.flash-item b {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 13px;
}

.flash-item s {
  color: var(--muted);
  font-size: 11px;
}

.progress {
  position: relative;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: #ffd3dc;
  overflow: hidden;
}

.progress i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--red), #ff7a45);
}

.progress em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
}

/* ---------- Grid produk ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 8px 8px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s;
}

.card:active {
  transform: scale(.98);
}

/* Placeholder gambar produk: ganti dengan <img> bila sudah ada foto */
.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: 68px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  overflow: hidden;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.out .thumb {
  filter: grayscale(1);
  opacity: .65;
}

.thumb .badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 8px;
  border-bottom-right-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.info {
  padding: 8px 10px 12px;
}

.name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tag {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
}

.tag.ship {
  color: #0c9b94;
  border-color: #0c9b94;
}

.tag.cod {
  color: var(--red);
  border-color: var(--red);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.price-row b {
  color: var(--red);
  font-size: 15px;
}

.price-row s {
  color: var(--muted);
  font-size: 11px;
}

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

.meta .star {
  width: 11px;
  height: 11px;
  color: #ffb800;
}

.empty {
  grid-column: 1 / -1;
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.end-note {
  padding: 14px 0 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Video feed ---------- */
#view-video {
  overflow: hidden;
  background: #000;
}

.feed {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.feed::-webkit-scrollbar {
  display: none;
}

.vid {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, var(--c1), var(--c2));
}

.vid .art {
  position: absolute;
  inset: 0 0 25% 0;
  display: grid;
  place-items: center;
  font-size: 150px;
  animation: float 3.2s ease-in-out infinite;
}

.vid .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float {
  50% {
    transform: translateY(-14px) scale(1.04);
  }
}

.vid::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  pointer-events: none;
}

.vid .top-tabs {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-weight: 600;
  font-size: 15px;
  opacity: .85;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

.vid .top-tabs .on {
  opacity: 1;
  border-bottom: 2px solid #fff;
  padding-bottom: 3px;
}

.actions {
  position: absolute;
  right: 10px;
  bottom: 140px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.act i {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
}

.act.liked i {
  color: var(--red);
}

.act.liked i svg {
  fill: var(--red);
}

.vid-info {
  position: absolute;
  left: 12px;
  right: 70px;
  bottom: 76px;
  z-index: 3;
}

.vid-info .creator {
  font-weight: 700;
  font-size: 15px;
}

.vid-info .caption {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  opacity: .95;
}

.mini-product {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
}

.mini-product .thumb {
  flex: none;
  width: 48px;
  border-radius: 8px;
  font-size: 26px;
}

.mini-product .mp-text {
  flex: 1;
  min-width: 0;
}

.mini-product .mp-text div {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-product .mp-text b {
  color: var(--red);
  font-size: 14px;
}

.mini-product .btn {
  flex: none;
}

/* ---------- Keranjang ---------- */
.page-title {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  background: var(--card);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

/* ---------- Akun ---------- */
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(24px + env(safe-area-inset-top)) 16px 20px;
  background: linear-gradient(135deg, #161823, #2b2d3c);
  color: #fff;
}

.profile .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red), var(--cyan));
}

.profile>div:nth-child(2) {
  flex: 1;
}

.profile b {
  display: block;
}

.profile small {
  opacity: .7;
  font-size: 12px;
}

.order-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 12px;
  padding: 14px 0;
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}

.order-status b {
  display: block;
  font-size: 18px;
}

.order-status span {
  font-size: 12px;
  color: var(--muted);
}

.menu-list {
  margin: 0 12px 16px;
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  padding: 15px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.menu-list li:last-child {
  border-bottom: 0;
}

.menu-list li span {
  color: var(--muted);
}

/* ---------- Tombol ---------- */
.btn {
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--ink);
  background: #fff;
  transition: .15s;
}

.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn.primary:active {
  background: var(--red-dark);
}

.btn.sm {
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
}

.btn.block {
  width: 100%;
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ---------- Navigasi bawah ---------- */
.bottom-nav {
  flex: none;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border-top: 1px solid var(--line);
  z-index: 30;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.nav-item.active {
  color: var(--ink);
  font-weight: 700;
}

.nav-item .badge-count {
  top: 5px;
  right: calc(50% - 22px);
}

.app[data-view="video"] .bottom-nav {
  background: #000;
  border-color: #222;
}

.app[data-view="video"] .nav-item {
  color: #8b8b93;
}

.app[data-view="video"] .nav-item.active {
  color: #fff;
}

/* ---------- Bottom sheet detail produk ---------- */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  max-height: 88%;
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  background: var(--card);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  visibility: hidden;
}

.sheet.open {
  transform: translateY(0);
  visibility: visible;
}

/* Sheet yang tidak terbuka tidak boleh menangkap klik (ketukan user yang jatuh
   ke sheet saat animasi menutup tidak membuat halaman berperilaku aneh) */
.sheet:not(.open) {
  pointer-events: none;
}

.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  display: grid;
  place-items: center;
}

.sheet-close i {
  width: 16px;
  height: 16px;
}

.sheet-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* ---------- Galeri swipe di bottom sheet ---------- */
.sheet-galeri {
  flex: none;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.sheet-galeri::-webkit-scrollbar {
  display: none;
}

.sheet-galeri .slide {
  flex: none;
  width: 100%;
  scroll-snap-align: center;
}

.sheet-galeri .slide img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
  border-radius: 18px 18px 0 0;
}

.sheet-galeri .slide.ph-hero {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  font-size: 120px;
}

/* Dots galeri (menindih bagian bawah gambar) */
.sheet-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 1;
  margin-top: -24px;
  padding-bottom: 10px;
}

.sheet-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(22, 24, 35, .32);
  transition: width .2s, background .2s;
}

.sheet-dots span.on {
  width: 16px;
  background: var(--red);
}

/* Deskripsi langsung ditampilkan terbuka */

/* Kunci scroll body saat sheet terbuka */
body.sheet-lock {
  overflow: hidden;
}

.sheet-body {
  padding: 10px 14px 16px;
}

.sheet-body .s-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sheet-body .s-price b {
  font-size: 20px;
  color: var(--red);
}

.sheet-body .s-price s {
  color: var(--muted);
  font-size: 12px;
}

/* Badge persen diskon: kotak persegi kecil pink INDIS, teks putih */
.disc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 16px;
  height: 14px;
  padding: 0 3px;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  line-height: 14px;
  font-weight: 500;
}

.price-row .disc-badge {
  align-self: center;
  margin-left: 4px;
}

.sheet-body .s-price .disc-badge {
  align-self: center;
  margin-left: 4px;
}

.sheet-body h2 {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.sheet-body .s-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.sheet-body .s-meta .star {
  width: 12px;
  height: 12px;
  color: #ffb800;
  vertical-align: -2px;
}

.sheet-body .shop {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 13px;
}

.sheet-body .shop b {
  display: block;
}

.sheet-body .desc {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: #3a3c46;
  white-space: pre-line;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.sheet-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sheet-actions .btn.full {
  width: 100%;
}

.btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}

/* ---------- Toast ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--nav-h) + 24px);
  z-index: 80;
  transform: translate(-50%, 20px);
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(22, 24, 35, .94);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Nav bawah: item berupa tautan eksternal (Lacak) ---------- */
.bottom-nav a.nav-item {
  text-decoration: none;
  background: none;
  cursor: pointer;
}

/* ---------- Halaman Bantuan ---------- */
.bantuan-header {
  padding: calc(20px + env(safe-area-inset-top)) 16px 20px;
  background: linear-gradient(135deg, #161823, #2b2d3c);
  color: #fff;
}

.bantuan-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 11px;
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ee66b;
  box-shadow: 0 0 6px #2ee66b;
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  50% { opacity: .4; }
}

.bantuan-header h1 {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.25;
}

.bantuan-header p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  opacity: .75;
}

.bantuan-content {
  padding: 14px 12px 24px;
  display: grid;
  gap: 14px;
}

.bantuan-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.bantuan-section-title i {
  width: 16px;
  height: 16px;
  color: var(--red);
}

/* Kartu kontak CS */
.bantuan-contact-grid {
  display: grid;
  gap: 8px;
}

.bantuan-contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform .12s;
}

.bantuan-contact-card:active {
  transform: scale(.98);
}

.bantuan-contact-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.bantuan-contact-icon i {
  width: 20px;
  height: 20px;
}

.bantuan-contact-card.wa .bantuan-contact-icon {
  background: #dcf7e6;
  color: #16a34a;
}

.bantuan-contact-card.email .bantuan-contact-icon {
  background: #ffefee;
  color: var(--red);
}

.bantuan-contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.contact-desc {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.tag-fast {
  padding: 1px 6px;
  border-radius: 999px;
  background: #dcf7e6;
  color: #16a34a;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.bantuan-contact-card .arrow {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* Banner lacak paket */
.bantuan-lacak-banner {
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff3ee, #ffe0d6);
}

.bantuan-lacak-banner .banner-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.bantuan-lacak-banner .banner-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 12px;
}

.bantuan-lacak-banner .banner-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  color: var(--red);
  display: grid;
  place-items: center;
}

.bantuan-lacak-banner .banner-icon i {
  width: 20px;
  height: 20px;
}

.bantuan-lacak-banner .banner-text h3 {
  font-size: 14px;
  line-height: 1.3;
}

.bantuan-lacak-banner .banner-text p {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

/* Kartu generik isi bantuan */
.bantuan-card {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

/* Langkah cara kerja pesanan */
.bantuan-steps {
  display: grid;
  gap: 12px;
}

.step-item {
  display: flex;
  gap: 10px;
}

.step-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step-text b {
  display: block;
  font-size: 13px;
}

.step-text p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

/* Kebijakan retur */
.retur-highlight {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fff3c4;
}

.retur-highlight i {
  flex: none;
  width: 16px;
  height: 16px;
  color: #806000;
}

.retur-highlight strong {
  font-size: 12px;
  color: #806000;
}

.retur-highlight p {
  margin-top: 2px;
  font-size: 11px;
  color: #7a6a1e;
  line-height: 1.45;
}

.retur-points {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.retur-points li {
  display: flex;
  gap: 8px;
  font-size: 11px;
  line-height: 1.45;
}

.retur-points li i {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--red);
}

/* Tentang toko */
.about-brand {
  text-align: center;
}

.brand-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.brand-badge span {
  color: #ff947c;
}

.about-brand p {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
}

.about-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.about-perk-item {
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--bg);
  text-align: center;
}

.about-perk-item b {
  display: block;
  font-size: 11px;
}

.about-perk-item span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}

/* FAQ accordion */
.bantuan-faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.faq-question i {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform .2s;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 12px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.bantuan-footer {
  margin-top: 6px;
  padding: 12px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}

.bantuan-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

/* Hubungi Kami: tombol WA + jam layanan */
.bantuan-hubungi {
  text-align: center;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.wa-btn i {
  width: 18px;
  height: 18px;
}

.wa-btn:active {
  opacity: .9;
}

.bantuan-hubungi .hours {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

/* Daftar poin informasi (Pengiriman / Retur) */
.bantuan-points {
  display: grid;
  gap: 10px;
  padding-left: 16px;
}

.bantuan-points li {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
}

.bantuan-points li a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.pengingat-supplier {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #fff3c4;
  font-size: 11px;
  line-height: 1.5;
  color: #806000;
}

.pengingat-supplier i {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

/* ---------- Desktop: tetap mobile, hanya dibuat rapi ---------- */
@media (min-width: 600px) and (min-height: 760px) {
  .app {
    height: min(100dvh - 32px, 920px);
    margin-top: 16px;
    border-radius: 24px;
  }

  body {
    overflow: hidden;
  }
}