:root {
  --ff-sans: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --ff-serif: "Lora", Georgia, "Times New Roman", Times, serif;
  --bg: #fcf9f3;
  --panel: #ffffff;
  --text: #171413;
  --muted: #6b6765;
  --accent: #b98464;
  --border: rgba(0,0,0,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --nav-h: 60px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
}

.site-header {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-bottom: 1px solid var(--border);
}
.site-header .container.header-grid {
  max-width: 1280px; margin: 0 auto; padding: 10px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.header-left { display: none; }
.header-center { display: flex; align-items: center; }
.header-right { display: flex; justify-content: flex-end; }
.brand img { height: 64px; width: auto; display: block; }
.top-nav {
  width: 100%;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 999;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.top-nav.nav-fixed {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1200;
}
.top-nav .nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 8px 16px;
  display: flex; justify-content: flex-start; align-items: center; gap: 5px; overflow-x: auto;
}
.top-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.top-nav a:hover { background: rgba(0,0,0,0.04); }
.top-nav a.active { background: rgba(185,132,100,0.14); color: var(--accent-strong); border: 1px solid rgba(185,132,100,0.22); }
.search-wrap { display: block; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  width: 260px; max-width: 55vw;
  padding: 8px 12px; border-radius: 14px; border: 1px solid var(--border);
  background: #fff; font: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.search-box i { color: var(--muted); font-size: 18px; }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  background: transparent;
}

.page { max-width: 1280px; margin: 16px auto 60px; padding: calc(var(--nav-h) + 16px) 16px 40px 16px; }
.nav-fixed-pad .page { padding-top: calc(var(--nav-h) + 32px); }
.sec-title {
  font-family: var(--ff-serif);
  margin: 30px 0 14px;
  font-size: 32px;
}
.menu-section { scroll-margin-top: calc(var(--nav-h) + 40px); padding-top: 40px;}
.menu-section:first-child { padding-top: 0; }

.online-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.online-legend {
  position: relative;  background: var(--panel); padding: 0 8px 15px 8px;
}
.online-panel .sec-title { margin: 0; font-size: 28px; }
.online-panel .legend-img {
  position: absolute; top: -55px; right: 10px; width: 110px; height: 110px; object-fit: contain;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.menu-list.two-col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease;
}
.menu-item:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,0.08); }


.menu-item {
  padding-right: 56px; 
}
.menu-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #f5eee5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.menu-item::before {
  content: "\ea6c"; 
  font-family: "remixicon";
  position: absolute;
  top: 50%;
  right: 21px;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.mi-main { display: grid; gap: 3px; }
.mi-main strong { font-size: 18px; line-height: 1.2; }
.mi-main small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.price-badge {
  margin-left: auto;
  font-weight: 800; color: #41312c; background: #f3eadf; border: 2px solid rgba(0,0,0,0.05);
  min-width: 52px; text-align: center; padding: 8px 12px; border-radius: 999px;
  flex-shrink: 0; position: relative;
  font-size: 18px;
}
.price-badge::after {
  content: " RON";
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 3000; overflow: auto;}
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 2900; }
.modal-dialog {
  position: relative; z-index: 3005;
  max-width: 640px; margin: 6vh auto; background: var(--panel);
  border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; gap: 0;
  animation: pop .18s ease-out;
}
.modal-media { background: #faf7f1; display: grid; place-items: center; border-radius: 12px 12px 0 0;}
.modal-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px 12px 0 0;}
.modal-body { padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.modal-body h3 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; width: auto; }
.modal-price {
  font-weight: 800; color: #41312c; background: #f3eadf; border: 2px solid rgba(0,0,0,0.05);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 999px; margin: 4px 0 10px 0;
  position: relative; font-size: 20px; width: auto; min-width: 88px;
}
.modal-price::after {
  content: " RON";
  font-size: 0.8em;
  color: var(--muted);
  font-weight: 500;
}
.modal-desc { margin: 6px 0 10px; color: var(--text); }
.modal-sub { margin: 0 0 10px 0; color: var(--muted); font-size: 14px; }
.molda-back-button { position: sticky; top: 12px; left: 12px; z-index: 6; }
.modal-close {
  position: absolute; top: 12px; left: 12px; z-index: 6;
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.95); border: 1px solid var(--border); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; cursor: pointer; color: var(--text);
}
.modal-close:hover,
.modal-close:focus-visible {
  background: #fff;
  border-color: rgba(185,132,100,0.5);
  color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  outline: none;
}

@media (max-width: 1280px) {
  .top-nav .nav-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .modal-dialog {  margin: 4vh auto; }
  .sec-title { font-size: 26px; margin: 22px 0 10px; }
  .menu-list.two-col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .mi-main strong { font-size: 17px; }
}

@media (max-width: 768px) {
  .modal-dialog {
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
  }
  .modal-body { padding: 16px 16px 24px; align-items: center; text-align: center; }

  .modal-media, .modal-media img { border-radius: 0; }
}

@media (max-width: 720px) {
  .site-header .container.header-grid {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .header-center { justify-content: center; margin-bottom: 10px; }
  .header-right { justify-content: center;  margin-bottom: 10px;}
  .search-box {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 576px) {
  .online-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .online-panel .legend-img {
    position: static;
    order: 0;
    margin: 0 auto 4px;
    width: 120px;
    height: auto;
  }
  .online-panel .online-legend {
    order: 1;
    text-align: left;
    padding-top: 0;
  }
  .online-panel .menu-list {
    order: 2;
  }

  .online-panel .sec-title {
    text-align: center;
  }

  .menu-item {
    padding-right: 30px;
  }

  .menu-item::after {
    right: -1px;
    border-radius: 12px 0 0 12px;
  }

  .menu-item::before {
    right: 0;
  }
}

@keyframes pop { from { transform: scale(.96); opacity: .0 } to { transform: scale(1); opacity: 1 } }


