/* ================================================================
   SEMERU INGREDIENTS — INTERACTIVE LAYER (LEAN)
================================================================ */

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, #B87333, #D4AF37, #E8CC6A, #D4AF37);
  z-index: 9999; transition: width 0.1s linear;
}

/* ===== BUTTON RIPPLE ===== */
.btn-primary, .btn-outline {
  position: relative; overflow: hidden;
}
.ripple-wave {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0); animation: rippleAnim 0.55s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ===== BUTTON HOVER ===== */
.btn-primary {
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s !important;
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(212,175,55,0.35) !important;
}

/* ===== SHIMMER TEXT ===== */
.shimmer-text {
  color: #D4AF37;
}

/* ===== STAGGER REVEAL ===== */
[data-stagger] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-stagger].revealed {
  opacity: 1; transform: translateY(0);
}

/* ===== PRODUCT CARD HOVER BORDER ===== */
.product-card::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.3s;
  pointer-events: none; z-index: 4;
}
.product-card:hover::after {
  border-color: rgba(212,175,55,0.3);
}

/* ===== SECTION HEADING UNDERLINE ===== */
.section-title {
  position: relative;
}
.section-title::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1px;
  background: linear-gradient(90deg, #D4AF37, transparent);
  transition: width 0.7s ease;
}
.section-title.line-in::after { width: 100%; }

/* ===== STAT NUMBER ===== */
.stat-num {
  transition: color 0.2s;
}
.stat-item:hover .stat-num {
  color: #E8CC6A;
}

/* ===== CATEGORY CARD HOVER ===== */
.kat-card {
  transition: transform 0.3s ease !important;
}
.kat-card:hover {
  transform: translateY(-4px) !important;
  z-index: 2;
}

/* ===== NEWS CARD LIFT ===== */
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

/* ===== FOOTER SOCIAL ICON ===== */
.social-icon {
  transition: transform 0.25s ease, color 0.25s !important;
}
.social-icon:hover {
  transform: translateY(-3px) !important;
}

/* ===== TYPEWRITER CURSOR ===== */
.typewriter::after {
  content: '|';
  color: #D4AF37;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== CLIP REVEAL ===== */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s ease;
}
.clip-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}

/* ===== GOLD DIVIDER (static) ===== */
.gold-divider-animated {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent 0%, #D4AF37 30%, #E8CC6A 50%, #D4AF37 70%, transparent 100%);
}

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

/* ================================================================
   NAVBAR — LUXURY DARK SPLIT DESIGN
================================================================ */

/* ── TOP BAR ── */
#topbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 36px;
  z-index: 1001;
  background: #0A0A0A;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
  overflow: hidden;
}
#topbar.tb-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.tb-inner {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(201,168,76,0.5);
}
.tb-inner a { color: rgba(201,168,76,0.8); text-decoration: none; transition: color 0.2s; }
.tb-inner a:hover { color: #C9A84C; }
.tb-sep { opacity: 0.2; }
.tb-star { font-size: 0.38rem; color: rgba(201,168,76,0.25); }
#topbar-close {
  position: absolute; right: 1rem;
  background: none; border: none;
  color: rgba(201,168,76,0.3);
  font-size: 0.85rem; cursor: pointer;
  padding: 0.3rem 0.5rem; line-height: 1;
  transition: color 0.2s; font-family: inherit;
}
#topbar-close:hover { color: #C9A84C; }

/* ── NAVBAR MAIN ── */
#navbar {
  position: fixed;
  top: 36px; left: 0; width: 100%;
  z-index: 1000;
  height: 64px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #111111;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: top 0.4s cubic-bezier(0.4,0,0.2,1),
              height 0.35s ease,
              background 0.35s ease,
              box-shadow 0.35s ease;
}
#navbar.scrolled {
  top: 0;
  background: rgba(15,15,15,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.55);
  border-bottom-color: rgba(201,168,76,0.2);
}

/* ── HAMBURGER (mobile, left side) ── */
#hbg {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: 0.5rem;
  flex-shrink: 0;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}
#hbg span {
  width: 22px; height: 1.5px;
  background: #C9A84C;
  display: block;
  border-radius: 1px;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
#hbg.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#hbg.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hbg.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── LEFT NAV ── */
.nb-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
}

/* ── CENTER LOGO (absolute) ── */
.nb-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
}
.nb-logo-img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(201,168,76,0.3);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nb-logo:hover .nb-logo-img {
  border-color: #C9A84C;
  box-shadow: 0 0 14px rgba(201,168,76,0.2);
}
.nb-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nb-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #F0EAD6;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nb-logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.44rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin-top: 3px;
}
.nb-logo:hover .nb-logo-name { color: #C9A84C; }

/* ── RIGHT NAV ── */
.nb-right-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: flex-end;
}

/* ── NAV LINKS ── */
.nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active { color: #C9A84C; }
.nav-link::after { display: none !important; }

/* ── DROPDOWN BUTTON ── */
.nd { position: relative; }
.nd-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color 0.2s;
}
.nd-btn:hover,
.nd.open .nd-btn { color: #C9A84C; }
.nd-arrow {
  font-size: 0.42rem;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.2s;
  margin-left: 1px;
  line-height: 1;
}
.nd.open .nd-arrow { transform: rotate(180deg); opacity: 0.9; }

/* ── DROPDOWN PANEL ── */
.dp {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #141414;
  border: 1px solid rgba(201,168,76,0.15);
  min-width: 172px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.65), 0 0 0 1px rgba(201,168,76,0.06);
  z-index: 200;
}
.dp::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: #141414;
  border-top: 1px solid rgba(201,168,76,0.15);
  border-left: 1px solid rgba(201,168,76,0.15);
}
.nd:hover .dp,
.nd.open .dp {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dp a {
  display: block;
  padding: 0.62rem 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.dp a:last-child { border-bottom: none; }
.dp a:hover {
  background: rgba(201,168,76,0.07);
  color: #C9A84C;
  padding-left: 1.4rem;
}

/* ── SOCIAL ICONS ── */
.nb-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nb-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.35);
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nb-social-icon:hover {
  color: #C9A84C;
  border-color: #C9A84C;
  background: rgba(201,168,76,0.06);
}

/* ── CART + USER ICONS ── */
.nb-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(201,168,76,0.12);
}
.nb-cart { position: relative; display: inline-flex; }
.nb-cart a,
.nb-icon-btn {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nb-cart a:hover,
.nb-icon-btn:hover { color: #C9A84C; }
#cart-count {
  position: absolute;
  top: -7px; right: -7px;
  background: #C9A84C; color: #111;
  font-size: 0.46rem; font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* ── MOBILE RIGHT ── */
.nb-mobile-right {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.nb-cart-m { position: relative; }
.nb-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: #C9A84C; color: #111;
  font-size: 0.46rem; font-weight: 700;
  min-width: 13px; height: 13px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* ── OVERLAY ── */
#mob-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#mob-nav-overlay.open { opacity: 1; visibility: visible; }

/* ── MOBILE NAV — slide dari KIRI ── */
#mob-nav {
  position: fixed;
  top: 0;
  left: -100%;
  right: auto;
  width: min(300px, 85vw);
  height: 100vh; height: 100dvh;
  background: #0D0D0D;
  border-right: 1px solid rgba(201,168,76,0.12);
  border-left: none;
  z-index: 999;
  padding: 0;
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  opacity: 1;
  box-shadow: none;
}
#mob-nav.open {
  left: 0;
  right: auto;
}
#mob-close {
  position: absolute;
  top: 0.9rem; right: 1rem;
  background: none; border: none;
  color: rgba(201,168,76,0.35);
  font-size: 1.1rem; cursor: pointer;
  padding: 0.4rem; line-height: 1;
  transition: color 0.2s;
}
#mob-close:hover { color: #C9A84C; }

/* Mobile logo */
.mob-logo {
  padding: 2rem 1.75rem 1.35rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mob-logo .nb-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #F0EAD6;
  letter-spacing: 0.04em;
}
.mob-logo .nb-logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.55);
}

/* Mobile links — use #mob-nav a to beat main.css specificity */
.mob-links { padding: 0.5rem 0; flex: 1; }
#mob-nav a {
  display: block;
  padding: 0.7rem 1.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  position: relative;
  gap: 0;
}
#mob-nav a.mob-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.42);
  padding-left: 2.5rem;
}
#mob-nav a:hover {
  color: #C9A84C;
  background: rgba(201,168,76,0.04);
  padding-left: 2.25rem;
  border-bottom-color: rgba(201,168,76,0.1);
}
#mob-nav a.mob-sub:hover { padding-left: 2.85rem; }
#mob-nav a:hover::before,
#mob-nav a:active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: #C9A84C;
  border-radius: 0 2px 2px 0;
  transform: none;
  height: auto;
}
#mob-nav a::before { display: none; }
#mob-nav a:hover::before { display: block; }

/* Mobile bottom auth */
.mob-bottom {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid rgba(201,168,76,0.1);
  display: flex;
  gap: 8px;
}
.mob-auth-btn {
  flex: 1;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
}
.mob-auth-btn:hover { border-color: rgba(201,168,76,0.4); color: #C9A84C; }
.mob-auth-btn.primary {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.3);
  color: rgba(240,234,214,0.75);
}
.mob-auth-btn.primary:hover {
  background: rgba(201,168,76,0.15);
  border-color: #C9A84C; color: #C9A84C;
}

/* ── RESPONSIVE ── */
@media (min-width: 1024px) {
  #hbg { display: none !important; }
  .nb-mobile-right { display: none !important; }
}
@media (max-width: 1023px) {
  .nb-left { display: none !important; }
  .nb-right-nav { display: none !important; }
  .nb-mobile-right { display: flex; }
  #hbg { display: flex; }
  #navbar { padding: 0 1.25rem; }
}
@media (max-width: 640px) {
  #topbar { height: 30px; }
  .tb-star, .tb-sep { display: none; }
  #navbar { top: 30px; }
  #navbar.scrolled { top: 0; }
}

/* Prevent body scroll when mobile nav open */
body.nav-open { overflow: hidden; }

/* Clearance bawah navbar untuk konten halaman */
.page-hero { padding-top: calc(36px + 64px); }
