/* ============================================
   Triton Coffee Roastery - Main Stylesheet
   ============================================ */

:root {
  --primary: #8B5E3C;
  --primary-dark: #6B4423;
  --primary-light: #C4956A;
  --accent: #D4A373;
  --accent-light: #FAEBD7;
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #2563EB;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
  --transition: 0.2s ease;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { line-height: 1.75; }
a { color: inherit; text-decoration: none; }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
}
.logo-text { font-weight: 800; font-size: 1.1rem; color: var(--primary); }
.logo-sub { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; display: block; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--accent-light); }

.nav-cart-btn {
  position: relative; background: var(--primary); color: white;
  border: none; border-radius: var(--radius-sm);
  padding: 8px 16px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.nav-cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: white;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  font-family: var(--font);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-light { background: var(--accent-light); color: var(--primary); border-color: var(--accent-light); }
.btn-light:hover { background: var(--accent); color: white; border-color: var(--accent); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; min-width: 36px; height: 36px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #2C1810 0%, #4A2C17 40%, #8B5E3C 100%);
  display: flex; align-items: center;
  padding-top: 70px; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.02)"/><circle cx="80" cy="80" r="60" fill="rgba(255,255,255,0.02)"/></svg>');
  background-size: cover;
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 24px; padding-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,163,115,0.2); border: 1px solid rgba(212,163,115,0.9);
  color: var(--accent); padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero-title { color: white; margin-bottom: 20px; }
.hero-title span { color: var(--accent); }
.hero-desc { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img {
  position: relative; display: flex; align-items: center; justify-content: center; padding-top:100px;
}
.hero-img-wrap {
  width: min(380px, 100%); aspect-ratio: 4/4.6; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(212,163,115,0.35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-placeholder {
  font-size: 120px; opacity: 0.4;
}
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px;
}
.hero-stat strong { display: block; font-size: 1.75rem; color: white; font-weight: 800; }
.hero-stat span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 20px; }

/* Product Card */
.product-card { position: relative; }
.product-card-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-img-placeholder { font-size: 48px; color: var(--primary-light); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-bestseller { background: var(--warning); color: white; }
.badge-featured { background: var(--primary); color: white; }
.badge-unavailable { background: var(--text-muted); color: white; }
.product-name { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.product-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 800; font-size: 1.1rem; color: var(--primary); }
.btn-add-cart {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--primary); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; transition: var(--transition);
}
.btn-add-cart:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-tabs {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  padding: 8px 20px; border-radius: 50px; font-size: 0.875rem; font-weight: 600;
  border: 2px solid var(--border); background: var(--bg-card); color: var(--text-muted);
  cursor: pointer; white-space: nowrap; transition: var(--transition);
  font-family: var(--font);
}
.category-tab:hover { border-color: var(--primary); color: var(--primary); }
.category-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; background: var(--accent-light);
  color: var(--primary); padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 12px; }
.section-desc { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; right: 0; top: 0; bottom: 0; width: 420px;
  background: white; z-index: 2001; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-title { font-size: 1.2rem; font-weight: 800; }
.cart-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: none; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-close:hover { background: var(--bg); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.cart-empty-icon { font-size: 60px; margin-bottom: 16px; }
.cart-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.cart-item-img {
  width: 56px; height: 56px; border-radius: 8px;
  object-fit: cover; background: var(--accent-light);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 24px; overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; }
.cart-item-price { color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
  background: none; cursor: pointer; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qty-val { font-weight: 700; font-size: 0.9rem; min-width: 20px; text-align: center; }
.cart-item-total { font-weight: 800; color: var(--primary); font-size: 0.9rem; white-space: nowrap; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-summary { margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 4px 0; }
.cart-summary-row.total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-lg); max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 24px 28px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: white; z-index: 1;
}
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 16px 28px 24px; border-top: 1px solid var(--border); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-family: var(--font); font-size: 0.9rem;
  background: white; color: var(--text); transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,94,60,0.1); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }

/* Radio Payment */
.payment-options { display: flex; gap: 12px; flex-wrap: wrap; }
.payment-option { flex: 1; min-width: 120px; }
.payment-option input { display: none; }
.payment-option label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; text-align: center; transition: var(--transition); gap: 8px;
}
.payment-option input:checked + label { border-color: var(--primary); background: var(--accent-light); color: var(--primary); }
.payment-option label .pay-icon { font-size: 24px; }
.payment-option label .pay-name { font-weight: 700; font-size: 0.875rem; }

/* Order Type */
.order-type-options { display: flex; gap: 10px; }
.order-type-option { flex: 1; }
.order-type-option input { display: none; }
.order-type-option label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.875rem; font-weight: 600; transition: var(--transition);
}
.order-type-option input:checked + label { border-color: var(--primary); background: var(--accent-light); color: var(--primary); }

/* ============================================
   TABLE MAP (Denah Meja)
   ============================================ */
.table-map-container {
  background: #F5F0EB; border-radius: var(--radius-lg);
  border: 2px solid var(--border); overflow: auto;
  position: relative; min-height: 500px;
}
.table-map-canvas { position: relative; width: 650px; height: 550px; }
.table-item {
  position: absolute; background: white;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; user-select: none;
  box-shadow: var(--shadow);
}
.table-item:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.table-item.kosong { border-color: var(--success); background: #F0FDF4; }
.table-item.dipesan { border-color: var(--warning); background: #FFFBEB; }
.table-item.diisi { border-color: var(--danger); background: #FEF2F2; }
.table-item .table-num { font-weight: 800; font-size: 1rem; }
.table-item .table-cap { font-size: 0.72rem; color: var(--text-muted); }
.table-item .table-status-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 4px;
}
.kosong .table-status-dot { background: var(--success); }
.dipesan .table-status-dot { background: var(--warning); }
.diisi .table-status-dot { background: var(--danger); }

/* ============================================
   STATUS BADGES
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.badge-pending { background: #FEF9C3; color: #854D0E; }
.badge-confirmed { background: #DBEAFE; color: #1E40AF; }
.badge-preparing { background: #FEF3C7; color: #92400E; }
.badge-ready { background: #D1FAE5; color: #065F46; }
.badge-delivered { background: #DCFCE7; color: #166534; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-unpaid { background: #FEE2E2; color: #991B1B; }
.badge-paid { background: #DCFCE7; color: #166534; }
.badge-kosong { background: #DCFCE7; color: #166534; }
.badge-dipesan { background: #FEF3C7; color: #92400E; }
.badge-diisi { background: #FEE2E2; color: #991B1B; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card { padding: 24px; }
.stars { color: var(--warning); font-size: 1rem; margin-bottom: 12px; }
.testimonial-text { color: var(--text-muted); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: white; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-date { font-size: 0.78rem; color: var(--text-light); }

/* ============================================
   PROMO SECTION
   ============================================ */
.promo-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; border-radius: var(--radius-lg); padding: 40px;
  position: relative; overflow: hidden;
}
.promo-card::after {
  content: '☕'; position: absolute; right: 30px; top: 50%;
  transform: translateY(-50%); font-size: 100px; opacity: 0.1;
}
.promo-badge {
  display: inline-block; background: var(--accent);
  color: var(--primary-dark); padding: 4px 12px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; margin-bottom: 12px;
}
.promo-title { font-size: 1.8rem; margin-bottom: 8px; }
.promo-desc { opacity: 0.85; margin-bottom: 20px; }
.promo-code {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.15); border: 1px dashed rgba(255,255,255,0.5);
  padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; cursor: pointer;
}
.promo-code code { font-family: monospace; font-size: 1.1rem; font-weight: 800; letter-spacing: 2px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1A0F0A; color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .logo-text { color: var(--accent); font-size: 1.2rem; }
.footer-desc { font-size: 0.875rem; line-height: 1.8; margin-top: 12px; }
.footer-title { font-weight: 700; color: white; margin-bottom: 16px; font-size: 0.95rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition); color: rgba(255,255,255,0.7);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: white; border-radius: var(--radius-sm); padding: 14px 18px;
  box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary);
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; font-size: 0.875rem; font-weight: 500;
  animation: slideIn 0.35s ease, fadeOut 0.35s ease 2.65s forwards;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(120%); } }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white; border: none;
  cursor: pointer; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,0.9);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}
.loading-spinner { width: 48px; height: 48px; border-width: 4px; border-color: var(--border); border-top-color: var(--primary); }

/* ============================================
   PAYMENT INFO BOX
   ============================================ */
.payment-info-box {
  background: var(--accent-light); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px; margin-top: 12px;
}
.payment-info-box .pi-title { font-weight: 700; font-size: 0.875rem; color: var(--primary); margin-bottom: 8px; }
.payment-info-box .pi-item { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.payment-info-box .pi-value { font-weight: 700; color: var(--text); }
.qris-image { width: 160px; height: 160px; border-radius: var(--radius-sm); object-fit: contain; margin-top: 8px; }

/* ============================================
   RESPONSIVE
   ============================================ */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-img { display: none; }
  .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: white; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: var(--radius-sm); }
  .cart-sidebar { width: 100%; }
  .modal { border-radius: var(--radius) var(--radius) 0 0; max-height: 95vh; position: fixed; bottom: 0; }
  .modal-overlay { align-items: flex-end; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .section { padding: 50px 0; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.78rem; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; }
.hidden { display: none !important; }
.d-block { display: block; }
.w-100 { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ============================================
   TRITON ADDITIONS
   ============================================ */
.logo-img { height: 44px; width: auto; display: block; }
.footer .logo-img { height: 52px; }
.product-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.5; }
.product-notes { font-size: 0.78rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.product-unit { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.product-price.on-request { font-size: 0.9rem; color: var(--text-muted); }
.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #1DA851; border-color: #1DA851; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-points { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.about-points li span:first-child { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; }
.brew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.brew-step { text-align: center; padding: 28px 20px; }
.brew-step .brew-val { font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.brew-step .brew-label { font-weight: 700; margin-top: 8px; }
.brew-step .brew-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.halal-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; opacity: 0.8; margin-top: 12px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ============================================
   HOME HERO / WHATSAPP / PRODUCT ALIGNMENT
   ============================================ */
.hero-about {
  min-height: auto;
  padding-top: 30px;
  padding-bottom: 0px;
  background: #3a2115;
  position: relative;
  isolation: isolate;
}
.hero-about-bg {
  position: relative;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(43, 24, 15, .96) 0%, rgba(55, 31, 19, .88) 43%, rgba(55, 31, 19, .48) 72%, rgba(55, 31, 19, .35) 100%), url('../images/about-roaster.jpg');
  background-size: cover;
  background-position: center 44%;
}
.hero-about::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(35, 20, 13, .12), rgba(35, 20, 13, .18));
  pointer-events: none;
}
.hero-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 42px;
  align-items: center;
}
.hero-about-copy { max-width: 760px; }
.hero-kicker {
  display: inline-block;
  color: rgba(255,255,255,.86);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.hero-about .hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  line-height: .98;
  margin-bottom: 22px;
}
.hero-about .hero-title span { color: var(--accent); }
.hero-about .hero-desc {
  max-width: 670px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
}
.hero-about .hero-desc-small { margin-bottom: 22px; }
.hero-packages {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-packages img {
  width: min(100%, 560px);
  max-height: 610px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.28));
}
.hero-wa {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  max-width: 780px;
  padding: 12px 14px;
  margin: 18px 0 22px;
  color: white;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 10px;
  background: rgba(30,18,12,.26);
  transition: var(--transition);
}
.hero-wa:hover { background: rgba(30,18,12,.42); transform: translateY(-1px); }
.hero-wa-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-wa-icon svg, .floating-wa svg { width: 23px; height: 23px; fill: white; }
.hero-wa strong, .hero-wa small { display: block; }
.hero-wa strong { font-size: .9rem; }
.hero-wa small { color: rgba(255,255,255,.7); font-size: .74rem; margin-top: 2px; }
.hero-wa-number { white-space: nowrap; font-weight: 700; font-size: .9rem; }
.hero-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.hero-value { display: flex; gap: 10px; align-items: flex-start; color: white; }
.hero-value > span {
  width: 34px; height: 34px; border: 1px solid rgba(212,163,115,.7); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0;
}
.hero-value strong, .hero-value small { display: block; }
.hero-value strong { font-size: .9rem; }
.hero-value small { color: rgba(255,255,255,.7); font-size: .72rem; line-height: 1.5; margin-top: 2px; }

/* Product cards: footer stays at the same bottom line even when descriptions differ. */
.product-card { height: 100%; display: flex; flex-direction: column; }
.product-card .card-body { display: flex; flex-direction: column; flex: 1; }
.product-card .product-footer { margin-top: auto; min-height: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.product-card .product-footer > div:first-child { min-width: 0; }
.product-card .product-footer .btn { flex-shrink: 0; }

/* Floating WhatsApp button */
.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-wa:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }

@media (max-width: 900px) {
  .hero-about-grid { grid-template-columns: 1fr; }
  .hero-packages { order: -1; }
  .hero-packages img { max-height: 380px; }
  .hero-about-copy { text-align: center; margin: 0 auto; }
  .hero-values { text-align: left; }
  .hero-wa { text-align: left; }
}
@media (max-width: 768px) {
  .hero-about { padding-top: 88px; }
  .hero-about .hero-title { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .hero-values { grid-template-columns: 1fr; gap: 12px; }
  .hero-wa { grid-template-columns: auto minmax(0, 1fr); }
  .hero-wa-number { grid-column: 2; }
  .floating-wa { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}
