/* The menu "by category" (templates/storefront/_shop/menu_list.html), the same block in the 3 templates: it takes
   the colours and fonts of the template the page uses (template 1 --t1-*, template 2 --t2-*, template 3 --t3-*;
   only one set exists on a page). Design: the client's mockup "La Marinade" (2026-10-31): dark rows, round photo,
   name in the display font, a round arrow; open, the products as compact rows, 1 column on phones, 2 then 3 wider. */
.shop-mlist {
  --ml-surface: var(--t1-surface, var(--t2-surface, var(--t3-card, #18191b)));
  --ml-text: var(--t1-text, var(--t2-text, var(--t3-ink, #fff)));
  --ml-muted: var(--t1-text-2, var(--t2-muted, var(--t3-muted, #a3a4a5)));
  --ml-line: var(--t1-border, var(--t2-border, var(--t3-line, rgb(255 255 255 / .1))));
  --ml-accent: var(--t1-accent, var(--t2-accent, var(--t3-accent, #d93c2e)));
  --ml-on-accent: var(--t1-on-accent, var(--t2-on-accent, var(--t3-on-accent, #fff)));
  --ml-price: var(--t1-accent-2, var(--t2-accent-2, var(--t3-accent-text, #ff6a5c)));
  --ml-display: var(--t1-display, var(--font-display, inherit));
  --ml-soft: color-mix(in srgb, var(--ml-text) 6%, transparent);
  display: grid;
  gap: 12px;
  margin-top: 20px;
  color: var(--ml-text);
}
.shop-mlist__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.shop-mlist__title { margin: 0; font: 400 clamp(30px, 5vw, 56px)/1 var(--ml-display); text-transform: uppercase; }
.shop-mlist__total { color: var(--ml-muted); font-size: 14px; white-space: nowrap; }

.shop-mlist__cat { scroll-margin-top: 90px; border: 1px solid var(--ml-line); border-radius: 22px; background: var(--ml-surface);
  overflow: hidden; transition: border-color .2s; }
.shop-mlist__cat.is-open { border-color: color-mix(in srgb, var(--ml-accent) 70%, transparent); }
.shop-mlist__h { margin: 0; font: inherit; }
.shop-mlist__toggle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.shop-mlist__thumb { flex: none; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border: 2px solid var(--ml-line);
  border-radius: 50%; background: var(--ml-soft); color: var(--ml-muted); font: 400 18px/1 var(--ml-display); }
.shop-mlist__cat.is-open .shop-mlist__thumb { border-color: var(--ml-accent); }
.shop-mlist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-mlist__label { flex: 1; min-width: 0; display: grid; gap: 2px; }
.shop-mlist__name { font: 400 clamp(20px, 2.4vw, 30px)/1.05 var(--ml-display); text-transform: uppercase; overflow-wrap: anywhere; }
.shop-mlist__n { color: var(--ml-muted); font-size: 13px; }
.shop-mlist__chev { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ml-soft);
  transition: background-color .2s, transform .25s; }
.shop-mlist__chev svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.shop-mlist__cat.is-open .shop-mlist__chev { background: var(--ml-accent); color: var(--ml-on-accent); transform: rotate(180deg); }
.shop-mlist__toggle:hover .shop-mlist__chev { background: color-mix(in srgb, var(--ml-text) 12%, transparent); }
.shop-mlist__cat.is-open .shop-mlist__toggle:hover .shop-mlist__chev { background: var(--ml-accent); }

.shop-mlist__items { display: grid; gap: 8px; padding: 10px 10px 12px; border-top: 1px solid var(--ml-line); }
@media (min-width: 720px) { .shop-mlist__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shop-mlist__items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-mlist__item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px;
  background: var(--ml-soft); cursor: pointer; }
.shop-mlist__photo { flex: none; display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border-radius: 14px;
  background: color-mix(in srgb, var(--ml-text) 5%, transparent); color: var(--ml-muted); font: 400 18px/1 var(--ml-display); }
.shop-mlist__photo img { width: 100%; height: 100%; object-fit: cover; }
.shop-mlist__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.shop-mlist__iname { font-weight: 700; font-size: 15px; line-height: 1.25; }
.shop-mlist__desc { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ml-muted);
  font-size: 13px; line-height: 1.35; }
.shop-mlist__allergens { color: var(--ml-muted); font-size: 12px; line-height: 1.3; }
.shop-mlist__price { color: var(--ml-price); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.shop-mlist__qty { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: var(--ml-accent);
  color: var(--ml-on-accent); font-size: 12px; font-weight: 700; }
.shop-mlist__add { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--ml-accent); color: var(--ml-on-accent); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.shop-mlist__add.is-off { opacity: .45; }
.shop-mlist__item.is-sold-out { cursor: default; }
.shop-mlist__item.is-sold-out .shop-mlist__photo img { filter: grayscale(1); opacity: .5; }
.shop-mlist__item.is-sold-out .shop-mlist__price { color: var(--ml-muted); }
.shop-mlist__empty { margin: 8px 0; color: var(--ml-muted); }
.shop-mlist :focus-visible { outline: 2px solid var(--ml-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .shop-mlist__chev, .shop-mlist__cat { transition: none; } }
