/* Hand-written additions on top of the captured Tailwind build.
   Uses the same design tokens (--foreground, --accent, --card, --border, etc.)
   defined in styles.css so it matches the original site exactly. */

#cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent, #b3541e);
  color: var(--background, #fdf6ec);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#cart-count[data-empty="true"] { display: none; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border, #e4ded2);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary, #f3ede0);
  color: var(--foreground, #2a1a0e);
  font-size: 16px;
  line-height: 1;
  border: none;
  cursor: pointer;
}
.qty-stepper button:hover { background: var(--muted, #ece5d6); }
.qty-stepper span {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #e4ded2);
}
.menu-item-row:last-child { border-bottom: none; }

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--foreground, #2a1a0e);
  color: var(--background, #fdf6ec);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.add-btn:hover { opacity: 0.9; }
.add-btn[data-added="true"] { background: var(--accent, #b3541e); }

.category-nav-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-nav-scroll::-webkit-scrollbar { display: none; }
.category-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border, #e4ded2);
  color: var(--foreground, #2a1a0e);
  background: var(--card, #fffdf8);
  text-decoration: none;
  white-space: nowrap;
}
.category-pill.active {
  background: var(--foreground, #2a1a0e);
  color: var(--background, #fdf6ec);
  border-color: var(--foreground, #2a1a0e);
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--foreground, #2a1a0e);
  color: var(--background, #fdf6ec);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border, #e4ded2);
}
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted-foreground, #8a7c68);
}

.menu-section {
  scroll-margin-top: 96px;
  border-top: 1px solid var(--border, #e4ded2);
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.menu-section:first-child {
  border-top: none;
  padding-top: 0;
}

.menu-category-nav {
  position: sticky;
  top: 57px;
  z-index: 30;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--background, #fdf6ec);
  border-bottom: 1px solid var(--border, #e4ded2);
  padding: 12px 4px;
  margin-bottom: 24px;
}
.menu-category-nav::-webkit-scrollbar { display: none; }

.menu-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
}
@media (min-width: 768px) {
  .menu-photo-grid { grid-template-columns: repeat(4, 1fr); }
}
.menu-photo-grid figure {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border, #e4ded2);
  aspect-ratio: 1 / 1;
}
.menu-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-banner {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border, #e4ded2);
  margin-bottom: 24px;
}
.menu-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .menu-banner img { height: 320px; }
}
