﻿.modern-menu {
  background: #fbf7f2;
}

.modal-open {
  overflow: hidden;
}

.modern-hero {
  position: relative;
  padding: 24px clamp(18px, 5vw, 64px) 30px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 9, 8, 0.88), rgba(13, 9, 8, 0.56) 48%, rgba(13, 9, 8, 0.72)),
    linear-gradient(180deg, rgba(13, 9, 8, 0.16), rgba(13, 9, 8, 0.82)),
    url("../../assets/businesses/bistro-nova-ambient.jpg") center / cover no-repeat;
}

.menu-back {
  display: inline-flex;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.language-switcher {
  position: absolute;
  top: 22px;
  right: clamp(18px, 5vw, 64px);
  z-index: 4;
}

.language-current,
.language-dropdown button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.language-current {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 8, 8, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.language-current:hover,
.language-switcher.is-open .language-current {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.18);
}

.language-current:hover,
.language-dropdown button:hover {
  transform: translateY(-1px);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 82px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(18, 14, 13, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.language-switcher.is-open .language-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.language-dropdown button {
  grid-template-columns: 22px 1fr;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 850;
  text-align: left;
}

.language-dropdown button.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.flag-img {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 3px 8px rgba(0, 0, 0, 0.24);
}

.modern-title {
  max-width: 780px;
  padding-top: 22px;
}

.bistro-logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.bistro-logo-frame {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.bistro-logo-frame img {
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.bistro-copy h1 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(2.3rem, 8vw, 5rem);
  font-weight: 950;
  line-height: 0.98;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.bistro-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 30px 0 0 0;
}

.profile-actions a,
.profile-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.profile-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-actions a:hover,
.profile-info-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
}

.modern-shell {
  width: min(1050px, calc(100% - 28px));
  margin: -20px auto 54px;
  padding-top: 0;
}

.category-pills {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 13px;
  border: 1px solid rgba(184, 112, 54, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(36, 24, 20, 0.96), rgba(91, 48, 30, 0.92));
  box-shadow: 0 18px 38px rgba(91, 48, 30, 0.18);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scrollbar-width: none;
  cursor: default;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pills a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #fff8f2;
  background: rgba(255, 255, 255, 0.11);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.category-pills a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.17);
}

.category-pills a:active {
  transform: scale(0.97);
}

.modern-section {
  padding: 24px 0 4px;
  scroll-margin-top: 82px;
}

.popular-section {
  padding-top: 10px;
}

.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.section-row h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  line-height: 1;
}

.section-row p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.popular-section .section-row {
  display: grid;
  gap: 1px;
  margin-bottom: 8px;
}

.popular-section .section-row p {
  max-width: none;
  font-size: 0.86rem;
}

.popular-section .section-row h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.popular-section .product-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: none;
  scrollbar-width: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
}

.popular-section .product-grid.is-dragging {
  cursor: grabbing;
}

.popular-section .product-grid::-webkit-scrollbar {
  display: none;
}

.product-card,
.mini-product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.popular-section .product-card {
  flex: 0 0 178px;
  padding: 9px;
  animation: popularFloat 5.8s ease-in-out infinite;
}

.popular-section .product-card:nth-child(2) {
  animation-delay: 0.5s;
}

.popular-section .product-card:nth-child(3) {
  animation-delay: 1s;
}

.popular-section .product-card:nth-child(4) {
  animation-delay: 1.5s;
}

.product-card > div:last-child {
  padding: 18px;
}

.popular-section .product-card > div:last-child {
  padding: 8px 0 0;
}

.product-photo {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.popular-section .product-photo {
  width: 88px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(102, 26, 22, 0.12);
  pointer-events: none;
}

.popular-section .tag {
  display: none;
}

.popular-section .product-card h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  line-height: 1.15;
}

.popular-section .product-card p {
  margin: 0 0 8px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(43, 37, 35, 0.72);
  font-size: 0.76rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.popular-section .product-card strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1;
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--red);
  background: var(--rose);
  font-size: 0.8rem;
  font-weight: 900;
}

.product-card p,
.mini-product p {
  color: var(--muted);
}

.product-card strong,
.mini-product strong,
.line-item strong {
  color: var(--red);
}

.menu-card-grid {
  display: grid;
  gap: 8px;
}

.mini-product {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
}

.mini-product img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.mini-product h3 {
  margin-bottom: 2px;
  font-size: 0.98rem;
}

.mini-product p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.28;
}

.mini-product strong {
  font-size: 0.92rem;
  white-space: nowrap;
}

.line-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.96rem;
}

.menu-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px clamp(18px, 5vw, 64px) 34px;
  color: var(--white);
  text-align: center;
  background: var(--charcoal);
}

.menu-footer a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
}

.business-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.business-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.business-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 9, 0.62);
  backdrop-filter: blur(8px);
}

.business-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf5;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.business-modal__panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 6vw, 2.7rem);
}

.business-info-list {
  display: grid;
  gap: 10px;
}

.business-info-list article {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.business-info-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.business-info-list strong,
.business-info-list a {
  color: var(--charcoal);
  font-size: 0.98rem;
  font-weight: 900;
}

.business-info-list a {
  text-decoration: underline;
  text-decoration-color: rgba(200, 23, 36, 0.35);
  text-underline-offset: 3px;
}

.wifi-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wifi-row button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.business-modal__close {
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

@keyframes popularFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 760px) {
  .modern-hero {
    padding-bottom: 26px;
  }

  .menu-back {
    margin-bottom: 28px;
  }

  .modern-title {
    padding-top: 8px;
  }

  .bistro-logo-frame {
    width: 62px;
    height: 62px;
  }

  .bistro-logo-lockup {
    align-items: flex-start;
  }

  .bistro-copy p {
    font-size: 0.94rem;
  }

  .profile-actions {
    gap: 8px;
    margin-top: 24px;
  }

  .profile-actions a,
  .profile-info-button {
    width: 38px;
    height: 38px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .popular-section .product-card {
    flex-basis: 154px;
    animation: none;
  }

  .popular-section .product-grid {
    cursor: auto;
  }

  .category-pills {
    cursor: auto;
  }

  .section-row {
    display: grid;
  }

  .mini-product {
    grid-template-columns: 56px 1fr auto;
  }

  .mini-product img {
    width: 56px;
    height: 56px;
  }

  .mini-product strong {
    grid-column: auto;
  }

  .menu-footer {
    display: grid;
  }

}


