/* Omnitrition product list: shared by Shop (om_shop_main) and Collection pages. */
.om-list {
  --om-ink: #25247F;
  --om-accent: #0679C3;
  --om-line: #e3e3ef;
  --om-muted: #5c5c7a;
  color: var(--om-ink);
  padding: 32px 0 72px;
}
.om-list__inner { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.om-list__title { text-align: center; font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; color: var(--om-ink); margin: 8px 0 28px; }
.om-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Toolbar: Filters | Sort | count */
.om-list__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 14px 0; border-top: 1px solid var(--om-line); border-bottom: 1px solid var(--om-line); margin-bottom: 28px; }
.om-list__count { margin-left: auto; font-size: 15px; color: var(--om-muted); }
.om-list__count span + span { margin-left: 4px; }
.om-sort { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.om-sort select { appearance: none; -webkit-appearance: none; border: 1px solid var(--om-line); border-radius: 999px; padding: 9px 38px 9px 16px; font: 600 15px/1.2 inherit; color: var(--om-ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2325247F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }

/* Filters drawer (native <details>) */
.om-filters { position: relative; }
.om-filters > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 15px; border: 1px solid var(--om-ink); border-radius: 999px; padding: 9px 18px; }
.om-filters > summary::-webkit-details-marker { display: none; }
.om-filters__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--om-ink); color: #fff; font-size: 12px; }
.om-filters__panel { position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; width: min(360px, 90vw); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--om-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(37, 36, 127, .12); padding: 20px; }
.om-filters__heading { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.om-filters__group { border-top: 1px solid var(--om-line); padding: 12px 0; }
.om-filters__group > summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 4px 0; }
.om-filters__group ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.om-filters__group li[data-overflow][hidden] { display: none; }
.om-filters__group label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.om-filters__group input { width: 18px; height: 18px; accent-color: var(--om-ink); }
.om-filters__value-count { color: var(--om-muted); font-size: 13px; }
.om-filters__more { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--om-accent); font: 600 14px/1.2 inherit; text-decoration: underline; cursor: pointer; }
.om-filters__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--om-line); padding-top: 16px; margin-top: 4px; }
.om-filters__clear { color: var(--om-ink); font-weight: 600; font-size: 14px; }
.om-filters__apply { border: 2px solid var(--om-ink); background: var(--om-ink); color: #fff; border-radius: 999px; padding: 11px 24px; font: 600 15px/1 inherit; cursor: pointer; }

/* Grid + card */
.om-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--om-cols, 4), minmax(0, 1fr)); gap: 40px 24px; }
.om-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.om-card__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f6f6fb; }
.om-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s ease; }
.om-card__media:hover img { transform: scale(1.04); }
.om-card__media-empty { display: block; width: 100%; height: 100%; }
.om-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.om-card__badge { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: var(--om-ink); color: #fff; }
.om-card__badge--soldout { background: #6b6b80; }
.om-card__title { font-size: 16px; line-height: 1.4; font-weight: 600; margin: 0; }
.om-card__title a { color: var(--om-ink); text-decoration: none; }
.om-card__title a:hover { text-decoration: underline; }
.om-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; color: var(--om-ink); }
.om-card__price-was { color: var(--om-muted); font-weight: 400; }

/* States */
.om-list__empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--om-line); border-radius: 12px; }
.om-list__empty h2 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.om-list__empty p { margin: 0 0 16px; color: var(--om-muted); }
.om-list__empty a { color: var(--om-ink); font-weight: 600; }
.om-list__pagination { margin-top: 48px; }

@media (max-width: 1024px) {
  .om-grid { --om-cols: 3; }
}
@media (max-width: 749px) {
  .om-list__inner { padding: 0 16px; }
  .om-grid { --om-cols: 2; gap: 28px 14px; }
  .om-list__count { width: 100%; margin-left: 0; }
  .om-filters { position: static; }
  .om-filters__panel { position: fixed; inset: auto 0 0 0; width: 100%; max-height: 80vh; border-radius: 16px 16px 0 0; }
  .om-card__title { font-size: 14px; }
}
