/* ============================================================
   CAPRICHO N8 — MENU.CSS
   ============================================================ */

/* MENU HERO */
.menu-hero {
  position: relative; height: 55vh; min-height: 420px;
  display: flex; align-items: flex-end; padding-bottom: 60px;
  overflow: hidden;
}
.mh-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,15,.5) 0%, rgba(20,18,15,.92) 100%),
    url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1600&q=80') center/cover;
}
.mh-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
.mh-content {
  position: relative; z-index: 1; padding: 0 48px; max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.hero-eye {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 12px;
  animation: hreveal .8s var(--ease-smooth) .3s both;
}
.mh-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 300;
  color: var(--white); line-height: .9; letter-spacing: -.02em;
  animation: hreveal .8s var(--ease-smooth) .5s both;
}
.mh-title em { font-style: italic; color: var(--gold-light); }
.mh-sub {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-top: 12px;
  animation: hreveal .8s var(--ease-smooth) .65s both;
}
@keyframes hreveal { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }

.mh-scroll-hint {
  position: absolute; bottom: 24px; right: 48px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-size: .65rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

/* ---- CATEGORY NAV ---- */
.cat-nav-wrap {
  position: sticky; top: 72px; z-index: 100;
  background: rgba(245,240,232,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.cat-nav {
  display: flex; align-items: center; position: relative;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 48px; overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cn-btn {
  padding: 16px 24px; flex-shrink: 0;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ash); transition: color .3s;
  position: relative; z-index: 1;
}
.cn-btn:hover { color: var(--charcoal); }
.cn-btn.active { color: var(--gold); }
.cn-indicator {
  position: absolute; bottom: 0; height: 2px;
  background: var(--gold); border-radius: 1px;
  transition: left .35s var(--ease-smooth), width .35s var(--ease-smooth);
}

/* ---- MENU BODY ---- */
.menu-body {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 0; max-width: var(--max-w); margin: 0 auto;
  padding: 0 48px; padding-top: 60px;
  align-items: start;
}
.menu-grid-col { padding-right: 48px; }
@media (max-width: 1100px) {
  .menu-body { grid-template-columns: 1fr; padding: 0 20px; padding-top: 40px; }
  .menu-grid-col { padding-right: 0; }
}

/* ADD NOTICE */
.add-notice {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(201,169,110,.08), rgba(201,169,110,.03));
  border: 1px solid rgba(201,169,110,.2);
  border-radius: 8px; padding: 16px 20px;
  margin-bottom: 48px; font-size: .84rem; color: var(--ink); line-height: 1.5;
}
.add-notice-icon { font-size: 1.5rem; flex-shrink: 0; }
.add-notice strong { color: var(--gold); }

/* ---- CATEGORY SECTION ---- */
.menu-cat-section { margin-bottom: 72px; scroll-margin-top: 140px; }
.mcs-header {
  display: flex; align-items: flex-start; gap: 24px;
  padding-bottom: 28px; margin-bottom: 32px;
  border-bottom: 1px solid var(--sand);
}
.mcs-num {
  font-family: var(--ff-display); font-size: 3.5rem; font-weight: 300;
  color: var(--cream-deep); line-height: 1; flex-shrink: 0; margin-top: -8px;
}
.mcs-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 300; color: var(--charcoal);
}
.mcs-sub { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); margin-top: 6px; }

.arroces-alert {
  background: rgba(201,169,110,.08); border: 1px solid rgba(201,169,110,.2);
  border-radius: 6px; padding: 14px 18px;
  font-size: .8rem; color: var(--gold); margin-bottom: 24px; line-height: 1.5;
}

/* ---- DISH CARD ---- */
.dishes-grid { display: flex; flex-direction: column; gap: 2px; }

.dish-item {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--sand-light);
  transition: background .2s; position: relative;
  animation: dishIn .4s var(--ease-smooth) both;
}
@keyframes dishIn { from{opacity:0;transform:translateX(-12px)} to{opacity:1;transform:none} }
.dish-item:hover { background: rgba(201,169,110,.03); margin: 0 -12px; padding: 20px 12px; border-radius: 6px; border-color: transparent; }
.dish-item.featured { background: rgba(201,169,110,.04); margin: 0 -12px; padding: 22px 12px; border-radius: 8px; border: 1px solid rgba(201,169,110,.15); }

.dish-item-num {
  font-family: var(--ff-display); font-size: .95rem; font-weight: 300;
  color: var(--sand); min-width: 28px; flex-shrink: 0;
}
.dish-item-body { flex: 1; min-width: 0; }
.dish-item-name {
  font-family: var(--ff-display); font-size: 1.1rem; font-weight: 400;
  color: var(--charcoal); line-height: 1.2; margin-bottom: 4px;
}
.dish-item-name em { font-style: italic; color: var(--ash); }
.dish-item-desc { font-size: .78rem; color: var(--ash); line-height: 1.5; }
.dish-item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.dish-item-tag {
  font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 12px;
  background: var(--cream-dark); color: var(--ash);
}
.dish-item-tag.tag-star { background: rgba(201,169,110,.12); color: var(--gold); }

.dish-item-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.dish-item-price {
  font-family: var(--ff-display); font-size: 1.25rem; font-weight: 300;
  color: var(--charcoal); white-space: nowrap; min-width: 56px; text-align: right;
}
.dish-item-price small { font-size: .72rem; color: var(--ash); }

.add-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-size: 1.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, transform .25s var(--ease-bounce);
  flex-shrink: 0;
}
.add-btn:hover { background: var(--gold); color: var(--charcoal); transform: scale(1.15); }
.add-btn.added { background: var(--gold); color: var(--charcoal); }

/* Qty controls (shown when item added) */
.qty-ctrl {
  display: none; align-items: center; gap: 8px;
}
.qty-ctrl.visible { display: flex; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--sand); color: var(--charcoal); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.qty-btn:hover { border-color: var(--gold); background: rgba(201,169,110,.1); }
.qty-num { font-size: .85rem; font-weight: 500; min-width: 18px; text-align: center; color: var(--charcoal); }

/* ================================================================
   BILL SIDEBAR
================================================================ */
.bill-sidebar {
  position: sticky; top: 136px;
  background: var(--charcoal);
  border-radius: 12px;
  border: 1px solid rgba(201,169,110,.12);
  overflow: hidden;
  max-height: calc(100vh - 160px);
  display: flex; flex-direction: column;
}
.bill-header {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.bill-icon { font-size: 1.1rem; }
.bill-header h3 {
  font-family: var(--ff-display); font-size: 1.15rem; font-weight: 300;
  color: var(--cream); flex: 1;
}
.bill-count-badge {
  background: var(--gold); color: var(--charcoal);
  font-size: .65rem; font-weight: 600; letter-spacing: .04em;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
}

.bill-empty {
  padding: 40px 24px; text-align: center;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.bill-empty span { font-size: 2rem; }
.bill-empty p { font-size: .82rem; color: var(--ash); line-height: 1.6; }

.bill-items {
  flex: 1; overflow-y: auto; padding: 8px 0;
  scrollbar-width: thin; scrollbar-color: rgba(201,169,110,.2) transparent;
}
.bill-items::-webkit-scrollbar { width: 4px; }
.bill-items::-webkit-scrollbar-thumb { background: rgba(201,169,110,.2); border-radius: 2px; }

.bill-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,.04);
  animation: billItemIn .3s var(--ease-smooth) both;
}
@keyframes billItemIn { from{opacity:0;transform:translateX(12px)} to{opacity:1;transform:none} }
.bi-qty {
  font-size: .7rem; font-weight: 600; color: var(--gold);
  background: rgba(201,169,110,.12); border-radius: 4px;
  padding: 2px 6px; flex-shrink: 0;
}
.bi-name { flex: 1; font-size: .8rem; color: var(--cream); line-height: 1.3; }
.bi-price { font-size: .85rem; color: var(--gold-light); white-space: nowrap; }
.bi-del {
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .6rem; color: var(--ash);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s; flex-shrink: 0;
}
.bi-del:hover { color: #e05c5c; background: rgba(224,92,92,.12); }

/* BILL SUMMARY */
.bill-summary { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
.bill-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(245,240,232,.7); padding: 4px 0;
}
.bill-line.small { font-size: .72rem; color: var(--ash); }
.bill-line.total-line {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); font-weight: 600; padding: 10px 0;
}
.bill-line.total-line span:last-child {
  font-family: var(--ff-display); font-size: 1.6rem; font-weight: 300; color: var(--gold);
}
.bill-divider { border: none; border-top: 1px solid rgba(255,255,255,.06); margin: 10px 0; }

/* PEOPLE ROW */
.bill-people-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(245,240,232,.7); padding: 6px 0;
}
.people-ctrl { display: flex; align-items: center; gap: 10px; }
.pctrl-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,.3); color: var(--gold);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.pctrl-btn:hover { background: rgba(201,169,110,.15); border-color: var(--gold); }
#peopleCount { font-size: .85rem; font-weight: 600; color: var(--cream); min-width: 20px; text-align: center; }

/* TIP SECTION */
.tip-section { padding: 4px 0 8px; }
.tip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tip-header label { font-size: .78rem; color: rgba(245,240,232,.7); }
.tip-pct-display { font-family: var(--ff-display); font-size: 1.2rem; color: var(--gold); }
.tip-quick-btns { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tqb {
  padding: 5px 10px; border-radius: 20px;
  border: 1px solid rgba(201,169,110,.2); color: var(--ash);
  font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.tqb:hover { border-color: var(--gold); color: var(--gold); }
.tqb.active { background: rgba(201,169,110,.15); border-color: var(--gold); color: var(--gold); }

/* CUSTOM RANGE SLIDER */
.tip-slider-wrap { position: relative; margin-bottom: 8px; }
.tip-slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 2px; background: transparent; outline: none;
  position: relative; z-index: 2; margin: 10px 0;
}
.tip-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--charcoal);
  cursor: none; box-shadow: 0 0 0 3px rgba(201,169,110,.2);
  transition: box-shadow .2s;
}
.tip-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(201,169,110,.2); }
.tip-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--charcoal);
  cursor: pointer;
}
.tip-slider-track {
  position: absolute; top: 19px; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,.1); border-radius: 1px;
  pointer-events: none; z-index: 1;
}
.tip-slider-fill {
  height: 100%; background: var(--gold); border-radius: 1px; width: 33%;
  transition: width .15s;
}
.tip-slider-labels {
  display: flex; justify-content: space-between;
  font-size: .58rem; color: var(--ash); letter-spacing: .08em;
  margin-top: 4px;
}
.tip-amount-row { margin-top: 4px; }
.tip-val { color: var(--gold-light); }

.bill-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bill-disclaimer { font-size: .62rem; color: rgba(122,116,112,.5); text-align: center; margin-top: 10px; line-height: 1.5; }

/* ---- MOBILE BILL FAB ---- */
.bill-fab {
  display: none;
  position: fixed; bottom: 24px; right: 20px; z-index: 500;
  background: var(--gold); color: var(--charcoal);
  border-radius: 32px; padding: 14px 20px;
  align-items: center; gap: 8px;
  box-shadow: 0 8px 32px rgba(201,169,110,.4);
  font-size: .78rem; font-weight: 600;
  transition: transform .25s var(--ease-bounce);
  cursor: none;
}
.bill-fab:hover { transform: scale(1.04); }
.bill-fab span:first-child { font-size: 1rem; }
.fab-count {
  background: var(--charcoal); color: var(--gold);
  font-size: .62rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
@media (max-width: 1100px) { .bill-fab { display: flex; } .bill-sidebar { display: none; } }

/* ---- BILL DRAWER (mobile) ---- */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 600;
  backdrop-filter: blur(4px);
}
.drawer-overlay.open { display: block; }
.bill-drawer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--charcoal);
  border-radius: 16px 16px 0 0;
  border-top: 1px solid rgba(201,169,110,.15);
  z-index: 700; max-height: 80vh;
  transform: translateY(100%); transition: transform .4s var(--ease-smooth);
  display: flex; flex-direction: column;
}
.bill-drawer.open { transform: none; }
.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.drawer-header h3 { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 300; color: var(--cream); }
.drawer-header button { font-size: 1.1rem; color: var(--ash); transition: color .2s; }
.drawer-header button:hover { color: var(--cream); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 4px 16px; }

/* Vino cards special layout */
.vino-type-header {
  font-family: var(--ff-display); font-size: 1.2rem; font-weight: 300;
  color: var(--ash); padding: 24px 0 12px;
  letter-spacing: .04em; border-bottom: 1px solid var(--sand-light); margin-bottom: 8px;
}
.dish-item.vino-item .dish-item-name { font-size: .95rem; }

@media (max-width: 600px) {
  .mh-content, .cat-nav { padding-left: 20px; padding-right: 20px; }
  .mh-scroll-hint { display: none; }
}
