:root {
  --bg: #f7f7f8;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e5e7eb;
  --panel: #ffffff;
  --accent: #ea1d2c;
  --accent-2: #b42318;
  --warm: #ffe8e8;
  --success: #0f9f6e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 0 16px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  padding: 0 16px;
}

button:hover {
  filter: brightness(0.95);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.brand small,
.eyebrow,
.muted {
  color: var(--muted);
}

.brand span:last-child {
  display: grid;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
}

.nav a.active {
  background: #fff1f2;
  color: var(--accent);
}

main {
  padding: clamp(18px, 4vw, 48px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
  min-height: 360px;
}

.hero h1,
.workspace h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
}

.delivery-store {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  box-shadow: 0 12px 36px rgba(31, 41, 51, 0.07);
}

.store-cover {
  min-height: 210px;
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.72), rgba(234, 29, 44, 0.28)),
    url("https://images.unsplash.com/photo-1568901346375-23c9450c58cd?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
}

.store-profile {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: 0 clamp(16px, 4vw, 30px) 24px;
}

.store-logo {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-top: -46px;
  border: 5px solid white;
  border-radius: 18px;
  background: var(--accent);
  color: white;
  font-size: 2.5rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.18);
}

.store-copy {
  display: grid;
  gap: 6px;
}

.store-status {
  width: fit-content;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--success);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.store-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.store-copy p {
  margin: 0;
  color: var(--muted);
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.store-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.menu-searchbar {
  position: sticky;
  top: 69px;
  z-index: 9;
  margin: 0 -4px 18px;
  padding: 10px 4px;
  background: rgba(247, 247, 248, 0.92);
  backdrop-filter: blur(12px);
}

.menu-searchbar label {
  display: block;
}

.menu-searchbar span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.menu-searchbar input {
  min-height: 52px;
  border-radius: 999px;
  border-color: transparent;
  background: white;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.08);
  padding-inline: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 900;
}

.cart-panel,
.product-card,
.column,
.order-card,
.metric-grid > div,
.insights,
.api-list code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-panel {
  width: min(440px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 112px));
  overflow: auto;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(31, 41, 51, 0.24);
}

.cart-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 8px 18px 8px 10px;
  box-shadow: 0 18px 50px rgba(31, 41, 51, 0.28);
}

.cart-fab-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--ink);
  font-size: 1.2rem;
}

.cart-fab span:last-child {
  display: grid;
  gap: 1px;
  text-align: left;
}

.cart-fab small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end;
  padding: 18px;
  background: rgba(31, 41, 51, 0.42);
  backdrop-filter: blur(4px);
}

.cart-overlay[hidden] {
  display: none;
}

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

.cart-close {
  width: 36px;
  min-height: 36px;
  border-radius: 999px;
  background: var(--ink);
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.panel-title,
.totals,
.product-action,
.section-head,
.order-top,
.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title h2,
.category-band h2,
.column h2,
.subhead {
  margin: 0;
}

.panel-title span {
  border-radius: 999px;
  background: #fff1f2;
  color: var(--accent);
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cart-items.empty {
  color: var(--muted);
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-line > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-line-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cart-line-main span {
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-line button {
  width: 32px;
  min-height: 32px;
  padding: 0;
}

.totals {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 1.1rem;
}

.order-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  color: var(--ink);
}

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

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  color: var(--ink);
}

label span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  background: var(--ink);
}

.auth-shell {
  display: grid;
  min-height: 62vh;
  place-items: center;
}

.auth-card,
.access-panel,
.admin-form,
.admin-record {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-card {
  display: grid;
  width: min(100%, 460px);
  gap: 12px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.08);
}

.business-register-card {
  width: min(100%, 620px);
}

.auth-card h1 {
  margin: 0;
}

.auth-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.auth-card label,
.admin-form,
.admin-record {
  display: grid;
  gap: 10px;
}

.alert {
  border-left: 4px solid var(--accent);
  background: #e7f4f1;
  padding: 12px 14px;
  color: var(--ink);
}

.menu-grid,
.workspace {
  display: grid;
  gap: 28px;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.menu-toolbar {
  position: sticky;
  top: 143px;
  z-index: 8;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 10px 0;
  background: rgba(247, 247, 248, 0.92);
  backdrop-filter: blur(12px);
}

.menu-toolbar h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.category-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.category-filters button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.category-band {
  display: grid;
  gap: 14px;
}

.category-band[hidden] {
  display: none;
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-title span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  min-height: 154px;
  padding: 16px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.1);
}

.product-badge {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 29, 44, 0.12), rgba(31, 41, 51, 0.08)),
    #fff;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 900;
}

.product-image {
  object-fit: cover;
}

.product-copy span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.product-card p,
.order-card p {
  color: var(--muted);
}

.product-card p {
  margin: 0;
  line-height: 1.45;
}

.product-copy small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-action strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.product-action button {
  min-width: 118px;
}

.delivery-product .product-action {
  grid-column: 2;
  align-self: end;
}

.section-head {
  align-items: end;
}

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

.column {
  min-height: 320px;
  padding: 14px;
}

.column h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}

.column h2 span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #efe8d8;
}

.order-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.order-card ul {
  margin: 0;
  padding-left: 18px;
}

.order-actions button:last-child {
  background: var(--accent-2);
}

.courier-row,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.courier-row span {
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  background: #e7f4f1;
}

.metric-grid > div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-grid span {
  color: var(--muted);
}

.metric-grid strong {
  font-size: 2rem;
}

.insights {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.insights:empty {
  display: none;
}

.management-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.management-shortcuts a {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.06);
}

.management-shortcuts strong {
  font-size: 1.08rem;
}

.management-shortcuts span {
  color: var(--muted);
}

.orders-table {
  display: grid;
  gap: 8px;
}

.access-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.access-panel h2,
.admin-form h2 {
  margin: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.table-only-grid {
  grid-template-columns: 1fr;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-form {
  position: sticky;
  top: 92px;
  align-self: start;
  border-width: 0 1px 0 0;
  border-radius: 0;
  padding: 18px;
}

.admin-form label {
  display: grid;
  gap: 7px;
}

.admin-form button,
.admin-record button {
  justify-self: start;
}

.table-card {
  min-width: 0;
  padding: 18px;
}

.table-avatar,
.table-product-img {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff1f2;
  color: var(--accent);
  font-weight: 900;
}

.table-avatar {
  border-radius: 999px;
}

.table-product-img {
  width: 58px;
  height: 46px;
}

.admin-data-table {
  width: 100%;
}

.datatable-fallback {
  border-collapse: collapse;
}

.datatable-fallback th,
.datatable-fallback td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.admin-data-table td strong {
  display: block;
}

.admin-data-table td small {
  display: block;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.table-action {
  min-height: 34px;
  border-radius: 999px;
  background: var(--ink);
  font-size: 0.86rem;
  padding: 0 13px;
}

.dt-container {
  color: var(--ink);
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white !important;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 41, 51, 0.5);
  backdrop-filter: blur(4px);
}

.modal-shell[hidden] {
  display: none;
}

.modal-card {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 24px 70px rgba(31, 41, 51, 0.28);
}

.modal-card label {
  display: grid;
  gap: 7px;
}

.product-modal-card .wide {
  grid-column: 1 / -1;
}

.product-modal-card {
  width: min(760px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-modal-card .modal-head,
.product-modal-card [type="submit"],
.product-modal-card .upload-preview {
  grid-column: 1 / -1;
}

.inline-master-form {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(86px, auto) minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 520px;
}

.inline-master-form input,
.inline-master-form select {
  min-height: 38px;
  padding: 8px 10px;
}

.business-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.business-settings-form label {
  display: grid;
  gap: 7px;
}

.business-settings-form .wide,
.business-settings-form button,
.business-settings-form .upload-preview {
  grid-column: 1 / -1;
}

input[type="color"] {
  min-height: 44px;
  padding: 4px;
}

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

.modal-head h2 {
  margin: 0;
}

.modal-close {
  width: 38px;
  min-height: 38px;
  border-radius: 999px;
  background: var(--ink);
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.upload-preview img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-stats div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 800;
}

.admin-stats strong {
  font-size: 1.8rem;
}

.product-admin-form textarea,
.product-row textarea {
  min-height: 74px;
}

.users-list,
.admin-list,
.admin-table-list {
  display: grid;
  gap: 0;
}

.admin-record {
  display: grid;
  gap: 14px;
  border-width: 0 0 1px 0;
  border-radius: 0;
  padding: 18px;
}

.admin-record:last-child {
  border-bottom: 0;
}

.record-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-title div {
  display: grid;
  gap: 4px;
}

.record-title strong {
  font-size: 1.05rem;
}

.record-title span,
.admin-record small,
.field-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.record-title em {
  border-radius: 999px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  padding: 5px 10px;
}

.status-on {
  background: #ecfdf3;
  color: var(--success);
}

.status-off {
  background: #f3f4f6;
  color: var(--muted);
}

.record-fields {
  display: grid;
  gap: 10px;
}

.record-fields label {
  display: grid;
  gap: 6px;
}

.user-record-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 180px 90px;
}

.product-record-fields {
  grid-template-columns: 150px minmax(180px, 1fr) minmax(220px, 1.2fr) 120px 90px 90px;
}

.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-chips .check,
.admin-form .permission-list .check {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  padding: 7px 10px;
  font-size: 0.86rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.check input {
  width: auto;
}

.user-row small {
  color: var(--muted);
}

.product-row small {
  color: var(--muted);
}

.order-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px 140px 180px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.api-list {
  display: grid;
  gap: 10px;
}

.api-list code {
  display: block;
  padding: 14px;
  overflow-wrap: anywhere;
}

.loading {
  color: var(--muted);
  padding: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.24);
}

@media (max-width: 860px) {
  .topbar,
  .section-head,
  .menu-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero,
  .kanban {
    grid-template-columns: 1fr;
  }

  .cart-overlay {
    place-items: end center;
    padding: 12px;
  }

  .cart-panel {
    width: 100%;
    max-height: calc(100vh - 96px);
  }

  .cart-fab {
    left: 12px;
    right: 12px;
    justify-content: flex-start;
  }

  .category-filters {
    justify-content: flex-start;
  }

  .store-profile {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .store-logo {
    width: 72px;
    height: 72px;
    margin-top: -36px;
    border-radius: 14px;
    font-size: 2rem;
  }

  .menu-searchbar,
  .menu-toolbar {
    position: static;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .order-row {
    grid-template-columns: 1fr;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .admin-form {
    position: static;
    border-width: 0 0 1px 0;
  }

  .user-record-fields,
  .product-record-fields,
  .product-row,
  .business-settings-form {
    grid-template-columns: 1fr;
  }

  .product-row small,
  .product-row button {
    grid-column: auto;
  }

  .product-modal-card,
  .inline-master-form {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

/* App polish: denser typography, clearer surfaces and mobile-first ergonomics. */
:root {
  --bg: #f4f5f7;
  --ink: #171a1f;
  --muted: #667085;
  --line: #e6e8ec;
  --panel: #ffffff;
  --soft-panel: #fbfbfc;
  --accent-2: #9f1239;
  --success: #12805c;
}

body {
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
.action-link {
  min-height: 38px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(234, 29, 44, 0.14);
}

input,
textarea,
select {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

textarea {
  min-height: 76px;
}

.topbar {
  gap: 18px;
  padding: 10px clamp(14px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(20, 24, 31, 0.05);
}

.brand-mark {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  font-size: 0.76rem;
}

.nav {
  gap: 4px;
}

.nav a {
  padding: 8px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 30px);
}

.hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-height: auto;
}

.hero h1,
.workspace h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  font-weight: 800;
}

.hero p {
  font-size: 0.98rem;
}

.section-head {
  align-items: center;
  padding-bottom: 4px;
}

.section-subtitle {
  max-width: 680px;
  font-size: 0.92rem;
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 0.7rem;
  color: var(--accent);
}

.delivery-store {
  margin-bottom: 14px;
  box-shadow: 0 14px 38px rgba(20, 24, 31, 0.08);
}

.store-cover {
  min-height: 148px;
}

.store-profile {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 0 clamp(14px, 3vw, 22px) 18px;
}

.store-logo {
  width: 76px;
  height: 76px;
  margin-top: -38px;
  border-radius: 8px;
  font-size: 2rem;
}

.store-copy h1 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.store-meta span,
.store-status,
.panel-title span {
  padding: 5px 9px;
  font-size: 0.76rem;
}

.menu-searchbar {
  top: 56px;
  margin-bottom: 12px;
}

.menu-searchbar input {
  min-height: 46px;
  box-shadow: 0 8px 20px rgba(20, 24, 31, 0.07);
}

.category-filters {
  gap: 8px;
  padding-bottom: 4px;
}

.category-filters button {
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.84rem;
  box-shadow: none;
}

.product-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.product-card {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  min-height: 136px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(20, 24, 31, 0.04);
}

.product-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 14px 34px rgba(20, 24, 31, 0.08);
}

.product-badge,
.product-photo {
  width: 88px;
  height: 88px;
  border-radius: 8px;
}

.product-card h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.product-card p {
  font-size: 0.86rem;
  line-height: 1.38;
}

.product-copy small {
  margin-top: 6px;
  font-size: 0.78rem;
}

.product-action {
  gap: 10px;
}

.product-action strong {
  font-size: 1.04rem;
}

.product-action button {
  min-width: 92px;
  min-height: 34px;
  padding: 0 12px;
}

.cart-fab {
  min-height: 52px;
  padding: 7px 16px 7px 8px;
}

.cart-fab-icon {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.cart-panel {
  width: min(410px, calc(100vw - 24px));
  padding: 16px;
}

.workspace {
  gap: 18px;
}

.metric-grid > div,
.admin-stats div,
.access-panel,
.table-card,
.column,
.order-card,
.modal-card {
  box-shadow: 0 10px 28px rgba(20, 24, 31, 0.05);
}

.metric-grid > div,
.admin-stats div {
  padding: 14px;
}

.metric-grid strong,
.admin-stats strong {
  font-size: 1.35rem;
}

.kanban {
  gap: 12px;
}

.column {
  min-height: 260px;
  padding: 12px;
  background: var(--soft-panel);
}

.order-card {
  gap: 8px;
  padding: 12px;
  background: white;
}

.panel-head h2,
.modal-head h2,
.category-band h2,
.column h2,
.subhead {
  font-size: 1.05rem;
}

.admin-data-table,
.dt-container {
  font-size: 0.88rem;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  min-height: 36px;
  padding: 7px 9px;
}

.modal-card {
  gap: 10px;
  padding: 16px;
}

@media (max-width: 860px) {
  body {
    font-size: 13.5px;
  }

  main {
    padding: 12px;
  }

  .topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    white-space: nowrap;
  }

  .store-cover {
    min-height: 118px;
  }

  .store-profile {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .store-logo {
    width: 64px;
    height: 64px;
    margin-top: -32px;
    font-size: 1.6rem;
  }

  .product-card {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 122px;
  }

  .product-badge,
  .product-photo {
    width: 76px;
    height: 76px;
  }

.cart-fab {
    bottom: 10px;
    min-height: 50px;
  }
}

.pricing-page {
  display: grid;
  gap: 22px;
}

.pricing-hero {
  display: grid;
  gap: 16px;
  min-height: 360px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(23, 26, 31, 0.92), rgba(234, 29, 44, 0.72)),
    url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: white;
  padding: clamp(24px, 6vw, 72px);
  box-shadow: 0 18px 48px rgba(20, 24, 31, 0.16);
}

.pricing-hero .eyebrow {
  color: #ffd9de;
}

.pricing-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
}

.pricing-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
}

.pricing-actions,
.pricing-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: white;
  font-weight: 800;
  padding: 0 16px;
}

.pricing-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(20, 24, 31, 0.05);
}

.pricing-summary span {
  flex: 1 1 210px;
  border-radius: 8px;
  background: var(--soft-panel);
  color: var(--muted);
  font-weight: 800;
  padding: 12px;
}

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

.pricing-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(20, 24, 31, 0.06);
}

.pricing-card.featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 18px 42px rgba(234, 29, 44, 0.14);
}

.pricing-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
}

.plan-label {
  margin-bottom: 8px !important;
  color: var(--accent) !important;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: end;
  gap: 6px;
}

.plan-price strong {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.plan-price span,
.price-note {
  color: var(--muted);
  font-weight: 800;
}

.plan-price.compact strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.pricing-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  display: flex;
  gap: 8px;
  color: #344054;
}

.pricing-card li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.discount-badge {
  width: fit-content;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 6px 10px;
}

.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  padding: 0 16px;
}

.plan-button.secondary {
  background: var(--ink);
}

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

@media (max-width: 860px) {
  .pricing-hero {
    min-height: 430px;
    padding: 22px;
  }

  .pricing-hero h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }
}
