:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --surface-2: #fff4e3;
  --text: #24170f;
  --muted: #7c6757;
  --brand: #9d4b24;
  --brand-dark: #743516;
  --line: rgba(36, 23, 15, 0.11);
  --shadow: 0 24px 70px rgba(86, 48, 21, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffe7bf, transparent 34%), var(--bg);
  color: var(--text);
}

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

img {
  max-width: 100%;
  display: block;
}

main {
  min-height: 72vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand);
  color: white;
  box-shadow: 0 12px 30px rgba(157, 75, 36, 0.27);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav .cart-link {
  color: var(--text);
  background: rgba(157, 75, 36, 0.08);
}

.cart-link span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 99px;
  background: var(--brand);
  color: white;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 13px;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(42px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.hero h1,
.page-head h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero p,
.page-head p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
}

.hero-actions,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--brand);
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(157, 75, 36, 0.24);
}

.btn.primary {
  background: var(--brand);
}

.btn.secondary {
  background: rgba(157, 75, 36, 0.11);
  color: var(--brand-dark);
}

.btn.danger {
  background: #b42318;
}

.btn.small {
  padding: 9px 13px;
  font-size: 0.84rem;
}

.btn.full {
  width: 100%;
}

.hero-card {
  position: relative;
}

.hero-card img {
  width: 100%;
  height: min(62vw, 560px);
  object-fit: cover;
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.floating-stat {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 260px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.floating-stat strong,
.floating-stat span {
  display: block;
}

.floating-stat span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 72px);
}

.section.narrow,
.narrow {
  max-width: 820px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.category-block h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.menu-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.menu-card img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.menu-card-body {
  padding: 20px;
}

.menu-card h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.menu-card p {
  color: var(--muted);
  line-height: 1.6;
  min-height: 52px;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-row,
.total-row,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-strip div,
.panel,
.empty-state,
.success-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.feature-strip p,
.empty-state p,
.success-card p {
  color: var(--muted);
  line-height: 1.7;
}

.page-head {
  padding: clamp(42px, 6vw, 86px) clamp(18px, 5vw, 72px) 22px;
}

.category-block {
  margin-bottom: 46px;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item span,
small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(157, 75, 36, 0.55);
  box-shadow: 0 0 0 4px rgba(157, 75, 36, 0.09);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 800;
}

.form-card h2 {
  margin-top: 0;
}

.total-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

.clear-cart {
  text-align: center;
  margin-top: 16px;
}

.clear-cart button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.order-summary {
  position: sticky;
  top: 96px;
}

.summary-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.alert {
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 700;
}

.alert p {
  margin: 0;
}

.alert.error {
  background: #fff1f0;
  color: #9f1d16;
}

.alert.success {
  background: #ecfdf3;
  color: #067647;
}

.success-card {
  text-align: center;
}

.success-icon {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 2rem;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 440px);
  padding: 30px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.login-card h1 {
  margin: 26px 0 6px;
  letter-spacing: -0.05em;
}

.login-card p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-body {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  background: #fff7ec;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #24170f;
  color: white;
}

.admin-brand {
  margin-bottom: 24px;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar nav a {
  padding: 13px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.admin-main {
  padding: 28px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.admin-topbar h1 {
  margin: 4px 0 0;
  letter-spacing: -0.05em;
}

.admin-user {
  padding: 10px 14px;
  border-radius: 99px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 900;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 22px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 44px rgba(86, 48, 21, 0.08);
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
}

.panel-head a {
  color: var(--brand);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 0.8rem;
  font-weight: 900;
}

.status.new {
  background: #fff7e8;
  color: #b54708;
}

.status.preparing,
.status.confirmed {
  background: #eff8ff;
  color: #175cd3;
}

.status.ready,
.status.completed {
  background: #ecfdf3;
  color: #067647;
}

.status.cancelled {
  background: #fff1f0;
  color: #b42318;
}

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

.inline-form select {
  min-width: 130px;
  padding: 9px 10px;
  border-radius: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.check-row {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

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

.actions form {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .checkout-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .feature-strip,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-summary {
    position: static;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .cards,
  .feature-strip,
  .admin-stats,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-card img {
    height: 360px;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .inline-form,
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}


.login-note {
  margin-top: 16px;
  font-size: 0.92rem;
}

.login-note a {
  color: var(--brand);
  font-weight: 900;
}

.staff-order-panel {
  max-width: 1120px;
}

.staff-order-top {
  margin-bottom: 4px;
}

.staff-menu-section {
  margin-top: 24px;
}

.staff-menu-section h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

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

.staff-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.staff-menu-item input {
  text-align: center;
  font-weight: 900;
}

.sticky-submit {
  position: sticky;
  bottom: 18px;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

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

.order-ticket {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 44px rgba(86, 48, 21, 0.08);
  overflow: hidden;
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.ticket-head strong {
  font-size: 1.15rem;
}

.ticket-body {
  padding: 16px;
}

.ticket-body p {
  margin: 0 0 10px;
}

.ticket-note {
  color: var(--brand-dark);
  font-weight: 800;
}

.ticket-items {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ticket-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.ticket-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.ticket-actions form {
  margin: 0;
}

.ticket-actions .btn {
  width: 100%;
}

@media (max-width: 1180px) {
  .order-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .staff-menu-item,
  .order-board,
  .ticket-actions {
    grid-template-columns: 1fr;
  }

  .sticky-submit {
    bottom: 10px;
  }
}

/* Staff photo ordering screen */
.staff-photo-order-panel {
  max-width: 1280px;
}

.staff-photo-head {
  align-items: flex-start;
}

.staff-order-toolbar {
  position: sticky;
  top: 12px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(86, 48, 21, 0.08);
}

.staff-photo-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}

.staff-photo-menu-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 28px rgba(86, 48, 21, 0.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.staff-photo-menu-card.is-selected {
  border-color: rgba(157, 75, 36, 0.5);
  box-shadow: 0 14px 34px rgba(157, 75, 36, 0.16);
}

.staff-menu-photo-button {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.staff-menu-photo-button img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.tap-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(36, 23, 15, 0.82);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
}

.staff-photo-menu-body {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.staff-photo-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.staff-photo-title-row h4 {
  margin: 0 0 3px;
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.staff-photo-title-row small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.staff-photo-title-row strong {
  white-space: nowrap;
  color: var(--brand-dark);
  font-size: 0.88rem;
}

.qty-control {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.qty-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.qty-control input {
  height: 34px;
  padding: 6px;
  border-radius: 11px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 900;
}

.item-request-field {
  display: none;
  margin-bottom: 0;
  font-size: 0.78rem;
}

.staff-photo-menu-card.is-selected .item-request-field {
  display: grid;
}

.item-request-field textarea {
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  resize: vertical;
}

.staff-sticky-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.staff-sticky-order .btn {
  min-width: 200px;
}

.item-request-note {
  color: var(--brand-dark);
  font-weight: 800;
}

@media (max-width: 720px) {
  .staff-order-toolbar,
  .staff-sticky-order {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-sticky-order .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .staff-photo-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .staff-menu-photo-button img {
    height: 82px;
  }

  .tap-badge {
    font-size: 0.62rem;
    padding: 4px 7px;
  }

  .staff-photo-menu-body {
    padding: 8px;
  }

  .staff-photo-title-row h4 {
    font-size: 0.86rem;
  }

  .staff-photo-title-row strong {
    font-size: 0.8rem;
  }

  .qty-control {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 5px;
  }

  .qty-btn,
  .qty-control input {
    height: 32px;
  }

  .qty-btn {
    width: 32px;
  }
}
