:root {
  --red: #d71920;
  --red-deep: #a80008;
  --black: #111111;
  --ink: #1d1b19;
  --cream: #fff2d8;
  --warm: #fff9ee;
  --white: #ffffff;
  --blue: #0f63bd;
  --muted: #6e6257;
  --line: rgba(17, 17, 17, 0.14);
  --shadow: 0 18px 42px rgba(17, 17, 17, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #2f3b4d;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  touch-action: manipulation;
}

.app-container {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--warm);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.26);
  transition: width 0.3s ease;
}

@media (min-width: 768px) {
  .app-container {
    width: min(100%, 960px);
  }
}

@media (min-width: 1024px) {
  .app-container {
    width: min(100%, 1120px);
  }
}

.menu-hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 18px 34px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 82% 8%, rgba(15, 99, 189, 0.28), transparent 28%),
    linear-gradient(145deg, var(--red), var(--red-deep) 48%, var(--black));
}

.menu-hero::after,
.category-nav::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--blue) 0 32%, var(--white) 32% 68%, var(--blue) 68%);
}

.hero-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.back-link {
  min-height: 40px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(17, 17, 17, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(17, 17, 17, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.language-switch button {
  min-width: 34px;
  min-height: 34px;
  padding: 8px 9px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.language-switch button.is-active {
  color: var(--white);
  background: var(--red);
}

.hero-video-frame {
  position: relative;
  width: min(330px, 86vw);
  aspect-ratio: 4 / 3;
  padding: 9px;
  background: var(--cream);
  border: 5px solid var(--black);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.7);
  transform: rotate(-1deg);
  overflow: hidden;
}

.hero-menu-video,
.hero-menu-photo {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: calc(var(--radius) - 2px);
}

.hero-menu-video {
  object-fit: cover;
  animation: media-video-cycle 10s ease-in-out infinite;
}

.hero-menu-photo {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: media-photo-cycle 10s ease-in-out infinite;
}

@keyframes media-video-cycle {
  0%,
  47%,
  100% {
    opacity: 1;
  }

  55%,
  90% {
    opacity: 0;
  }
}

@keyframes media-photo-cycle {
  0%,
  47%,
  100% {
    opacity: 0;
    transform: scale(1.04);
  }

  55%,
  90% {
    opacity: 1;
    transform: scale(1);
  }
}

.brand-lockup {
  display: grid;
  line-height: 0.96;
}

.brand-lockup span {
  font-family: "Anton", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.25rem, 6vw, 2rem);
  text-transform: uppercase;
}

.brand-lockup strong {
  color: var(--red);
  font-family: "Pacifico", "Brush Script MT", cursive;
  font-size: clamp(1.55rem, 7vw, 2.45rem);
  font-weight: 400;
  text-shadow: 0 2px 0 var(--white), 0 4px 0 var(--black);
}

.menu-hero h1 {
  margin: 6px 0 0;
  font-family: "Anton", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(3.2rem, 18vw, 5.4rem);
  line-height: 0.85;
  text-transform: uppercase;
}

.menu-hero p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0 20px;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.category-list {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  margin: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.category-list.dragging {
  cursor: grabbing;
}

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

.cat-btn {
  min-height: 42px;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.cat-btn.active {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}


.menu-container {
  padding: 22px 16px 36px;
}

.menu-slider-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.category-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.category-slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

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

.category-section {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.section-heading {
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  color: var(--black);
  font-family: "Anton", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2.45rem, 12vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.pupusa-showcase {
  position: relative;
  min-height: 260px;
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--black);
  border: 4px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pupusa-showcase::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.82));
}

.pupusa-showcase img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.pupusa-showcase figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  padding: 13px 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(1.35rem, 6vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.product-card,
.drink-card,
.notes-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 8px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(80, 42, 26, 0.1);
}

.product-card {
  padding: 18px;
  margin-bottom: 14px;
}

.product-card.has-visual {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.product-card.featured {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(168, 0, 8, 0.95), rgba(17, 17, 17, 0.96)),
    url("../img/pupusas.png") center / cover;
  border-color: var(--black);
}

.item-visual {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--cream);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.18);
  font-size: 1.8rem;
  line-height: 1;
}

.featured .item-visual {
  background: var(--white);
}

.drink-card .item-visual {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-width: 2px;
  font-size: 1.45rem;
}

.product-info h3,
.notes-card h3 {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.product-desc {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.featured .product-desc {
  color: rgba(255, 255, 255, 0.78);
}

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

.price-row span,
.single-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--black);
  background: var(--cream);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: var(--radius);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-row strong,
.single-price {
  color: var(--red);
  font-size: 1.25rem;
}

.add-to-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.variant-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.variant-actions .add-to-list {
  width: 100%;
  margin-top: 0;
  padding-right: 10px;
  padding-left: 10px;
}

.add-to-list:active {
  transform: translateY(1px);
}

.featured .add-to-list {
  color: var(--black);
  background: var(--cream);
}

.drink-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.drink-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  font-weight: 800;
}

.drink-card .add-to-list {
  flex-shrink: 0;
  min-height: 38px;
  margin-top: 0;
  padding: 8px 12px;
}

.drink-card span {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.drink-card strong {
  flex-shrink: 0;
  color: var(--red);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.3rem;
}

.natural-card {
  border-left-color: var(--blue);
}

.photo-dish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.photo-dish-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  color: var(--white);
  background: var(--black);
  border: 4px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-dish-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.86));
  pointer-events: none;
}

.photo-dish-card > img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.photo-dish-card:hover > img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
}

.photo-dish-info {
  position: absolute;
  right: 16px;
  bottom: 64px;
  left: 16px;
  z-index: 1;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.photo-dish-info h3 {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(1.55rem, 7vw, 2.05rem);
  line-height: 1;
  text-transform: uppercase;
}

.photo-dish-info .product-desc {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.photo-dish-price {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 8px 16px;
  color: var(--black);
  background: var(--white);
  border-radius: 24px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.photo-dish-card .single-price {
  margin-top: 10px;
}

.photo-dish-card .add-to-list {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  margin-top: 0;
}

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

.custom-menu-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 3px solid var(--black);
  border-radius: calc(var(--radius) - 2px);
}

.notes-card {
  padding: 18px;
  margin-bottom: 14px;
  border-left-color: var(--blue);
}

.notes-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.notes-card li {
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.notes-card li::before {
  content: "";
  float: left;
  width: 8px;
  height: 8px;
  margin: 8px 0 0 -18px;
  background: var(--red);
  border-radius: 999px;
}

.alert-card {
  color: var(--white);
  background: var(--black);
  border-left-color: var(--red);
}

.alert-card li {
  color: rgba(255, 255, 255, 0.82);
}

.menu-footer {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: 24px;
  padding: 22px 12px 0;
  text-align: center;
  border-top: 8px solid transparent;
  border-image: linear-gradient(90deg, var(--blue) 0 32%, var(--white) 32% 68%, var(--blue) 68%) 1;
}

.menu-footer strong {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.menu-footer span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.menu-social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.menu-social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 4px 7px 0 rgba(17, 17, 17, 0.16);
}

.menu-social-link img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.floating-list-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 36px), 524px);
  min-height: 58px;
  margin: 0 auto;
  padding: 12px 18px;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.floating-list-bar strong {
  color: var(--cream);
}

.floating-list-bar[hidden],
.back-to-top[hidden],
.list-overlay[hidden] {
  display: none;
}

.back-to-top {
  position: fixed;
  right: max(16px, calc((100vw - 560px) / 2 + 16px));
  bottom: 92px;
  z-index: 82;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--black);
  border-radius: 999px;
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.28);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 5px 8px 0 rgba(17, 17, 17, 0.24);
}

.list-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 17, 17, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.list-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: min(100%, 560px);
  max-height: 82vh;
  margin: 0 auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--warm);
  border: 4px solid var(--black);
  border-bottom: 0;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 220ms ease;
}

.list-sheet.is-open {
  transform: translateY(0);
}

.sheet-handle {
  width: 52px;
  height: 5px;
  margin: 12px auto 8px;
  background: rgba(17, 17, 17, 0.28);
  border-radius: 999px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 14px;
  border-bottom: 8px solid transparent;
  border-image: linear-gradient(90deg, var(--blue) 0 32%, var(--white) 32% 68%, var(--blue) 68%) 1;
}

.sheet-header h2 {
  margin: 0;
  font-family: "Anton", "Barlow Condensed", Impact, sans-serif;
  font-size: 2.25rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.sheet-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--black);
  border: 0;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.list-content {
  display: grid;
  gap: 10px;
  max-height: 48vh;
  overflow-y: auto;
  padding: 16px 18px;
}

.empty-list {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 7px solid var(--red);
  border-radius: var(--radius);
}

.list-item strong {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--white);
  background: var(--black);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.item-qty {
  min-width: 22px;
  font-weight: 800;
  text-align: center;
}

.sheet-actions {
  padding: 12px 18px 22px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.clear-list {
  width: 100%;
  min-height: 48px;
  color: var(--black);
  background: var(--cream);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

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

.admin-panel {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 18px 16px 28px;
  color: var(--ink);
  background: var(--cream);
  border-top: 8px solid var(--red);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.18);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-panel-header span {
  color: var(--red);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-panel-header h2 {
  margin: 0;
  font-family: "Anton", "Barlow Condensed", Impact, sans-serif;
  font-size: 2.5rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-exit,
.admin-delete-item {
  min-height: 38px;
  padding: 9px 12px;
  color: var(--white);
  background: var(--black);
  border: 0;
  border-radius: var(--radius);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--black);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(17, 17, 17, 0.18);
  border-radius: var(--radius);
  font-family: "Inter", Arial, sans-serif;
  text-transform: none;
}

.admin-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-delete-item,
.admin-toggle-item,
.admin-edit-item {
  position: relative;
  top: auto;
  right: auto;
  z-index: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  font-size: 0.9rem;
  padding: 6px 10px;
  min-height: 34px;
}

.admin-delete-item {
  background: var(--red);
}

.admin-edit-item {
  background: var(--black);
  color: var(--white);
}

.admin-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.is-inactive {
  opacity: 0.45;
  filter: grayscale(100%);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  padding: 20px;
}

.image-modal[hidden] {
  display: none;
}

.image-modal-content {
  position: relative;
  max-width: 100%;
  max-height: 90vh;
}

#image-modal-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.image-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

@media (min-width: 520px) {
  .drink-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Make drink cards layout vertically in grid columns to prevent layout overflow */
  .drink-card {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 16px;
    gap: 8px;
    min-height: 180px;
  }

  .drink-card .item-visual {
    margin: 0 auto;
  }

  .drink-card span {
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 2px;
    display: block;
    word-break: break-word;
  }

  .drink-card strong {
    font-size: 1.25rem;
    margin-bottom: 6px;
    display: block;
  }

  .drink-card .add-to-list {
    width: 100%;
    margin-top: auto;
  }
}

@media (min-width: 768px) {
  /* Menu Hero grid side-by-side */
  .menu-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    text-align: left;
    padding: 30px 40px 40px;
  }
  .hero-tools {
    grid-column: 1 / -1;
  }
  .hero-video-frame {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
  }
  .brand-lockup, .menu-hero h1 {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
  .brand-lockup {
    align-self: end;
  }
  .menu-hero h1 {
    align-self: start;
    margin-top: 0;
  }

  /* Grid categories section */
  .category-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
  }
  .section-heading {
    grid-column: 1 / -1;
  }
  .drink-grid, .photo-dish-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .product-card.featured {
    grid-column: 1 / -1;
  }

  /* Admin panel grid layout */
  .admin-panel {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius);
    margin-top: 24px;
  }
  .admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .admin-form label:nth-child(3),
  .admin-form .admin-form-actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .category-list {
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .drink-grid, .photo-dish-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 390px) {
  .menu-container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .product-card {
    padding: 16px;
  }

  .product-card.has-visual {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .item-visual {
    width: 54px;
    height: 54px;
    font-size: 1.55rem;
  }

  .price-row {
    grid-template-columns: 1fr;
  }

  .variant-actions {
    grid-template-columns: 1fr;
  }

  .hero-video-frame {
    width: min(310px, 86vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-menu-video,
  .hero-menu-photo {
    animation: none;
  }

  .hero-menu-photo {
    display: none;
  }
}
