:root {
  --yellow: #FFCA28;
  --brown: #5D4037;
  --dark: #3E2723;
  --light-bg: #FFFDF6;
  --body-bg: #FFF8E1;
  scroll-padding-top: 80px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--body-bg);
  color: var(--brown);
  overflow-x: hidden;
}

/* === ANIMATION REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
  transform: scale(1.05);
}

.navbar .nav-links a {
  text-decoration: none;
  color: var(--brown);
  margin-left: 20px;
  font-weight: 500;
  transition: color .3s;
}

.navbar .nav-links a:hover {
  color: var(--yellow);
}

.navbar .nav-btn {
  background: var(--yellow);
  padding: 8px 18px;
  border-radius: 30px;
  color: var(--dark);
  font-weight: 600;
  transition: transform .3s, box-shadow .3s;
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  background: url("img/wallpaper.webp") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  animation: fadeUp 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 20px;
}

.badge {
  background: var(--yellow);
  padding: 8px 22px;
  border-radius: 30px;
  color: #000;
  font-weight: 600;
}

.hero h1 {
  font-size: 68px;
  margin: 15px 0;
  letter-spacing: 1px;
}

.hero p {
  font-size: 24px;
  opacity: 0.8;
}

.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 18px 40px;
  background: #fff;
  border-radius: 50px;
  text-decoration: none;
  color: var(--brown);
  font-weight: 600;
  transition: transform .3s, box-shadow .3s;
}

/* === SECTION GENERAL === */
.section {
  padding: 100px 20px;
  text-align: center;
}

.section h2 {
  font-size: 38px;
  margin-bottom: 30px;
}

.about p {
  max-width: 800px;
  margin: auto;
  font-size: 18px;
  line-height: 1.6;
}

.products-section {
  background: var(--light-bg);
}

/* === TABS STYLING (PERBAIKAN MOBILE) === */
.tabs-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 15px;
}

.tabs {
  display: flex;
  flex-wrap: nowrap; /* Mencegah tab turun ke bawah */
  gap: 12px;
  padding: 5px;
  overflow-x: auto; /* Aktifkan scroll horizontal jika layar sempit */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Sembunyikan scrollbar Firefox */
}

.tabs::-webkit-scrollbar {
  display: none; /* Sembunyikan scrollbar Chrome/Safari */
}

.tab {
  flex: 0 0 auto; /* Tombol tidak mengecil */
  padding: 12px 24px;
  border-radius: 30px;
  border: 2px solid var(--yellow);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap; /* Teks tetap satu baris */
  transition: all 0.3s;
  font-size: 14px;
}

.tab.active {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}

/* === SLIDER & CARDS === */
.slider-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px;
}

.slider-window {
  overflow: hidden;
  padding: 10px 0 30px;
}

.product-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.card {
  flex: 0 0 calc(33.333% - 20px);
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.btn-order-item {
  background: var(--brown);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--yellow);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* === LOKASI TAB STYLING === */
.location-container {
  max-width: 1000px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease;
}

.address-details {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 4px solid #fff;
}

/* === CTA & FOOTER === */
.cta {
  background: var(--yellow);
  padding: 80px 20px;
  text-align: center;
}

.btn-wa {
  display: inline-block;
  margin-top: 20px;
  background: #25D366;
  color: #fff;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

footer {
  background: var(--dark);
  color: #fff;
  padding: 30px;
  text-align: center;
}

/* === KEYFRAMES === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === MOBILE RESPONSIVE === */
@media(max-width:768px) {
  .hero h1 { font-size: 40px; }
  .navbar .nav-links { display: none; }
  .tabs-container { justify-content: flex-start; } /* Tab geser dari kiri di mobile */
  .card { flex: 0 0 100%; }
  .slider-container { padding: 0 40px; }
  .map-wrapper iframe { height: 350px; }
}