/* ===== Cafe — style "Editorial Brew" (Magazine, warm palette) ===== */

:root {
  --bg: #fbf3e7;
  --bg-alt: #f4e6d3;
  --surface: #ffffff;
  --text: #2b1a12;
  --text-muted: #7a6350;
  --border: #e8d5bd;
  --accent: #b45309;
  --accent-dark: #7c2d12;
  --gold: #c9973a;
  --cream-deep: #3f2a1d;
  --espresso: #1b120c;
  --danger: #ef4444;
  --success: #22c55e;
  --radius-card: 16px;
  --radius-btn: 10px;
  --shadow: 0 14px 34px rgba(43, 26, 18, 0.14);
  --transition-fast: 220ms ease;
}

[data-theme="dark"] {
  --bg: #1b120c;
  --bg-alt: #241a12;
  --surface: #2b1f16;
  --text: #f3e6d8;
  --text-muted: #c2a98d;
  --border: #3c2c1e;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition-fast), color var(--transition-fast);
}

h1, h2, h3, .brand, .section-title, .qv-name {
  font-family: "Playfair Display", "Georgia", serif;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ===== Demo banner ===== */
.demo-banner {
  background: var(--espresso);
  color: var(--gold);
  text-align: center;
  font-size: 0.8rem;
  padding: 6px 12px;
}
.demo-banner strong { color: #fff; }

/* ===== Buttons (Rounded, elegant — bukan pill) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(180, 83, 9, 0.35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.2); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Icon buttons / badge ===== */
.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.icon-btn:hover { background: var(--bg-alt); }
.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.6rem;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 3px;
}
.badge.pop { animation: pop 300ms ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ===== Navbar (magazine masthead) ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 2px solid var(--espresso);
  box-shadow: var(--shadow);
}
.navbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.brand i { color: var(--accent); }
.brand span { color: var(--accent-dark); }
[data-theme="dark"] .brand span { color: var(--gold); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.nav-links a:hover { border-color: var(--accent); color: var(--accent-dark); }
[data-theme="dark"] .nav-links a:hover { color: var(--gold); }
.navbar-actions { display: flex; align-items: center; gap: 6px; }
.hamburger { display: none; }

@media (max-width: 480px) {
  .navbar-inner { padding: 12px 14px; gap: 8px; }
  .brand { font-size: 1.05rem; }
  .navbar-actions { gap: 0; }
  .icon-btn { width: 34px; height: 34px; font-size: 1rem; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: var(--surface);
    flex-direction: column;
    padding: 90px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 280ms ease;
    box-shadow: var(--shadow);
    z-index: 39;
  }
  .nav-links.open { transform: translateX(0); }
  .hamburger { display: inline-flex; }
}

/* ===== Hero (magazine cover) ===== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,18,12,0.15), rgba(27,18,12,0.75)); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}
.eyebrow, .rubrik-tag {
  display: inline-block;
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.rubrik-tag::before { content: "— "; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  color: #fff;
  font-style: italic;
}
.hero p { color: #ecdfd0; max-width: 480px; font-size: 1rem; font-family: "Inter", sans-serif; }
.hero-cta { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { min-height: 560px; }
  .hero-content { padding: 60px 24px 40px; }
}

/* Torn-paper divider — motif khas Editorial Brew (bukan wave/diagonal) */
.torn-divider { display: block; width: 100%; height: 42px; margin-top: -2px; }
.torn-divider path { fill: var(--bg); }

/* ===== Marquee ===== */
.marquee-section {
  background: var(--espresso);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f3e6d8;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  white-space: nowrap;
}
.marquee-item i { color: var(--gold); }

/* ===== Sections ===== */
.section { max-width: 1220px; margin: 0 auto; padding: 70px 24px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 6px; }
.section-sub { color: var(--text-muted); margin-top: 8px; font-family: "Inter", sans-serif; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.slide-left { transform: translateX(-40px); }
.reveal.slide-right { transform: translateX(40px); }
.reveal.in-view { opacity: 1; transform: translate(0, 0); }

/* ===== Category grid ===== */
.category-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.category-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.category-card img { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 12px; }
.category-card h3 { font-size: 0.92rem; font-family: "Inter", sans-serif; font-weight: 700; }
.category-card span { color: var(--text-muted); font-size: 0.75rem; }

/* ===== Menu: editorial header + chip filter + search ===== */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  min-width: 260px;
}
.search-box input { border: none; background: transparent; outline: none; color: var(--text); width: 100%; font-size: 0.9rem; font-family: "Inter", sans-serif; }
.search-box i { color: var(--text-muted); }

.chip-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip-filter .chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.chip-filter .chip:hover { border-color: var(--accent); color: var(--text); }
.chip-filter .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Menu grid — asymmetric editorial: item pertama besar (featured), sisanya reguler */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.menu-grid .menu-card.featured { grid-column: span 2; grid-row: span 2; }
.menu-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.menu-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.menu-card.featured .menu-thumb { aspect-ratio: 16/9; }
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold); color: var(--espresso);
  font-size: 0.65rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.menu-badge.stock-out { background: var(--danger); color: #fff; }
.fav-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(27, 18, 12, 0.55); color: #fff; border: none;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.fav-btn.active { color: var(--accent); background: #fff; }
.menu-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.menu-cat { font-size: 0.68rem; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; font-family: "Inter", sans-serif; }
[data-theme="dark"] .menu-cat { color: var(--gold); }
.menu-name { font-size: 1rem; margin: 6px 0 10px; min-height: 44px; font-family: "Playfair Display", serif; }
.menu-card.featured .menu-name { font-size: 1.35rem; }
.menu-price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.menu-price { font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--accent-dark); }
[data-theme="dark"] .menu-price { color: var(--gold); }
.menu-unit { font-size: 0.75rem; color: var(--text-muted); }
.menu-actions { display: flex; gap: 8px; margin-top: auto; }
.menu-actions .btn { flex: 1; padding: 10px; font-size: 0.75rem; }

@media (max-width: 640px) {
  .menu-grid .menu-card.featured { grid-column: span 1; grid-row: span 1; }
  .menu-card.featured .menu-name { font-size: 1rem; }
}

/* skeleton loading */
.skeleton-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.skeleton-thumb, .skeleton-line { background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 37%, var(--bg-alt) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
.skeleton-thumb { aspect-ratio: 4/3; }
.skeleton-line { height: 12px; margin: 16px; border-radius: 4px; }
.skeleton-line.short { width: 60%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ===== Racikan Personalisasi (fitur khas — Coffee Pairing Advisor) ===== */
.racikan-section { max-width: none; background: linear-gradient(135deg, var(--cream-deep) 0%, var(--espresso) 100%); padding: 70px 24px; }
.racikan-card {
  max-width: 1000px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  padding: 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.racikan-intro p { color: #e8d5bd; margin-top: 10px; font-family: "Inter", sans-serif; }
.racikan-form { display: flex; flex-direction: column; gap: 14px; }
.racikan-form label { font-size: 0.8rem; color: #e8d5bd; display: block; margin-bottom: 6px; font-family: "Inter", sans-serif; }
.racikan-form select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 0.9rem; font-family: "Inter", sans-serif;
}
.racikan-form select option { color: #2b1a12; }
.racikan-result {
  grid-column: 1 / -1;
  margin-top: 6px; padding: 20px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.1); border-left: 4px solid var(--gold);
  font-size: 0.9rem; line-height: 1.8; font-family: "Inter", sans-serif;
}
.racikan-result strong { color: var(--gold); }
@media (max-width: 800px) { .racikan-card { grid-template-columns: 1fr; } }

/* ===== Stats ===== */
.stats-section { background: var(--espresso); color: #fff; max-width: none; padding: 60px 24px; }
.stats-grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat-card i { font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; }
.stat-num-row { font-family: "Playfair Display", serif; font-size: 2.2rem; font-weight: 700; }
.stat-card p { color: #d8c4ae; margin-top: 6px; font-size: 0.85rem; font-family: "Inter", sans-serif; }
.stat-card.bounce i { animation: bounce 500ms ease; }
@keyframes bounce { 0%,100% { transform: translateY(0);} 40% { transform: translateY(-8px) rotate(-8deg);} 70% { transform: translateY(-3px) rotate(4deg);} }

/* ===== Tentang (editorial pull-quote) ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.about-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-family: "Inter", sans-serif; }
.about-list i { color: var(--success); }
.pull-quote {
  margin: 22px 0; padding: 18px 0 18px 22px;
  border-left: 3px solid var(--gold);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent-dark);
}
[data-theme="dark"] .pull-quote { color: var(--gold); }
.about-image img { border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ===== Galeri + lightbox ===== */
.galeri-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.galeri-item { position: relative; border-radius: var(--radius-card); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.galeri-item:hover img { transform: scale(1.08); }
.galeri-caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 14px;
  background: linear-gradient(to top, rgba(27,18,12,0.85), transparent);
  color: #fff; opacity: 0; transition: opacity var(--transition-fast);
}
.galeri-item:hover .galeri-caption { opacity: 1; }
.galeri-caption strong { display: block; font-size: 0.9rem; font-family: "Playfair Display", serif; }
.galeri-caption span { font-size: 0.72rem; color: #e8d5bd; }

.lightbox-modal { width: min(700px, 92vw); padding: 20px; text-align: center; background: var(--espresso); color: #fff; }
.lightbox-modal img { width: 100%; border-radius: 14px; max-height: 60vh; object-fit: cover; }
.lightbox-modal h3 { margin-top: 16px; font-size: 1.1rem; }
.lightbox-modal p { color: #d8c4ae; font-size: 0.85rem; margin-top: 4px; font-family: "Inter", sans-serif; }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 61;
  background: rgba(255,255,255,0.15); color: #fff; border: none; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; font-size: 1rem; display: none; align-items: center; justify-content: center;
}
.lightbox-nav.show { display: flex; }
.lightbox-prev { left: 4vw; }
.lightbox-next { right: 4vw; }

/* ===== Cerita Kopi / Artikel ===== */
.article-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--gold); }
.article-card h3 { font-size: 1.08rem; }
.article-card p { color: var(--text-muted); font-size: 0.88rem; flex: 1; font-family: "Inter", sans-serif; }
.article-card .btn { align-self: flex-start; margin-top: 6px; }
.article-modal { width: min(640px, 92vw); text-align: left; }
.article-modal h3 { margin-bottom: 14px; font-size: 1.25rem; }
.article-modal p { color: var(--text-muted); line-height: 1.7; font-size: 0.92rem; font-family: "Inter", sans-serif; }

/* ===== Testimonials ===== */
.testi-section { background: var(--bg-alt); max-width: none; }
.testi-section .section-title { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.testi-track { max-width: 1220px; margin: 30px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; }
.testi-stars { color: var(--gold); margin-bottom: 10px; font-size: 0.85rem; }
.testi-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; font-family: "Inter", sans-serif; }
.testi-name { font-family: "Playfair Display", serif; font-weight: 700; font-size: 0.95rem; }
.testi-role { font-size: 0.75rem; color: var(--text-muted); font-family: "Inter", sans-serif; }

/* ===== FAQ accordion ===== */
.faq-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.92rem; color: var(--text);
}
.faq-question i { transition: transform var(--transition-fast); color: var(--accent); }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 280ms ease; }
.faq-answer p { padding: 0 22px 18px; margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; font-family: "Inter", sans-serif; }

/* ===== Kontak & Reservasi ===== */
.kontak-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; margin-top: 30px; }
.kontak-lead { color: var(--text-muted); margin-bottom: 22px; font-family: "Inter", sans-serif; }
.kontak-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.kontak-item i { font-size: 1.3rem; color: var(--accent); width: 30px; }
.kontak-item span { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-family: "Inter", sans-serif; }
.kontak-item strong { font-size: 0.95rem; }
.kontak-form { background: var(--surface); border: 1px solid var(--border); padding: 26px; border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 6px; }
.kontak-form label { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; font-family: "Inter", sans-serif; }
.kontak-form input, .kontak-form textarea, .kontak-form select {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.9rem; resize: vertical;
}
.kontak-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kontak-form button { margin-top: 16px; }
@media (max-width: 860px) { .kontak-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .kontak-form .form-row { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.footer { background: var(--espresso); color: #d8c4ae; padding: 60px 24px 20px; }
.footer-grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; font-family: "Inter", sans-serif; }
.footer a { display: block; color: #d8c4ae; padding: 4px 0; font-size: 0.85rem; }
.footer a:hover { color: var(--gold); }
.footer p { font-size: 0.85rem; color: #a68a6d; font-family: "Inter", sans-serif; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 36px; height: 36px; border: 1px solid #3c2c1e; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; }
.social-icons a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { max-width: 1220px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #3c2c1e; font-size: 0.78rem; text-align: center; color: #8a7360; font-family: "Inter", sans-serif; }
.footer-bottom a { display: inline; color: var(--gold); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Floating WhatsApp button ===== */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: var(--shadow);
  transition: transform var(--transition-fast);
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 30;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  cursor: pointer; box-shadow: var(--shadow); font-size: 1rem;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.back-to-top:hover { transform: translateY(-4px); }

/* ===== Overlay backdrop ===== */
.overlay-backdrop {
  position: fixed; inset: 0; background: rgba(27, 18, 12, 0.6);
  z-index: 49; opacity: 0; transition: opacity var(--transition-fast);
}
.overlay-backdrop.show { opacity: 1; }

/* ===== Modal (popup modern — bukan alert/confirm) ===== */
.modal {
  position: fixed; top: 50%; left: 50%; z-index: 60;
  background: var(--surface); color: var(--text);
  width: min(460px, 90vw); max-height: 85vh; overflow: auto;
  border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 34px 28px 28px;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0; pointer-events: none;
  transition: transform 240ms ease, opacity 240ms ease;
  border-top: 4px solid var(--gold);
}
.modal.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.modal-close {
  position: absolute; top: 14px; right: 14px; background: var(--bg-alt); border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text);
}
.promo-modal { text-align: center; }
.promo-icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 10px; }
.promo-modal h3 { margin-bottom: 10px; }
.promo-modal p { color: var(--text-muted); font-size: 0.9rem; font-family: "Inter", sans-serif; }
.promo-note { font-size: 0.72rem; margin-top: 14px !important; }

.quickview-modal { width: min(640px, 92vw); }
.quickview-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quickview-body img { border-radius: 14px; }
.qv-cat { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-family: "Inter", sans-serif; }
.qv-name { font-size: 1.2rem; margin: 8px 0; }
.qv-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; font-family: "Inter", sans-serif; }
.qv-price { font-size: 1.3rem; color: var(--accent-dark); font-family: "Inter", sans-serif; font-weight: 700; }
[data-theme="dark"] .qv-price { color: var(--gold); }
@media (max-width: 560px) { .quickview-body { grid-template-columns: 1fr; } }

/* ===== Off-canvas order slip (Pesanan) ===== */
.offcanvas {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92vw);
  background: var(--surface); z-index: 60; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 280ms ease;
}
.offcanvas.show { transform: translateX(0); }
.offcanvas-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.offcanvas-header h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.offcanvas-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.offcanvas-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-family: "Inter", sans-serif; font-weight: 700; }
.offcanvas-note { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-top: 10px; font-family: "Inter", sans-serif; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 0.88rem; font-family: "Inter", sans-serif; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.cart-line-info { flex: 1; }
.cart-line-name { font-size: 0.82rem; margin-bottom: 4px; font-family: "Inter", sans-serif; }
.cart-line-price { font-size: 0.78rem; color: var(--text-muted); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button { width: 22px; height: 22px; border: 1px solid var(--border); background: var(--bg-alt); cursor: pointer; border-radius: 50%; }
.remove-line { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.9rem; }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--espresso); color: #fff; padding: 12px 18px; border-radius: 999px;
  border-left: 4px solid var(--gold); font-size: 0.85rem; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); animation: toast-in 220ms ease;
  max-width: 300px; font-family: "Inter", sans-serif;
}
.toast i { color: var(--gold); }
.toast.leaving { animation: toast-out 220ms ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px);} to { opacity: 1; transform: translateX(0);} }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px);} }

/* ===== Utility ===== */
[hidden] { display: none !important; }
