/* ==========================================================================
   WOX - Napi menü (daily menu) szekció a bolt oldalon
   Sötét shadcn-jellegű paletta: zinc háttér, krém elsődleges gomb, zöld accent.
   ========================================================================== */

.wox-dm {
  --wox-dm-accent: #42CB85;
  margin: 0 0 1.75rem;
  min-width: 0;
  max-width: 100%;
  scroll-margin-top: 150px;
}
.wox-dm[hidden] { display: none !important; }

/* fejléc: zöld pont + cím, jobbra az állapot-szöveg */
.wox-dm__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.75rem;
}
.wox-dm__title-wrap { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.wox-dm__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--wox-dm-accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--wox-dm-accent) 22%, transparent);
  flex-shrink: 0;
}
.wox-dm__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--foreground, #fafafa);
  margin: 0;
  line-height: 1.2;
}
.wox-dm__status {
  color: var(--muted-foreground, #a1a1aa);
  font-size: 0.85rem;
  margin: 0;
}

/* dátum-chipek: vízszintesen görgethető sor, a lap maga nem görög */
.wox-dm__chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 2px 2px 0.5rem;
  max-width: 100%;
}
.wox-dm__chips::-webkit-scrollbar { display: none; }

.wox-dm-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border, #27272a);
  background: transparent;
  color: var(--foreground, #fafafa);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wox-dm-chip:hover { border-color: var(--muted-foreground, #a1a1aa); }
.wox-dm-chip:focus-visible { outline: 2px solid var(--wox-dm-accent); outline-offset: 2px; }
.wox-dm-chip[aria-pressed="true"] {
  background: var(--primary, #faf9f5);
  color: var(--primary-foreground, #09090b);
  border-color: var(--primary, #faf9f5);
}
.wox-dm-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--wox-dm-accent);
  margin-right: 0.45rem;
  flex-shrink: 0;
}

/* kártya-lista: a meglévő .wox-menu-card és .wox-item stílusát használja */
.wox-dm__card { margin-top: 0.5rem; min-width: 0; max-width: 100%; }
.wox-dm-item { min-width: 0; }
.wox-dm-item--clickable { cursor: pointer; border-radius: 12px; }
.wox-dm-item--clickable:focus-visible { outline: 2px solid var(--wox-dm-accent); outline-offset: 4px; }
.wox-dm-item--clickable:hover .wox-item__name { color: var(--wox-dm-accent); }
.wox-dm-item .wox-item__text { min-width: 0; }
.wox-dm-item .wox-item__name { overflow-wrap: anywhere; transition: color 0.15s ease; }
.wox-dm-item .wox-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wox-dm-item__price del { opacity: 0.6; font-weight: 400; margin-right: 0.25rem; }

/* jövőbeli nap: nincs kosár-gomb, halvány pill */
.wox-dm-item__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--muted, #27272a);
  color: var(--muted-foreground, #a1a1aa);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
}
.wox-dm-item__pill .zmdi { font-size: 0.95rem; }

/* betöltés: csillogó vázlat */
.wox-dm-skel {
  display: block;
  background: linear-gradient(90deg,
    var(--muted, #27272a) 25%,
    color-mix(in oklch, var(--muted, #27272a) 55%, var(--card, #18181b)) 37%,
    var(--muted, #27272a) 63%);
  background-size: 400% 100%;
  animation: wox-dm-shimmer 1.4s ease infinite;
  border-radius: 10px;
}
.wox-dm-skel--chip { width: 96px; height: 36px; border-radius: 999px; flex: 0 0 auto; }
.wox-dm-skel--title { height: 14px; width: 55%; margin-bottom: 0.6rem; }
.wox-dm-skel--line { height: 11px; width: 80%; margin-bottom: 0.45rem; }
.wox-dm-skel--img { width: 112px; height: 112px; border-radius: 16px; flex-shrink: 0; }
.wox-dm-skel-item { display: flex; gap: 1.25rem; padding: 1.25rem 0; align-items: flex-start; }
.wox-dm-skel-item + .wox-dm-skel-item { border-top: 1px solid var(--border, #27272a); }
.wox-dm__skel-text { min-width: 0; }

@keyframes wox-dm-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* mobil: kisebb kép, szűkebb rés, hogy ne legyen vízszintes lapgörgetés */
@media (max-width: 575.98px) {
  .wox-dm__title { font-size: 1.15rem; }
  .wox-dm-item .wox-item__media { width: 96px; }
  .wox-dm-item .wox-item__image { width: 96px; height: 96px; }
  .wox-dm-skel--img { width: 96px; height: 96px; }
  .wox-dm-item { gap: 0.9rem; }
  .wox-dm-skel-item { gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wox-dm-skel { animation: none; }
  .wox-dm-chip,
  .wox-dm-item .wox-item__name { transition: none; }
}

/* Napi menü választás (A/B/C/D) dialog */
.wox-dm-choice {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(9, 9, 11, 0.7);
  padding: 16px;
}
.wox-dm-choice__panel {
  width: 100%;
  max-width: 460px;
  background: #18181b;
  color: #fafafa;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.wox-dm-choice__title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
}
.wox-dm-choice__hint {
  margin: 0 0 14px;
  color: #a1a1aa;
  font-size: 0.85rem;
}
.wox-dm-choice__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wox-dm-choice__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  cursor: pointer;
}
.wox-dm-choice__option:has(input:checked) {
  border-color: #42cb85;
  background: rgba(66, 203, 133, 0.08);
}
.wox-dm-choice__name {
  flex: 1;
  font-weight: 600;
}
.wox-dm-choice__price {
  color: #a1a1aa;
  font-size: 0.85rem;
}
.wox-dm-choice__error {
  margin: 10px 0 0;
  color: #f87171;
  font-size: 0.85rem;
}
.wox-dm-choice__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.wox-dm-choice__actions button {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.wox-dm-choice__cancel {
  background: #27272a;
  color: #fafafa;
}
.wox-dm-choice__confirm {
  background: #faf9f5;
  color: #09090b;
}
.wox-dm-choice__confirm:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Empty menu card (no normal categories left, e.g. only daily menu dishes) stays hidden */
.wox-menu-card:not(:has(*)) {
  display: none;
}
