@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #0f0c0a;
  --surface: #e0ccb3;
  --surface-soft: #e0ccb3;
  --accent: #e0ccb3;
  --accent-dark: #e0ccb3;
  --text: #f4ede6;
  --muted: #c1b2a8;
  --line: #e0ccb3;
  --shadow: 0 20px 40px rgba(8, 6, 5, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  background: url("images/bodybackground.jpg") center / cover fixed no-repeat;
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 72px;
}

.app {
  width: min(100%, calc(100vh * 9 / 16));
  margin: 0 auto;
  padding: 0 16px 36px;
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url("images/backgroundherosection.jpg") center / cover no-repeat;
  display: grid;
  place-items: center;
}

.hero-image-label {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto auto;
  min-height: 100svh;
  height: 100svh;
  padding: 22px 24px 26px;
  background: linear-gradient(
    135deg,
    rgba(10, 8, 7, 0.6),
    rgba(20, 14, 11, 0.35)
  );
  backdrop-filter: blur(2px);
}

body.menu-open .hero-image,
body.menu-open .hero-logo,
body.menu-open .hero-location,
body.menu-open .hero-lang,
body.menu-open .hero-text {
  filter: blur(6px);
}

@supports (height: 100dvh) {
  .hero,
  .hero-overlay {
    min-height: 100dvh;
    height: 100dvh;
  }
}

@media (min-width: 900px) {
  .app {
    width: min(100%, calc(100vh * 16 / 9));
    padding: 0 40px 48px;
  }
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.hero-logo {
  display: grid;
  place-items: center;
  justify-self: center;
  padding: 8px 0;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 6px 0;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.burger span {
  display: block;
  height: 3px;
  width: 26px;
  background: #fff;
  margin: 0;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-lang {
  display: flex;
  justify-content: center;
  width: 100%;
}


.hero-link {
  text-decoration: none;
  color: var(--text);
  border: none;
  border-radius: 0;
  padding: 6px 10px;
  font-size: 20px;
  letter-spacing: 0.4px;
  background: transparent;
  font-weight: 500;
  transition: transform 0.2s ease, border 0.2s ease;
}

.hero-link:hover {
  transform: translateY(-1px);
  color: var(--accent);
}

.hero-link:focus-visible {
  outline: 2px solid rgba(197, 154, 92, 0.8);
  outline-offset: 2px;
}

.hero-text {
  text-align: center;
}

.subtitle {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.title {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
}

.qr-label {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--accent);
}

.language-switcher {
  display: inline-flex;
  margin: 0 auto;
  padding: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.active {
  color: var(--accent);
  box-shadow: none;
}

.intro {
  margin: 28px 0 22px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tagline {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  flex: 1 1 320px;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1 1 240px;
}

.category-nav {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 4px 12px 2px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.category-nav::-webkit-scrollbar {
  height: 6px;
}

.category-nav::-webkit-scrollbar-thumb {
  background: #3a2a23;
  border-radius: 999px;
}

.category-link {
  white-space: nowrap;
  background: rgba(26, 19, 16, 0.45);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(8, 6, 5, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.map-section {
  margin: 28px 0 80px;
}

.map-frame {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(224, 204, 179, 0.2);
  background: rgba(22, 16, 13, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-frame iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

.screen-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.screen-link {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(224, 204, 179, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.screen-link:hover {
  color: var(--accent);
}

.category-section {
  position: relative;
  background: rgba(22, 16, 13, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 46px 22px 22px;
  border: 1px solid rgba(224, 204, 179, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.section-logo {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  
  
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 1.2s ease forwards;
}

.hero-logo .logo-img {
  width: 400px;
  max-width: 70vw;
}

.hero-location {
  text-align: center;
  margin-top: -50px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 1.2s ease forwards;
  animation-delay: 0.12s;
}

.hero-location-img {
  width: 220px;
  max-width: 70vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-menu-btn {
  align-self: center;
  margin-top: -100px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  display: inline-block;
  width: fit-content;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(224, 204, 179, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.22s;
}

.hero-menu-btn:hover {
  color: var(--accent);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-location,
  .hero-menu-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.section-logo .logo-img {
  width: 42px;
}

.category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.category-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.category-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.items-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.items-grid.items-10 {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

@media (max-width: 1100px) {
  .items-grid.items-10 {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .items-grid.items-10 {
    grid-template-columns: 1fr;
  }
}

.item-card {
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(224, 204, 179, 0.16);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
  font: inherit;
  color: inherit;
  appearance: none;
}

.item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 154, 92, 0.6);
}

.item-card:focus-visible {
  outline: 2px solid rgba(197, 154, 92, 0.8);
  outline-offset: 2px;
}

.item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.item-image.aspect-square {
  aspect-ratio: 1 / 1;
}

.item-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 10px;
  display: block;
  image-rendering: auto;
}

.item-photo.fit-contain {
  object-fit: cover;
}

.item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.item-name {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  min-height: 2.2em;
}

.item-price {
  color: var(--accent);
  font-weight: 700;
}

.item-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 5, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(12, 10, 9, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(224, 204, 179, 0.2);
  z-index: 15;
  font-weight: 500;
}

.footer-left,
.footer-center {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.footer-left {
  padding-left: 3px;
}

.footer-center {
  text-align: center;
  font-weight: 600;
  font-size: 22px;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.social-link {
  text-decoration: none;
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(224, 204, 179, 0.2);
  font-size: 16px;
  font-weight: 700;
}

.modal-content {
  background: rgba(18, 13, 11, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  border: 1px solid rgba(224, 204, 179, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  width: min(720px, 100%);
  max-height: none;
  overflow: visible;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: #2a1f1a;
  color: var(--text);
  font-size: 22px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 8, 7, 0.5);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero-nav-close {
  display: none;
}

.modal-prev {
  left: 14px;
}

.modal-next {
  right: 14px;
}

.modal-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(20, 14, 12, 0.5);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.modal-image.aspect-square {
  aspect-ratio: 4 / 3;
}

.modal-body {
  padding: 20px 22px 26px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.modal-price {
  color: var(--accent);
  font-weight: 700;
}

.modal-desc,
.modal-detail {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .title {
    font-size: 30px;
  }
}

@media (max-width: 540px) {
  body {
    padding-bottom: 88px;
  }

  .app {
    padding: 20px 16px 36px;
  }

  .hero {
    min-height: 280px;
    margin-top: -20px;
  }

  .hero-overlay {
    padding: 18px;
  }

  .title {
    font-size: 26px;
  }

  .tagline {
    font-size: 16px;
  }

  .category-section {
    padding: 18px;
  }

  .hero-top {
    position: relative;
    justify-content: center;
    z-index: 10;
  }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .hero-nav {
    position: fixed;
    inset: 0;
    transform: none;
    flex-direction: column;
    gap: 0;
    padding: 120px 24px 60px;
    height: 100%;
    justify-content: space-evenly;
    background: rgba(12, 10, 9, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: 0;
    display: none;
    min-width: 100%;
    text-align: center;
    z-index: 9;
    overflow-y: visible;
  }

  .hero-nav.open {
    display: flex;
  }

  .hero-nav-close {
    display: grid;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    opacity: 1;
    font-size: 24px;
    cursor: pointer;
  }

  .site-footer {
    grid-template-columns: 1fr auto 1fr;
    padding: 10px 16px;
    text-align: left;
  }

  .footer-left {
    justify-self: start;
    font-size: 12px;
  }

  .footer-center {
    font-size: 16px;
    font-weight: 900;
  }

  .footer-right {
    justify-content: flex-end;
  }

  .social-link {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}
