﻿/* ─── OZEN SLICE — Main Stylesheet ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

:root {
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --dark2: #242424;
  --dark3: #2e2e2e;
  --red: #c0392b;
  --red-light: #e74c3c;
  --cream: #f5f0e8;
  --cream2: #ede8df;
  --text: #e8e3da;
  --text-muted: #a09890;
  --border: rgba(255,255,255,0.08);
  --gold: #c9a84c;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --r: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--text); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 70px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo img { height: 44px; filter: brightness(1); transition: transform 0.3s; }
.nav-logo img:hover { transform: scale(1.05); }
.nav-links { display: flex; gap: 2rem; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.05em; transition: color 0.2s; }
.nav-link:hover { color: var(--cream); }
.nav-right { display: flex; gap: 0.75rem; align-items: center; }
.btn-history { background: transparent; color: var(--text-muted); font-size: 13px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); transition: all 0.2s; }
.btn-history:hover { color: var(--cream); border-color: rgba(255,255,255,0.2); }
.cart-btn { position: relative; background: var(--red); color: #fff; font-size: 16px; padding: 10px 18px; border-radius: 10px; transition: background 0.2s, transform 0.2s; }
.cart-btn:hover { background: var(--red-light); transform: scale(1.05); }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--cream); color: var(--dark); font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.nav-toggle { display: none; background: transparent; color: var(--text); font-size: 22px; }

.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--dark); border-bottom: 1px solid var(--border); padding: 1rem 2rem; flex-direction: column; gap: 1rem; z-index: 99; }
.mobile-menu a { font-size: 16px; color: var(--text-muted); padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }

/* ─── HERO ─── */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0.7) 50%, rgba(13,13,13,0.95) 100%); }
.hero-content { position: relative; text-align: center; padding: 2rem; z-index: 2; animation: fadeInUp 1s ease; }
.hero-logo-wrap { margin-bottom: 2rem; }
.hero-logo { height: 100px; margin: 0 auto; filter: brightness(0) invert(1); }
.hero-tagline { font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: 0.08em; color: var(--cream); margin-bottom: 0.5rem; }
.hero-sub { font-size: clamp(0.9rem, 2vw, 1.1rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2.5rem; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 14px 32px; border-radius: var(--r); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 20px rgba(192,57,43,0.4); }
.btn-primary:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(192,57,43,0.5); }
.hero-cta { font-size: 16px; padding: 16px 40px; }
.hero-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--text-muted); font-size: 22px; animation: bounce 2s infinite; z-index: 2; }

/* ─── SECTION COMMON ─── */
.menu-section, .about-section, .contact-section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--cream); margin-bottom: 0.75rem; }
.section-sub { color: var(--text-muted); font-size: 15px; }

/* ─── MENU TABS ─── */
.menu-tabs { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; justify-content: center; flex-wrap: wrap; }
.menu-tab { background: var(--dark2); color: var(--text-muted); padding: 10px 24px; border-radius: 50px; font-size: 14px; font-weight: 600; border: 1px solid var(--border); transition: all 0.2s; }
.menu-tab:hover, .menu-tab.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ─── MENU GRID ─── */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.menu-loading { grid-column: 1/-1; text-align: center; padding: 4rem; color: var(--text-muted); font-size: 16px; }
.menu-card { background: var(--dark2); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.menu-card-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.menu-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.menu-card:hover .menu-card-img img { transform: scale(1.08); }
.menu-card-cat { position: absolute; top: 10px; left: 10px; background: rgba(13,13,13,0.8); color: var(--cream); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 50px; text-transform: uppercase; backdrop-filter: blur(8px); }
.no-img-placeholder { width: 100%; height: 100%; background: var(--dark3); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.menu-card-body { padding: 1.25rem; }
.menu-card-name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--cream); font-weight: 600; margin-bottom: 0.5rem; }
.menu-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; }
.menu-card-footer { display: flex; justify-content: space-between; align-items: center; }
.menu-card-price { font-size: 18px; font-weight: 700; color: var(--red); }
.btn-add { background: var(--red); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.15s; }
.btn-add:hover { background: var(--red-light); transform: scale(1.1); }

/* ─── ABOUT ─── */
.about-section { background: var(--black); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text .section-title { text-align: left; }
.about-text p { color: var(--text-muted); line-height: 1.8; }
.about-highlights { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.highlight-item { display: flex; gap: 1rem; align-items: flex-start; }
.highlight-icon { font-size: 24px; flex-shrink: 0; }
.highlight-item strong { display: block; color: var(--cream); font-weight: 600; }
.highlight-item p { color: var(--text-muted); font-size: 13px; margin: 0; }
.about-brand-img img { border-radius: 16px; border: 1px solid var(--border); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.contact-card { background: var(--dark2); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; text-align: center; transition: border-color 0.2s; }
.contact-card:hover { border-color: var(--red); }
.contact-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.contact-card h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--cream); margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.contact-card a { color: var(--red); transition: color 0.2s; }
.contact-card a:hover { color: var(--red-light); }

/* ─── FOOTER ─── */
.footer { background: var(--black); border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-tagline { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text-muted); letter-spacing: 0.1em; }
.footer-copy { font-size: 12px; color: #666; }

/* ─── OVERLAY & DRAWER ─── */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; backdrop-filter: blur(4px); }
.overlay.open { display: block; }
.cart-drawer { position: fixed; right: -400px; top: 0; bottom: 0; width: 380px; background: var(--dark); border-left: 1px solid var(--border); z-index: 201; display: flex; flex-direction: column; transition: right 0.3s ease; box-shadow: -8px 0 32px rgba(0,0,0,0.5); }
.cart-drawer.open { right: 0; }
.drawer-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.drawer-header h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--cream); }
.btn-close { background: transparent; color: var(--text-muted); font-size: 20px; transition: color 0.2s; }
.btn-close:hover { color: var(--cream); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--text-muted); font-size: 14px; }
.cart-empty span { font-size: 3rem; }
.cart-item { background: var(--dark2); border-radius: 10px; padding: 1rem; display: flex; gap: 0.75rem; align-items: center; }
.cart-item-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--cream); }
.cart-item-price { font-size: 13px; color: var(--red); }
.cart-qty { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn { background: var(--dark3); color: var(--cream); width: 28px; height: 28px; border-radius: 6px; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.qty-btn:hover { background: var(--red); }
.qty-num { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-footer { padding: 1.25rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 16px; font-weight: 700; color: var(--cream); }
.btn-checkout, .btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }

/* ─── MODAL ─── */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 300; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal-box { background: var(--dark); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); animation: slideUp 0.3s ease; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--cream); }

/* ─── FORM ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }
.req { color: var(--red); }
.form-input { width: 100%; background: var(--dark2); border: 1px solid var(--border); border-radius: 10px; color: var(--cream); padding: 12px 14px; font-size: 15px; font-family: inherit; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--red); }
.form-error { color: var(--red-light); font-size: 13px; margin-top: 0.5rem; }
.order-type-toggle { display: flex; gap: 0.5rem; }
.type-btn { flex: 1; padding: 10px; border-radius: 10px; background: var(--dark2); color: var(--text-muted); border: 1px solid var(--border); font-size: 14px; font-weight: 600; transition: all 0.2s; }
.type-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.order-summary-mini { background: var(--dark2); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; font-size: 13px; color: var(--text-muted); }
.order-summary-mini .s-row { display: flex; justify-content: space-between; padding: 4px 0; }
.order-summary-mini .s-total { color: var(--cream); font-weight: 700; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }

/* ─── PAYMENT ─── */
.payment-box { text-align: center; padding: 1rem 0; }
.payment-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.payment-box h3 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--cream); margin-bottom: 0.5rem; }
.payment-amount { font-size: 2rem; font-weight: 700; color: var(--red); margin: 0.5rem 0; }
.payment-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 1.5rem; }
.btn-bonum { display: block; background: #0a4ca1; color: #fff; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 700; margin-bottom: 1rem; transition: background 0.2s; }
.btn-bonum:hover { background: #0d5ec7; }
.payment-divider { color: var(--text-muted); font-size: 13px; margin: 1rem 0; }
.btn-outline { background: transparent; color: var(--cream); border: 1px solid var(--border); padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.btn-outline:hover { border-color: var(--cream); }
.payment-status-txt { margin-top: 1rem; font-size: 14px; min-height: 20px; }

/* ─── SUCCESS ─── */
.success-box { text-align: center; padding: 2rem 0; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; animation: pop 0.5s ease; }
.success-box h3 { font-family: var(--font-serif); font-size: 2rem; color: var(--cream); margin-bottom: 0.5rem; }
.success-box p { color: var(--text-muted); font-size: 15px; margin-bottom: 0.5rem; }
.success-order-num { font-size: 14px; font-weight: 700; color: var(--gold); }
.success-sub { font-size: 13px; margin-bottom: 2rem; }

/* ─── ORDER HISTORY ─── */
.history-item { background: var(--dark2); border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; border: 1px solid var(--border); }
.history-row { display: flex; justify-content: space-between; font-size: 14px; }
.history-num { font-weight: 700; color: var(--cream); }
.history-status { font-size: 12px; padding: 3px 10px; border-radius: 50px; font-weight: 600; }
.st-pending { background: rgba(201,168,76,0.15); color: var(--gold); }
.st-paid, .st-preparing, .st-ready, .st-delivered { background: rgba(39,174,96,0.15); color: #2ecc71; }
.st-cancelled { background: rgba(192,57,43,0.15); color: var(--red-light); }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .btn-history { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-brand-img { order: -1; }
  .cart-drawer { width: 100%; right: -100%; }
  .menu-section, .about-section, .contact-section { padding: 4rem 0; }
}

/* ─── ENHANCED SINGLE-POPUP BONUM PAYMENT ─── */
.btn-pay-now { background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%); font-size: 17px; font-weight: 700; padding: 16px; box-shadow: 0 6px 24px rgba(192,57,43,0.4); }
.btn-pay-now:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(192,57,43,0.6); }

.payment-header-row { display: flex; justify-content: space-between; align-items: center; background: var(--dark2); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 1.25rem; }
.payment-order-tag { font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: var(--gold); }
.payment-amount { font-size: 20px; font-weight: 700; color: var(--red); }

.bonum-embed-wrap { background: var(--dark2); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; text-align: center; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }

.payment-pulse-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); padding: 6px 14px; border-radius: 50px; font-size: 13px; font-weight: 600; }
.pulse-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; }

@keyframes pulse { 0% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.3; transform: scale(0.8); } }

.btn-bonum-direct { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: linear-gradient(135deg, #0a4ca1 0%, #0d5ec7 100%); color: #fff; padding: 16px; border-radius: 12px; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(10,76,161,0.4); transition: all 0.2s; }
.btn-bonum-direct:hover { background: linear-gradient(135deg, #0d5ec7 0%, #1572eb 100%); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(10,76,161,0.6); color: #fff; }
.bonum-btn-icon { font-size: 22px; }
.btn-arrow { font-size: 18px; margin-left: auto; }

.bonum-iframe { width: 100%; height: 420px; border: none; border-radius: 12px; background: #fff; }

.payment-help-info { text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.payment-help-info strong { color: var(--cream); }

.success-sub-title { color: var(--text-muted); font-size: 14px; margin-bottom: 1.5rem; }
.success-info-card { background: var(--dark2); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.info-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.info-row strong { color: var(--cream); }
.gold-text { color: var(--gold) !important; font-weight: 700; }
.red-text { color: var(--red) !important; font-weight: 700; }

/* ─── EMBEDDED IFRAME PAYMENT MODAL STYLING ─── */
.modal-box.modal-lg { max-width: 560px; padding: 1.5rem; }
.payment-box-embedded { display: flex; flex-direction: column; gap: 0.75rem; }
.iframe-container { width: 100%; height: 520px; border-radius: 14px; overflow: hidden; background: #ffffff; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.qpay-iframe { width: 100%; height: 100%; border: none; }
