/* =========================================================
   DGLT CUSTOMER ORDERING PAGE
   File: css/order.css
========================================================= */

:root {
  --order-red: #d80b12;
  --order-deep-red: #b90008;
  --order-dark-red: #940006;
  --order-black: #1b1b1b;
  --order-white: #fffdfa;
  --order-paper: #f7f3ec;
  --order-muted: #5d5d5d;
  --order-light-muted: #8b8b8b;
  --order-border: rgba(216, 11, 18, 0.22);
  --order-soft-border: rgba(27, 27, 27, 0.12);
  --order-card-shadow: 0 7px 20px rgba(27, 27, 27, 0.07);
  --order-strong-shadow: 0 18px 48px rgba(27, 27, 27, 0.15);
  --order-radius-small: 9px;
  --order-radius-medium: 13px;
  --order-radius-large: 22px;
  --order-transition: 180ms ease;
}

/* =========================================================
   PAGE FOUNDATION
========================================================= */

.order-page {
  min-height: 100vh;
  margin: 0;
  color: var(--order-black);
  background:
    linear-gradient(
      180deg,
      #fffdfa 0%,
      #f7f3ec 100%
    );
}

.order-page,
.order-page button,
.order-page input,
.order-page select,
.order-page textarea {
  font-family:
    "Montserrat",
    "Segoe UI",
    Arial,
    sans-serif;
}

.order-page *,
.order-page *::before,
.order-page *::after {
  box-sizing: border-box;
}

.order-page button,
.order-page input,
.order-page select,
.order-page textarea {
  font: inherit;
}

.order-page button {
  cursor: pointer;
}

.order-page button:disabled {
  cursor: not-allowed;
}

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

.order-page a {
  color: inherit;
  text-decoration: none;
}

.order-page [hidden] {
  display: none !important;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.order-page button:focus-visible,
.order-page a:focus-visible,
.order-page input:focus-visible,
.order-page select:focus-visible,
.order-page textarea:focus-visible {
  outline: 3px solid rgba(216, 11, 18, 0.24);
  outline-offset: 3px;
}

/* =========================================================
   HEADER
========================================================= */

.order-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns:
    auto
    1fr
    auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 68px;
  padding:
    7px
    clamp(18px, 4vw, 62px);
  background: rgba(255, 253, 250, 0.97);
  border-bottom: 1px solid var(--order-soft-border);
  box-shadow: 0 5px 18px rgba(27, 27, 27, 0.05);
  backdrop-filter: blur(14px);
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  width: auto;
  height: 45px;
  object-fit: contain;
}

.header-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 38px);
}

.header-navigation a {
  position: relative;
  padding: 8px 0;
  color: var(--order-black);
  font-size: 0.87rem;
  font-weight: 700;
  transition: color var(--order-transition);
}

.header-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 3px;
  background: var(--order-red);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--order-transition);
}

.header-navigation a:hover,
.header-navigation a.active {
  color: var(--order-red);
}

.header-navigation a:hover::after,
.header-navigation a.active::after {
  transform: scaleX(1);
}

.header-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 13px;
  color: var(--order-white);
  background: var(--order-red);
  border: 0;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 7px 17px rgba(216, 11, 18, 0.18);
  transition:
    background var(--order-transition),
    transform var(--order-transition);
}

.header-cart-button:hover {
  background: var(--order-deep-red);
  transform: translateY(-1px);
}

.header-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  color: var(--order-red);
  background: var(--order-white);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.order-main {
  width:
    min(
      1680px,
      calc(100% - 24px)
    );
  margin: 0 auto;
  padding: 24px 0 65px;
}

/* =========================================================
   HERO
========================================================= */

.order-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(280px, 0.75fr);
  align-items: center;
  gap: 34px;
  margin-bottom: 24px;
  padding: clamp(28px, 4vw, 50px);
  color: var(--order-white);
  background:
    linear-gradient(
      135deg,
      rgba(27, 27, 27, 0.98),
      rgba(73, 5, 8, 0.96)
    );
  border-radius: var(--order-radius-large);
  box-shadow: var(--order-strong-shadow);
}

.order-hero::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: rgba(216, 11, 18, 0.24);
  border-radius: 50%;
}

.order-hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: 35%;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.order-hero-content,
.order-hero-summary {
  position: relative;
  z-index: 1;
}

.page-label {
  margin: 0 0 10px;
  color: #ffb5b8;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.order-hero h1 {
  max-width: 750px;
  margin: 0 0 15px;
  font-size: clamp(2.05rem, 4.5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.order-hero-description {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 253, 250, 0.82);
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  line-height: 1.65;
}

.order-hero-summary {
  display: grid;
  gap: 12px;
}

.order-hero-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--order-radius-medium);
  backdrop-filter: blur(8px);
}

.order-hero-summary-item > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(216, 11, 18, 0.22);
  border-radius: 50%;
  color: var(--order-white);
}

.ui-line-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-hero-summary-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.order-hero-summary-item p {
  margin: 0;
  color: rgba(255, 253, 250, 0.68);
  font-size: 0.74rem;
  line-height: 1.45;
}

/* =========================================================
   ORDERING LAYOUT
========================================================= */

.ordering-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    300px;
  align-items: start;
  gap: 16px;
}

.ordering-menu-column {
  min-width: 0;
}

/* =========================================================
   CONTROL CARDS
========================================================= */

.order-control-card {
  margin-bottom: 15px;
  padding: clamp(16px, 2vw, 22px);
  background: var(--order-white);
  border: 1px solid var(--order-soft-border);
  border-radius: var(--order-radius-medium);
  box-shadow: var(--order-card-shadow);
}

.order-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.order-section-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}

.order-step-label {
  margin: 0;
  color: var(--order-red);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.required-label,
.menu-result-count {
  flex-shrink: 0;
  padding: 5px 8px;
  color: var(--order-red);
  background: rgba(216, 11, 18, 0.08);
  border: 1px solid rgba(216, 11, 18, 0.15);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
}

.order-field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 800;
}

.order-select {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 13px;
  color: var(--order-black);
  background: var(--order-white);
  border: 1px solid rgba(27, 27, 27, 0.2);
  border-radius: var(--order-radius-small);
  font-size: 0.78rem;
  font-weight: 650;
}

.order-select:focus {
  border-color: var(--order-red);
  box-shadow: 0 0 0 4px rgba(216, 11, 18, 0.08);
  outline: none;
}

.order-field-help {
  margin: 8px 0 0;
  color: var(--order-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

/* =========================================================
   SEARCH
========================================================= */

.menu-search-wrapper {
  position: relative;
  margin-bottom: 13px;
}

.menu-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.menu-search-icon svg {
  width: 17px;
  height: 17px;
}

.menu-search-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 43px;
  color: var(--order-black);
  background: var(--order-paper);
  border: 1px solid transparent;
  border-radius: var(--order-radius-small);
  font-size: 0.78rem;
}

.menu-search-input:focus {
  background: var(--order-white);
  border-color: var(--order-red);
  box-shadow: 0 0 0 4px rgba(216, 11, 18, 0.08);
  outline: none;
}

/* =========================================================
   CATEGORY FILTERS
========================================================= */

.order-category-filters {
  display: grid;
  gap: 18px;
}

.category-picker-label {
  margin: 0 0 9px;
  color: var(--order-black);
  font-size: 0.74rem;
  font-weight: 850;
}

.category-picker-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px;
  color: var(--order-muted);
  background: var(--order-paper);
  border: 1px dashed var(--order-soft-border);
  border-radius: var(--order-radius-small);
  font-size: 0.72rem;
}

.order-category-group {
  display: grid;
  gap: 9px;
}

.order-category-group + .order-category-group {
  padding-top: 16px;
  border-top: 1px solid var(--order-soft-border);
}

.order-category-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.order-category-group-header h3 {
  margin: 0;
  color: var(--order-black);
  font-size: 0.78rem;
  font-weight: 900;
}

.order-category-group-header p {
  margin: 0;
  color: var(--order-muted);
  font-size: 0.61rem;
  text-align: right;
}

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

.order-category-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 68px;
  padding: 10px;
  color: var(--order-black);
  text-align: left;
  background: var(--order-white);
  border: 1px solid var(--order-soft-border);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(27, 27, 27, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.order-category-button:hover {
  color: var(--order-red);
  border-color: rgba(216, 11, 18, 0.22);
  transform: translateY(-1px);
}

.order-category-button.active {
  color: var(--order-white);
  background: var(--order-red);
  border-color: var(--order-red);
  box-shadow: 0 8px 18px rgba(216, 11, 18, 0.2);
}

.order-category-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--order-paper);
  border-radius: 10px;
  color: var(--order-red);
}

.order-category-button.active .order-category-icon {
  color: var(--order-white);
  background: rgba(255, 255, 255, 0.16);
}

.order-category-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-category-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.order-category-copy strong {
  font-size: 0.67rem;
  line-height: 1.2;
}

.order-category-copy small {
  color: var(--order-muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.order-category-button.active .order-category-copy small {
  color: rgba(255, 255, 255, 0.78);
}

.active-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 13px;
  padding: 0 2px;
}

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

.active-category-eyebrow {
  margin: 0 0 3px;
  color: var(--order-red);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.active-category-heading h3 {
  margin: 0;
  font-size: 1.18rem;
}

.active-category-heading > p {
  margin: 0;
  color: var(--order-muted);
  font-size: 0.66rem;
  line-height: 1.4;
  text-align: right;
}

/* =========================================================
   MENU STATUS
========================================================= */

.menu-status-message {
  margin-bottom: 13px;
  padding: 11px 14px;
  color: var(--order-muted);
  background: var(--order-white);
  border: 1px solid var(--order-soft-border);
  border-radius: var(--order-radius-small);
  font-size: 0.76rem;
  line-height: 1.45;
}

.menu-status-message[data-status="loading"] {
  color: #7b5700;
  background: #fff9e6;
  border-color: #ead79d;
}

.menu-status-message[data-status="error"] {
  color: #8f090e;
  background: #fff1f1;
  border-color: rgba(216, 11, 18, 0.28);
}

.menu-status-message[data-status="success"] {
  color: #19652d;
  background: #effaf2;
  border-color: #b7e3c2;
}

/* =========================================================
   FOUR-COLUMN MENU GRID
========================================================= */

.order-menu-grid {
  display: grid;
  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );
  align-items: stretch;
  gap: 10px;
}

.order-menu-grid[aria-busy="true"] {
  min-height: 200px;
  opacity: 0.58;
  pointer-events: none;
}

/* =========================================================
   MENU CARD
========================================================= */

.order-menu-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--order-white);
  border: 1px solid var(--order-soft-border);
  border-radius: 10px;
  box-shadow: var(--order-card-shadow);
  transition:
    transform var(--order-transition),
    box-shadow var(--order-transition),
    border-color var(--order-transition);
}

.order-menu-card:hover {
  border-color: rgba(216, 11, 18, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 11px 27px rgba(27, 27, 27, 0.1);
}

.order-menu-card.featured {
  border-color: rgba(216, 11, 18, 0.34);
}

.order-menu-image-wrapper {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100px;
  background:
    linear-gradient(
      135deg,
      #f2ece4,
      #fffdfa
    );
}

.order-menu-image-wrapper.image-unavailable {
  color: var(--order-red);
}

.order-menu-image-wrapper.image-unavailable svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-menu-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-featured-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 4px 7px;
  color: var(--order-white);
  background: var(--order-red);
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 900;
}

.order-menu-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px;
}

.order-menu-category {
  margin: 0 0 3px;
  color: var(--order-red);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-menu-title {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.order-menu-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  color: var(--order-muted);
  font-size: 0.58rem;
  line-height: 1.35;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.order-menu-controls {
  margin-top: auto;
}

.order-variant-field {
  display: grid;
  gap: 3px;
}

.order-variant-field > span {
  color: var(--order-muted);
  font-size: 0.54rem;
  font-weight: 800;
}

.order-variant-select {
  width: 100%;
  min-height: 29px;
  padding: 0 25px 0 7px;
  color: var(--order-black);
  background: var(--order-paper);
  border: 1px solid var(--order-soft-border);
  border-radius: 7px;
  font-size: 0.57rem;
  font-weight: 650;
}

.order-single-variant {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin: 0;
  padding: 4px 7px;
  color: var(--order-muted);
  background: var(--order-paper);
  border-radius: 6px;
  font-size: 0.56rem;
  font-weight: 750;
}

.order-menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--order-soft-border);
}

.order-menu-price {
  color: var(--order-red);
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.order-add-button {
  min-height: 29px;
  padding: 5px 8px;
  color: var(--order-white);
  background: var(--order-red);
  border: 0;
  border-radius: 7px;
  font-size: 0.55rem;
  font-weight: 850;
  white-space: nowrap;
}

.order-add-button:hover {
  background: var(--order-deep-red);
}

.order-add-button.added {
  background: #287a3e;
}

/* =========================================================
   EMPTY MENU
========================================================= */

.menu-empty-state {
  grid-column: 1 / -1;
  padding: 44px 22px;
  background: var(--order-white);
  border: 1px dashed rgba(27, 27, 27, 0.22);
  border-radius: var(--order-radius-medium);
  text-align: center;
}

.menu-empty-state h3 {
  margin: 0 0 7px;
}

.menu-empty-state p {
  margin: 0;
  color: var(--order-muted);
}

/* =========================================================
   CART PANEL
========================================================= */

.order-cart-panel {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 98px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 18px 26px;
  background: var(--order-white);
  border: 1px solid var(--order-soft-border);
  border-radius: var(--order-radius-medium);
  box-shadow: var(--order-card-shadow);
  scrollbar-width: thin;
  scrollbar-color:
    rgba(216, 11, 18, 0.45)
    transparent;
}

.order-cart-panel::-webkit-scrollbar {
  width: 6px;
}

.order-cart-panel::-webkit-scrollbar-thumb {
  background: rgba(216, 11, 18, 0.42);
  border-radius: 999px;
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.cart-header h2 {
  margin: 3px 0 0;
  font-size: 1.2rem;
}

.cart-close-button {
  display: none;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  color: var(--order-black);
  background: var(--order-paper);
  border: 1px solid var(--order-soft-border);
  border-radius: 50%;
  font-size: 1.35rem;
}

.cart-selected-branch {
  overflow: hidden;
  margin-bottom: 12px;
  padding: 9px 10px;
  color: var(--order-muted);
  background: var(--order-paper);
  border-radius: 8px;
  font-size: 0.64rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   EMPTY CART
========================================================= */

.cart-empty-state {
  padding: 22px 10px;
  text-align: center;
}

.cart-empty-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 11px;
  background: rgba(216, 11, 18, 0.08);
  border-radius: 50%;
  color: var(--order-red);
}

.cart-empty-icon svg {
  width: 23px;
  height: 23px;
}

.cart-empty-state h3 {
  margin: 0 0 6px;
  font-size: 0.88rem;
}

.cart-empty-state p {
  margin: 0;
  color: var(--order-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

/* =========================================================
   CART ITEMS
========================================================= */

.cart-items {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color:
    rgba(216, 11, 18, 0.45)
    transparent;
}

.cart-item {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 8px;
  padding: 10px;
  background: var(--order-paper);
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: var(--order-radius-small);
}

.cart-item-details {
  min-width: 0;
}

.cart-item-details h3 {
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 0.75rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-details p {
  margin: 0 0 5px;
  color: var(--order-muted);
  font-size: 0.59rem;
}

.cart-item-details strong {
  color: var(--order-red);
  font-size: 0.69rem;
}

.cart-item-actions {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 7px;
}

.cart-quantity-controls {
  display: inline-grid;
  grid-template-columns:
    26px
    minmax(24px, auto)
    26px;
  align-items: center;
  overflow: hidden;
  background: var(--order-white);
  border: 1px solid var(--order-soft-border);
  border-radius: 7px;
}

.cart-quantity-controls button {
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--order-black);
  background: transparent;
  border: 0;
  font-weight: 900;
}

.cart-quantity-controls button:hover {
  color: var(--order-white);
  background: var(--order-red);
}

.cart-quantity-controls span {
  min-width: 24px;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 850;
}

.cart-remove-button {
  padding: 0;
  color: var(--order-red);
  background: transparent;
  border: 0;
  font-size: 0.58rem;
  font-weight: 800;
}

.cart-remove-button:hover {
  text-decoration: underline;
}

/* =========================================================
   CART SUMMARY
========================================================= */

.cart-summary {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  padding: 12px 0;
  border-top: 1px solid var(--order-soft-border);
  border-bottom: 1px solid var(--order-soft-border);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--order-muted);
  font-size: 0.69rem;
}

.cart-summary-row strong {
  color: var(--order-black);
}

.cart-subtotal-row {
  font-size: 0.79rem;
  font-weight: 800;
}

.cart-subtotal-row strong {
  color: var(--order-red);
  font-size: 1rem;
}

/* =========================================================
   ORDER TYPE
========================================================= */

.order-type-fieldset {
  display: grid;
  gap: 7px;
  margin: 13px 0 0;
  padding: 0;
  border: 0;
}

.order-type-fieldset legend {
  margin-bottom: 7px;
  font-size: 0.7rem;
  font-weight: 850;
}

.order-type-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  background: var(--order-paper);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.order-type-option:hover {
  border-color: rgba(216, 11, 18, 0.2);
}

.order-type-option:has(input:checked) {
  background: rgba(216, 11, 18, 0.055);
  border-color: rgba(216, 11, 18, 0.3);
}

.order-type-option input {
  margin-top: 2px;
  accent-color: var(--order-red);
}

.order-type-content {
  display: grid;
  gap: 2px;
}

.order-type-content strong {
  font-size: 0.69rem;
}

.order-type-content small {
  color: var(--order-muted);
  font-size: 0.58rem;
  line-height: 1.4;
}

/* =========================================================
   ORDER NOTES
========================================================= */

.cart-notes-field {
  display: grid;
  gap: 6px;
  margin-top: 13px;
}

.cart-notes-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.69rem;
  font-weight: 850;
}

.cart-notes-field label span {
  color: var(--order-muted);
  font-size: 0.57rem;
  font-weight: 650;
}

.cart-notes-field textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  padding: 9px;
  color: var(--order-black);
  background: var(--order-paper);
  border: 1px solid var(--order-soft-border);
  border-radius: 8px;
  font-size: 0.64rem;
  line-height: 1.4;
}

.cart-notes-field textarea:focus {
  background: var(--order-white);
  border-color: var(--order-red);
  box-shadow: 0 0 0 4px rgba(216, 11, 18, 0.08);
  outline: none;
}

.cart-notes-field small {
  color: var(--order-light-muted);
  font-size: 0.55rem;
}

/* =========================================================
   AUTHENTICATION NOTICE
========================================================= */

.checkout-authentication-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  padding: 9px;
  color: #6b4b00;
  background: #fff9e6;
  border: 1px solid #ead79d;
  border-radius: 8px;
}

.checkout-authentication-notice p {
  margin: 0;
  font-size: 0.59rem;
  line-height: 1.4;
}

/* =========================================================
   CHECKOUT BUTTON
========================================================= */

.checkout-button {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 12px 0 6px;
  padding: 9px 12px;
  color: var(--order-white);
  background: var(--order-red);
  border: 0;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(216, 11, 18, 0.18);
  transition:
    background var(--order-transition),
    transform var(--order-transition),
    opacity var(--order-transition);
}

.checkout-button:hover:not(:disabled) {
  background: var(--order-deep-red);
  transform: translateY(-1px);
}

.checkout-button:disabled {
  opacity: 0.42;
  box-shadow: none;
}

.checkout-message {
  min-height: 16px;
  margin: 8px 0 4px;
  padding-bottom: 4px;
  font-size: 0.59rem;
  line-height: 1.4;
  text-align: center;
}

.checkout-message[data-status="error"] {
  color: var(--order-red);
}

.checkout-message[data-status="success"] {
  color: #217438;
}

/* =========================================================
   CART BACKDROP
========================================================= */

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 79;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(0, 0, 0, 0.56);
  border: 0;
  backdrop-filter: blur(3px);
}

/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 901px) {
  .order-header {
    grid-template-columns:
      auto
      1fr;
  }

  .header-cart-button {
    display: none !important;
  }

  .header-navigation {
    padding-right: 45px;
  }

  .ordering-layout {
    grid-template-columns:
      minmax(0, 1fr)
      300px;
  }

  .order-menu-grid {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );
  }
}

@media (min-width: 901px) and (max-width: 1250px) {
  .order-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   TABLET AND MOBILE CART DRAWER
========================================================= */

@media (max-width: 900px) {
  .order-header {
    grid-template-columns:
      auto
      1fr;
    gap: 16px;
  }

  .header-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .header-cart-button {
    display: inline-flex;
    justify-self: end;
  }

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

  .order-hero-summary {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .ordering-layout {
    display: block;
  }

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

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

  .order-menu-image-wrapper {
    height: 135px;
  }

  .order-menu-card-content {
    padding: 12px;
  }

  .order-menu-title {
    font-size: 0.88rem;
  }

  .order-menu-description {
    font-size: 0.64rem;
  }

  .order-variant-select {
    min-height: 34px;
    font-size: 0.65rem;
  }

  .order-add-button {
    min-height: 33px;
    font-size: 0.62rem;
  }

  .order-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 80;
    width: min(420px, 92vw);
    height: 100vh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 30px;
    border: 0;
    border-radius: 0;
    box-shadow: -18px 0 44px rgba(0, 0, 0, 0.2);
    transform: translateX(105%);
    transition: transform 240ms ease;
  }

  .order-cart-panel.open {
    transform: translateX(0);
  }

  .cart-close-button {
    display: grid;
  }

  body.cart-open {
    overflow: hidden;
  }
}

/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 680px) {
  .order-main {
    width:
      min(
        100% - 22px,
        1680px
      );
    padding-top: 16px;
  }

  .order-header {
    padding: 9px 13px;
  }

  .header-logo img {
    height: 43px;
  }

  .header-navigation {
    gap: 18px;
  }

  .header-navigation a {
    white-space: nowrap;
    font-size: 0.77rem;
  }

  .header-cart-button {
    padding: 8px 11px;
    font-size: 0.74rem;
  }

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

  .order-hero {
    gap: 22px;
    margin-bottom: 20px;
    padding: 27px 21px;
    border-radius: 17px;
  }

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

  .order-control-card {
    padding: 18px;
  }

  .order-section-heading {
    align-items: center;
  }

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

  .order-menu-image-wrapper {
    height: 165px;
  }

  .order-menu-card-content {
    padding: 14px;
  }

  .order-menu-title {
    font-size: 0.95rem;
  }

  .order-menu-description {
    font-size: 0.69rem;
  }

  .order-add-button {
    font-size: 0.65rem;
  }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 430px) {
  .order-header {
    grid-template-columns:
      1fr
      auto;
  }

  .header-logo img {
    height: 39px;
  }

  .header-cart-button > span:nth-child(2) {
    display: none;
  }

  .order-hero h1 {
    font-size: 2.2rem;
  }

  .order-section-heading {
    gap: 9px;
  }

  .required-label,
  .menu-result-count {
    font-size: 0.59rem;
  }

  .order-category-filters {
    gap: 15px;
  }

  .order-category-group-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .order-category-group-header p {
    text-align: left;
  }

  .order-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-category-button {
    width: 100%;
  }

  .active-category-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .active-category-heading > p {
    text-align: left;
  }

  .order-menu-image-wrapper {
    height: 150px;
  }

  .order-menu-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .order-add-button {
    width: 100%;
  }

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

  .cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.checkout-authentication-notice > span {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
}

.checkout-authentication-notice svg {
  width: 16px;
  height: 16px;
}
