body {
  background: var(--bg-dark);
}

.bg-wrapper {
  position: fixed;
  inset: -20px;
  background-image: url('/images/food/dish-composition-16_9-2250x4000-watermarked-b65.webp');
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  z-index: 0;
}

.bg-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 9, 5, 0.88);
}

.footer-bar {
  position: relative;
  z-index: 2;
}

/* ── TABS ── */
.tab-row {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 52px;
  padding-top: 108px;
  padding-bottom: 32px;
}

.tab-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding: 0 0 6px 0;
  transition: color 0.3s ease;
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.65);
  transition: width 0.3s ease, left 0.3s ease;
}

.tab-button.active {
  color: rgba(255, 255, 255, 0.9);
}

.tab-button.active::after {
  width: 100%;
  left: 0;
}

.tab-button:hover {
  color: rgba(255, 255, 255, 0.8);
}

.tab-button:hover::after {
  width: 100%;
  left: 0;
}

/* ── DRINKS SUB-TABS ── */
#drinks-sub-tab-row {
  padding-top: 8px !important;
  padding-bottom: 24px !important;
}

.drinks-subsection {
  display: none;
}

.drinks-subsection.visible {
  display: block;
}

/* ── MENU SECTIONS ── */
.menu-section {
  display: none;
  position: relative;
  z-index: 2;
}

.menu-section.visible {
  display: block;
}

.category.full-width {
  grid-column: 1 / -1;
}

.category.full-width.divider-top {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
}

.category.full-width > .category-title {
  text-align: center;
}

.category.full-width > .category-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.category-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.category-inner .dish:nth-last-child(-n+2) {
  border-bottom: none;
}

.lunch-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 8px 0;
  letter-spacing: 0.06em;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 60px 80px;
}

/* ── CATEGORY ── */
.category {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category:last-child {
  border-bottom: none;
}

.category-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 16px 0;
  position: relative;
  padding-bottom: 12px;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
}

.category-title.long-line::after {
  width: 60px;
}

.category-title.subtitle {
  margin-top: 20px;
  font-size: 14px;
}

.category-title.break-title {
  margin-top: 24px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.title-row .category-title {
  margin: 0;
}

.title-row .category-note {
  margin: 0;
}

.category-note {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
  margin: -8px 0 14px 0;
}

.category-note.right {
  text-align: right;
}

/* ── DISHES ── */
.dish {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dish.simple {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.dish:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dish-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.dish-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.dish-extra {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 6px;
  font-style: italic;
}

.dish-price {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

.dish-info {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin: 0 0 3px 0;
}

.dish-allergen {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
  font-style: italic;
  margin: 0;
}

/* ── IMAGE BUTTON ── */
.dish-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.image-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
  opacity: 0.38;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.image-button:hover {
  opacity: 1;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 500;
  justify-content: center;
  align-items: center;
}

.modal-overlay.visible {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 80vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.modal-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 31px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ── RESPONSIVE: TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  .menu-grid {
    padding: 16px 32px 60px;
    gap: 0 40px;
  }

  .category-inner {
    gap: 0 40px;
  }

  .tab-row {
    gap: 36px;
  }
}

/* ── RESPONSIVE: MOBILE (≤768px) ── */
@media (max-width: 768px) {
  /* Tabs */
  .tab-row {
    gap: 24px;
    padding-top: 96px;
    padding-bottom: 20px;
  }

  .tab-button {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  /* Menu grid: one column */
  .menu-grid {
    grid-template-columns: 1fr;
    padding: 8px 20px 48px;
    gap: 0;
  }

  /* full-width kategorier trenger ikke grid-column override lenger */
  .category.full-width {
    grid-column: auto;
  }

  .category.full-width > .category-title {
    text-align: left;
  }

  .category.full-width > .category-title::after {
    left: 0;
    transform: none;
  }

  /* Category-inner: one column */
  .category-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .category-inner .dish:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .category-inner .dish:last-child {
    border-bottom: none;
  }

  /* Text */
  .dish-name {
    font-size: 17px;
  }

  .dish-price {
    font-size: 16px;
  }

  .dish-info {
    font-size: 15px;
  }

  /* Modal on mobile */
  .modal-content {
    max-width: 95vw;
    width: 95vw;
  }

  .modal-content img {
    max-height: 65vh;
    max-width: 100%;
  }
}

/* ── RESPONSIVE: SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
  .modal-content {
    max-width: 98vw;
    width: 98vw;
  }

  .modal-content img {
    max-height: 55vh;
  }

  .tab-row {
    gap: 16px;
    padding-top: 88px;
  }

  .tab-button {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .menu-grid {
    padding: 8px 14px 40px;
  }

  .dish-name {
    font-size: 16px;
  }
}
