/* =========================
   RESET & BASE
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #fafafa;
  color: #2b2b2b;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   VARIABLES
   ========================= */

:root {
  --bg-main: #fafafa;
  --bg-card: #ffffff;

  --text-main: #2b2b2b;
  --text-muted: #6b6b6b;

  --accent-main: #e6a84a;
  --accent-secondary: #c7742e;

  --radius-main: 14px;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.06);

  --cta-main: #e6a84a;
  --cta-main-dark: #d9962f;

  --wa-green: #25d366;
  --wa-green-dark: #1ebe5d;
}

/* =========================
   LAYOUT
   ========================= */

.container {
  max-width: 1100px;
  padding: 24px;
  margin: 0 auto;
}

/* =========================
   HEADER
   ========================= */

.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.site-header .container {
  padding: 18px 24px;
}

.brand {
  margin: 0;
  font-size: 1.4rem;
}

.tagline {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================
   HERO BANNER
   ========================= */

.hero-banner {
  position: relative;
  background: url("../img/hero-dimsum.webp") center / cover no-repeat;
  border-radius: 18px;

  min-height: 560px;
  margin-bottom: 48px;

  display: flex;
  align-items: flex-end; /* ⬅️ KUNCI: KE BAWAH */
  justify-content: flex-start; /* ⬅️ KUNCI: KE KIRI */

  padding: 0 60px 80px; /* kiri-kanan + jarak bawah */
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.432),
    rgba(0, 0, 0, 0.6)
  );
}

.hero-content {
  position: relative;
  max-width: 520px;
  color: #fff;
}

.hero-content h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS (GLOBAL)
   ========================= */

.btn-primary {
  padding: 12px 18px;
  border-radius: 10px;
  background: #f5f5f5;
  color: #333;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--accent-main);
  color: #fff;
}

.btn-outline {
  padding: 12px 18px;
  border-radius: 10px;
  border: 1.5px solid #fff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
}

/* =========================
   WHY NUNA
   ========================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ⬅️ 2 KOLOM */
  gap: 2rem;
}

.why-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

/* =========================
   WHY NUNA – IMAGE FIX
   ========================= */
.why-card img {
  width: 100%;
  height: 320px; /* ⬅️ KUNCI TINGGI */
  object-fit: cover; /* ⬅️ POTONG RAPI */
  border-radius: 14px;
  margin-bottom: 1rem;
  display: block;
}

/* Pastikan card konsisten */
.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* MOBILE */
@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr; /* ⬅️ 1 KOLOM */
  }
}

/* =========================
   FEATURED PRODUCTS
   ========================= */

.home-featured {
  margin-top: 40px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.featured-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.featured-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.featured-info {
  padding: 16px;
}

.featured-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.price {
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

.btn-lihat-detail {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f5f5f5;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.btn-lihat-detail:hover {
  background: var(--accent-main);
  color: #fff;
}

/* =========================
   HOW TO ORDER
   ========================= */

.home-howto {
  margin-top: 48px;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  margin-top: 60px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================
   UTILITIES
   ========================= */

hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 40px 0;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .hero-banner {
    padding: 48px 24px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
}

/* =========================
   PRODUCT DETAIL – SAFE EXTENSION
   (tidak merusak style lama)
   ========================= */

.product-detail {
  margin-top: 16px;
}

/* layout detail */
.product-detail .detail-top {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

/* gambar utama */
.product-detail #mainImg {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

/* thumbnail */
.product-detail .thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-detail .thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: 0.2s;
}

.product-detail .thumbs img:hover,
.product-detail .thumbs img.active {
  opacity: 1;
  border-color: var(--accent-main);
}

/* info kanan */
.product-detail .detail-right h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.product-detail .detail-right .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-secondary);
}

.product-detail .qty {
  margin: 12px 0;
}

.product-detail .qty input {
  width: 70px;
  padding: 6px;
}

.product-detail .total {
  font-size: 14px;
  margin-bottom: 12px;
}

/* tombol – PAKAI STYLE LAMA */
.product-detail #addToCart,
.product-detail a[href="cart.php"] {
  width: 100%;
  justify-content: center;
}

/* note */
.product-detail .note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* deskripsi */
.product-detail .detail-bottom {
  margin-top: 32px;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

/* =========================
   PRODUCT DETAIL – MOBILE FIX (CLEAN)
   ========================= */

@media (max-width: 768px) {
  .product-detail.container {
    padding: 16px;
  }

  /* force vertical layout */
  .product-detail .detail-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* image first */
  .product-detail .detail-left {
    width: 100%;
  }

  .product-detail #mainImg {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }

  /* thumbs scroll */
  .product-detail .thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-detail .thumbs img {
    flex-shrink: 0;
  }

  /* text below image */
  .product-detail .detail-right {
    width: 100%;
  }

  .product-detail .detail-right h1 {
    font-size: 20px;
  }

  .product-detail .price {
    font-size: 18px;
  }

  /* buttons full width */
  .product-detail #addToCart,
  .product-detail a[href="cart.php"] {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   BUNDLING SECTION
   ========================= */
.bundle-section {
  padding: 4.5rem 0;
}

.bundle-section h2 {
  font-size: 1.6rem; /* lebih besar */
  margin-bottom: 2.2rem;
  font-weight: 700;
}

/* =========================
   GRID
   ========================= */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem; /* sedikit lebih longgar */
}

/* RESPONSIVE GRID */
@media (max-width: 1024px) {
  .bundle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bundle-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* =========================
   CARD
   ========================= */
.bundle-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px; /* lebih tinggi */
  background: #ddd;
}

/* IMAGE */
.bundle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   OVERLAY
   ========================= */
.bundle-overlay {
  position: absolute;
  inset: 0;
  padding: 1.75rem; /* lebih lega */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.18));

  color: #fff;
}

/* TAG */
.bundle-tag {
  font-size: 0.8rem; /* lebih besar */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* TITLE */
.bundle-overlay h3 {
  font-size: 1.25rem; /* lebih besar */
  margin: 0.45rem 0 0.35rem;
  line-height: 1.35;
  font-weight: 700;
}

/* START DATE / INFO */
.bundle-start {
  font-size: 0.85rem; /* lebih jelas */
  opacity: 0.9;
  margin-bottom: 0.6rem;
}

/* DESKRIPSI */
.bundle-desc {
  font-size: 0.85rem; /* lebih besar */
  line-height: 1.55;
  opacity: 0.95;
  margin-bottom: 0.7rem;
}

/* =========================
   PRICE
   ========================= */
.bundle-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.price-old {
  font-size: 0.9rem; /* lebih kebaca */
  text-decoration: line-through;
  opacity: 0.7;
}

.price-new {
  font-size: 1.35rem; /* lebih menonjol */
  font-weight: 800;
}

/* =========================
   CTA
   ========================= */
.bundle-cta {
  align-self: flex-start;
  padding: 0.55rem 1.1rem; /* lebih besar */
  background: #fff;
  color: #2b2b2b;
  font-size: 0.9rem; /* lebih besar */
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}

/* =========================
   RESPONSIVE DETAIL
   ========================= */
@media (max-width: 600px) {
  .bundle-card {
    min-height: 240px;
  }

  .bundle-overlay {
    padding: 1.4rem;
  }

  .bundle-overlay h3 {
    font-size: 1.1rem;
  }

  .price-new {
    font-size: 1.15rem;
  }
}

/* =========================
   HOVER EFFECT (DESKTOP)
   ========================= */
@media (hover: hover) {
  .bundle-card {
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .bundle-card img {
    transition: transform 0.4s ease;
  }

  .bundle-overlay {
    transition: background 0.3s ease;
  }

  .bundle-cta {
    transition:
      background 0.25s ease,
      color 0.25s ease;
  }

  .bundle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  }

  .bundle-card:hover img {
    transform: scale(1.06);
  }

  .bundle-card:hover .bundle-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.3)
    );
  }

  .bundle-card:hover .bundle-cta {
    background: #f5f5f5;
    color: #000;
  }
}

/* =========================
   SECTION DIVIDER (TOP ONLY)
   ========================= */
.km-section {
  position: relative;
  padding-top: 3rem; /* jarak dari garis ke konten */
  padding-bottom: 2rem; /* lebih rapat ke section berikutnya */
}

.km-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e5e5, transparent);
}

.home-testi-closing {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  color: #555;
  font-size: 0.9rem;
}

.home-testi-cta {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #2b2b2b;
}

.home-testi-cta:hover {
  text-decoration: underline;
}

/* closing */

/* =========================
   TESTIMONI – TRUE CLOSING
   ========================= */
.home-testi-closing {
  margin-top: 3rem;
  padding: 3rem 1.5rem 3.2rem;
  text-align: center;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0));

  border-top: 1px solid #eee;
}

.home-testi-main {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 0.4rem;
}

.home-testi-sub {
  max-width: 460px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* CTA – low pressure */
.home-testi-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 1.4rem;

  font-size: 0.9rem;
  font-weight: 600;
  color: #2b2b2b;
  text-decoration: none; /* ⬅️ underline mati */

  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.home-testi-cta span {
  transition: transform 0.2s ease;
}

.home-testi-cta:hover {
  color: #000;
}

.home-testi-cta:hover span {
  transform: translateX(4px);
}

/* MOBILE */
@media (max-width: 480px) {
  .home-testi-main {
    font-size: 1rem;
  }

  .home-testi-sub {
    font-size: 0.9rem;
  }
}
