*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #1a3d1a;
}

.bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#logo-wrap {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: top;
  opacity: 0;
}

#logo {
  width: min(36vw, 170px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}

#logo-wrap.visible {
  opacity: 1;
}

#content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: none;
}

#content.visible {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

.view.hidden {
  display: none;
}

#home-view {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 16vh, 110px) 16px clamp(24px, 6vh, 48px);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(94vw, 420px);
  margin: 0 auto;
}

.menu-btn {
  --btn-bg: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  background-image:
    linear-gradient(135deg, rgba(26, 61, 110, 0.72) 0%, rgba(0, 0, 0, 0.55) 100%),
    var(--btn-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: clamp(0.95rem, 3.8vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  padding: 0 24px;
  min-height: 68px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: center;
  overflow: hidden;
}

.menu-btn:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: #f58220;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(245, 130, 32, 0.35);
}

.menu-btn:active {
  transform: translateY(-1px);
}

.menu-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

#category-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 16vh, 110px) 16px clamp(24px, 6vh, 48px);
  overflow-y: auto;
}

.back-btn {
  position: fixed;
  top: clamp(12px, 3vh, 24px);
  left: 16px;
  z-index: 20;
  appearance: none;
  border: 2px solid #fff;
  background: rgba(26, 61, 110, 0.88);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease;
}

.back-btn:hover {
  background: #f58220;
}

.category-panel {
  width: min(94vw, 520px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  border: 3px solid #1a3d6e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 20px 18px 24px;
}

#category-title {
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  color: #1a3d6e;
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(245, 130, 32, 0.45);
}

.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(26, 61, 110, 0.04);
  border: 1.5px solid rgba(26, 61, 110, 0.12);
}

.product-item img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #1a3d6e;
  background: #e8ede8;
}

.product-item img.no-img {
  object-fit: contain;
  padding: 8px;
  opacity: 0.45;
}

.product-item-body h2 {
  font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  color: #1a3d6e;
  margin-bottom: 4px;
}

.product-item-body p {
  font-size: clamp(0.82rem, 3.2vw, 0.92rem);
  color: #444;
  line-height: 1.5;
}

.product-price {
  margin-top: 8px;
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  font-weight: 700;
  color: #f58220;
}

#content.transitioning {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
