:root {
  --wood-dark: #24140f;
  --wood-mid: #4a281c;
  --wood-light: #6f4531;
  --panel-red: #940000;
  --panel-red-bright: #d70000;
  --accent-gold: #ffb400;
  --accent-orange: #ff7a00;
  --cream: #fff7ea;
  --ink: #1b120e;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow Condensed", sans-serif;
  color: var(--cream);
  background:
    linear-gradient(rgba(12, 6, 4, 0.76), rgba(12, 6, 4, 0.86)),
    repeating-linear-gradient(
      90deg,
      var(--wood-dark) 0 48px,
      var(--wood-light) 48px 52px,
      var(--wood-mid) 52px 98px
    );
}

a {
  color: inherit;
}

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(54, 0, 0, 0.88), rgba(115, 0, 0, 0.42)),
    url("./Screen 1.jpg") center top / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 196, 0, 0.25), transparent 25%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 44px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #ffcf57;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.hero__text,
.panel-heading p,
.menu-item__desc,
.modal__text,
.callout,
.summary-row span,
.summary-row strong {
  font-size: 1.15rem;
}

.hero__text {
  max-width: 480px;
  margin: 16px 0 0;
}

.hero__actions,
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.auto-apply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auto-apply-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent-gold);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 420px);
  gap: 24px;
  margin-top: 24px;
}

.menu-panel,
.cart-panel__sticky,
.modal__card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(128, 0, 0, 0.16), rgba(18, 10, 7, 0.92)),
    rgba(23, 11, 8, 0.75);
  box-shadow: var(--shadow);
}

.menu-panel {
  padding: 26px;
}

.cart-panel__sticky {
  position: sticky;
  top: 18px;
  padding: 24px;
}

.panel-heading {
  margin-bottom: 22px;
}

.panel-heading p:last-child {
  margin-top: 10px;
  color: rgba(255, 247, 234, 0.86);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.category-chip,
.button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.category-chip {
  padding: 10px 16px;
  color: var(--cream);
  background: linear-gradient(180deg, #cb0000, #7b0000);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  min-height: 48px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.button:hover,
.category-chip:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--panel-red-bright), #850000);
  box-shadow: 0 8px 22px rgba(125, 0, 0, 0.32);
}

.button--ghost {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button--item {
  width: 100%;
  margin-top: 16px;
  color: #280400;
  background: linear-gradient(180deg, #ffc451, var(--accent-orange));
}

.button--full {
  width: 100%;
}

.menu-root {
  display: grid;
  gap: 26px;
}

.category-section {
  scroll-margin-top: 24px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.category-title::after {
  content: "";
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--panel-red-bright), rgba(215, 0, 0, 0.1));
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.menu-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 250px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(160, 0, 0, 0.22), rgba(38, 18, 12, 0.94)),
    rgba(0, 0, 0, 0.2);
}

.menu-item__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.menu-item__header > div {
  min-width: 0;
}

.menu-item__name {
  font-size: 1.7rem;
  line-height: 1.05;
  max-width: 100%;
  word-break: break-word;
}

.menu-item__desc {
  margin: 8px 0 0;
  color: rgba(255, 247, 234, 0.84);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.menu-item .button--item {
  margin-top: 4px;
  align-self: end;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  min-width: 106px;
}

.price-tag,
.combo-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.price-tag {
  color: #fff;
  background: linear-gradient(180deg, #ff2828, #b80000);
}

.price-tag--from {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.combo-tag {
  color: #2d0f00;
  background: linear-gradient(180deg, #ffd564, #ff9d00);
  font-size: 1rem;
  line-height: 1.1;
  padding: 5px 9px;
  max-width: 120px;
  text-align: center;
}

.item-controls {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  margin-top: 16px;
}

.item-controls--modal {
  margin-top: 0;
  grid-template-columns: 1fr;
}

.item-controls label,
.addon-option {
  display: grid;
  gap: 6px;
}

.item-controls span,
.addon-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

input[type="number"],
input[type="text"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.addon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.variant-select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 12px 42px 12px 14px;
  color: var(--cream);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background:
    linear-gradient(135deg, transparent 50%, #ffcf57 50%) calc(100% - 18px) calc(50% - 2px) / 8px 8px no-repeat,
    linear-gradient(45deg, #ffcf57 50%, transparent 50%) calc(100% - 12px) calc(50% - 2px) / 8px 8px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.18);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.variant-select:hover {
  border-color: rgba(255, 207, 87, 0.45);
  transform: translateY(-1px);
}

.variant-select:focus {
  outline: none;
  border-color: rgba(255, 207, 87, 0.75);
  box-shadow:
    0 0 0 2px rgba(255, 180, 0, 0.18),
    0 12px 24px rgba(0, 0, 0, 0.25);
}

.variant-select option {
  color: #2d0f00;
  background: #fff7ea;
}

.variant-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.22);
}

.choice-groups {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.choice-group {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.choice-group__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.choice-group__subhead {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 247, 234, 0.78);
}

.choice-group--disabled .choice-group__subhead {
  opacity: 0.6;
}

.addon-option {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 180, 0, 0.12);
  border: 1px solid rgba(255, 180, 0, 0.18);
  min-width: 180px;
}

.addon-option--disabled {
  opacity: 0.5;
  filter: grayscale(0.2);
}

.addon-option--disabled label {
  cursor: not-allowed;
}

.addon-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.addon-option input[type="radio"],
.addon-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.addon-option__row {
  display: grid;
  gap: 8px;
}

.addon-option__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.addon-option__qty {
  width: 54px;
  min-width: 54px;
  margin-left: auto;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 0.92rem;
  text-align: center;
}

.addon-price {
  color: #ffd564;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.empty-state {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 247, 234, 0.8);
}

.cart-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-item__row,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cart-item__row strong {
  font-size: 1.2rem;
}

.cart-item__meta,
.cart-item__notes {
  margin-top: 8px;
  color: rgba(255, 247, 234, 0.8);
  font-size: 1.02rem;
}

.cart-item__remove {
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: #ffd564;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.cart-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.callout {
  padding: 16px;
  border-radius: 18px;
  border-left: 4px solid var(--accent-orange);
  background: rgba(255, 135, 0, 0.12);
  color: rgba(255, 247, 234, 0.92);
  line-height: 1.35;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 30;
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal__card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(92vh, 980px);
  overflow: hidden;
  padding: 26px;
}

.modal__card--customizer {
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
}

.customizer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.customizer-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  margin-top: 18px;
  padding-bottom: 8px;
}

.floating-total {
  display: none;
}

.floating-total__card {
  gap: 12px;
  background: rgba(33, 15, 11, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.floating-total--detached {
  position: fixed;
  top: 160px;
  right: 16px;
  display: block;
  width: min(240px, calc(100vw - 32px));
  z-index: 31;
  pointer-events: none;
}

.floating-total--detached .floating-total__card {
  pointer-events: auto;
}

.summary-row--total {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.variation-panel {
  display: grid;
  gap: 12px;
}

.variation-list {
  display: grid;
  gap: 8px;
}

#variation-list {
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.variation-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.variation-item:hover {
  border-color: rgba(255, 213, 100, 0.4);
}

.variation-item--active {
  border-color: rgba(255, 213, 100, 0.8);
  background: rgba(255, 180, 0, 0.12);
}

.variation-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

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

.variation-item__qty {
  width: 58px;
  min-width: 58px;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 0.92rem;
  text-align: center;
}

.variation-item__label {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #2d0f00;
  background: linear-gradient(180deg, #ffcf57, #ff9d00);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.variation-item__lines {
  display: grid;
  gap: 3px;
  color: rgba(255, 247, 234, 0.88);
}

.variation-item__price {
  margin-top: 6px;
  font-weight: 700;
}

.variation-item__remove {
  padding: 0;
  border: 0;
  color: #ffd564;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.variation-item__edit {
  padding: 4px 10px;
  border: 1px solid rgba(255, 207, 87, 0.45);
  border-radius: 999px;
  color: #2d0f00;
  background: linear-gradient(180deg, #ffd564, #ff9d00);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.order-code {
  display: inline-flex;
  margin: 16px 0;
  padding: 10px 14px;
  border-radius: 14px;
  color: #2c0b00;
  background: linear-gradient(180deg, #ffcf57, #ff8d1f);
  font-size: 1.3rem;
  font-weight: 700;
}

.order-summary {
  display: grid;
  gap: 10px;
  max-height: 42vh;
  overflow: auto;
  padding-right: 6px;
}

.order-summary__item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.hidden {
  display: none !important;
}

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

  .cart-panel__sticky {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1400px);
    padding-top: 10px;
  }

  .hero__content,
  .menu-panel,
  .cart-panel__sticky,
  .modal__card {
    padding: 20px;
  }

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

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

  .price-stack {
    align-items: flex-start;
    min-width: 0;
  }

  .customizer-body {
    padding-right: 0;
  }

  .floating-total--detached {
    position: static;
    width: auto;
    margin-top: 16px;
    display: block;
    pointer-events: auto;
  }
}

@media (max-width: 1280px) {
  .floating-total--detached {
    position: static;
    width: auto;
    margin-top: 16px;
    display: block;
    pointer-events: auto;
  }
}
