/* Macho Nacho replica — white theme.
   Original Takeout theme: green #005236 / lime #d4fa45 / cream #fdfef5.
   This replica swaps every green surface for white and near-black ink. */
:root {
  --bg: #ffffff;
  --ink: #161616;
  --ink-soft: #3d3d3d;
  --muted: #6f6f6f;
  --line: #e9e9e4;
  --soft: #f7f7f3;
  --dark: #111111;
  --sale: #d92b1f;
  --radius: 18px;
  --font-display: "Barlow Condensed", "Barlow", sans-serif;
  --font-heading: "Barlow", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.05; }

/* ---------- marquee ---------- */
.marquee { background: var(--dark); color: #fff; overflow: hidden; white-space: nowrap; font-family: var(--font-heading); font-weight: 600; font-size: 15px; padding: 9px 0; }
.marquee-track { display: inline-block; animation: scroll 28s linear infinite; }
.marquee-track span { padding: 0 48px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 14px 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 26px; }
.nav-right { justify-content: flex-end; }
.nav-link { font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.active { border-bottom-color: var(--ink); }
.logo { text-align: center; line-height: 1; }
.logo-name { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: .02em; }
.logo-sub { font-size: 11px; letter-spacing: .28em; color: var(--muted); margin-top: 3px; font-weight: 600; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.icon-btn:hover { background: var(--soft); }
.cart-btn { position: relative; font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: .05em; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--sale); color: #fff; 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; border: none; border-radius: 999px; padding: 15px 34px; font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: #222; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.18) 45%, rgba(0,0,0,.5)); }
.hero-content { position: relative; z-index: 2; padding: 90px 24px 70px; }
.hero-eyebrow { color: #fff; font-family: var(--font-heading); font-weight: 700; letter-spacing: .3em; font-size: 13px; text-transform: uppercase; margin-bottom: 18px; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 11vw, 150px); line-height: .92; color: #fff; letter-spacing: .01em; text-transform: uppercase; }
.hero-cta { margin-top: 34px; }

/* ---------- last orders bar ---------- */
.orders-bar { border-bottom: 1px solid var(--line); background: #fff; }
.orders-inner { max-width: 1240px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.orders-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; text-transform: uppercase; }
.orders-note { color: var(--muted); font-size: 15px; }
.countdown { display: flex; gap: 10px; align-items: center; font-family: var(--font-heading); }
.countdown b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-kicker { font-family: var(--font-heading); font-weight: 700; letter-spacing: .26em; font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.5vw, 64px); text-transform: uppercase; line-height: .98; }
.section-sub { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }
.intro-text { max-width: 780px; margin: 0 auto; text-align: center; font-size: 19px; line-height: 1.65; color: var(--ink-soft); }
.intro-text strong { color: var(--ink); }

/* ---------- menu grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.09); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--dark); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.badge.sale { background: var(--sale); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 20px; font-weight: 800; }
.card-desc { color: var(--muted); font-size: 14.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-family: var(--font-heading); font-weight: 800; font-size: 19px; }
.price s { color: var(--muted); font-weight: 600; font-size: 15px; margin-right: 7px; }
.price .sale-price { color: var(--sale); }
.add-btn { border: 1.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 9px 18px; font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.add-btn:hover { background: var(--dark); color: #fff; }
.add-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- banners ---------- */
.banner-dark { background: var(--dark); color: #fff; text-align: center; padding: 64px 24px; }
.banner-dark h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 58px); text-transform: uppercase; }
.banner-dark p { margin-top: 12px; color: #cfcfcf; font-size: 17px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 56px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 30px; }
.footer-col h4 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; color: #e6e6e6; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid #2c2c2c; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #9a9a9a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- chinese section ---------- */
.chinese-hero { padding: 66px 0 40px; text-align: center; }
.chinese-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(52px, 8vw, 96px); text-transform: uppercase; line-height: .95; }
.chinese-hero h1 span { display: block; font-size: .42em; letter-spacing: .14em; margin-top: 10px; }
.filter-bar { position: sticky; top: 73px; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.chip .n { opacity: .6; font-size: 12px; margin-left: 4px; }
.search-input { margin-left: auto; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; font-family: var(--font-body); font-size: 15px; width: 240px; outline: none; }
.search-input:focus { border-color: var(--ink); }
.results-line { padding: 22px 0 0; color: var(--muted); font-size: 15px; }
.results-line strong { color: var(--ink); }
.dish-card { cursor: pointer; }
.dish-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.meta-tag { font-size: 12px; font-weight: 600; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-soft); }
.card-zh { font-size: 15px; color: var(--muted); font-weight: 600; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h3 { font-size: 24px; color: var(--ink); margin-bottom: 8px; }

/* ---------- dish detail ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 28px 0 18px; }
.back-link:hover { text-decoration: underline; }
.dish-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding-bottom: 70px; }
.dish-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-info h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 4.5vw, 56px); text-transform: uppercase; line-height: 1; }
.dish-zh { font-size: 22px; font-weight: 700; color: var(--ink-soft); margin-top: 8px; }
.dish-pinyin { color: var(--muted); margin-top: 2px; }
.dish-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.stat b { display: block; font-family: var(--font-heading); font-size: 16px; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dish-intro { color: var(--ink-soft); font-size: 16.5px; }
.dish-block { margin-top: 34px; }
.dish-block h2 { font-family: var(--font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; margin-bottom: 14px; }
.ing-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ing-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ing-table td:last-child { text-align: right; color: var(--ink-soft); font-weight: 600; white-space: nowrap; padding-left: 18px; }
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.steps li::before { content: counter(step); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; font-family: var(--font-heading); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.step-version { font-family: var(--font-heading); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 22px 0 4px; }
.version-intro { color: var(--ink-soft); font-size: 15px; margin: 2px 0 10px; }
.tips-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 34px; }
.tips-box h3 { font-size: 17px; margin-bottom: 8px; }
.tips-box li { margin-left: 18px; font-size: 15px; color: var(--ink-soft); }
.equip-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- video / feedback / payments ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.video-frame img, .video-frame iframe, .video-frame video { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video-credit { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
.feedback-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.feedback-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 38px; text-align: center; font-size: 15px; color: var(--muted); }
.feedback-card b { display: block; font-size: 21px; color: var(--ink); margin-top: 4px; }
.feedback-card:hover { border-color: var(--ink); }
.pay-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.pay-row span { border: 1px solid #3a3a3a; border-radius: 6px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #cfcfcf; }

/* ---------- cart drawer ---------- */
.cart-drawer[hidden] { display: none; }
.cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; }
.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 90; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.2); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-item-info { flex: 1; }
.cart-item-info b { font-size: 15px; display: block; }
.cart-item-info span { color: var(--muted); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px; }
.qty button { border: none; background: none; font-size: 16px; width: 24px; height: 24px; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 14px; }
.cart-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .dish-detail { grid-template-columns: 1fr; gap: 26px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .logo { display: none; }
  .nav-left { gap: 16px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .search-input { width: 100%; margin-left: 0; }
  .hero-title { font-size: 56px; }
}
