@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --bg-3: #1c1916;
  --bg-4: #26211c;
  --cream: #f4efe6;
  --cream-2: #e8dfd0;
  --gold: #c8a44a;
  --gold-2: #e0c06a;
  --gold-d: #8a6d28;
  --brown: #8a5a32;
  --text: #f7f3ea;
  --muted: #b7b0a4;
  --line: rgba(200,164,74,.22);
  --danger: #c45c4a;
  --ok: #3d9a6a;
  --shadow: 0 24px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --nav-h: 82px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1,h2,h3,h4 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.eyebrow { color: var(--gold); letter-spacing: .28em; text-transform: uppercase; font-size: .72rem; font-weight: 600; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

.announce {
  background: linear-gradient(90deg, #1a140c, #3a2c14 40%, #1a140c);
  color: var(--cream);
  text-align: center;
  font-size: .82rem;
  letter-spacing: .08em;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--line);
}
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,11,10,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
}
.logo { display: flex; align-items: center; min-width: 180px; }
.logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 18px; flex: 1; justify-content: center; font-size: .92rem; }
.nav-links a { color: var(--cream-2); position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
}
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--cream);
  display: grid; place-items: center; position: relative; cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn .count {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: #111; font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center;
}
.search-wrap { display: flex; }
.search-wrap input {
  background: var(--bg-3); border: 1px solid var(--line); color: var(--cream);
  padding: .55rem .9rem; border-radius: 999px 0 0 999px; width: 180px; outline: none;
}
.search-wrap button {
  border: 1px solid var(--gold); border-left: 0; background: var(--gold); color: #111;
  border-radius: 0 999px 999px 0; padding: 0 .9rem; cursor: pointer; font-weight: 600;
}
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #16120c; font-weight: 600; border: 0;
  padding: .85rem 1.35rem; border-radius: 999px; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(200,164,74,.25); }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn.ghost:hover { background: rgba(200,164,74,.12); }
.btn.dark { background: var(--bg-4); color: var(--cream); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: .5rem .9rem; font-size: .85rem; }
.btn.full { width: 100%; }

.hero {
  position: relative; min-height: 86vh; display: grid; place-items: center;
  background:
    linear-gradient(180deg, rgba(12,11,10,.35), rgba(12,11,10,.78)),
    url('../uploads/menu/royal-deluxe-burger.jpg') center/cover no-repeat,
    var(--bg-2);
  overflow: hidden;
}
.hero-content { text-align: center; padding: 80px 20px 70px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: .04em; }
.hero p { color: var(--cream-2); font-size: 1.15rem; margin: 0 auto 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 48px; color: var(--cream-2);
}
.hero-stats b { display: block; color: var(--gold); font-size: 1.6rem; font-family: "Cormorant Garamond", serif; }

.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); }
.section.cream { background: var(--cream); color: #1c1610; }
.section.cream .lead, .section.cream .muted { color: #5c5348; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.food-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column; position: relative;
}
.food-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.food-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #000; }
.food-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.food-card:hover .media img { transform: scale(1.06); }
.food-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.food-card h3 { font-size: 1.35rem; }
.food-card .meta { color: var(--muted); font-size: .86rem; }
.price { font-weight: 600; }
.price s { color: var(--muted); margin-right: 8px; font-weight: 400; }
.price .now { color: var(--gold); font-size: 1.15rem; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  background: #111; color: var(--gold); border: 1px solid var(--gold); padding: .2rem .45rem; border-radius: 999px;
}
.badge.hot { background: #8a2e1c; color: #fff; border-color: transparent; }
.badge.sale { background: var(--gold); color: #111; }
.badge.new { background: #1f4733; color: #b6efcc; border-color: transparent; }
.badge.veg { background: #1d3b22; color: #b7e3c0; border-color: transparent; }
.badge.spicy { background: #4a1c16; color: #ffb4a8; border-color: transparent; }
.wish {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(12,11,10,.7); color: #fff; cursor: pointer;
}
.wish.on { color: var(--gold); }

.cat-card {
  position: relative; min-height: 180px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: end; padding: 18px;
  background: var(--bg-4);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cat-card span { position: relative; font-family: "Cormorant Garamond", serif; font-size: 1.6rem; }
.cat-card:hover img { opacity: .7; transform: scale(1.04); transition: .4s; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split img { border-radius: 24px; height: 460px; width: 100%; object-fit: cover; }
.hours { display: grid; gap: 10px; margin: 18px 0 24px; }
.hours div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }

.review-card {
  background: var(--bg-3); padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
}
.stars { color: var(--gold); letter-spacing: 2px; }
.star { font-style: normal; }
.star:not(.full):not(.half) { opacity: .35; }

.newsletter {
  background: linear-gradient(120deg, #1a150f, #3a2a16);
  border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: flex;
  justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap;
}
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input {
  background: #0e0c0a; border: 1px solid var(--line); color: #fff; padding: .85rem 1rem; border-radius: 999px; min-width: 240px;
}

.footer { background: #090807; border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: var(--gold); font-size: 1.2rem; }
.footer a { color: var(--muted); display: block; margin: 6px 0; }
.footer a:hover { color: var(--gold); }
.copy { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page-hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(800px 200px at 20% 0%, rgba(200,164,74,.18), transparent),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }

.layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 36px 0 80px; }
.filters {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  position: sticky; top: 100px; height: max-content;
}
.filters h3 { font-size: 1.4rem; }
.filters label { display: block; margin: 8px 0; color: var(--cream-2); font-size: .92rem; }
.filters input[type=number], .filters select, .field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: .7rem .8rem; border-radius: 10px; outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--cream-2); font-size: .88rem; }
.filters input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }

.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; padding: 40px 0 70px; }
.gallery-main { border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 1px solid var(--line); }
.option-group { margin: 16px 0; }
.option-group h4 { font-size: 1.1rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  border: 1px solid var(--line); padding: .45rem .8rem; border-radius: 999px; cursor: pointer; background: var(--bg-3);
}
.chips input { margin-right: 6px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-3); color: #fff; cursor: pointer; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.summary {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  height: max-content;
}
.summary p { display: flex; justify-content: space-between; margin: 8px 0; }
.summary .total { font-size: 1.3rem; color: var(--gold); }

.auth-card, .form-card {
  max-width: 520px; margin: 40px auto 80px; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 24px; padding: 32px;
}
.flash { padding: 12px 16px; border-radius: 12px; margin: 12px 0; }
.flash.success { background: #163222; color: #b6efcc; }
.flash.error { background: #3a1b16; color: #ffc2b8; }
.flash.info { background: #2a2416; color: var(--gold-2); }

.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 36px 0 80px; }
.side-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--muted); }
.side-nav a.active, .side-nav a:hover { background: var(--bg-3); color: var(--gold); }

.pager { display: flex; gap: 8px; justify-content: center; margin: 32px 0; }
.pager a, .pager span { padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 8px; }
.pager .on { background: var(--gold); color: #111; }

.mobile-panel {
  display: none; position: fixed; inset: 0 0 0 30%; background: #141210; z-index: 80;
  padding: 24px; border-left: 1px solid var(--line); overflow: auto;
}
.mobile-panel.open { display: block; }
.mobile-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70; }
.backdrop.open { display: block; }

.masonry { columns: 3; column-gap: 16px; }
.masonry img { width: 100%; margin-bottom: 16px; border-radius: 16px; break-inside: avoid; }

.feature-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.feature-row .food-card:first-child { grid-row: span 2; }
.feature-row .food-card:first-child .media { aspect-ratio: 1 / 1.05; }

.list-card { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.list-card img { width: 140px; height: 100px; object-fit: cover; border-radius: 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.map-fake {
  min-height: 280px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #1c1812, #2c2418); display: grid; place-items: center; color: var(--muted);
}

.table { width: 100%; border-collapse: collapse; background: var(--bg-3); border-radius: 16px; overflow: hidden; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
.status { padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; background: var(--bg-4); }
.status.Delivered, .status.approved, .status.confirmed { background: #163222; color: #b6efcc; }
.status.Pending, .status.pending { background: #3a2e12; color: #efd48a; }
.status.Cancelled, .status.rejected, .status.cancelled { background: #3a1b16; color: #ffc2b8; }

.pay-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 8px 0; }
.card-ui { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

@media (max-width: 1024px) {
  .grid-4, .feature-row { grid-template-columns: repeat(2, 1fr); }
  .feature-row .food-card:first-child { grid-row: auto; }
  .split, .product, .layout, .account-grid, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .search-wrap input { width: 120px; }
}
@media (max-width: 760px) {
  .nav-links, .search-wrap { display: none; }
  .menu-toggle { display: grid; }
  .grid-4, .grid-3, .grid-2, .feature-row { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .list-card { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .filters { position: static; }
  .masonry { columns: 1; }
  .hero-stats { gap: 16px; }
}
