/* ================================================================
   TOKO BINTANG — style.css
   Versi: 1.0 | Mobile-First | Clean & Premium
   ================================================================ */

/* ================================================================
   1. CSS VARIABLES (GANTI WARNA DI SINI)
   ================================================================ */
:root {
  /* --- Warna Utama --- */
  --clr-primary:       #FACC15;   /* Kuning premium */
  --clr-primary-dark:  #EAB308;   /* Kuning lebih gelap */
  --clr-primary-light: #FEF9C3;   /* Kuning muda */
  --clr-primary-pale:  #FFFBEB;   /* Kuning sangat muda */

  /* --- Warna Teks --- */
  --clr-text:          #1C1917;   /* Hitam soft */
  --clr-text-2:        #57534E;   /* Abu sedang */
  --clr-text-3:        #A8A29E;   /* Abu muda */

  /* --- Warna Background --- */
  --clr-bg:            #FAFAF9;   /* Off-white warm */
  --clr-bg-card:       #FFFFFF;   /* Putih murni */
  --clr-bg-muted:      #F5F5F4;   /* Abu sangat muda */
  --clr-border:        #E7E5E4;   /* Border halus */

  /* --- Warna Aksen Platform --- */
  --clr-wa:            #25D366;
  --clr-shopee:        #EE4D2D;
  --clr-tokped:        #03AC0E;
  --clr-tiktok:        #010101;
  --clr-ig:            #E1306C;
  --clr-maps:          #4285F4;

  /* --- Shadows --- */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-gold: 0 8px 24px rgba(250,204,21,0.30);

  /* --- Radius --- */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.40s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Typography --- */
  --font-display: 'Poppins', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* --- Spacing --- */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* --- Layout --- */
  --max-width:        480px;  /* Lebar max konten (mobile-first) */
  --bottom-nav-h:     72px;   /* Tinggi navigasi bawah mobile */
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Scroll kustom */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: var(--radius-full); }


/* ================================================================
   3. LOADING SCREEN
   ================================================================ */
/* ================================================================
   3. LOADING SCREEN
   ================================================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--clr-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loading-star {
  font-size: 40px;
  color: var(--clr-primary);
  
  /* --- TIMPA BAGIAN INI --- */
  opacity: 0;
  transform: scale(0); /* Mulai dari bener-bener kempes/kosong */
  
  /* 1. popIn jalan selama 0.4 detik setelah delay 1 detik (tepat pas teks selesai meluncur).
     2. pulseStar langsung ambil alih secara infinite di detik ke-1.4.
  */
  animation: 
    popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards, 
    pulseStar 1s ease-in-out 0.9s infinite;
}

.loading-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  
  /* --- TAMBAHAN ANIMASI SLIDE IN --- */
  opacity: 0; /* Mulai dari transparan sebelum animasi jalan */
  animation: slideInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.2s; /* Kasih jeda 0.2 detik biar masuknya mulus */
}

.loading-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: var(--clr-primary);
  border-radius: var(--radius-full);
  animation: loadBar 1.2s ease-in-out forwards;
}

@keyframes loadBar {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes pulseStar {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.2); opacity: 0.8; }
}

/* Animasi bintang meletup muncul dari kecil ke gede */
@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.2); /* Sengaja digedein dikit biar ada efek mantul/nge-bounce */
    opacity: 1;
  }
  100% {
    transform: scale(1);   /* Kembali ke ukuran normal */
    opacity: 1;
  }
}

/* Animasi teks meluncur dari kiri ke kanan */
@keyframes slideInLeft {
  from {
    transform: translateX(-40px); /* Mulai dari posisi agak ke kiri */
    opacity: 0;                   /* Mulai dari tidak kelihatan */
  }
  to {
    transform: translateX(0);     /* Berhenti di posisi asli */
    opacity: 1;                   /* Muncul sempurna */
  }
}

/* ================================================================
   4. APP WRAPPER & LAYOUT
   ================================================================ */
.app-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: calc(var(--bottom-nav-h) + 16px); /* Ruang untuk bottom nav */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.app-wrapper.loaded {
  opacity: 1;
  transform: translateY(0);
}

.main-container {
  padding: 0 var(--space-md) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}


/* ================================================================
   5. HERO SECTION
   ================================================================ */
.hero-section {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--space-xl) 48px;
  overflow: hidden;
  background: var(--clr-text);
}

/* Background dekoratif */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}

.hero-blob--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #FACC15 0%, #EAB308 60%, transparent 100%);
  top: -80px;
  right: -60px;
  animation: blobFloat1 6s ease-in-out infinite;
}

.hero-blob--2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #F59E0B 0%, transparent 80%);
  bottom: -60px;
  left: -40px;
  animation: blobFloat2 8s ease-in-out infinite;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-20px, 20px) scale(1.05); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(15px, -15px) scale(1.08); }
}

/* Konten hero */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Logo */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(250, 204, 21, 0.4);
  animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%       { transform: scale(1.08); opacity: 1; }
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--clr-primary);
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(250,204,21,0.15), var(--shadow-lg);
}

.hero-logo-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  background: var(--clr-primary);
  border-radius: 50%;
  border: 3px solid var(--clr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--clr-text);
}

/* Nama & tagline */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 13px;
  color: var(--clr-primary);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Badges */
.hero-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.badge i { color: var(--clr-primary); font-size: 10px; }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  margin-top: 4px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
}


/* ================================================================
   6. SECTION LABELS & HEADERS
   ================================================================ */
.section-block { /* Wadah tiap section */ }

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-text-2);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.see-all-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-primary-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.see-all-btn:hover { gap: 8px; }


/* ================================================================
   7. ACTION BUTTONS (QUICK LINKS)
   ================================================================ */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Tombol lebar penuh (WhatsApp) */
.action-btn--wide {
  grid-column: 1 / -1;
}

/* Base button style */
.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--clr-bg-card);
  border: 1.5px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition-normal),
    border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.action-btn:hover::before { opacity: 1; }
.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--shadow-sm);
}

/* Icon container */
.action-btn__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--clr-bg-muted);
}

/* Teks tombol */
.action-btn__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-btn__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.2;
}

.action-btn__sub {
  font-size: 11px;
  color: var(--clr-text-3);
  font-weight: 400;
}

.action-btn__arrow {
  font-size: 12px;
  color: var(--clr-text-3);
  transition: transform var(--transition-fast);
}

.action-btn:hover .action-btn__arrow {
  transform: translateX(3px);
  color: var(--clr-text-2);
}

/* === Variasi warna per platform === */

/* WhatsApp — Primary button */
.action-btn--primary {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.action-btn--primary .action-btn__icon { background: rgba(0,0,0,0.15); color: #fff; font-size: 24px; width: 52px; height: 52px; border-radius: 14px; }
.action-btn--primary .action-btn__title { color: var(--clr-text); font-size: 15px; }
.action-btn--primary .action-btn__sub   { color: rgba(28,25,23,0.65); }
.action-btn--primary .action-btn__arrow { color: rgba(28,25,23,0.5); }
.action-btn--primary:hover { box-shadow: 0 12px 32px rgba(250,204,21,0.4); }

/* Icon WA override */
.action-btn__icon--wa { background: rgba(0,0,0,0.12) !important; font-size: 26px; color: var(--clr-text); }

/* Shopee */
.action-btn--shopee:hover { border-color: var(--clr-shopee); }
.action-btn--shopee .action-btn__icon { background: #FFF0EE; color: var(--clr-shopee); }
.action-btn--shopee:hover .action-btn__title { color: var(--clr-shopee); }

/* Admin 2 (WhatsApp) */
.action-btn--admin2:hover { border-color: var(--clr-wa); }
.action-btn--admin2 .action-btn__icon { background: #DCFCE7; color: var(--clr-wa); }
.action-btn--admin2:hover .action-btn__title { color: var(--clr-wa); }

/* TikTok */
.action-btn--tiktok:hover { border-color: #222; }
.action-btn--tiktok .action-btn__icon { background: #F5F5F5; color: var(--clr-tiktok); }
.action-btn--tiktok:hover .action-btn__title { color: var(--clr-tiktok); }

/* Instagram */
.action-btn--ig:hover { border-color: var(--clr-ig); }
.action-btn--ig .action-btn__icon { background: #FFF0F5; color: var(--clr-ig); }
.action-btn--ig:hover .action-btn__title { color: var(--clr-ig); }

/* Maps */
.action-btn--maps:hover { border-color: var(--clr-maps); }
.action-btn--maps .action-btn__icon { background: #EEF4FF; color: var(--clr-maps); }
.action-btn--maps:hover .action-btn__title { color: var(--clr-maps); }


/* ================================================================
   8. INFORMASI TOKO (INFO CARD)
   ================================================================ */
.info-card {
  background: var(--clr-bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md);
  position: relative;
}

.info-divider {
  height: 1px;
  background: var(--clr-border);
  margin: 0 var(--space-md);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-icon--yellow { background: var(--clr-primary-light); color: #92400E; }
.info-icon--green  { background: #DCFCE7; color: #166534; }
.info-icon--blue   { background: #DBEAFE; color: #1D4ED8; }
.info-icon--purple { background: #F3E8FF; color: #7E22CE; }

.info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.info-value {
  font-size: 13px;
  color: var(--clr-text);
  line-height: 1.5;
}

.info-day {
  display: inline-block;
  width: 100px; /* Mengatur batas lebar nama hari agar titik dua otomatis sejajar */
}

.info-value strong {
  font-weight: 700; color: var(--clr-text); }

.info-link {
  font-size: 13px;
  color: var(--clr-text);
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.info-link:hover { opacity: 0.7; }

/* Badge "Buka/Tutup" */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #DCFCE7;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  flex-shrink: 0;
  align-self: center;
}

.open-badge.closed {
  background: #FEE2E2;
  color: #991B1B;
}

.open-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.open-badge.closed .open-dot {
  background: #EF4444;
  animation: none;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}


/* ================================================================
   9. PRODUK UNGGULAN (HORIZONTAL SCROLL)
   ================================================================ */
.product-scroll-wrap {
  position: relative;
  margin: 0 calc(-1 * var(--space-md));
}

.product-scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--space-md);
  padding: var(--space-xs) var(--space-md) var(--space-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.product-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: var(--clr-bg-card);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card:active {
  transform: scale(0.96);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--clr-bg-muted);
}

.product-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img { transform: scale(1.05); }

/* Badge produk */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge--hot  { background: #EF4444; color: #fff; }
.product-badge--new  { background: var(--clr-primary); color: var(--clr-text); }
.product-badge--sale { background: #7C3AED; color: #fff; }

.product-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-cat {
  font-size: 9px;
  font-weight: 700;
  color: var(--clr-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.3;
}

.product-price {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--clr-text);
  margin-top: 2px;
}

.product-price span {
  font-size: 10px;
  font-weight: 500;
  color: var(--clr-text-3);
}

/* Scroll indicator dots */
.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 0;
}

.scroll-indicator span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-border);
  transition: all var(--transition-normal);
}

.scroll-indicator span.active {
  background: var(--clr-primary);
  width: 16px;
  border-radius: 3px;
}


/* ================================================================
   10. TESTIMONI
   ================================================================ */
.review-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.review-card {
  background: var(--clr-bg-card);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-bounce), box-shadow var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 10px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.review-avatar--b { background: #BFDBFE; color: #1E3A8A; }
.review-avatar--d { background: #FCE7F3; color: #9D174D; }

.review-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.review-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text);
}

.review-role {
  font-size: 11px;
  color: var(--clr-text-3);
}

.review-stars {
  font-size: 12px;
  color: var(--clr-primary);
  letter-spacing: 1px;
}

.review-text {
  font-size: 13px;
  color: var(--clr-text-2);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 10px;
}

.review-platform {
  font-size: 11px;
  color: var(--clr-text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}


/* ================================================================
   11. FAQ ACCORDION
   ================================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--clr-bg-card);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(250,204,21,0.12), var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: 16px var(--space-md);
  text-align: left;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.faq-question:hover {
  background: var(--clr-bg-muted);
}

.faq-item.active .faq-question {
  color: var(--clr-primary-dark);
}

.faq-icon {
  font-size: 12px;
  color: var(--clr-text-3);
  flex-shrink: 0;
  transition: transform var(--transition-bounce), color var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--clr-primary-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 var(--space-md) var(--space-md);
  font-size: 13px;
  color: var(--clr-text-2);
  line-height: 1.65;
}

.faq-answer p strong {
  font-weight: 700;
  color: var(--clr-text);
}


/* ================================================================
   12. FOOTER
   ================================================================ */
.site-footer {
  background: var(--clr-text);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.footer-logo-img {
  width: 30px;        /* Mengatur lebar logo di footer */
  height: 30px;       /* Mengatur tinggi logo di footer */
  object-fit: cover;  /* Memastikan gambar tidak gepeng */
  border-radius: 50%; /* Membuat logo berbentuk bulat seperti yang di atas */
}

.footer-star {
  font-size: 24px;
  color: var(--clr-primary);
}

.footer-slogan {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  max-width: 260px;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-bounce);
}

.social-link:hover {
  background: var(--clr-primary);
  color: var(--clr-text);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.footer-made {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}


/* ================================================================
   13. FLOATING WHATSAPP BUTTON
   ================================================================ */
.wa-float {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 20px;
  width: 52px;
  height: 52px;
  background: var(--clr-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition-normal);
  animation: waEntrance 0.5s 1.5s var(--transition-bounce) both;
}

@keyframes waEntrance {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.wa-float:active { transform: scale(0.95); }

.wa-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(1.6);  opacity: 0; }
}


/* ================================================================
   14. BACK TO TOP BUTTON
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 74px);
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--clr-bg-card);
  border: 1.5px solid var(--clr-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--clr-text-2);
  box-shadow: var(--shadow-md);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--transition-normal),
    visibility var(--transition-normal),
    transform var(--transition-bounce);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-primary);
  color: var(--clr-text);
  border-color: transparent;
  transform: translateY(-3px);
}

.back-to-top:active { transform: scale(0.9); }


/* ================================================================
   15. BOTTOM NAVIGATION (MOBILE ONLY)
   ================================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--bottom-nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-sm) env(safe-area-inset-bottom, 0);
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--clr-text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-bounce);
  position: relative;
}

.bottom-nav__item i {
  font-size: 20px;
  transition: transform var(--transition-bounce);
}

.bottom-nav__item.active {
  color: var(--clr-primary-dark);
}

.bottom-nav__item.active i {
  transform: translateY(-2px);
}

.bottom-nav__item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--clr-primary);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.bottom-nav__item:hover:not(.active) { color: var(--clr-text-2); }


/* ================================================================
   16. SCROLL REVEAL ANIMATION
   ================================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   17. RESPONSIVE — DESKTOP
   ================================================================ */
@media (min-width: 640px) {
  :root {
    --max-width: 600px;
  }

  /* Hero */
  .hero-section { min-height: 440px; padding: 80px 60px 60px; }
  .hero-logo   { width: 120px; height: 120px; }
  .hero-name   { font-size: 42px; }
  .hero-tagline{ font-size: 15px; }

  /* Layout desktop: 2 kolom untuk produk */
  .review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .review-card:last-child {
    grid-column: 1 / -1;
  }

  /* Action grid */
  .action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .action-btn--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 769px) {
  /* Hide bottom nav on desktop */
  .bottom-nav { display: none; }

  /* Adjust floating buttons */
  .wa-float     { bottom: 28px; right: 28px; }
  .back-to-top  { bottom: 92px; right: 28px; }

  /* Remove bottom padding */
  .app-wrapper { padding-bottom: 0; }

  /* Product card sedikit lebih besar */
  .product-card { flex: 0 0 180px; }
  .product-img  { height: 150px; }
}


/* ================================================================
   18. UTILITY — SAFE AREA (iPhone dengan home indicator)
   ================================================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  }

  .app-wrapper {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 16px);
  }
}


/* ================================================================
   19. REDUCED MOTION (Aksesibilitas)
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
