/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C8963E;
  --gold-light: #E0B96A;
  --gold-dim: rgba(200,150,62,.15);
  --bg: #0A0A0A;
  --bg2: #111111;
  --bg3: #1A1A1A;
  --card: #141414;
  --border: #242424;
  --text: #F0EDE8;
  --text-muted: #888;
  --text-dim: #555;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.6);
  --header-h: 60px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ===== CART BUTTON ===== */
.cart-btn {
  position: relative;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}
.cart-btn:hover { background: rgba(200,150,62,.25); }
.cart-btn:active { transform: scale(.97); }
.cart-count {
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform .3s cubic-bezier(.36,.07,.19,.97);
}
.cart-count.bump { transform: scale(1.5); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/images/033-Teppan Experience – 300g.png') center/cover no-repeat;
  margin-top: var(--header-h);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,.55) 0%, rgba(10,10,10,.85) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 0 20px;
}
.hero-logo {
  height: 100px;
  width: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 4px 20px rgba(200,150,62,.4));
}
.hero-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-light);
  font-size: 15px;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.hero-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== CATEGORY NAV ===== */
.cat-nav {
  position: sticky;
  top: var(--header-h);
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  z-index: 90;
}
.cat-nav-inner.dragging {
  cursor: grabbing;
  user-select: none;
}
.cat-nav-inner {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 900px;
  margin: 0 auto;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.cat-pill:hover { border-color: var(--gold); color: var(--gold); }
.cat-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 600;
}

/* ===== MENU MAIN ===== */
.menu-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 120px;
}

/* ===== SECTION ===== */
.menu-section {
  margin-bottom: 40px;
  scroll-margin-top: 116px; /* header + cat-nav */
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-left: 14px;
}

/* ===== ITEM GRID ===== */
.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 580px) {
  .items-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 820px) {
  .items-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== ITEM CARD ===== */
.item-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.item-card:hover {
  border-color: rgba(200,150,62,.4);
  transform: translateY(-2px);
}
.item-card:active { transform: translateY(0); }

.item-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg3);
  overflow: hidden;
}
.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.item-card:hover .item-img { transform: scale(1.04); }
.item-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

/* horizontal card for items without image */
.item-card.no-img-card {
  flex-direction: row;
  align-items: center;
}
.item-card.no-img-card .item-img-wrap {
  width: 90px;
  min-width: 90px;
  height: 90px;
  aspect-ratio: unset;
  border-radius: 0;
}

.item-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.item-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 4px;
}
.item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.item-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.item-price.multi {
  font-size: 12px;
  line-height: 1.4;
  color: var(--gold-light);
}

.btn-add {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.btn-add:hover { background: var(--gold-light); }
.btn-add:active { transform: scale(.9); }

/* item in cart already */
.btn-add.in-cart {
  background: var(--bg3);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 14px;
  width: auto;
  padding: 0 10px;
  gap: 4px;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.show { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  bottom: 0; right: 0;
  width: 100%;
  max-width: 440px;
  height: 85dvh;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 600px) {
  .cart-drawer {
    top: 0; bottom: 0;
    right: 0; left: auto;
    width: 420px;
    height: 100dvh;
    border-radius: 20px 0 0 20px;
    transform: translateX(100%);
  }
}
.cart-drawer.open { transform: translate(0, 0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--gold-light);
}
.cart-close {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition);
}
.cart-close:hover { color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 60px;
}
.cart-empty span { font-size: 48px; }

.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cart-item-img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cart-item-price { font-size: 13px; color: var(--gold-light); font-weight: 600; }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition);
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-num { font-size: 14px; font-weight: 600; min-width: 16px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: #e55; }

.cart-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}
.cart-subtotal span:last-child { color: var(--gold-light); font-size: 18px; }

/* ===== CHECKOUT BUTTON ===== */
.btn-checkout {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background var(--transition), transform var(--transition);
}
.btn-checkout:hover { background: var(--gold-light); }
.btn-checkout:active { transform: scale(.98); }

/* ===== CHECKOUT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 28px 24px 32px;
  position: relative;
}
@media (min-width: 600px) {
  .modal { border-radius: 20px; }
}
.modal h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 22px;
  margin-bottom: 20px;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus { border-color: var(--gold); }
.form-group input::placeholder { color: var(--text-dim); }

/* CEP */
.cep-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cep-wrap input { padding-right: 36px; }
.cep-status {
  position: absolute;
  right: 12px;
  font-size: 16px;
  pointer-events: none;
  transition: opacity .2s;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#addressFields {
  animation: fadeSlide .25s ease;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.payment-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-opt {
  flex: 1;
  min-width: 90px;
}
.payment-opt input { display: none; }
.payment-opt span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.payment-opt input:checked + span {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-light);
}

.order-summary {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.order-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.order-summary-item:last-child { margin-bottom: 0; }
.order-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  color: var(--gold-light);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e2e1e;
  border: 1px solid #3a5a3a;
  color: #7ec87e;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
