:root {
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-light: #e0f2fe;
  --accent: #f59e0b;
  --bg: #ffffff;
  --surface: #f0f9ff;
  --surface-hover: #e0f2fe;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section.white { background-color: var(--surface); }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.eyebrow.light { background: rgba(255,255,255,0.2); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600;
  transition: all 0.2s ease; font-size: 0.95rem;
}
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn.outline { border: 2px solid var(--primary); color: var(--primary); }
.btn.outline:hover { background: var(--primary-light); }
.btn.green { background: #25d366; color: white; }
.btn.green:hover { background: #1da851; }
.btn.full { width: 100%; }
.btn.large { padding: 1rem 2rem; font-size: 1.05rem; }

.center { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.center h2 { font-size: 2rem; margin-bottom: 0.75rem; color: var(--text); }
.center p { color: var(--text-muted); }

.topbar {
  background: var(--primary); color: white; font-size: 0.85rem; padding: 0.5rem 0;
  text-align: center; font-weight: 500;
}
.topbar span { opacity: 0.9; margin-left: 0.5rem; }

.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  height: var(--header-height); display: flex; align-items: center;
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 800; color: var(--text); }
.brand-icon {
  width: 36px; height: 36px; background: var(--primary); color: white;
  border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 1.1rem;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 600; color: var(--text-muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.cart-btn {
  position: relative; padding: 0.5rem; font-size: 1.25rem; color: var(--text);
  background: var(--surface); border-radius: var(--radius-sm); transition: 0.2s;
}
.cart-btn:hover { background: var(--surface-hover); }
.cart-count {
  position: absolute; top: -4px; right: -4px; background: var(--accent); color: white;
  font-size: 0.7rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid white;
}
.menu-toggle { display: none; font-size: 1.5rem; color: var(--text); }

.mobile-menu {
  position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--surface);
  border-bottom: 1px solid var(--border); padding: 1.5rem; display: flex; flex-direction: column;
  gap: 1rem; transform: translateY(-150%); transition: transform 0.3s ease; z-index: 99;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { font-weight: 600; font-size: 1.1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

.hero { padding: 4rem 0 5rem; background: linear-gradient(135deg, var(--surface) 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--text); }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hero-points { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.hero-points i { color: var(--primary); margin-right: 0.25rem; }

.hero-visual { position: relative; }
.hero-food {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  transform: rotate(-2deg); transition: transform 0.3s;
}
.hero-food:hover { transform: rotate(0deg) scale(1.02); }
.food-top { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.food-art img {  width: 110%; height: 350px;object-fit: cover;border-radius: var(--radius);display: block;}
.food-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.food-bottom small { display: block; color: var(--text-muted); font-size: 0.85rem; }
.food-bottom strong { font-size: 1.25rem; color: var(--primary); }
.food-bottom button { background: var(--primary); color: white; padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }

.float-card {
  position: absolute; background: white; padding: 1rem 1.25rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem;
  animation: float 3s ease-in-out infinite;
}
.float-card.one { top: 10%; right: -10%; animation-delay: 0s; }
.float-card.two { bottom: 15%; left: -5%; animation-delay: 1.5s; }
.float-card span { display: flex; flex-direction: column; }
.float-card small { font-size: 0.8rem; color: var(--text-muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats { background: var(--primary); color: white; padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats b { font-size: 1.75rem; display: block; margin-bottom: 0.25rem; }
.stats small { opacity: 0.8; font-size: 0.9rem; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.section-head h2 { font-size: 2rem; margin-top: 0.5rem; }
.section-head p { color: var(--text-muted); max-width: 500px; }

/* =========================================
   BAGIAN GALERI MENU (GABUNGAN & OPTIMAL)
   ========================================= */
.menu-gallery {
  max-width: 1200px; /* Memperlebar area galeri */
  margin: 0 auto;    /* Membuat galeri ke tengah */
  padding: 20px;
}

.menu-gallery-head { text-align: center; margin-bottom: 2rem; }
.menu-gallery-head h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.menu-gallery-head p { color: var(--text-muted); }

.gallery-grid {
  display: grid;
  /* Menggunakan minmax 300px agar responsif, dan gap 20px */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  width: 100%; /* Memastikan figure mengisi ruang grid */
  margin: 0;
  border-radius: var(--radius); /* Menggunakan variabel radius (12px) */
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;       /* Foto mengikuti lebar kontainer */
  height: 250px;     /* Tinggi tetap agar seragam */
  object-fit: cover; /* Agar foto tidak gepeng/terdistorsi */
  display: block;
  transition: transform 0.4s ease; /* Efek zoom saat hover */
}

/* Efek zoom saat mouse diarahkan */
.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white; padding: 1.5rem;
  transform: translateY(10px); opacity: 0; transition: all 0.3s;
}
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery-item figcaption b { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; }
.gallery-item figcaption small { font-size: 0.85rem; opacity: 0.9; }
/* ========================================= */

.tools { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.search { position: relative; max-width: 400px; width: 100%; }
.search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search input {
  width: 100%; padding: 0.85rem 1rem 0.85rem 2.75rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; background: var(--surface);
  transition: all 0.2s;
}
.search input:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px var(--primary-light); }

.categories { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cat-btn {
  padding: 0.6rem 1.25rem; border-radius: 99px; font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--border); background: white; color: var(--text-muted); transition: all 0.2s;
}
.cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.product-img { height: 180px; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem; background: var(--accent); color: white;
  font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 4px;
}
.product-info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 0.25rem; }
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.product-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.add-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; font-size: 1.1rem; transition: all 0.2s;
}
.add-btn:hover { background: var(--primary); color: white; }

.promo { background: var(--primary); color: white; padding: 5rem 0; }
.promo-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; }
.promo-head h2 { font-size: 2rem; margin-top: 0.5rem; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.promo-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); padding: 2rem; transition: all 0.3s;
}
.promo-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }
.promo-card span { display: inline-block; background: var(--accent); color: white; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 4px; margin-bottom: 1rem; }
.promo-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.promo-card p { opacity: 0.9; margin-bottom: 1.5rem; font-size: 0.95rem; }
.promo-card b { font-size: 1.25rem; display: block; margin-bottom: 1rem; }
.promo-card button { background: white; color: var(--primary); padding: 0.6rem 1.25rem; border-radius: var(--radius-sm); font-weight: 700; width: 100%; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.step { text-align: center; padding: 2rem; background: white; border-radius: var(--radius); border: 1px solid var(--border); }
.step b { display: inline-block; width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; line-height: 40px; font-size: 1.1rem; margin-bottom: 1rem; }
.step i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.school-card { background: white; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow); }
.school-card .screen {
  background: var(--surface); border-radius: var(--radius-sm); padding: 2rem; text-align: center;
  margin: 1.5rem 0; border: 2px dashed var(--border);
}
.school-card .screen strong { font-size: 1.5rem; color: var(--primary); display: block; margin: 0.5rem 0; }
.about-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.about-list > div { display: flex; gap: 1rem; align-items: flex-start; }
.about-list i { font-size: 1.5rem; color: var(--primary); margin-top: 0.25rem; }
.about-list b { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.about-list small { color: var(--text-muted); }

.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.accordion details {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 1rem; overflow: hidden; transition: all 0.2s;
}
.accordion details[open] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.accordion summary {
  padding: 1.25rem; font-weight: 600; cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: 300; }
.accordion details[open] summary::after { content: '−'; }
.accordion p { padding: 0 1.25rem 1.25rem; color: var(--text-muted); font-size: 0.95rem; border-top: 1px solid var(--border); margin-top: -0.5rem; padding-top: 1rem; }

.footer { background: var(--text); color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer h4 { font-size: 1.1rem; margin-bottom: 1.25rem; color: white; }
.footer p, .footer span, .footer a { color: #94a3b8; font-size: 0.95rem; display: block; margin-bottom: 0.75rem; }
.footer a:hover { color: white; }
.copyright { border-top: 1px solid #334155; padding-top: 2rem; text-align: center; color: #64748b; font-size: 0.9rem; }

.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 90vw;
  background: white; z-index: 201; transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}
.cart-sidebar.active { transform: translateX(0); }
.cart-head { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { font-size: 1.25rem; }
.cart-close { font-size: 1.5rem; color: var(--text-muted); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.cart-close:hover { background: var(--surface); color: var(--text); }

.cart-list { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.qty-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); display: grid; place-items: center; font-size: 0.9rem; }
.qty-btn:hover { background: var(--surface); }
.cart-item-qty { font-weight: 600; min-width: 20px; text-align: center; }

.cart-bottom { padding: 1.5rem; border-top: 1px solid var(--border); background: var(--surface); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1.1rem; }
.cart-total b { color: var(--primary); font-size: 1.25rem; }

.modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: all 0.3s; padding: 1rem;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-box {
  background: white; border-radius: var(--radius); width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto; padding: 2rem; position: relative;
  transform: scale(0.95); transition: transform 0.3s; box-shadow: var(--shadow-lg);
}
.modal.active .modal-box { transform: scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; color: var(--text-muted); }
.modal-close:hover { color: var(--text); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.checkout-total {
  background: var(--surface); padding: 1rem; border-radius: var(--radius-sm);
  display: flex; justify-content: space-between; margin-bottom: 1.5rem; font-weight: 700;
}

.lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,0.9);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-sm); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem; color: white; font-size: 2rem;
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,0.1); transition: 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--text); color: white; padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 500; opacity: 0; transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem;
  box-shadow: var(--shadow-lg);
}
.toast.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast i { color: #4ade80; }

.floating-wa {
  position: fixed; bottom: 2rem; right: 2rem; width: 60px; height: 60px; background: #25d366;
  color: white; border-radius: 50%; display: grid; place-items: center; font-size: 1.75rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 90; transition: all 0.3s;
}
.floating-wa:hover { transform: scale(1.1); }

@media (max-width: 968px) {
  .hero-grid, .about-grid, .faq-grid, .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-visual { order: -1; }
  .float-card { display: none; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 0; }
  .products { grid-template-columns: 1fr; }
}