:root {
  --cream: #fff7ea;
  --cream-2: #f6ead8;
  --wine: #7a1f1f;
  --wine-dark: #571514;
  --terracotta: #b85c38;
  --green: #264638;
  --text: #2b2118;
  --muted: #7b6b5d;
  --gold: #d6a85a;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(122, 31, 31, 0.14);
  --shadow: 0 22px 60px rgba(54, 25, 14, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 168, 90, .24), transparent 32rem),
    radial-gradient(circle at top right, rgba(184, 92, 56, .18), transparent 28rem),
    var(--cream);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 247, 234, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand.center { justify-content: center; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 14px;
  background: var(--wine); color: #fff; font-size: 24px; font-weight: 800;
  box-shadow: 0 12px 24px rgba(122, 31, 31, .22);
}
.top-nav { display: flex; gap: 18px; align-items: center; font-size: 15px; font-weight: 600; color: var(--green); }
.top-nav a:hover { color: var(--wine); }
.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr); gap: 36px; padding: clamp(34px, 7vw, 88px) clamp(18px, 4vw, 56px) 48px; align-items: stretch; }
.hero-card, .page-hero, .menu-header { border: 1px solid var(--border); background: var(--card); border-radius: 36px; box-shadow: var(--shadow); }
.hero-card { padding: clamp(28px, 5vw, 64px); }
.eyebrow { color: var(--terracotta); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .12em; margin-bottom: 14px; }
h1, h2, h3 { margin: 0; letter-spacing: -.04em; }
h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(42px, 7vw, 78px); line-height: .94; color: var(--wine-dark); }
h2 { font-size: clamp(26px, 3vw, 40px); color: var(--wine-dark); }
h3 { font-size: 20px; }
p { line-height: 1.65; }
.hero-card p { max-width: 640px; font-size: 18px; color: var(--muted); margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn, button.btn { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 999px; min-height: 48px; padding: 0 22px; font-weight: 800; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--wine); color: white; box-shadow: 0 12px 24px rgba(122, 31, 31, .2); }
.btn-primary:hover { background: var(--wine-dark); }
.btn-secondary { background: var(--green); color: white; }
.btn-ghost { background: rgba(122, 31, 31, .08); color: var(--wine); }
.btn.full { width: 100%; }
.hero-visual { position: relative; min-height: 520px; border-radius: 36px; overflow: hidden; background: linear-gradient(135deg, rgba(122, 31, 31, .96), rgba(184, 92, 56, .9)); box-shadow: var(--shadow); }
.hero-visual::before { content: ''; position: absolute; inset: 22px; border: 1px solid rgba(255, 247, 234, .28); border-radius: 28px; }
.plate { position: absolute; display: grid; place-items: center; width: 170px; height: 170px; border-radius: 50%; background: #fff7ea; box-shadow: 0 24px 50px rgba(0,0,0,.22); font-size: 72px; }
.plate-one { top: 68px; left: 54px; }
.plate-two { top: 190px; right: 64px; }
.plate-three { bottom: 70px; left: 120px; }
.ornament { position: absolute; bottom: 28px; right: 28px; color: rgba(255,255,255,.72); letter-spacing: .16em; font-weight: 800; }
.section { padding: 34px clamp(18px, 4vw, 56px) 72px; }
.section.narrow { max-width: 980px; margin: 0 auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading span { color: var(--terracotta); text-transform: uppercase; font-weight: 800; letter-spacing: .12em; }
.branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.branch-grid.one-col { grid-template-columns: 1fr; }
.branch-card { background: rgba(255,255,255,.74); border: 1px solid var(--border); border-radius: 28px; padding: 24px; box-shadow: 0 14px 36px rgba(54,25,14,.08); }
.branch-card.large { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.branch-card p { margin: 10px 0; font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.small-link { padding: 8px 12px; border-radius: 999px; background: rgba(38, 70, 56, .08); color: var(--green); font-weight: 700; font-size: 13px; }
.page-hero.compact, .menu-header { margin: 28px clamp(18px, 4vw, 56px); padding: clamp(24px, 4vw, 42px); }
.page-hero h1, .menu-header h1 { font-size: clamp(36px, 5vw, 58px); }
.back-link { display: inline-flex; color: var(--wine); font-weight: 800; margin-bottom: 18px; }
code { padding: 3px 7px; border-radius: 8px; background: rgba(122,31,31,.09); }
.menu-title-row { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.table-badge { display: inline-flex; margin-top: 4px; padding: 7px 12px; border-radius: 999px; background: rgba(38,70,56,.1); color: var(--green); font-weight: 800; }
.menu-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr) 360px; gap: 24px; padding: 0 clamp(18px, 4vw, 56px) 72px; align-items: start; }
.categories-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 8px; }
.categories-nav a { padding: 11px 14px; border-radius: 16px; background: rgba(255,255,255,.65); border: 1px solid var(--border); font-weight: 700; color: var(--green); }
.category-block { margin-bottom: 32px; scroll-margin-top: 110px; }
.category-block h2 { margin-bottom: 14px; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dish-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); overflow: hidden; border-radius: 24px; background: rgba(255,255,255,.78); border: 1px solid var(--border); box-shadow: 0 14px 36px rgba(54,25,14,.07); }
.dish-photo { min-height: 150px; background: var(--cream-2); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-photo.placeholder { display: grid; place-items: center; font-size: 44px; background: linear-gradient(135deg, rgba(214,168,90,.38), rgba(184,92,56,.18)); }
.dish-content { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dish-top { display: flex; justify-content: space-between; gap: 10px; }
.dish-top h3 { font-size: 17px; }
.dish-top strong { color: var(--wine); white-space: nowrap; }
.dish-content p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.dish-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 700; font-size: 13px; }
.add-to-cart, .small-button { border: 0; border-radius: 999px; background: var(--green); color: white; padding: 9px 13px; font-weight: 800; cursor: pointer; }
.cart-panel { position: sticky; top: 90px; background: rgba(255,255,255,.88); border: 1px solid var(--border); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); }
.cart-panel h2 { font-size: 25px; margin-bottom: 14px; }
.cart-items.empty { color: var(--muted); padding: 16px 0; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(122,31,31,.1); }
.cart-line-title { font-weight: 800; }
.qty-controls { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-controls button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(122,31,31,.1); color: var(--wine); font-weight: 900; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; padding-top: 10px; font-size: 18px; }
.order-form, .card-form { display: grid; gap: 12px; }
label { display: grid; gap: 7px; font-weight: 800; font-size: 14px; color: var(--text); }
input, textarea, select { width: 100%; border: 1px solid var(--border); background: rgba(255,255,255,.85); border-radius: 16px; padding: 13px 14px; font: inherit; color: var(--text); outline: none; }
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(122,31,31,.42); box-shadow: 0 0 0 4px rgba(122,31,31,.08); }
.form-status { margin: 0; color: var(--green); font-weight: 800; }
.form-status.error { color: var(--wine); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-form { background: rgba(255,255,255,.82); border: 1px solid var(--border); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.mobile-cart-button { display: none; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 34px clamp(18px, 4vw, 56px); background: var(--green); color: #fff7ea; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 800; }

/* Admin */
.admin-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: #f7f1e7; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 20px; background: var(--green); color: #fff7ea; }
.admin-sidebar nav { display: grid; gap: 8px; margin-top: 28px; }
.admin-sidebar nav a { padding: 12px 14px; border-radius: 14px; font-weight: 800; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.12); }
.admin-brand .brand-mark { background: var(--gold); color: var(--wine-dark); }
.admin-main { padding: 28px; overflow: auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.admin-head h1 { font-family: Inter, sans-serif; font-size: 34px; color: var(--text); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card, .admin-card, .admin-form { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 20px; box-shadow: 0 12px 28px rgba(54,25,14,.06); }
.stat-card span { color: var(--muted); font-weight: 800; }
.stat-card strong { display: block; font-size: 34px; margin-top: 8px; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-list-item { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.admin-list-item span { color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 12px 28px rgba(54,25,14,.06); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.admin-table th, .admin-table td { padding: 14px; border-bottom: 1px solid rgba(122,31,31,.1); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.admin-thumb { width: 64px; height: 54px; object-fit: cover; border-radius: 12px; }
.no-photo { color: var(--muted); }
.pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: rgba(122,31,31,.08); color: var(--wine); font-size: 12px; font-weight: 800; margin: 2px; }
.pill.ok { background: rgba(38,70,56,.1); color: var(--green); }
.muted-row { opacity: .55; }
.actions a { color: var(--wine); font-weight: 800; }
.admin-form { max-width: 980px; display: grid; gap: 16px; }
.admin-form.compact-form { max-width: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.checkboxes { display: flex; flex-wrap: wrap; gap: 14px; }
.checkboxes label, .inline-check { display: flex; align-items: center; gap: 8px; }
.checkboxes input, .inline-check input { width: auto; }
.current-photo { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; }
.current-photo img { width: 120px; height: 90px; border-radius: 16px; object-fit: cover; }
.danger-form { margin-top: 16px; }
.link-danger { border: 0; background: transparent; color: var(--wine); font-weight: 800; cursor: pointer; }
.inline-form { display: grid; grid-template-columns: 1fr 140px auto auto; gap: 10px; align-items: end; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.login-card h1 { font-family: Inter, sans-serif; font-size: 28px; text-align: center; }
.error { padding: 12px; border-radius: 14px; background: rgba(122,31,31,.08); color: var(--wine); font-weight: 800; }

@media (max-width: 1180px) {
  .menu-layout { grid-template-columns: 150px minmax(0, 1fr); }
  .cart-panel { position: fixed; inset: auto 14px 78px 14px; transform: translateY(125%); transition: .24s ease; z-index: 20; max-height: 70vh; overflow: auto; }
  .cart-panel.open { transform: translateY(0); }
  .mobile-cart-button { display: flex; position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 21; height: 54px; border-radius: 18px; border: 0; background: var(--wine); color: white; font-weight: 900; justify-content: center; align-items: center; box-shadow: 0 14px 34px rgba(122,31,31,.3); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .branch-grid { grid-template-columns: 1fr; }
  .dish-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-grid, .admin-columns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-nav { display: none; }
  .hero-card { border-radius: 28px; }
  .hero-actions .btn { width: 100%; }
  .plate { width: 128px; height: 128px; font-size: 52px; }
  .plate-one { top: 50px; left: 28px; }
  .plate-two { top: 142px; right: 28px; }
  .plate-three { bottom: 52px; left: 72px; }
  .branch-card.large { flex-direction: column; align-items: stretch; }
  .menu-title-row { flex-direction: column; }
  .menu-layout { grid-template-columns: 1fr; }
  .categories-nav { position: sticky; top: 74px; flex-direction: row; overflow-x: auto; z-index: 6; padding-bottom: 6px; }
  .categories-nav a { white-space: nowrap; }
  .dish-card { grid-template-columns: 1fr; }
  .dish-photo { height: 168px; }
  .form-row, .form-grid, .inline-form { grid-template-columns: 1fr; }
}
