/* ============================================================
   RESET & VARIABEL
============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #e74c3c;
  --red-dark: #c0392b;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --brown: #a0522d;
  --brown-dark: #8b4513;
  --yellow: #f1c40f;
  --yellow-dark: #f39c12;
  --ink: #1e2430;
  --muted: #6b7280;
  --line: #e5e8ee;
  --bg: #f4f6fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 18px 40px rgba(17, 24, 39, 0.16);
  --font: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1000px 500px at 100% -10%, rgba(46, 204, 113, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(231, 76, 60, 0.10), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   BAG1 : HEADER
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--brown));
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.35);
}

/* Nav */
.navbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* Home: kotak merah, teks putih, hover hijau */
.btn-home {
  background: linear-gradient(135deg, #ff6b5a, var(--red));
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.30);
}

.btn-home:hover {
  background: linear-gradient(135deg, #4be08b, var(--green));
  box-shadow: 0 8px 22px rgba(46, 204, 113, 0.45);
  transform: translateY(-2px);
}

/* Category, Products, Disclaimer, About: sudut membulat, coklat, teks hijau */
.btn-category,
.btn-products,
.btn-disclaimer,
.btn-about {
  background: var(--brown);
  color: var(--green);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(160, 82, 45, 0.20);
}

.btn-category:hover,
.btn-products:hover,
.btn-disclaimer:hover,
.btn-about:hover {
  background: var(--brown-dark);
  color: #4be08b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.35);
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.nav-burger span {
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  padding: 70px 20px 40px;
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  animation: fadeUp 0.7s ease both;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--red), var(--brown));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-btn {
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.hero-btn.primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 204, 113, 0.35);
}

.hero-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(46, 204, 113, 0.45);
}

.hero-btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.hero-btn.ghost:hover {
  border-color: var(--brown);
  color: var(--brown);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ============================================================
   SECTION HEAD
============================================================ */
.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.section-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   BAG2 : KATEGORI
============================================================ */
.categories-section {
  padding: 60px 0;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.category-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.cat-icon {
  font-size: 1.05rem;
}

.category-item:hover {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-color: var(--green-dark);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 24px rgba(46, 204, 113, 0.35);
}

/* ============================================================
   BAG3 : PRODUK POPULER
============================================================ */
.products-section {
  padding: 60px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #eef2f7, #e2e8f0);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--brown));
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.35);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 14px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  margin-bottom: 14px;
  font-size: 0.85rem;
}

.rating {
  color: var(--yellow-dark);
  font-weight: 700;
}

.price {
  color: var(--green-dark);
  font-weight: 800;
}

/* Tombol View Detail Product: 2 background (hijau belakang, kuning depan) */
.btn-detail {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 12px;
  align-self: stretch;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.btn-detail:hover {
  transform: translateY(-2px);
}

.btn-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 12px;
}

.btn-front {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: #2b2b2b;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
}

.btn-detail:hover .btn-front {
  background: #fff;
  color: var(--green-dark);
}

/* ============================================================
   BAG4 : DISCLAIMER
============================================================ */
.disclaimer-section {
  padding: 60px 0;
}

.disclaimer-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--red);
  max-width: 900px;
  margin: 0 auto;
}

.disclaimer-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.disclaimer-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.disclaimer-content p {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 10px;
}

.disclaimer-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #161b25;
  color: #c9d1dd;
  padding: 32px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  color: #fff;
}

.footer-copy {
  font-size: 0.82rem;
  color: #8a93a3;
}

/* ============================================================
   ANIMASI
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-toggle:checked ~ .navbar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-link {
    text-align: center;
    padding: 12px 16px;
  }

  .hero {
    padding: 45px 20px 30px;
  }

  .hero-stats {
    gap: 20px;
  }

  .categories-section,
  .products-section,
  .disclaimer-section {
    padding: 45px 0;
  }

  .disclaimer-card {
    flex-direction: column;
    padding: 22px;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 12px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .category-item {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    text-align: center;
  }

  .stat strong {
    font-size: 1.25rem;
  }
}

/* Aksesibilitas: kurangi animasi */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}