:root {
  --ink: #2a201b;
  --muted: #74645a;
  --paper: #fffaf5;
  --cream: #f7efe7;
  --accent: #c96b3b;
  --accent-dark: #9f4e28;
  --line: rgba(42, 32, 27, .12);
  --shadow: 0 22px 60px rgba(63, 39, 26, .13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); min-height: 100vh; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.hero { min-height: 560px; padding: 24px clamp(20px, 5vw, 72px) 72px; display: flex; flex-direction: column; background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.65), transparent 28%), linear-gradient(135deg, #f9e9d8, #f0c9ae 55%, #d99568); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -70px; bottom: -110px; border: 60px solid rgba(255,255,255,.2); border-radius: 50%; }
.hero.has-image { background-position: center; background-size: cover; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,18,13,.82), rgba(28,18,13,.28)); }
.hero.has-image .topbar, .hero.has-image .hero-content { position: relative; z-index: 1; color: white; }
.topbar { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: white; letter-spacing: .03em; box-shadow: 0 10px 25px rgba(42,32,27,.18); }
.cart-button { border: 1px solid rgba(42,32,27,.15); background: rgba(255,255,255,.72); backdrop-filter: blur(14px); border-radius: 999px; padding: 9px 10px 9px 18px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 750; }
.cart-button strong { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: white; }
.hero-content { max-width: 730px; margin-top: auto; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .73rem; color: var(--accent-dark); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); line-height: .94; max-width: 900px; }
.hero-content > p:not(.eyebrow) { max-width: 610px; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; margin: 24px 0 30px; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: white; padding: 15px 22px; border-radius: 14px; text-decoration: none; font-weight: 800; }
.menu-section { padding: 70px clamp(20px, 5vw, 72px) 100px; max-width: 1500px; margin: auto; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
h2 { font-size: clamp(2.3rem, 4vw, 4rem); }
.search-box { display: grid; gap: 6px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.search-box input { width: min(320px, 72vw); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: white; outline: none; }
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,107,59,.12); }
.category-pills { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 22px; scrollbar-width: none; }
.category-pills::-webkit-scrollbar { display: none; }
.pill { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 10px 16px; white-space: nowrap; cursor: pointer; font-weight: 750; }
.pill.active { background: var(--ink); border-color: var(--ink); color: white; }
.notice { border: 1px solid #e4b069; background: #fff4d8; padding: 14px 16px; border-radius: 14px; margin-bottom: 24px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.menu-card { background: white; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 36px rgba(74,47,30,.07); display: flex; flex-direction: column; min-height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.menu-image { aspect-ratio: 4 / 3; background: linear-gradient(145deg, #f3d4bd, #c9794b); overflow: hidden; position: relative; }
.menu-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-letter { position: absolute; inset: 0; display: grid; place-items: center; font: 700 4.5rem Georgia, serif; color: rgba(255,255,255,.72); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); padding: 6px 9px; border-radius: 999px; font-weight: 800; font-size: .72rem; }
.menu-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.menu-card h3 { margin: 0; font-size: 1.25rem; }
.menu-card p { color: var(--muted); line-height: 1.5; margin: 10px 0 20px; }
.card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.price { font-size: 1.16rem; font-weight: 900; }
.add-button { border: 0; background: var(--accent); color: white; padding: 10px 14px; border-radius: 12px; font-weight: 850; cursor: pointer; }
.add-button:hover { background: var(--accent-dark); }
.add-button:disabled { background: #c8beb8; cursor: not-allowed; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; }
.hidden { display: none !important; }
.cart-drawer, .modal { position: fixed; inset: 0; z-index: 50; pointer-events: none; visibility: hidden; }
.cart-drawer.open, .modal.open { pointer-events: auto; visibility: visible; }
.cart-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(31,22,17,.5); opacity: 0; transition: opacity .2s; }
.cart-drawer.open .cart-backdrop, .modal.open .modal-backdrop { opacity: 1; }
.cart-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(470px, 100%); background: var(--paper); padding: 24px; transform: translateX(100%); transition: transform .24s ease; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-panel header, .modal-card header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.icon-button { border: 1px solid var(--line); background: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.cart-items { overflow: auto; flex: 1; padding: 18px 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { margin: 0 0 4px; font-size: 1rem; }
.cart-line p { margin: 0; color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qty-controls button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: white; cursor: pointer; }
.remove-button { border: 0; background: none; color: #a43d32; cursor: pointer; padding: 0; }
.cart-empty { color: var(--muted); text-align: center; padding: 60px 10px; }
.cart-summary { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.cart-summary > div { display: flex; justify-content: space-between; }
.cart-summary .total { font-size: 1.2rem; padding-top: 8px; }
.checkout-button { width: 100%; border: 0; background: var(--ink); color: white; border-radius: 14px; padding: 15px 18px; font-weight: 850; margin-top: 18px; cursor: pointer; }
.checkout-button:disabled { opacity: .55; cursor: wait; }
.modal { display: grid; place-items: center; padding: 18px; }
.modal-card { width: min(720px, 100%); max-height: calc(100vh - 36px); overflow: auto; position: relative; background: var(--paper); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); opacity: 0; transform: translateY(18px) scale(.98); transition: .2s ease; }
.modal.open .modal-card { opacity: 1; transform: none; }
#checkoutForm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 20px; }
#checkoutForm label { display: grid; gap: 7px; font-weight: 750; }
#checkoutForm .full, .form-note, .form-error, #placeOrderButton { grid-column: 1 / -1; }
input, textarea { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 12px 13px; outline: none; }
textarea { min-height: 82px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,107,59,.11); }
.form-note { margin: 0; color: var(--muted); line-height: 1.5; }
.form-error { background: #fde5e2; color: #8d2d24; border-radius: 12px; padding: 12px; }
.success-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--ink); color: white; padding: 13px 18px; border-radius: 999px; opacity: 0; pointer-events: none; z-index: 90; transition: .2s; box-shadow: var(--shadow); }
.success-toast.show { opacity: 1; transform: translate(-50%, 0); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 5vw, 72px); background: var(--ink); color: white; }
footer a { color: #eab08e; }
@media (max-width: 700px) {
  .hero { min-height: 500px; padding-top: 18px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-box input { width: 100%; }
  .menu-section { padding-top: 50px; }
  #checkoutForm { grid-template-columns: 1fr; }
  #checkoutForm label, #checkoutForm .full, .form-note, .form-error, #placeOrderButton { grid-column: 1; }
}
