:root {
  --ink: #191714;
  --muted: #6c665e;
  --paper: #fffaf1;
  --panel: #ffffff;
  --line: #e7dccb;
  --brand: #0f8f68;
  --brand-dark: #066247;
  --accent: #d5442f;
  --gold: #f0b63a;
  --blue: #2f6fd5;
  --shadow: 0 18px 50px rgba(48, 36, 24, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: rgba(255, 250, 241, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav button,
.ghost,
.primary,
.icon-button {
  border-radius: 8px;
  min-height: 40px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.nav button,
.ghost {
  background: transparent;
  color: var(--muted);
  padding: 9px 13px;
}

.primary {
  align-items: center;
  background: var(--brand);
  color: white;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 11px 16px;
}

.primary:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary:disabled {
  background: #a4b5ad;
  cursor: not-allowed;
  transform: none;
}

.ghost:hover,
.nav button:hover {
  background: #fff2df;
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  padding: clamp(30px, 6vw, 74px) clamp(16px, 4vw, 52px) 36px;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: 0;
  margin-bottom: 16px;
}

h3 {
  margin-bottom: 8px;
}

.lead {
  color: #504b43;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.65;
  max-width: 650px;
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-visual {
  background:
    radial-gradient(circle at 20% 18%, rgba(240, 182, 58, 0.48), transparent 28%),
    linear-gradient(140deg, #fef3dc 0%, #ffffff 42%, #e8f7ef 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 475px;
  overflow: hidden;
  position: relative;
}

.phone {
  background: #11100e;
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(30, 22, 16, 0.32);
  height: 555px;
  left: 50%;
  max-height: 94%;
  padding: 12px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -48%) rotate(-3deg);
  width: 295px;
}

.phone-screen {
  background: #fffdfa;
  border-radius: 24px;
  height: 100%;
  overflow: hidden;
}

.phone-hero-image {
  align-items: flex-end;
  background:
    linear-gradient(to top, rgba(18, 14, 9, 0.7), transparent 55%),
    url("assets/pizza-hero.svg") center/cover;
  color: white;
  display: flex;
  height: 170px;
  padding: 16px;
}

.phone-hero-image strong {
  display: block;
  font-size: 1.2rem;
}

.phone-content {
  padding: 14px;
}

.mini-tabs {
  display: flex;
  gap: 7px;
  overflow: hidden;
}

.mini-tabs span {
  background: #f1eee9;
  border-radius: 999px;
  color: #544d44;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 9px;
  white-space: nowrap;
}

.phone-item {
  align-items: center;
  border-bottom: 1px solid #eee6dc;
  display: grid;
  gap: 10px;
  grid-template-columns: 52px 1fr auto;
  padding: 12px 0;
}

.thumb {
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  height: 52px;
  width: 52px;
}

.thumb.diavola,
.product-photo.diavola,
.thumb.recomandarea-bucatarului,
.product-photo.recomandarea-bucatarului {
  background-image: url("assets/pizza-diavola.svg");
}

.thumb.burger,
.product-photo.burger {
  background-image: url("assets/burger.svg");
}

.thumb.limonada,
.product-photo.limonada {
  background-image: url("assets/limonada.svg");
}

.thumb.extra,
.product-photo.extra {
  background-image: url("assets/extra.svg");
}

.thumb.pui,
.product-photo.pui {
  background-image: url("assets/pui.svg");
}

.thumb.peste,
.product-photo.peste {
  background-image: url("assets/peste.svg");
}

.thumb.porc,
.product-photo.porc {
  background-image: url("assets/porc.svg");
}

.thumb.vita,
.product-photo.vita {
  background-image: url("assets/vita.svg");
}

.thumb.paste,
.product-photo.paste {
  background-image: url("assets/paste.svg");
}

.thumb.salata,
.product-photo.salata {
  background-image: url("assets/salata.svg");
}

.thumb.desert,
.product-photo.desert {
  background-image: url("assets/desert.svg");
}

.thumb.ciorba,
.product-photo.ciorba,
.thumb.ciorbe-si-supe-crema,
.product-photo.ciorbe-si-supe-crema {
  background-image: url("assets/ciorba.svg");
}

.thumb.sos,
.product-photo.sos,
.thumb.sosuri,
.product-photo.sosuri {
  background-image: url("assets/sos.svg");
}

.thumb.mic-dejun,
.product-photo.mic-dejun {
  background-image: url("assets/mic-dejun.svg");
}

.thumb.shaorma,
.product-photo.shaorma {
  background-image: url("assets/shaorma.svg");
}

.thumb.platou,
.product-photo.platou,
.thumb.bucate-alese,
.product-photo.bucate-alese {
  background-image: url("assets/platou.svg");
}

.thumb.meniuri,
.product-photo.meniuri {
  background-image: url("assets/meniuri.svg");
}

.thumb.grill-garnituri,
.product-photo.grill-garnituri {
  background-image: url("assets/grill-garnituri.svg");
}

.phone-item b {
  display: block;
  font-size: 0.86rem;
}

.phone-item small {
  color: var(--muted);
}

.price-pill {
  color: var(--brand-dark);
  font-weight: 900;
}

.section {
  padding: 34px clamp(16px, 4vw, 52px);
}

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature,
.panel,
.stat,
.product-card,
.customer-card,
.cart-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(58, 44, 30, 0.07);
}

.feature {
  min-height: 170px;
  padding: 22px;
}

.feature-icon,
.icon-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.feature-icon {
  background: #e7f5ee;
  border-radius: 8px;
  color: var(--brand-dark);
  height: 42px;
  margin-bottom: 16px;
  width: 42px;
}

.feature p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.pricing {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.price {
  font-size: 2rem;
  font-weight: 900;
}

.app-view {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 360px;
  padding: 18px clamp(12px, 3vw, 34px) 92px;
}

.restaurant-hero {
  background:
    linear-gradient(to top, rgba(21, 15, 11, 0.72), rgba(21, 15, 11, 0.06)),
    url("assets/pizza-hero.svg") center/cover;
  border-radius: 8px;
  color: white;
  min-height: 260px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
}

.restaurant-hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: 8px;
}

.status-pill {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  margin: 8px 0 0;
  padding: 8px 12px;
}

.status-pill.open {
  color: var(--brand-dark);
}

.status-pill.closed {
  color: #9d2d1f;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  max-height: 92px;
  overflow: hidden;
  padding-bottom: 0;
}

.menu-sections {
  display: grid;
  gap: 22px;
}

.menu-section {
  scroll-margin-top: 92px;
}

.menu-section h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  margin-bottom: 12px;
}

.chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-weight: 800;
  padding: 9px 13px;
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.product-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  align-items: start;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto auto;
  min-height: 0;
  overflow: visible;
}

.product-photo {
  background-color: #f5e8d7;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  height: 74px;
  margin: 12px;
  min-height: 0;
  width: 74px;
}

.product-body {
  display: contents;
}

.product-body > div:first-child {
  grid-column: 2 / -1;
  padding: 11px 12px;
}

.product-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 1rem;
  margin-bottom: 5px;
}

.product-body .muted {
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.product-card .compact-field {
  grid-column: 1 / -1;
  margin: 0 12px 4px;
}

.product-card:has(.compact-field) .compact-field {
  grid-column: 1 / 3;
  grid-row: 2;
  margin: 0 6px 12px 12px;
}

.serving-pill,
.inline-price {
  background: #f5efe6;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 4px 7px;
}

.inline-price {
  margin-left: 5px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  background: #f5efe6;
  border-radius: 999px;
  color: #675d50;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 4px 7px;
}

.badge.hot {
  background: #fee5df;
  color: #a23020;
}

.badge.green {
  background: #e4f5ed;
  color: #116044;
}

.product-footer {
  align-items: center;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin: 0 12px 12px;
  gap: 10px;
}

.product-card:has(.compact-field) .product-footer {
  grid-column: 3 / -1;
  grid-row: 2;
  justify-content: flex-end;
  margin: 0 12px 12px 0;
}

.product-footer strong:empty {
  display: none;
}

.product-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compact {
  font-size: 0.8rem;
  min-height: 32px;
  padding: 6px 9px;
}

.compact-field select {
  min-height: 34px;
  padding: 7px 10px;
}

.danger {
  color: #a23020;
}

.danger:hover {
  background: #fee5df;
  color: #7e1f14;
}

.import-csv {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.import-csv input {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.add-button {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 0.8rem;
  gap: 5px;
  font-weight: 900;
  justify-content: center;
  min-height: 31px;
  padding: 6px 10px;
  white-space: nowrap;
}

.add-button:disabled {
  background: #a4b5ad;
  cursor: not-allowed;
}

.cart-icon {
  flex: 0 0 auto;
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 15px;
}

.cart-panel {
  align-self: start;
  padding: 16px;
  position: sticky;
  top: 76px;
}

.cart-line {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 12px 0;
}

.qty {
  align-items: center;
  display: flex;
  gap: 8px;
}

.pizza-additions {
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 8px 0;
  padding: 9px;
}

.add-row {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.add-row select {
  min-height: 36px;
}

.addition-line {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  padding-top: 7px;
}

.addition-line span {
  flex: 1 1 auto;
  font-size: 0.86rem;
}

.icon-button {
  background: #f4eee5;
  color: var(--ink);
  height: 34px;
  width: 34px;
}

.total-row {
  align-items: center;
  display: flex;
  font-size: 1.15rem;
  font-weight: 900;
  justify-content: space-between;
  padding: 16px 0;
}

.delivery-box {
  align-items: center;
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.delivery-box p {
  margin-bottom: 0;
}

.checkout-form {
  display: grid;
  gap: 9px;
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.check-field {
  align-items: center;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-weight: 800;
  gap: 10px;
  min-height: 42px;
  padding: 10px 11px;
}

.check-field input {
  min-height: auto;
  width: auto;
}

input,
textarea,
select {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 11px;
  width: 100%;
}

textarea {
  min-height: 78px;
  resize: vertical;
}

.dashboard {
  display: grid;
  gap: 18px;
  padding: 18px clamp(12px, 3vw, 34px) 60px;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.05fr 0.95fr;
}

.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 17px;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.panel {
  padding: 18px;
}

.settings-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weekly-schedule {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 14px;
}

.weekly-schedule h3 {
  margin-bottom: 2px;
}

.schedule-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
}

.schedule-day {
  min-height: 42px;
}

.admin-product,
.order-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 54px 1fr auto;
  padding: 12px 0;
}

.admin-product {
  align-items: flex-start;
  grid-template-columns: 54px 1fr;
}

.admin-product-main {
  display: grid;
  gap: 10px;
}

.admin-product-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.product-edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pizza-variant-editor {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.pizza-variant-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
}

.compact-check {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
}

.admin-product:last-child,
.order-row:last-child {
  border-bottom: 0;
}

.modal-backdrop {
  align-items: center;
  background: rgba(25, 23, 20, 0.52);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 16px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 60;
}

.modal {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 86vh;
  max-width: 620px;
  overflow-y: auto;
  padding: 20px;
  width: 100%;
}

.legal-text {
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3e3932;
  line-height: 1.65;
  padding: 14px;
  white-space: pre-wrap;
}

.qr-card {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 180px 1fr;
}

.qr {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  padding: 10px;
  width: 180px;
}

.customer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-card {
  padding: 14px;
}

.mobile-cart-button {
  bottom: 14px;
  box-shadow: var(--shadow);
  display: none;
  left: 14px;
  position: fixed;
  right: 14px;
  z-index: 30;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .hero,
  .dashboard-grid,
  .app-view {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .cart-panel {
    position: static;
  }

  .stats,
  .pricing,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .nav button {
    flex: 1 1 auto;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .phone {
    height: 430px;
    width: 238px;
  }

  .phone-hero-image {
    height: 128px;
  }

  .product-grid,
  .stats,
  .pricing,
  .grid-3,
  .customer-grid,
  .settings-grid,
  .product-edit-grid,
  .schedule-row,
  .pizza-variant-row,
  .add-row {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 94px minmax(0, 1fr) auto auto;
  }

  .product-photo {
    height: 70px;
    margin: 12px;
    min-height: 0;
    width: 70px;
  }

  .product-footer {
    align-items: center;
    flex-direction: row;
  }

  .product-card:has(.compact-field) .compact-field {
    grid-column: 1 / 3;
    grid-row: 2;
    margin: 0 6px 12px 12px;
    min-width: 0;
  }

  .product-card:has(.compact-field) .product-footer {
    grid-column: 3 / -1;
    grid-row: 2;
    margin: 0 12px 12px 0;
  }

  .product-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .product-card .compact-field span {
    font-size: 0.72rem;
  }

  .product-card .compact-field select {
    font-size: 0.86rem;
    min-height: 33px;
    padding: 6px 8px;
  }

  .product-card .compact {
    font-size: 0.74rem;
    min-height: 31px;
    padding: 6px 7px;
  }

  .product-card .add-button {
    font-size: 0.74rem;
    min-height: 31px;
    padding: 6px 8px;
  }

  .admin-product-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-panel {
    display: none;
  }

  .cart-panel.open {
    bottom: 0;
    display: block;
    left: 0;
    max-height: 82vh;
    overflow-y: auto;
    position: fixed;
    right: 0;
    top: auto;
    z-index: 40;
    border-radius: 8px 8px 0 0;
  }

  .mobile-cart-button {
    display: inline-flex;
  }

  .qr-card {
    grid-template-columns: 1fr;
  }
}
