/* Menu page styles */

.menu-page {
  padding-top: calc(var(--header-offset) + 1.45rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.menu-page-header {
  padding: clamp(0.35rem, 1vw, 0.7rem) 0 2.2rem;
}

.menu-page-header__inner {
  justify-items: center;
  margin-bottom: 0;
  text-align: center;
}

.menu-page-header .page-title {
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.menu-page__intro {
  max-width: 42rem;
  color: var(--color-text-secondary);
}

.menu-page__catalog {
  padding: clamp(0.9rem, 2vw, 1.4rem) 0 1rem;
  background: rgb(255 255 255 / 12%);
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.menu-tab {
  min-height: 3rem;
  padding: 0.92rem 1.15rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 62%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 72%),
    var(--shadow-soft);
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.menu-tab:hover,
.menu-tab:focus-visible,
.menu-tab.is-active {
  background: var(--color-accent);
  color: #fff;
}

.menu-tab-panel {
  padding: 0;
}

.menu-tab-panel[hidden] {
  display: none;
}

.menu-page .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  background: rgb(255 255 255 / 22%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 76%),
    0 16px 34px rgb(52 34 18 / 8%);
}

.product-img-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.15;
  background: rgb(255 241 222 / 80%);
}

.product-img-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(23 20 17 / 0%) 0%, rgb(23 20 17 / 10%) 48%, rgb(23 20 17 / 78%) 100%);
  pointer-events: none;
}

.product-image,
.product-image-placeholder {
  width: 100%;
  height: 100%;
}

.product-image {
  display: block;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-image,
.product-card:focus-within .product-image {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 88%);
}

.product-image-placeholder {
  display: grid;
  align-content: end;
  gap: 0.35rem;
  padding: 1.3rem;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 8%), rgb(23 20 17 / 42%)),
    linear-gradient(145deg, rgb(255 214 143 / 86%), rgb(217 114 52 / 86%));
  color: #fff;
}

.product-image-placeholder strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-badge span {
  color: var(--color-text-primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.product-badge--h {
  background: rgb(136 200 204 / 95%);
}

.product-badge--df {
  background: rgb(251 187 175 / 95%);
}

.product-badge--v {
  background: rgb(163 201 168 / 95%);
}

.product-info {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 42%;
  padding: 2.6rem 1rem 1rem;
}

.product-title {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 8px 24px rgb(23 20 17 / 50%);
  text-transform: uppercase;
}

.menu-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.menu-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  min-height: 16rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius-lg) - 0.35rem);
  background:
    radial-gradient(circle at top right, rgb(255 192 120 / 18%), transparent 32%),
    rgb(255 251 245 / 86%);
  text-align: center;
}

.menu-empty-state__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 0.95;
}

.menu-empty-state p {
  max-width: 42rem;
  color: var(--color-text-secondary);
}

body.lang-ka .menu-page-header .page-title,
body.lang-ka .menu-tab,
body.lang-ka .product-title,
body.lang-ka .product-badge span,
body.lang-ka .menu-empty-state__title,
body.lang-ka .product-image-placeholder strong {
  letter-spacing: -0.01em;
  text-transform: none;
}

@media (max-width: 1120px) {
  .menu-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-page .product-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .menu-page-header {
    padding: 2rem 0 1.9rem;
  }

  .menu-page-header__inner {
    gap: 1rem;
  }

  .menu-page-header .page-title {
    max-width: none;
    font-size: clamp(2.75rem, 13vw, 4.1rem);
    line-height: 0.96;
    text-wrap: balance;
  }

  .menu-tabs {
    margin-top: 1.4rem;
  }

  .menu-page__catalog {
    padding-top: 1rem;
  }
}

@media (max-width: 1024px) and (pointer: coarse), (max-width: 760px) {
  .menu-page {
    padding-top: calc(var(--mobile-header-height) + 1.1rem);
  }

  .menu-page__catalog {
    padding: 1.6rem 0;
  }

  .menu-page-header {
    padding: 0.4rem 0 1.35rem;
  }

  .menu-page-header .page-title {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
    line-height: 0.92;
  }

  .menu-page__intro {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .menu-tabs::-webkit-scrollbar {
    display: none;
  }

  .menu-tabs {
    position: sticky;
    top: calc(var(--mobile-header-height) + 0.55rem);
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: 0;
    margin-top: 1.35rem;
    padding: 0.25rem 0 0.4rem;
    gap: 0.55rem;
    overflow: visible;
  }

  .menu-tabs::before {
    content: "";
    position: absolute;
    inset: -0.35rem -0.15rem 0;
    z-index: -1;
    border-radius: 24px;
    background: linear-gradient(
      180deg,
      rgb(248 241 230 / 92%),
      rgb(248 241 230 / 62%)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .menu-tab {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.72rem 0.5rem;
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.06em;
    white-space: normal;
    scroll-snap-align: start;
  }

  .product-card {
    border-radius: 2rem;
  }

  .product-img-box {
    aspect-ratio: 1.12;
  }

  .product-info {
    min-height: 46%;
    padding: 2.2rem 0.8rem 0.8rem;
  }

  .product-title {
    font-size: 0.9rem;
    line-height: 1.24;
  }

  .menu-cta-row {
    margin-top: 1.25rem;
  }

  .menu-cta-row .button-like {
    width: 100%;
  }
}
