/* Portion 1 - Southern-modern daily menu (docs/ui-review.md) */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-5);
  padding: 16px 0;
  min-height: 160px;
  background: color-mix(in srgb, var(--color-cream) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-wood-muted) 20%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-lockup {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
}

.brand-lockup-text {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.brand-logo {
  flex: 0 0 auto;
  width: auto;
  height: 144px;
  max-width: 192px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.brand-lockup.logo-hides-name .brand[data-brand-name] {
  /* Visually hidden but kept for a11y / screen readers when the mark includes the name */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-lockup .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  color: var(--color-wood);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}

.brand-lockup .slogan {
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  color: var(--color-burgundy);
  margin: 0;
  line-height: 1.1;
}

/* Quiet role under wordmark - never Caveat (slogan only). */
.brand-lockup .brand-role {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-wood-muted);
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
  height: 46px;
}

.topbar-link {
  height: 40px;
  min-height: 40px;
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.order-btn {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--color-wood);
  color: var(--color-ivory);
  cursor: pointer;
  line-height: 0;
  font-size: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

/* inline-block / absolute children beat the UA [hidden] rule */
.order-btn[hidden],
.pill[hidden] {
  display: none !important;
}

.order-btn:hover {
  background: var(--color-burgundy);
}

.order-btn.bump {
  animation: orderBump 0.28s ease;
}

@keyframes orderBump {
  50% {
    transform: scale(1.12);
  }
}

.order-icon {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  margin: auto;
  display: block;
  pointer-events: none;
}

.order-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-burgundy);
  color: #fff8ee;
  border: 2px solid var(--color-cream);
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.order-count[data-empty="true"] {
  display: none;
}

/* Daily menu intro */
.menu-intro {
  position: relative;
  padding: 26px 28px;
  margin-bottom: var(--space-6);
  background: rgba(255, 248, 238, 0.72);
  border: 1px solid rgba(107, 83, 68, 0.16);
  border-radius: var(--radius-lg);
}

.menu-intro::before {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--color-gold);
}

.menu-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 700;
  color: var(--color-wood);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.menu-intro-day {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: var(--color-wood);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.menu-intro-day[hidden] {
  display: none !important;
}

.menu-intro p {
  margin: 0;
  color: var(--color-wood-muted);
  font-size: 0.94rem;
}

.menu-intro #menu-intro-lede {
  line-height: 1.55;
}

.menu-intro-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(122, 27, 27, 0.12);
  color: var(--color-burgundy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-intro-status::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.menu-intro-status.is-open {
  background: rgba(63, 93, 74, 0.14);
  color: var(--color-sage);
}

.menu-intro-status[hidden] {
  display: none !important;
}

.menu-intro.is-closed {
  border-color: rgba(122, 27, 27, 0.22);
  background: rgba(122, 27, 27, 0.05);
}

.menu-intro.is-closed::before {
  background: var(--color-burgundy);
}

.menu-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-wood);
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.menu-heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--color-border);
}

/* Food-first meal cards */
.product-list {
  display: grid;
  gap: 24px;
}

.product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 46%) minmax(0, 1fr);
  min-height: 360px;
  background: var(--color-card);
  border: 1px solid rgba(107, 83, 68, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 42px rgba(62, 42, 31, 0.11);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 23px 52px rgba(62, 42, 31, 0.15);
  }

  .product:hover .product-photo img {
    transform: scale(1.025);
  }
}

.product.is-sold-out {
  opacity: 0.92;
}

.product.is-sold-out .product-photo img {
  filter: grayscale(0.35) saturate(0.75);
}

.product-photo {
  position: relative;
  margin: 0;
  min-height: 360px;
  background: var(--color-wood);
  overflow: hidden;
}

.product-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 72%, rgba(42, 28, 22, 0.1)),
    linear-gradient(180deg, transparent 76%, rgba(42, 28, 22, 0.08));
}

.product-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
  aspect-ratio: 4 / 3;
}

.product-body {
  padding: 30px 32px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.dish-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.04;
  color: var(--color-wood);
  letter-spacing: -0.025em;
}

.product-desc {
  margin: 15px 0 0;
  color: var(--color-wood-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 35rem;
}

.availability {
  margin: 12px 0 0;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
}

.availability-low {
  background: rgba(201, 162, 39, 0.18);
  color: #7a5f12;
  border: 1px solid rgba(201, 162, 39, 0.45);
}

.availability-sold {
  background: rgba(122, 27, 27, 0.1);
  color: var(--color-burgundy);
  border: 1px solid rgba(122, 27, 27, 0.22);
}

.unit-price {
  margin: 0;
  min-width: 86px;
  padding: 10px 13px 9px;
  border: 1px solid rgba(201, 162, 39, 0.65);
  border-radius: 12px;
  background: var(--color-burgundy);
  box-shadow: 0 5px 13px rgba(92, 18, 18, 0.16);
  font-family: var(--font-display);
  font-size: 1.78rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-ivory);
  text-align: center;
  white-space: nowrap;
}

.unit-price span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, 0.86);
}

.product-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 11px;
  align-items: center;
}

.qty {
  height: 48px;
  display: inline-grid;
  grid-template-columns: 42px 36px 42px;
  align-items: center;
  gap: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.qty button {
  height: 100%;
  min-width: 42px;
  border: 1px solid rgba(107, 83, 68, 0.22);
  border-radius: 10px;
  background: transparent;
  color: var(--color-wood);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.qty button:hover:not(:disabled) {
  background: rgba(122, 27, 27, 0.06);
  border-color: rgba(122, 27, 27, 0.28);
}

.qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty output {
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.product-actions .btn-primary {
  height: 48px;
  min-height: 44px;
  padding: 0 24px;
  box-shadow: 0 5px 12px rgba(92, 18, 18, 0.13);
}

/* Order drawer / bottom sheet */
.order-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(42, 28, 22, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.order-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  padding: 24px;
  background: var(--color-card);
  box-shadow: -20px 0 60px rgba(42, 28, 22, 0.2);
  transform: translateX(105%);
  transition: transform 0.24s ease;
  overflow: auto;
}

body.order-open .order-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.order-open .order-drawer {
  transform: translateX(0);
}

body.order-open {
  overflow: hidden;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--color-wood);
}

.drawer-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--color-cream);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-wood);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.drawer-empty {
  color: var(--color-wood-muted);
  padding: 24px 0;
  margin: 0;
}

.drawer-lines {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.drawer-lines li,
.drawer-line {
  display: grid;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.drawer-line-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
}

.drawer-lines strong,
.drawer-line-main strong {
  font-family: var(--font-display);
  color: var(--color-wood);
}

.drawer-line-total {
  color: var(--color-burgundy);
}

.drawer-lines .meta {
  grid-column: 1 / -1;
  color: var(--color-wood-muted);
  font-size: 0.84rem;
}

.drawer-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.drawer-qty {
  transform: scale(0.92);
  transform-origin: left center;
}

.drawer-remove {
  height: 36px;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  color: var(--color-burgundy);
}

.drawer-summary {
  margin-top: 8px;
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 24px 0 14px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-wood);
}

.drawer-total strong {
  font-size: 1.7rem;
  color: var(--color-burgundy);
}

.drawer-identity {
  margin: 0.35rem 0 0.15rem;
  padding-bottom: 0.35rem;
}

.drawer-identity-lede {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-wood);
}

.drawer-identity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0;
}

@media (max-width: 420px) {
  .drawer-identity-row {
    grid-template-columns: 1fr;
  }
}

.drawer-optional {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-wood-muted);
}

.drawer-note {
  display: block;
  margin: 0.85rem 0 0;
}

.drawer-note span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-wood);
  margin-bottom: 0.35rem;
}

.drawer-note input {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: #fffaf3;
  color: var(--color-ink);
}

.drawer-note input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.drawer-checkout {
  width: 100%;
  min-height: 50px;
}

.drawer-pay-reassure {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--color-wood);
  line-height: 1.45;
}

.drawer-pay-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--color-wood-muted);
  line-height: 1.4;
}

.drawer-error {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(122, 27, 27, 0.08);
  border: 1px solid rgba(122, 27, 27, 0.2);
  color: var(--color-burgundy);
  font-size: 0.88rem;
}

.drawer-paid {
  margin-top: 0.5rem;
  padding: 1.1rem 0 0.25rem;
}

.drawer-paid-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-wood);
}

.drawer-paid-copy {
  margin: 0 0 1.1rem;
  color: var(--color-wood-muted);
  line-height: 1.45;
}

.drawer-paid .btn {
  width: 100%;
}

/* Phone / tablet / desktop layout overrides: layout-*.css (see layout-map.json) */
