:root {
  --primary: #1c1c1c;
  --accent: #c9a24b;
  --bg: #faf8f5;
  --card-bg: #ffffff;
  --text: #262421;
  --text-muted: #726b60;
  --border: #ece7de;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(28, 24, 16, 0.08);
  --shadow-hover: 0 10px 32px rgba(28, 24, 16, 0.14);
  --header-h: 340px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------------- Header ---------------- */
.site-header {
  position: relative;
  min-height: var(--header-h);
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  color: #fff;
  text-align: center;
}

.site-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.7) 100%);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.site-header__logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  margin-bottom: 4px;
  background: #fff;
}

.site-header__title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .3px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.site-header__desc {
  margin: 0;
  font-size: .98rem;
  opacity: .92;
  max-width: 480px;
}

.site-header__social {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.site-header__social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  transition: background .2s, transform .2s;
}

.site-header__social a:hover { background: rgba(255,255,255,.3); transform: translateY(-2px); }

.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,.35);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(4px);
}

.lang-switch__btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  opacity: .75;
  transition: background .2s, opacity .2s;
}

.lang-switch__btn.is-active,
.lang-switch__btn:hover { background: var(--accent); color: #1c1c1c; opacity: 1; }

/* ---------------- Category nav ---------------- */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 245, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.category-nav__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  scrollbar-width: none;
}
.category-nav__scroll::-webkit-scrollbar { display: none; }

.category-nav__link {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}

.category-nav__link.is-active,
.category-nav__link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------------- Layout ---------------- */
.page-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 10px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.menu-section { margin-bottom: 40px; scroll-margin-top: 68px; }

.menu-section__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.dish-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.dish-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f0ece3;
  cursor: zoom-in;
}

.dish-card__image { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.badge--new { background: #2f8a52; }
.badge--popular { background: var(--accent); left: auto; right: 10px; top: 10px; color: #1c1c1c; }
.badge--new + .badge--popular { top: 10px; }

.dish-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.dish-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dish-card__name { margin: 0; font-size: 1.05rem; font-weight: 700; }
.dish-card__price { font-weight: 700; color: var(--accent); font-size: 1.05rem; white-space: nowrap; }

.dish-card__desc { margin: 0; font-size: .87rem; color: var(--text-muted); }
.dish-card__ingredients { margin: 0; font-size: .78rem; color: #948c7d; font-style: italic; }

.dish-card__tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tag { font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag--veg { background: #e4f3e6; color: #2f8a52; }
.tag--spicy { background: #fbe6e2; color: #c0432b; }

.empty-state { color: var(--text-muted); padding: 40px 0; text-align: center; }

/* ---------------- Info sidebar ---------------- */
.info-column { position: sticky; top: 70px; }

.info-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

.info-card__title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: .92rem;
}
.info-row:first-of-type { border-top: none; }
.info-row__icon { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }

.hours-table { width: 100%; display: flex; flex-direction: column; gap: 3px; }
.hours-table__row { display: flex; justify-content: space-between; font-size: .85rem; gap: 8px; }
.hours-table__row span:first-child { color: var(--text-muted); }

.info-card__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.info-card__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  transition: background .2s, color .2s;
}
.info-card__social a:hover { background: var(--accent); color: #1c1c1c; }

/* ---------------- Footer ---------------- */
.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
  padding: 30px 16px 40px;
}

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 100%; max-height: 90vh; border-radius: var(--radius-md); }
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .info-column { position: static; order: 2; }
  .menu-column { order: 1; }
}

@media (max-width: 560px) {
  :root { --header-h: 260px; }
  .site-header { padding: 54px 16px 30px; }
  .site-header__logo { width: 68px; height: 68px; }
  .page-layout { padding: 18px 14px 6px; gap: 22px; }
  .dish-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dish-card__body { padding: 10px 12px 14px; }
  .dish-card__name { font-size: .95rem; }
  .lang-switch { top: 10px; right: 10px; }
}

@media (max-width: 400px) {
  .dish-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Cart / checkout
   ================================================================ */

.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.add-to-cart-btn svg { flex: 0 0 auto; width: 16px; height: 16px; }
.add-to-cart-btn:hover,
.add-to-cart-btn:active { background: var(--accent); color: #1c1c1c; }

/* ---- Floating cart button ---- */
.cart-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .15s;
}
.cart-fab:hover { transform: translateY(-2px); }
.cart-fab svg { width: 24px; height: 24px; }
.cart-fab__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d0332a;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* ---- Overlay + drawer ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, .5);
  z-index: 70;
}
.cart-overlay[hidden] { display: none; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--card-bg, #fff);
  z-index: 80;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,.18);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.cart-drawer__header h2 { margin: 0; font-size: 1.15rem; }
.cart-drawer__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.cart-drawer__close svg { width: 22px; height: 22px; }

.cart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-empty { color: var(--text-muted); text-align: center; padding: 40px 10px; }

.cart-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cart-line__remove {
  position: absolute;
  top: 10px;
  right: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.cart-line__remove:hover { color: #c0432b; }
.cart-line__img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; background: #f0ece3; }
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__name { font-weight: 700; font-size: .92rem; padding-right: 18px; }
.cart-line__price { color: var(--text-muted); font-size: .84rem; margin: 2px 0 6px; }
.cart-line__qty { display: flex; align-items: center; gap: 10px; }
.cart-line__qty span { min-width: 18px; text-align: center; font-weight: 700; font-size: .9rem; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.qty-btn:hover { background: var(--bg); }

.cart-drawer__foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
  overflow-y: auto;
  max-height: 58vh;
}

.cart-summary { margin-bottom: 14px; }
.cart-summary__row { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; color: var(--text-muted); }
.cart-summary__row--total { color: var(--text); font-size: 1.05rem; font-weight: 700; border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; }

.tip-block { margin-bottom: 16px; }
.tip-block__label { display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; margin: 0 0 8px; }
.tip-block__label svg { width: 18px; height: 18px; color: var(--accent); }
.tip-block__options { display: flex; flex-wrap: wrap; gap: 6px; }
.tip-option {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.tip-option.is-active,
.tip-option:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.tip-block__input {
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .9rem;
}

.order-details { margin-bottom: 10px; }
.order-details__label { font-size: .88rem; font-weight: 700; margin: 0 0 8px; }
.service-type { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.service-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .9rem;
  cursor: pointer;
}
.service-option.is-active { border-color: var(--primary); background: var(--bg); font-weight: 700; }
.service-option input { margin: 0; }

.order-field { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.order-field input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .92rem;
  font-weight: 400;
  color: var(--text);
}

.cart-error {
  background: #fbe6e2;
  color: #c0432b;
  font-size: .84rem;
  padding: 9px 12px;
  border-radius: 8px;
  margin: 0 0 12px;
}

.place-order-btn {
  width: 100%;
  border: none;
  background: #d0332a;
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .02em;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity .15s;
}
.place-order-btn:hover { opacity: .9; }
.place-order-btn:disabled { opacity: .6; cursor: default; }

.order-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 26px;
  gap: 8px;
}
.order-success__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #2f8a52;
  color: #fff;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.order-success h3 { margin: 0; }
.order-success p { margin: 0; color: var(--text-muted); }
.order-success__number { color: var(--text) !important; font-size: 1.05rem; margin-top: 6px !important; }
.order-success .place-order-btn { margin-top: 18px; background: var(--primary); }

@media (max-width: 560px) {
  .cart-drawer { width: 100%; max-width: 100%; }
  .cart-fab { right: 14px; bottom: 14px; }
}
