/* ============================================================
   ZENN STORE — USER STYLES
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

body.menu-open, body.modal-open {
  overflow: hidden;
}

/* ---------- Scrollbar Hide ---------- */
.scroll-hide::-webkit-scrollbar {
  display: none;
}
.scroll-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- View Switching ---------- */
.view {
  display: none;
}
.view.active {
  display: block;
}

/* ---------- Bottom Sheet Animation ---------- */
.sheet-anim {
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.sheet-anim.open {
  transform: translateY(0);
}

/* ---------- Fade Animation ---------- */
.fade {
  opacity: 0;
  transition: opacity .25s ease;
}
.fade.open {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}
.content-fade {
  animation: fadeIn .25s ease;
}

/* ---------- Carousel ---------- */
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.carousel-track.dragging {
  transition: none;
  cursor: grabbing;
}
.carousel-dot {
  transition: all .3s ease;
}
.carousel-dot.active {
  width: 20px;
  background-color: #18181b;
}

/* ---------- Category Card ---------- */
.cat-tile {
  transition: all .2s ease;
}
.cat-tile:hover {
  transform: translateY(-2px);
}
.cat-tile:active {
  transform: scale(0.98);
}

/* ---------- Product Card ---------- */
.product-card,
.popular-card {
  transition: all .2s ease;
}
.product-card:active,
.popular-card:active {
  transform: scale(0.98);
}

/* ---------- Order Button ---------- */
.order-btn {
  transition: all .2s ease;
}
.order-btn:active {
  transform: scale(0.97);
}

/* ---------- Detail Button ---------- */
#detailWA {
  transition: all .2s ease;
}
#detailWA:active {
  transform: scale(0.98);
}

/* ---------- Toast ---------- */
#toast {
  transition: all .3s cubic-bezier(.2,.7,.3,1);
}

/* ---------- Promo CTA ---------- */
.promo-cta {
  transition: all .2s ease;
}
.promo-cta:active {
  transform: scale(0.97);
}

/* ---------- Menu Item ---------- */
.menu-item {
  transition: all .15s ease;
}
.menu-item:active {
  background-color: #f4f4f5;
}

/* ---------- Category Filter ---------- */
.cat-filter {
  transition: all .2s ease;
}
.cat-filter:active {
  transform: scale(0.97);
}

/* ============================================================
   MONOCHROME PREMIUM + SUBTLE COLOR ACCENTS
   ============================================================ */

/* Bintang rating: amber emas (lebih hidup) */
body .fill-amber-400 { fill: #fbbf24; }

/* Badge produk: gradient halus (lebih dimensional) */
.popular-card .bg-rose-500 { background: linear-gradient(135deg, #18181b 0%, #3f3f46 100%); }   /* Terlaris */
.popular-card .bg-amber-500 { background: linear-gradient(135deg, #52525b 0%, #71717a 100%); }  /* Populer */
.popular-card .bg-emerald-500 { background: linear-gradient(135deg, #a1a1aa 0%, #d4d4d8 100%); } /* Baru */

/* Badge "Promo" di grid produk: gradient */
.product-card .bg-rose-500 { background: linear-gradient(135deg, #18181b 0%, #3f3f46 100%); }

/* Kartu: bayangan lebih halus, khas monokrom minimalis */
.product-card,
.popular-card,
.cat-tile {
  box-shadow: 0 1px 2px rgba(9, 9, 11, .04);
}
.product-card:hover,
.popular-card:hover,
.cat-tile:hover {
  box-shadow: 0 8px 24px rgba(9, 9, 11, .08);
}

/* Scrollbar tipis monokrom untuk desktop */
@media (min-width: 768px) {
  * { scrollbar-color: #d4d4d8 transparent; scrollbar-width: thin; }
}

/* Status stok: warna lembut (tapi tetap subtle) */
.product-card .text-rose-500,
.popular-card .text-rose-500 {
  color: #fda4af;
  letter-spacing: .01em;
}
.product-card .text-emerald-600,
.popular-card .text-emerald-600 {
  color: #86efac;
}

/* Testimonial avatars: pastel lembut */
#testimonialListPublic .bg-teal-700 { background: #f0f9ff !important; color: #0369a1 !important; }
#testimonialListPublic .bg-emerald-600 { background: #f0fdf4 !important; color: #15803d !important; }
#testimonialListPublic .bg-cyan-600 { background: #ecfeff !important; color: #0e7490 !important; }
#testimonialListPublic .bg-blue-600 { background: #eff6ff !important; color: #1d4ed8 !important; }
#testimonialListPublic .bg-violet-600 { background: #f5f3ff !important; color: #6d28d9 !important; }
#testimonialListPublic .bg-rose-500 { background: #fff1f2 !important; color: #be123c !important; }
#testimonialListPublic .bg-amber-500 { background: #fffbeb !important; color: #b45309 !important; }
#testimonialListPublic .bg-slate-600 { background: #f8fafc !important; color: #475569 !important; }

/* Search suggestions dropdown */
.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: white; border: 1px solid #e4e4e7; border-radius: 12px;
  margin-top: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: none; z-index: 50; overflow: hidden;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  padding: 12px 16px; cursor: pointer; border-bottom: 1px solid #f4f4f5;
  font-size: 13px; color: #18181b; transition: background .15s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover,
.suggestion-item.suggestion-active { background: #f4f4f5; }
.suggestion-item .suggestion-cat { font-size: 10px; color: #a1a1aa; margin-left: 8px; }

/* Sort dropdown (custom, animated ala Claude) */
.sort-wrap { position: relative; display: inline-block; }
.sort-select-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid #e4e4e7; border-radius: 999px;
  background: white; font-size: 11px; color: #52525b; cursor: pointer; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sort-select-btn:hover { border-color: #a1a1aa; }
.sort-select-btn:focus { border-color: #18181b; }
.sort-chevron { transition: transform .3s cubic-bezier(.22,1,.36,1); display: flex; }
.sort-wrap.open .sort-chevron { transform: rotate(180deg); }
.sort-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 160px; background: white; border: 1px solid #e4e4e7; border-radius: 14px;
  box-shadow: 0 12px 32px -12px rgba(9,9,11,.2); padding: 6px; z-index: 60;
  display: none;
}
.sort-wrap.open .sort-menu { display: block; animation: sortMenuIn .22s cubic-bezier(.22,1,.36,1); }
@keyframes sortMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.sort-option {
  display: flex; align-items: center; width: 100%;
  padding: 9px 12px; border: none; background: transparent; border-radius: 10px;
  font-size: 12px; color: #27272a; cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
.sort-option:hover { background: #f4f4f5; }
.sort-option.selected { background: #18181b; color: #fff; }

/* ============================================================
   PREMIUM MOTION LAYER
   ============================================================ */

/* ---- 1. Scroll reveal (fade + rise, dengan stagger) ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- 2. Hover: kartu naik halus + border menegas ---- */
@media (hover: hover) {
  .product-card:hover,
  .popular-card:hover,
  .cat-tile:hover {
    transform: translateY(-3px);
    border-color: #d4d4d8;
  }
}

/* ---- 3. Hover: thumbnail produk zoom perlahan ---- */
.product-card .aspect-square > span,
.popular-card .aspect-square > span {
  transition: transform .55s cubic-bezier(.22,1,.36,1);
  backface-visibility: hidden;
}
@media (hover: hover) {
  .product-card:hover .aspect-square > span,
  .popular-card:hover .aspect-square > span {
    transform: scale(1.08);
  }
}

/* ---- 4. Tombol utama: kilau lembut saat hover ---- */
.order-btn,
#detailWA,
.promo-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.order-btn::after,
#detailWA::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.16) 47%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .75s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
@media (hover: hover) {
  .order-btn:hover::after,
  #detailWA:hover::after {
    transform: translateX(130%);
  }
}

/* ---- 5. Panah "View all" bergeser saat hover ---- */
.view-all-trigger svg {
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) {
  .view-all-trigger:hover svg { transform: translateX(2px); }
  .back-btn:hover svg { transform: translateX(-2px); }
}

/* ---- 6. Entry animation tiap ganti halaman ---- */
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.view.active {
  animation: viewIn .32s cubic-bezier(.22,1,.36,1);
}

/* ---- 7. Header shadow saat halaman di-scroll ---- */
#siteHeader {
  transition: box-shadow .3s ease;
}
#siteHeader.scrolled {
  box-shadow: 0 10px 30px -18px rgba(9,9,11,.35);
}


/* ============================================================
   ZENN STORE — PREMIUM LIGHT EXPERIENCE
   Shared loading, category and product detail UI
   ============================================================ */
:root {
  --ink: #18181b;
  --muted: #71717a;
  --soft: #a1a1aa;
  --line: #e4e4e7;
  --surface: #fafafa;
}
body { background: #fff !important; color: var(--ink); }
#siteHeader { background: #fff !important; border-bottom: none !important; }
#siteHeader .max-w-3xl { background: #fff; }
.category-view #siteHeader { display: none !important; }
.category-view footer { display: none !important; }
.category-page-shell, .search-page-shell { max-width: none !important; margin: 0 !important; }
.search-page-shell .search-page-top { position: sticky; top: 0; z-index: 20; background: #fff; padding: 6px 0; }
.category-page-shell > .back-btn {
  color: #27272a !important; background: #fff !important; border-color: #e4e4e7 !important;
}
.category-page-shell > .back-btn:hover { background: #f4f4f5 !important; border-color: #a1a1aa !important; }
.product-card, .popular-card, .cat-tile { border-color: #e4e4e7 !important; background: #fff !important; }
.product-card .order-btn, .popular-card .order-btn { background: #18181b !important; color: #fff !important; }
.product-card .order-btn:hover, .popular-card .order-btn:hover { background: #27272a !important; }

/* Full-screen white loading with three dots */
.page-loader {
  position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: #fff; opacity: 0;
  visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease;
}
.page-loader.show { opacity: 1; visibility: visible; pointer-events: auto; }
.loader-brand { color: #27272a; font-size: 20px; line-height: 1.2; font-weight: 750; letter-spacing: -.045em; }
.loader-caption { color: #a1a1aa; font-size: 11px; margin-top: 9px; letter-spacing: .025em; }
.loader-dots { display: flex; gap: 6px; margin-top: 24px; align-items: center; }
.loader-dots i { width: 6px; height: 6px; border-radius: 50%; background: #52525b; animation: premiumDot 1s ease-in-out infinite; }
.loader-dots i:nth-child(2) { animation-delay: .14s; }
.loader-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes premiumDot { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }
body.is-loading { overflow: hidden; }

/* Detail sheet: new design (ui varian produk dll.html) */
#detailSheet { max-height: 94vh; overflow: hidden; }
#detailContent { min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d4d4d8 transparent; }
#detailContent::-webkit-scrollbar { width: 5px; }
#detailContent::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 99px; }

/* Stagger animation for detail content */
#detailSheet.open #detailContent .content-fade > * {
  animation: viewIn .4s cubic-bezier(.22,1,.36,1) backwards;
}
#detailSheet.open #detailContent .content-fade > *:nth-child(2) { animation-delay: .05s; }
#detailSheet.open #detailContent .content-fade > *:nth-child(3) { animation-delay: .1s; }
#detailSheet.open #detailContent .content-fade > *:nth-child(4) { animation-delay: .15s; }
#detailSheet.open #detailContent .content-fade > *:nth-child(5) { animation-delay: .2s; }

/* ============================================================
   FULL-PAGE MONOCHROME NAVIGATION
   Semua halaman menu mengikuti satu sistem UI premium.
   ============================================================ */
body.content-view { background: #fff !important; }
/* Halaman informasi/legal benar-benar full: header (termasuk hamburger) tidak tampil.
   Navigasi kembali sudah ada di dalam tiap halaman. */
body.content-view #siteHeader { display: none !important; }
body.content-view footer { display: none !important; }
body.content-view main { width: 100%; min-height: 100vh; background: #fff; }
body.content-view .view.active { width: 100%; min-height: 100vh; }
body.content-view #view-cara > section,
body.content-view #view-faq > section,
body.content-view #view-testimoni > section,
body.content-view #view-kebijakan > section,
body.content-view #view-syarat > section {
  width: 100%; max-width: none !important; margin: 0 !important;
  padding: clamp(22px, 4vw, 48px) clamp(20px, 5vw, 72px) 64px !important;
}
body.content-view #view-cara h1,
body.content-view #view-faq h1,
body.content-view #view-testimoni h1,
body.content-view #view-kebijakan h1,
body.content-view #view-syarat h1 { color: #18181b !important; }
body.content-view #view-cara .back-btn,
body.content-view #view-faq .back-btn,
body.content-view #view-testimoni .back-btn,
body.content-view #view-kebijakan .back-btn,
body.content-view #view-syarat .back-btn,
body.category-view .back-btn {
  color: #27272a !important; background: #fff !important;
  border: 1px solid #e4e4e7 !important; box-shadow: none !important;
}
body.content-view #view-cara .back-btn:hover,
body.content-view #view-faq .back-btn:hover,
body.content-view #view-testimoni .back-btn:hover,
body.content-view #view-kebijakan .back-btn:hover,
body.content-view #view-syarat .back-btn:hover,
body.category-view .back-btn:hover { background: #f4f4f5 !important; border-color: #a1a1aa !important; }
body.content-view #view-cara .bg-teal-50,
body.content-view #view-faq .bg-teal-50,
body.content-view #view-testimoni .bg-teal-50 { background: #f4f4f5 !important; }
body.content-view #view-cara .text-teal-700,
body.content-view #view-faq .text-teal-700,
body.content-view #view-testimoni .text-teal-700 { color: #52525b !important; }
body.content-view #view-cara .bg-teal-900,
body.content-view #view-testimoni .bg-teal-900 { background: #18181b !important; }
body.content-view #view-cara .bg-amber-50,
body.content-view #view-cara .bg-amber-100 { background: #f7f7f8 !important; }
body.content-view #view-cara .border-amber-200 { border-color: #e4e4e7 !important; }
body.content-view #view-cara .text-amber-600,
body.content-view #view-cara .text-amber-800 { color: #52525b !important; }
body.content-view #view-testimoni .text-emerald-200\/80,
body.content-view #view-testimoni .text-emerald-300 { color: #d4d4d8 !important; }
body.content-view #view-testimoni .bg-emerald-500\/20 { background: #3f3f46 !important; }
body.content-view #view-testimoni .border-emerald-400\/20 { border-color: #52525b !important; }
body.content-view #view-testimoni a.bg-white { color: #18181b !important; }
body.content-view #view-cara .border-slate-100,
body.content-view #view-faq .border-slate-100,
body.content-view #view-testimoni .border-slate-100 { border-color: #e4e4e7 !important; }
body.content-view #view-cara .bg-teal-900,
body.content-view #view-testimoni .bg-teal-900 { color: #fff !important; }
body.content-view #view-faq details { border-color: #e4e4e7 !important; }
body.content-view #view-faq details:hover { border-color: #a1a1aa !important; }
@media (min-width: 900px) {
  body.content-view #view-cara .space-y-3,
  body.content-view #view-testimoni > section > .space-y-3 { max-width: none; }
  body.content-view #view-cara .space-y-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  body.content-view #view-cara .space-y-3 > * { margin-top: 0 !important; }
  body.content-view #view-faq .space-y-3 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  body.content-view #view-faq .space-y-3 > * { margin-top: 0 !important; }
}
@media (max-width: 640px) {
  body.content-view #view-cara > section,
  body.content-view #view-faq > section,
  body.content-view #view-testimoni > section,
  body.content-view #view-kebijakan > section,
  body.content-view #view-syarat > section { padding: 22px 18px 48px !important; }
}

/* Halaman legal: kartu 2 kolom di layar lebar */
@media (min-width: 900px) {
  body.content-view #view-kebijakan .space-y-3,
  body.content-view #view-syarat .space-y-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  body.content-view #view-kebijakan .space-y-3 > *,
  body.content-view #view-syarat .space-y-3 > * { margin-top: 0 !important; }
}

/* ============================================================
   LANDING PAGE (LINKTREE-STYLE) — dari desain halaman pertama.html
   ============================================================ */
#view-home {
  background: #fafafa;
}
body.home-view footer { display: none !important; }
body.home-view #siteHeader { display: none !important; }
.landing-page {
  min-height: 100vh;
  padding: 24px 20px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.landing-page .logo {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: #18181b; color: #ffffff;
  border-radius: 16px;
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(9, 9, 11, 0.08);
}
.landing-page .brand {
  font-size: 28px; font-weight: 700; letter-spacing: -0.8px;
  color: #18181b;
  margin-bottom: 6px;
}
.landing-page .subtitle {
  color: #71717a;
  font-size: 14px; font-weight: 500;
  margin-bottom: 28px;
}
.landing-page .landing-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #a1a1aa;
  margin: 0 0 12px;
}
.landing-page .buttons {
  display: flex; flex-direction: column; gap: 12px;
}
.landing-page .button {
  width: 100%; min-height: 72px;
  display: flex; align-items: center;
  padding: 14px 16px;
  text-decoration: none; color: #18181b;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.landing-page .button:hover {
  transform: translateY(-1px);
  border-color: #a1a1aa;
  box-shadow: 0 8px 24px rgba(9, 9, 11, 0.08);
}
.landing-page .button:active {
  transform: scale(0.98);
}
.landing-page .button.primary {
  background: #18181b; color: #ffffff;
  border-color: #18181b;
  box-shadow: 0 8px 20px rgba(9, 9, 11, 0.12);
}
.landing-page .button.primary:hover {
  background: #27272a;
  border-color: #27272a;
}
.landing-page .button.primary .icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.landing-page .button.primary .description {
  color: #a1a1aa;
}
.landing-page .button.primary .arrow {
  color: #ffffff;
}
.landing-page .icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-right: 14px;
  background: #f4f4f5;
  border-radius: 12px;
  color: #18181b;
}
.landing-page .icon svg {
  display: block;
}
.landing-page .button-text {
  flex: 1; text-align: left;
}
.landing-page .title {
  font-size: 15px; font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}
.landing-page .description {
  font-size: 12px; color: #71717a;
  line-height: 1.4;
}
.landing-page .arrow {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: #a1a1aa;
  font-size: 22px;
  transition: transform 0.2s ease;
}
.landing-page .footer {
  margin-top: 28px;
  color: #a1a1aa;
  font-size: 11px; letter-spacing: 0.2px;
}
@media (max-width: 380px) {
  .landing-page { padding: 20px 16px; }
  .landing-page .logo { width: 60px; height: 60px; border-radius: 14px; font-size: 22px; }
  .landing-page .brand { font-size: 25px; }
  .landing-page .subtitle { margin-bottom: 24px; }
  .landing-page .button { min-height: 68px; padding: 12px 14px; }
  .landing-page .icon { width: 40px; height: 40px; border-radius: 10px; }
  .landing-page .title { font-size: 14px; }
  .landing-page .description { font-size: 11px; }
}

/* ---- Landing: hero entrance animation (fade + rise, selaras dengan katalog) ---- */
.landing-page .logo.hero-anim { animation: viewIn .32s cubic-bezier(.22,1,.36,1) backwards; }
.landing-page .brand.hero-anim { animation: viewIn .32s cubic-bezier(.22,1,.36,1) .06s backwards; }
.landing-page .subtitle.hero-anim { animation: viewIn .32s cubic-bezier(.22,1,.36,1) .12s backwards; }
.landing-page .buttons.hero-anim { animation: viewIn .32s cubic-bezier(.22,1,.36,1) .18s backwards; }
.landing-page .buttons .button.hero-anim { animation: viewIn .32s cubic-bezier(.22,1,.36,1) backwards; }
.landing-page .buttons .button.hero-anim:nth-child(1) { animation-delay: .24s; }
.landing-page .buttons .button.hero-anim:nth-child(2) { animation-delay: .30s; }
.landing-page .buttons .button.hero-anim:nth-child(3) { animation-delay: .36s; }

/* ---- Landing: panah chevron mundur saat hover (micro-interaksi) ---- */
@media (hover: hover) {
  .landing-page .button:hover .arrow { transform: translateX(3px); }
}

/* ============================================================
   PRODUCT CARDS — staggered entrance saat render
   ============================================================ */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.product-card,
.popular-card {
  animation: cardIn .55s cubic-bezier(.22,1,.36,1) backwards;
}

/* Reduced motion: matikan animasi kompleks */
@media (prefers-reduced-motion: reduce) {
  .landing-page .logo.hero-anim, .landing-page .brand.hero-anim, .landing-page .subtitle.hero-anim,
  .landing-page .landing-section-label.hero-anim, .landing-page .buttons.hero-anim, .landing-page .buttons .button.hero-anim { animation: none; }
  .product-card, .popular-card { animation: none; }
}

/* ============================================================
   PRODUCT DETAIL BOTTOM SHEET — dari desain ui varian produk dll.html
   ============================================================ */
/* Overlay latar belakang */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  display: flex;
  align-items: flex-end;
  z-index: 100;
}

/* Bottom Sheet */
.sheet {
  width: 100%;
  max-height: 94vh;
  background: #fff;
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.sheet.open {
  transform: translateY(0);
}

/* Top Bar sheet-header */
.sheet-header {
  position: relative;
  height: 72px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: white;
}
.handle {
  position: absolute;
  top: 13px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 5px;
  background: #d8d8d8;
  border-radius: 20px;
}
.header-actions {
  position: absolute;
  right: 22px; top: 28px;
  display: flex; gap: 20px;
}
.header-btn {
  width: 24px; height: 24px;
  border: none; background: transparent;
  color: #222;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Content area */
.content {
  overflow-y: auto;
  padding: 8px 34px 110px;
  scrollbar-width: thin;
}

/* Product Header */
.product-header {
  display: flex; gap: 20px;
  margin-top: 10px; margin-bottom: 28px;
}
.product-image {
  width: 130px; height: 130px;
  flex-shrink: 0;
  border-radius: 26px;
  background: linear-gradient(145deg, #39393e, #17171a);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 34px; font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.product-info { padding-top: 4px; }
.category {
  display: inline-flex; padding: 8px 12px;
  background: #f5f5f5; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #555;
  margin-bottom: 12px;
}
.product-title {
  font-size: 25px; line-height: 1.15;
  letter-spacing: -.6px; font-weight: 750; margin-bottom: 9px;
}
.product-desc {
  color: #737373; font-size: 14px; line-height: 1.65;
}

/* Section */
.section { margin-bottom: 30px; }
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 13px;
}
.section-title {
  font-size: 17px; font-weight: 750; letter-spacing: -.2px;
}
.section-subtitle {
  font-size: 12px; color: #737373;
}

/* VARIANTS COMPACT + SMOOTH ANIMATION */
.variants {
  display: flex; flex-direction: column; gap: 9px;
}
.variant {
  position: relative;
  width: 100%; min-height: 76px;
  padding: 14px 16px;
  border: 1.5px solid #e5e5e5;
  border-radius: 17px;
  background: #fff;
  cursor: pointer;
  transition: background-color .28s ease, border-color .28s ease, color .28s ease, transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}
.variant:hover { border-color: #c8c8c8; }
.variant:active { transform: scale(.985); }

/* VARIANT SELECTED - menggunakan class .selected */
.variant.selected {
  background: #171717;
  border-color: #171717;
  color: white;
  box-shadow: 0 7px 20px rgba(0,0,0,.13);
  animation: variantSelected .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes variantSelected {
  0% { transform: scale(.975); }
  55% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* VARIANT TEXT styling when selected */
.variant-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.variant-name {
  font-size: 15px; font-weight: 700;
  transition: color .25s ease, transform .25s ease;
}
.variant.selected .variant-name { color: white; }


/* description */
.variant-desc {
  color: #737373; font-size: 12px; margin-bottom: 11px;
  transition: color .25s ease;
}
.variant.selected .variant-desc { color: #aaa; }


/* bottom */
.variant-bottom {
  display: flex; align-items: center; justify-content: space-between;
}

/* price */
.price {
  font-size: 15px; font-weight: 750;
  transition: color .25s ease;
}
.variant.selected .price { color: white; }


/* CHECK */
.variant-check {
  width: 25px; height: 25px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #171717;
  font-size: 13px; font-weight: 900;
  opacity: 0;
  transform: scale(.5) rotate(-20deg);
  transition: opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}
.variant.selected .variant-check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}


/* TRUST BADGES (home) — 3 kolom sama lebar, divider di tengah jarak */
.trust-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-left: 1px solid #e4e4e7;
}
@media (min-width: 641px) {
  .trust-item:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .trust-item:nth-last-child(-n + 3) { padding-right: 0; }
}

/* Mobile: 3 kolom sejajar, ikon di atas teks, tanpa divider supaya tidak tebal. */
@media (max-width: 640px) {
  .trust-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 8px 4px;
    border-left: 0;
  }
  .trust-item > div { text-align: center; }
  .trust-item:nth-child(3n + 1) { border-left: 0; padding-left: 4px; }
  .trust-item:nth-last-child(-n + 3) { padding-right: 4px; }
}

/* BADGE */
.badge {
  padding: 5px 9px;
  background: #171717; color: white;
  border-radius: 8px;
  font-size: 9px; font-weight: 700; letter-spacing: .6px;
  transition: background .25s ease, color .25s ease;
}
.variant.selected .badge {
  background: white; color: #171717;
}


/* BENEFITS */
.benefits { display: flex; flex-direction: column; gap: 17px; }
.benefit { display: flex; gap: 13px; }
.check {
  width: 25px; height: 25px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #171717; color: white;
  font-size: 12px; font-weight: 800;
}
.benefit-title {
  font-size: 14px; font-weight: 700; margin-bottom: 3px;
}
.benefit-desc {
  font-size: 12px; line-height: 1.5; color: #737373;
}


/* ABOUT */
.about { font-size: 14px; line-height: 1.8; color: #626262; }


/* HOW TO ORDER */
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: center; gap: 15px; padding: 15px; border: 1px solid #e5e5e5; border-radius: 17px; }
.step-number {
  width: 35px; height: 35px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #171717; color: white;
  border-radius: 50%; font-size: 13px; font-weight: 700;
}
.step-title {
  font-size: 13px; font-weight: 700; margin-bottom: 3px;
}
.step-desc {
  color: #737373; font-size: 11px; line-height: 1.5;
}


/* INFO */
.info { padding: 15px; background: #f5f5f5; border-radius: 16px; color: #666; font-size: 11px; line-height: 1.6; }


/* STICKY ORDER */
.order-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 26px 22px;
  background: linear-gradient(to top, white 75%, rgba(255,255,255,.92));
  border-top: 1px solid #ededed;
}
.order-button {
  width: 100%; height: 58px;
  border: none; border-radius: 19px;
  background: #171717; color: white;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; box-shadow: 0 8px 25px rgba(0,0,0,.15);
  transition: .18s ease;
}
.order-button:hover { background: #292929; }
.order-button:active { transform: scale(.98); }

/* Mobile: order bar lebih rapat supaya tombol lebih lebar */
@media (max-width: 480px) {
  .order-bar { padding-left: 16px; padding-right: 16px; }
}
/* Mobile variants */
@media (max-width: 480px) {
  .content { padding-left: 20px; padding-right: 20px; }
  .product-header { gap: 18px; }
  .product-image { width: 115px; height: 115px; border-radius: 23px; }
  .product-title { font-size: 22px; }
  .product-desc { font-size: 13px; }
  .variant { min-height: 72px; padding: 13px 15px; border-radius: 16px; }
  .variant-name { font-size: 14px; }
  .variant-desc { font-size: 11px; margin-bottom: 9px; }
  .price { font-size: 14px; }
  .variant-check { width: 24px; height: 24px; }
}
@media (max-width: 380px) {
  .content { padding-left: 24px; padding-right: 24px; }
  .product-header { gap: 14px; }
  .product-image { width: 95px; height: 95px; border-radius: 20px; font-size: 27px; }
  .product-title { font-size: 20px; }
  .category { font-size: 10px; padding: 6px 9px; }
  .variant { min-height: 70px; padding: 12px 14px; border-radius: 15px; }
}

/* Desktop: popular products jadi grid (bukan horizontal scroll) */
@media (min-width: 768px) {
  #popularProducts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    overflow-x: visible;
  }
  #popularProducts .popular-card {
    width: auto;
    flex-shrink: 1;
  }
}

/* Banner error katalog (API gagal memuat) */
.catalog-error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 20px;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 500;
}
.catalog-error-banner .catalog-error-text { flex: 1; }
.catalog-error-banner .catalog-error-retry {
  border: 1px solid #fca5a5;
  border-radius: 999px;
  background: #ffffff;
  color: #991b1b;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}
.catalog-error-banner .catalog-error-retry:hover { background: #fee2e2; }

