.header-brand {
  min-width: 0;
  flex: 0 1 auto;
}
@view-transition {
  navigation: auto;
}
.order-header {
  view-transition-name: menu-header;
}
::view-transition-group(root) {
  animation-duration: 160ms;
  animation-timing-function: ease-out;
}
::view-transition-group(menu-header) {
  animation: none;
}
::view-transition-old(root) {
  animation: none;
  opacity: 1;
  mix-blend-mode: normal;
}
::view-transition-old(menu-header) {
  animation: none;
  opacity: 0;
}
::view-transition-new(root) {
  animation: menu-page-reveal 160ms ease-out both;
  mix-blend-mode: normal;
}
::view-transition-new(menu-header) {
  animation: none;
  opacity: 1;
  mix-blend-mode: normal;
}
@keyframes menu-page-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.category-nav:empty:not([aria-busy="true"]) {
  display: none;
}
.header-scroll-spacer {
  height: 0;
  pointer-events: none;
}
html.header-layout-changing body {
  overflow-anchor: none;
}
.category-nav-frame {
  position: relative;
  min-width: 0;
}
.category-nav-frame::before,
.category-nav-frame::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 1px;
  bottom: 0;
  width: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.category-nav-frame::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}
.category-nav-frame::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}
.category-nav-frame.has-more-start::before,
.category-nav-frame.has-more-end::after {
  opacity: 1;
}
.category-nav-frame:focus-within::before,
.category-nav-frame:focus-within::after {
  opacity: 0;
}
.menu-label-compact {
  display: none;
}
.holiday-menu-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  margin-right: auto;
  margin-left: 1.5rem;
  border: 1px solid #E1D9CC;
  border-radius: 14px;
  background: var(--bg-warm);
}
.holiday-mode-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.holiday-mode-button:hover {
  color: var(--color-sage);
  background: #F0EBE2;
}
.holiday-mode-button.active {
  color: #fff;
  background: var(--color-sage);
  border-color: var(--color-sage);
  box-shadow: 0 2px 5px rgba(45, 90, 39, 0.15);
}
.holiday-menu-slider {
  display: none;
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--menu-slider-width, 0px);
  transform: translateX(var(--menu-slider-x, 4px));
  border-radius: 10px;
  background: var(--color-sage);
  box-shadow: 0 2px 5px rgba(45, 90, 39, 0.15);
  pointer-events: none;
}
.holiday-menu-switch.slider-ready .holiday-menu-slider {
  display: block;
}
.holiday-menu-switch.slider-animate .holiday-menu-slider {
  transition: transform 240ms cubic-bezier(0.25, 0.8, 0.25, 1), width 240ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
.holiday-menu-switch.slider-ready .holiday-mode-button.active {
  color: var(--text-secondary);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.holiday-menu-switch.slider-ready[data-slider-menu="regular"] [data-order-mode="regular"],
.holiday-menu-switch.slider-ready[data-slider-menu="thanksgiving"] [data-order-mode="thanksgiving"] {
  color: #fff;
  background: transparent;
}
.holiday-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.4rem;
  border: 1px solid #cbdac7;
  border-radius: var(--radius-md);
  background: var(--color-sage-light);
}
.holiday-callout > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
}
.holiday-callout h2 {
  margin: 0;
  color: var(--color-sage);
  font-size: 1.1rem;
  line-height: 1.3;
}
.holiday-callout p {
  margin: 0;
  max-width: 48rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.holiday-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.holiday-button:hover {
  background: var(--color-primary-hover);
}
.holiday-callout .holiday-button {
  min-height: 44px;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #bdceb8;
  background: transparent;
  color: var(--color-sage);
  font-size: 0.8rem;
}
.holiday-callout .holiday-button:hover {
  background: rgba(255, 255, 255, 0.65);
}
.holiday-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid #cbdac7;
  border-radius: var(--radius-md);
  background: var(--color-sage-light);
}
.holiday-rules[hidden],
.holiday-callout[hidden] {
  display: none;
}
.holiday-rules strong,
.holiday-rules span {
  display: block;
}
.holiday-rules strong {
  font-size: 0.86rem;
  color: var(--color-sage);
}
.holiday-rules span {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.holiday-mode-button:focus-visible,
.holiday-button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.holiday-mode-button, .holiday-button { text-decoration: none; }
.holiday-menu-empty { padding: 1.5rem 0 3rem; color: var(--text-secondary); }
.holiday-menu-empty h2 { color: var(--color-sage); font-family: var(--font-serif); }
#ordering-status-banner.thanksgiving-open { background: var(--color-sage-light); border-color: #cbdac7; color: var(--color-sage); }
@media (max-width: 1100px) {
  .holiday-menu-switch { margin-left: 0.65rem; }
  .holiday-mode-button { padding-right: 0.85rem; padding-left: 0.85rem; font-size: 0.9rem; }
}
@media (max-width: 900px) {
  .header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem 0.75rem;
    padding-bottom: 0.75rem;
  }
  .header-brand { grid-column: 1; grid-row: 1; }
  .header-brand .brand-group { min-height: 44px; }
  .header-actions {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }
  .holiday-menu-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    min-width: 0;
    margin: 0;
  }
  .holiday-mode-button {
    min-width: 0;
    padding: 0.55rem 0.5rem;
    font-size: 0.84rem;
  }
  .order-header.is-compact .header-top {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0.5rem;
    padding: 0.4rem 0;
  }
  .order-header.is-compact .header-brand {
    display: none;
  }
  .order-header.is-compact .holiday-menu-switch {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  }
  .order-header.is-compact .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .order-header.is-compact .menu-label-full {
    display: none;
  }
  .order-header.is-compact .menu-label-compact {
    display: inline;
  }
  .order-header.is-compact .holiday-mode-button {
    font-size: 0.8rem;
  }
  .order-header.is-compact .cart-toggle-btn {
    position: relative;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .order-header.is-compact .cart-toggle-btn > span:not(.cart-badge-count) {
    display: none;
  }
  .order-header.is-compact .cart-badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 19px;
    height: 19px;
    border: 2px solid var(--bg-surface);
    background: #fff;
    color: var(--color-primary);
    font-size: 0.65rem;
  }
  .order-header.is-compact .category-nav {
    min-height: 46px;
    padding: 0.25rem 0;
  }
  .order-header.is-compact .ordering-status-banner {
    margin-bottom: 0.45rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.72rem;
    line-height: 1.35;
  }
}
@media (max-width: 768px) {
  .holiday-callout { gap: 0.75rem; padding: 0.7rem 0.85rem; }
  .holiday-callout > div { display: block; }
  .holiday-callout h2 { margin-bottom: 0.2rem; font-size: 1rem; }
  .holiday-callout p { font-size: 0.76rem; line-height: 1.4; }
  .holiday-callout .holiday-button { padding-inline: 0.65rem; font-size: 0.76rem; }
  .holiday-rules { grid-template-columns: 1fr; gap: .8rem; padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .holiday-menu-slider,
  .holiday-mode-button,
  .category-nav-frame::before,
  .category-nav-frame::after {
    transition: none !important;
  }
}
