@import url("../../../shared/css/base.css");
@import url("../../../shared/css/toidud-base.css");
@import url("../../../shared/css/backgrounds.css");

/* Plus Kohvikud: enforce minimum --base so menu stays readable even when content is tall.
   fitRem may set --base as low as ~5px to squeeze content in; we cap at 8px and allow scroll. */
html {
  font-size: max(var(--base), 8px) !important;
}

/* Plus Kohvikud: larger menu – reduce padding for more content space */
.wrap {
  padding: 1rem 1rem 0.4rem;
}

/* Slightly larger typography for better readability */
.name {
  font-size: 3.2rem;
}
.section h2 {
  font-size: 1.8rem;
}
.title-text {
  font-size: 2.5rem;
}
.title-en {
  font-size: 2.3rem;
}
.price-big {
  font-size: 3.2rem;
}
.price-small {
  font-size: 2.8rem;
}
.diet-legend-item {
  font-size: 1.8rem;
}

@media (max-height: 2200px) {
  .name {
    font-size: 3.4rem;
  }
  .section h2 {
    font-size: 2.2rem;
  }
  .title-text {
    font-size: 2.9rem;
  }
  .title-en {
    font-size: 2.7rem;
  }
  .price-big {
    font-size: 2.7rem;
  }
  .price-small {
    font-size: 2.5rem;
  }
}

/* Loader text size for toidud */
#loader .loader-text {
  font-size: 1rem;
}

/* Spinner size for toidud */
#loader .spinner {
  width: 32px;
  height: 32px;
}

/* Info margin for toidud */
.info {
  margin: 0.8rem auto 0;
}

body {
  cursor: auto !important;
  overflow-y: auto;
}

body.empty-state .brand img {
  height: 4rem;
}

/* Weight display for food items */
.weight {
  font-size: 2rem;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1;
}

@media (max-height: 2200px) {
  .weight {
    font-size: 1.9rem;
  }
}

@media (min-height: 3200px) {
  .weight {
    font-size: 1.8rem;
  }
}

/* Week menu tabs (date selector) – fixed scale, not affected by root --base; sticky like a header */
.week-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 18px; /* fixed so tabs don't scale with fitRem/--base */
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 0 0 4px;
  list-style: none;
  border-bottom: 2px solid var(--border, #ddd);
  background: var(--bg, #161b18);
  box-shadow: 0 1px 0 var(--border, #ddd);
}

.week-tab {
  font-size: 1em;
  padding: 6px 10px;
  margin: 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text, #333);
  cursor: pointer;
  border-radius: 2px 2px 0 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.week-tab:hover {
  background: rgba(0, 0, 0, 0.05);
}

.week-tab.active {
  font-weight: 600;
  border-bottom-color: var(--accent, #0066cc);
  background: rgba(0, 102, 204, 0.08);
}