/* Katalog Adun Mancing — tema biru putih, mobile-first */

@font-face { font-family: "PJS"; src: url("fonts/pjs-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PJS"; src: url("fonts/pjs-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PJS"; src: url("fonts/pjs-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PJS"; src: url("fonts/pjs-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --biru-900: #0a2a5e;
  --biru-800: #0a3d91;
  --biru-700: #0b4fb3;
  --biru-600: #1565c0;
  --biru-500: #1f7ae0;
  --biru-200: #c7dcf7;
  --biru-100: #e4effc;
  --biru-50: #f2f7fe;
  --latar: #f3f7fc;
  --putih: #ffffff;
  --teks: #13233f;
  --teks-2: #55657e;
  --garis: #dbe5f1;
  --radius: 14px;
  --bayang: 0 1px 2px rgba(10, 42, 94, .06), 0 4px 14px rgba(10, 42, 94, .06);
  /* Sorotan produk (teal gelap, emas, merah — senada materi promosi) */
  --sorot-900: #03141a;
  --sorot-800: #062631;
  --sorot-700: #0b3b47;
  --sorot-teal: #47c2cf;
  --emas: #f6c453;
  --merah: #e5354f;
  --tinggi-berjalan: 34px;
  --font: "PJS", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 140px; }
html.kunci { overflow: hidden; }
body {
  margin: 0;
  background: var(--latar);
  color: var(--teks);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--biru-600); }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--biru-500); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ───────── Kepala ───────── */

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 6px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(135deg, var(--biru-800), var(--biru-500));
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand b { font-size: 17px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.brand small { font-size: 12.5px; font-weight: 600; opacity: .85; }

.chat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.chat svg { width: 18px; height: 18px; }
.chat:hover { background: rgba(255, 255, 255, .26); }

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(135deg, var(--biru-800), var(--biru-500));
  color: #fff;
  padding: 6px 16px 0;
  box-shadow: 0 2px 10px rgba(10, 42, 94, .18);
}
.bar-inner { display: flex; align-items: center; gap: 14px; max-width: 1240px; margin: 0 auto; }
.brand-desktop, .chat-desktop { display: none; }

.search { position: relative; flex: 1; min-width: 0; color: var(--teks); }
.search-box {
  display: flex;
  align-items: center;
  height: 46px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4), 0 2px 8px rgba(10, 42, 94, .18);
}
.search-ico { width: 20px; height: 20px; margin: 0 4px 0 12px; color: var(--teks-2); }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 6px;
  font-size: 16px; /* 16px: iPhone tidak zoom otomatis */
  outline: none;
}
.search input::placeholder { color: #8a97ab; }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear, .search .go {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0 10px;
  color: var(--teks-2);
}
.search .clear svg { width: 18px; height: 18px; }
.search .go {
  margin: 4px;
  height: 38px;
  border-radius: 9px;
  background: var(--biru-700);
  color: #fff;
  padding: 0 14px;
}
.search .go svg { width: 19px; height: 19px; }
.search .go:hover { background: var(--biru-600); }

/* Dropdown saran */
.saran {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--garis);
  box-shadow: 0 16px 40px rgba(10, 42, 94, .22);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 40;
}
.saran li {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  cursor: pointer;
}
.saran li[aria-selected="true"], .saran li:hover { background: var(--biru-50); }
.saran li[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--biru-200); }
.saran img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--biru-100); }
.saran .s-nama { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.saran .s-nama mark { background: none; color: var(--biru-700); font-weight: 800; }
.saran .s-harga { font-size: 13px; font-weight: 800; color: var(--biru-700); margin-top: 1px; }
.saran .s-semua {
  display: flex;
  justify-content: center;
  grid-template-columns: none;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid var(--garis);
  border-radius: 0 0 10px 10px;
  color: var(--biru-700);
  font-weight: 700;
  font-size: 14px;
}
.saran .s-kosong { display: block; padding: 12px; color: var(--teks-2); font-size: 14px; cursor: default; }
.saran .s-kosong:hover { background: none; }

/* Label BAM / Non BAM */
.lbl {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1.6;
  white-space: nowrap;
}
.lbl.bam { background: var(--biru-700); color: #fff; }
.lbl.non { background: #fff; color: var(--biru-700); box-shadow: inset 0 0 0 1.5px var(--biru-200); }
.lbl.sorot { margin-left: 4px; background: linear-gradient(90deg, #ffe08a, var(--emas)); color: #3a2a00; }

/* Tab */
.tabs {
  display: flex;
  gap: 6px;
  max-width: 1240px;
  margin: 8px auto 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
}
.tabs button span {
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
.tabs button[aria-selected="true"] span { background: #fff; color: var(--biru-700); }

/* ───────── Daftar produk ───────── */

.main { max-width: 1240px; margin: 0 auto; padding: 12px 16px 28px; min-height: 60vh; }

/* Catatan ongkos kirim */
.ongkir {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 2px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff6db;
  border: 1.5px solid #f2c94c;
  color: #5c4300;
  box-shadow: var(--bayang);
}
.ongkir svg { width: 28px; height: 28px; color: #b7791f; margin-top: 1px; }
.ongkir b { display: block; font-size: 16px; font-weight: 800; color: #3d2c00; line-height: 1.3; }
.ongkir span { display: block; font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.d-info .ongkir { margin: 10px 0 0; box-shadow: none; }
.ongkir a { color: #7a5200; font-weight: 700; white-space: nowrap; }

/* Halaman teks (Ketentuan & Privasi) */
.halaman-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: linear-gradient(135deg, var(--biru-800), var(--biru-500)); color: #fff; }
.halaman-top .kembali { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-size: 14px; }
.halaman-top .kembali svg { width: 18px; height: 18px; }
.teks { max-width: 760px; margin: 0 auto; padding: 20px 16px 36px; }
.teks article { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); padding: 20px 18px 24px; box-shadow: var(--bayang); }
.teks h1 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; color: var(--biru-900); }
.teks .tgl { color: var(--teks-2); font-size: 13.5px; margin: 0 0 8px; }
.teks h2 { font-size: 17px; margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid var(--garis); color: var(--biru-900); }
.teks p, .teks li { font-size: 15px; line-height: 1.6; }
.teks ul, .teks ol { padding-left: 22px; margin: 6px 0 10px; }
.teks li { margin: 4px 0; }
.info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 28px; margin: 2px 0 12px; color: var(--teks-2); font-size: 14px; }
.info b { color: var(--teks); }
.info .reset {
  border: 0;
  background: var(--biru-100);
  color: var(--biru-700);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--bayang);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10, 42, 94, .14); }
.card:active { transform: scale(.985); }
.foto {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--biru-100);
  overflow: hidden;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.card .lbl { align-self: flex-start; font-size: 10.5px; padding: 1px 7px; }
.card-isi { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px 12px; flex: 1; border-top: 1px solid var(--garis); }
.card h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.05em;
}
.harga { margin-top: auto; font-weight: 800; color: var(--biru-700); font-size: 15.5px; letter-spacing: .1px; }

.more { height: 1px; }
.empty {
  text-align: center;
  background: #fff;
  border: 1px dashed var(--biru-200);
  border-radius: var(--radius);
  padding: 32px 18px;
}
.empty img { width: 64px; margin: 0 auto 10px; opacity: .9; }
.empty h2 { font-size: 18px; margin: 0 0 6px; }
.empty p { margin: 0 auto 14px; color: var(--teks-2); max-width: 420px; }
.empty .saran-kata { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.chip {
  border: 1px solid var(--biru-200);
  background: var(--biru-50);
  color: var(--biru-700);
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.chip:hover { background: var(--biru-100); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15.5px;
  text-decoration: none;
}
.btn svg { width: 22px; height: 22px; }
.btn-pesan { background: var(--biru-700); color: #fff; box-shadow: 0 4px 14px rgba(11, 79, 179, .3); }
.btn-pesan:hover { background: var(--biru-800); }

/* ───────── Kaki ───────── */

.foot {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 16px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--garis);
  color: var(--teks-2);
  font-size: 13.5px;
}
.foot img { width: 40px; flex: none; }
.foot b { color: var(--teks); font-size: 14.5px; }
.foot p { margin: 4px 0 0; }
.foot a { font-weight: 600; }
.foot .copy { font-size: 12.5px; opacity: .8; }

/* ───────── Detail produk ───────── */

.detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: naik .22s ease-out;
}
.detail[data-langsung], .detail[data-langsung] .d-panel { animation: none; }
@keyframes naik { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pudar { from { opacity: 0; } to { opacity: 1; } }

.d-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--garis);
}
.d-back, .d-share, .d-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--biru-50);
  color: var(--biru-700);
  font-weight: 700;
  font-size: 14.5px;
}
.d-back svg, .d-share svg, .d-close svg { width: 20px; height: 20px; }
.d-back:hover, .d-share:hover, .d-close:hover { background: var(--biru-100); }
.d-close { display: none; }

.d-wrap { display: block; }
.d-foto { position: relative; background: var(--biru-100); aspect-ratio: 1 / 1; max-height: 70vh; margin: 0 auto; }
.d-foto img { width: 100%; height: 100%; object-fit: contain; }
.d-foto .ph-teks {
  position: absolute;
  inset: auto 0 10px;
  text-align: center;
  font-size: 12px;
  color: var(--teks-2);
}
.d-info { padding: 16px 16px 8px; }
.d-info .lbl { font-size: 12px; }
.d-info h1 { font-size: 21px; line-height: 1.3; margin: 8px 0 6px; font-weight: 800; }
.d-harga { font-size: 26px; font-weight: 800; color: var(--biru-700); margin: 0 0 4px; letter-spacing: .2px; }
.d-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--garis); }
.d-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 8px; font-weight: 800; color: var(--biru-900); }
.d-sec p { margin: 0 0 8px; white-space: pre-line; }
.d-sec .kosong { color: var(--teks-2); font-style: italic; }
.poin { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; }
.poin li { position: relative; padding-left: 18px; }
.poin li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--biru-500); }
.resep { margin: 18px 0 8px; font-size: 15px; font-weight: 800; color: var(--biru-800); }
.d-sec h2 + .resep { margin-top: 4px; }

.langkah { list-style: none; counter-reset: l; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.langkah li { counter-increment: l; position: relative; padding: 10px 12px 10px 48px; background: var(--biru-50); border-radius: 12px; border: 1px solid var(--biru-100); }
.langkah li::before {
  content: counter(l);
  position: absolute;
  left: 10px;
  top: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--biru-700);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.catatan { margin-top: 10px; padding: 10px 12px; border-left: 4px solid var(--biru-500); background: #fff; border-radius: 0 10px 10px 0; box-shadow: var(--bayang); font-size: 14px; }
.catatan b { color: var(--biru-700); }

.varian { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.varian a {
  flex: none;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  max-width: 180px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--garis);
  background: #fff;
  color: var(--teks);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
}
.varian a b { color: var(--biru-700); font-size: 13px; margin-top: 2px; }
.varian a[aria-current="true"] { border-color: var(--biru-600); background: var(--biru-50); }

.d-order {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--garis);
  box-shadow: 0 -6px 20px rgba(10, 42, 94, .08);
}
.qty { display: flex; align-items: center; border: 1.5px solid var(--garis); border-radius: 12px; height: 48px; flex: none; }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; color: var(--biru-700); }
.qty button:disabled { color: #b7c2d3; cursor: default; }
.qty button svg { width: 18px; height: 18px; }
.qty output { min-width: 28px; text-align: center; font-weight: 800; font-size: 16px; }
.d-order .btn-pesan { flex: 1; min-width: 0; }
.d-order .btn-pesan span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.total { font-size: 12.5px; color: var(--teks-2); margin-top: 2px; }
.total b { color: var(--teks); }

/* Halaman tanpa JavaScript */
.ns { background: #fff; border-radius: var(--radius); padding: 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  background: var(--biru-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: pudar .2s ease-out;
  max-width: calc(100vw - 32px);
}

/* ───────── Sorotan: teks berjalan (sorotan.json) ───────── */

.berjalan {
  position: sticky;
  top: 0;
  z-index: 31;
  display: flex;
  align-items: center;
  height: calc(var(--tinggi-berjalan) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  overflow: hidden;
  background: linear-gradient(90deg, var(--sorot-900), var(--sorot-700) 55%, var(--sorot-900));
  border-bottom: 1px solid rgba(246, 196, 83, .4);
  color: #eaf7f9;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.berjalan ~ .bar { top: calc(var(--tinggi-berjalan) + env(safe-area-inset-top)); }
.berjalan ~ .brandrow { padding-top: 10px; }
.berjalan-lbl {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px 0 14px;
  background: var(--merah);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 6px 0 14px rgba(3, 20, 26, .7);
}
.berjalan-lbl i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: kedip 1.2s ease-in-out infinite; }
@keyframes kedip { 50% { opacity: .2; } }
.berjalan-jalur {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}
.berjalan-isi { display: flex; flex: none; animation: berjalan 45s linear infinite; }
.berjalan-isi span { display: inline-block; padding-right: 18px; white-space: nowrap; }
.berjalan-isi span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 18px 2px 0; vertical-align: middle; background: var(--emas); transform: rotate(45deg); }
.berjalan-isi b { color: var(--emas); font-weight: 800; }
.berjalan:hover .berjalan-isi, .berjalan:focus-visible .berjalan-isi { animation-play-state: paused; }
@keyframes berjalan { to { transform: translateX(-100%); } }

/* ───────── Sorotan: banner produk ───────── */

.sorotan {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 16px;
  padding: 16px 16px 18px;
  border-radius: 20px;
  color: #e6f4f6;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(71, 194, 207, .24), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(229, 53, 79, .16), transparent 60%),
    linear-gradient(165deg, var(--sorot-700), var(--sorot-800) 45%, var(--sorot-900));
  box-shadow: 0 12px 32px rgba(3, 20, 26, .35);
}
.sorotan .s-garis { position: absolute; left: 0; bottom: 38%; z-index: -1; width: 100%; height: 70px; opacity: .2; }
.sorotan .s-garis polyline { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sorotan .s-atas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.sorotan .s-label { padding: 4px 10px; border-radius: 999px; background: var(--merah); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.sorotan .s-tgl { color: var(--sorot-teal); font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.sorotan .s-isi { display: grid; grid-template-areas: "kepala" "foto" "rinci"; gap: 12px; margin-top: 12px; }
.sorotan .s-kepala { grid-area: kepala; }
.sorotan .s-judul {
  margin: 0;
  font-size: clamp(28px, 8.4vw, 46px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 35%, #9fe3ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sorotan .s-sub {
  margin: 4px 0 0;
  font-size: clamp(19px, 5.6vw, 26px);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(90deg, #ffe08a, var(--emas) 50%, #e3a83a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sorotan .s-kepala::after { content: ''; display: block; width: 64px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--merah); }
.sorotan .s-foto {
  grid-area: foto;
  position: relative;
  display: block;
  width: min(100%, 270px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #eef1f2;
  border: 2px solid rgba(71, 194, 207, .55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.sorotan .s-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.sorotan .s-foto img.aktif { opacity: 1; }

/* Video promosi di banner (menggantikan foto bila sorotan.json punya "video") */
.sorotan .s-video {
  grid-area: foto;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(71, 194, 207, .55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.sorotan .s-video video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.sorotan .s-suara {
  position: absolute;
  right: 10px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(3, 20, 26, .72);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.sorotan .s-suara[hidden] { display: none; }
.sorotan .s-suara svg { width: 18px; height: 18px; flex: none; }
.sorotan .s-suara[aria-pressed="true"] { padding: 7px; }
.sorotan .s-suara[aria-pressed="true"] span { display: none; }
.sorotan .s-putar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(229, 53, 79, .92);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.sorotan .s-putar[hidden] { display: none; }
.sorotan .s-putar svg { width: 30px; height: 30px; margin-left: 4px; }
.sorotan .s-progres { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); }
.sorotan .s-progres i { display: block; height: 100%; background: var(--merah); transform: scaleX(0); transform-origin: left; }
.sorotan .s-rinci { grid-area: rinci; }
.sorotan .s-kalimat { display: none; margin: 0 0 4px; color: #cfe6ea; font-size: 14.5px; line-height: 1.5; }
.sorotan .s-harga { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; color: #fff; font-size: 26px; font-weight: 800; }
.sorotan .s-harga small { color: #9fc3c9; font-size: 12.5px; font-weight: 600; }
.sorotan .s-fitur { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.sorotan .s-fitur li { padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(71, 194, 207, .5); background: rgba(71, 194, 207, .1); color: #d9f3f6; font-size: 12px; font-weight: 700; }
.sorotan .s-ukuran { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sorotan .s-uk {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  line-height: 1.1;
  text-decoration: none;
}
.sorotan .s-uk:hover { border-color: var(--sorot-teal); background: rgba(71, 194, 207, .14); }
.sorotan .s-uk small { color: #9fc3c9; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; }
.sorotan .s-uk b + small { color: #ff7a8c; }
.sorotan .s-uk b { margin: 3px 0 2px; font-size: 22px; font-weight: 800; white-space: nowrap; }
.sorotan .s-uk b i { color: #9fc3c9; font-size: 11px; font-style: normal; font-weight: 700; }
.sorotan .s-uk em { margin-top: 3px; color: var(--emas); font-size: 11px; font-style: normal; }
.sorotan .s-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd977, var(--emas) 55%, #e2a52f);
  color: #2a1d00;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(246, 196, 83, .35);
}
.sorotan .s-cta svg { width: 20px; height: 20px; }
.sorotan .s-cta:hover { filter: brightness(1.05); }

/* Kotak hadiah giveaway (banner & halaman produk) */
.hadiah { margin-top: 16px; padding: 14px 12px 12px; border-radius: 16px; border: 1px solid rgba(246, 196, 83, .45); text-align: center; background: radial-gradient(100% 120% at 50% 0%, rgba(246, 196, 83, .2), transparent 65%), rgba(0, 0, 0, .25); }
.d-hadiah { margin-top: 12px; color: #e6f4f6; background: radial-gradient(100% 120% at 50% 0%, rgba(246, 196, 83, .22), transparent 65%), linear-gradient(165deg, var(--sorot-700), var(--sorot-900)); }
.hadiah .h-judul { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: var(--emas); font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.hadiah .h-judul svg { width: 18px; height: 18px; }
.hadiah .h-total {
  margin: 4px 0 0;
  font-size: clamp(26px, 8.4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .5px;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff3c4, var(--emas) 45%, #d08e1c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.d-hadiah .h-total { font-size: 30px; }
.hadiah .h-ket { margin: 2px 0 0; color: #f1e3bd; font-size: 13px; font-weight: 600; }
.hadiah .h-rincian { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; text-align: left; }
.hadiah .h-rincian li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(3, 20, 26, .55); }
.hadiah .h-rincian li:first-child, .hadiah .h-rincian li:last-child { grid-column: 1 / -1; }
.hadiah .h-rincian li:first-child { border-color: rgba(246, 196, 83, .6); background: linear-gradient(90deg, rgba(246, 196, 83, .2), rgba(3, 20, 26, .55)); }
.hadiah .medali { grid-row: span 2; }
.hadiah .juara { color: #a9c7cc; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.hadiah .h-rincian b { color: #fff; font-size: 15px; font-weight: 800; line-height: 1.25; }
.hadiah .h-rincian li:first-child b { color: var(--emas); font-size: 21px; }
.hadiah .h-catatan { margin: 10px 0 0; color: #b9cdd1; font-size: 11.5px; line-height: 1.45; }
.medali {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #3a2a00;
  font-size: 14px;
  font-weight: 800;
  background: radial-gradient(circle at 35% 30%, #fff7d1, var(--emas) 45%, #b9801a);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 2px 6px rgba(0, 0, 0, .35);
}
.medali.m1 { color: #2b3440; background: radial-gradient(circle at 35% 30%, #fff, #c9d3dc 45%, #8a98a6); }
.medali.m2 { color: #3b1d06; background: radial-gradient(circle at 35% 30%, #ffe1c2, #d38b4b 45%, #8d4f1d); }
.medali.m3 { color: #05303a; font-size: 13px; background: radial-gradient(circle at 35% 30%, #d9fbff, var(--sorot-teal) 45%, #13808c); }

/* Kartu produk sorotan di daftar */
.card-sorot { border: 2px solid var(--emas); box-shadow: 0 0 0 3px rgba(246, 196, 83, .22), var(--bayang); }

/* Foto tambahan produk sorotan (di atas foto utama halaman produk) */
.d-galeri { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.d-galeri button { width: 52px; height: 52px; padding: 0; border: 2px solid rgba(255, 255, 255, .9); border-radius: 10px; overflow: hidden; background: #fff; opacity: .85; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.d-galeri button[aria-current] { border-color: var(--merah); opacity: 1; }
.d-galeri img { width: 100%; height: 100%; object-fit: cover; }
.d-galeri .d-tbl-video { position: relative; background: #000; }
.d-galeri .d-tbl-video svg { position: absolute; inset: 0; width: 24px; height: 24px; margin: auto; padding: 4px; border-radius: 50%; background: rgba(229, 53, 79, .9); color: #fff; }
/* Video di halaman produk sorotan: menutupi foto utama, menyisakan baris thumbnail di bawah */
.d-video { position: absolute; left: 0; right: 0; top: 0; bottom: 72px; width: 100%; height: calc(100% - 72px); background: #000; object-fit: contain; }

/* ───────── Layar lebih lebar ───────── */

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .tabs button { flex: 0 0 auto; min-width: 130px; }
  .hadiah .h-rincian { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sorotan .s-kalimat { display: block; }
}

@media (min-width: 900px) {
  html { scroll-padding-top: 120px; }
  .brandrow { display: none; }
  .bar { padding: 10px 24px 0; }
  .brand-desktop, .chat-desktop { display: flex; }
  .chat-desktop { display: inline-flex; }
  .search { max-width: 680px; margin: 0 auto; }
  .main { padding: 18px 24px 36px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .card h3 { font-size: 14px; }
  .foot { padding-left: 24px; padding-right: 24px; }

  .sorotan { padding: 22px 26px 24px; }
  .sorotan .s-isi { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "kepala foto" "rinci foto"; column-gap: 28px; align-items: start; }
  .sorotan .s-foto { width: 100%; }
  .sorotan .s-isi-video { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .sorotan .s-hadiah { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; gap: 4px 22px; padding: 16px 18px; text-align: left; }
  .sorotan .s-hadiah .h-total { font-size: 40px; }
  .sorotan .s-hadiah { grid-template-rows: 1fr auto auto auto 1fr; }
  .sorotan .s-hadiah .h-judul { grid-row: 2; justify-content: flex-start; }
  .sorotan .s-hadiah .h-total { grid-row: 3; }
  .sorotan .s-hadiah .h-ket { grid-row: 4; }
  .sorotan .s-hadiah .h-rincian { grid-column: 2; grid-row: 1 / 6; margin: 0; }
  .sorotan .s-hadiah .h-catatan { grid-column: 1 / -1; grid-row: 6; }
  .sorotan .s-cta { display: inline-flex; padding: 13px 22px; }

  .detail {
    display: grid;
    place-items: center;
    padding: 4vh 24px;
    background: rgba(10, 30, 66, .55);
    animation: pudar .18s ease-out;
  }
  .d-panel {
    position: relative;
    width: min(1040px, 100%);
    max-height: 92vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    animation: naik .22s ease-out;
    display: flex;
    flex-direction: column;
  }
  .d-top { position: static; padding: 10px 14px; }
  .d-close { display: inline-flex; padding: 8px 10px; }
  .d-wrap { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); overflow: hidden; flex: 1; min-height: 0; }
  .d-foto { max-height: none; height: auto; align-self: start; margin: 18px 0 18px 18px; border-radius: 16px; overflow: hidden; }
  .d-kanan { overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
  .d-info { padding: 18px 24px 8px; }
  .d-info h1 { font-size: 24px; }
  .d-order { position: sticky; bottom: 0; padding: 12px 24px; margin-top: auto; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
