/* Collection pages (/collections/*, except weight-loss) — Nov 15 2026. Scope .co on top of weight-loss.css (.wl tokens, buttons,
   wl-works steps) and wl-product.css (wl-os-coll intro: head + prose cards + closing line). Adds the catalog product card, the grid,
   the /collections/all filter bar + pagination and the closing band. */
.co { --co-ivory: #fbf7f2; background: #fff; }
.co .co-intro { padding-block: 28px 8px; }
.co .co-intro .wl-os-coll__head .wl-lead { font-size: clamp(16px, 4.2vw, 19px); line-height: 1.5; }
.co .co-intro p.wl-os-coll__h2 strong { font-weight: 700; }
.co .co-intro p.wl-os-coll__h2 { color: var(--wl-ink); }
.co .wl-os-coll__card p.co-card-title { font-size: clamp(20px, .6vw + 15px, 24px); letter-spacing: -0.03em; line-height: 1.15; color: var(--wl-ink); }
.co .wl-os-coll__card p.co-card-title strong { font-weight: 800; }
.co .wl-os-coll__card h3 b { font-weight: inherit; }
.co .wl-os-coll__h2 b { font-weight: inherit; }
.co .wl-os-coll__card li span { min-width: 0; }

/* ---------- grid ---------- */
.co .co-grid { padding-block: 26px var(--wl-sec); }
.co-grid__bar, .co-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--wl-line); }
.co .co-grid__count { margin-right: auto; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--wl-muted); }
.co-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
.co-card { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; min-width: 0; }
.co-card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #ffe6d8; }
.co-card__img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.co-card__media--catalog { background: #f6efe8; }
.co-card__media--catalog .co-card__img { object-fit: contain; }
.co-card:hover .co-card__img { transform: scale(1.04); }
.co-card__badge { position: absolute; left: 10px; top: 10px; padding: 5px 11px; border-radius: 999px; background: var(--wl-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.co .co-card__title { margin-top: 12px; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--wl-ink); overflow-wrap: anywhere; }
.co .co-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.co-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 6px !important; font-size: 15px; color: var(--wl-ink); }
.co-card__price strong { font-weight: 800; letter-spacing: -0.01em; }
.co-card__price s { font-size: 13px; color: var(--wl-muted); }
.co-card__btns { display: grid; gap: 8px; align-content: end; margin-top: 12px; }
.co .co-card__btns .wl-btn { min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 700; width: 100%; }
.co .co-card__more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--wl-ink); }
.co-card__more .wl-ico { width: 16px; height: 16px; transition: transform .2s ease; }
.co-card__more:hover .wl-ico { transform: translateX(3px); }
.co-grid__empty { padding: 40px 0; text-align: center; font-size: 17px; color: var(--wl-text); }
.co .co-grid__empty a, .co .co-close__guide a { text-decoration: underline; text-underline-offset: 3px; }
.co-grid__foot { margin-top: 26px !important; text-align: center; font-size: 13px; color: var(--wl-muted); }
@media (min-width: 750px) {
  .co-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 16px; }
  .co .co-card__title { font-size: 16px; }
  .co-card__price { font-size: 16px; }
}
@media (min-width: 1024px) {
  .co-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; }
  .co-card__btns { grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
  .co .co-card__more { justify-content: flex-start; white-space: nowrap; }
}
@media (min-width: 1400px) { .co-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- /collections/all: filter bar, chips, pagination ---------- */
.co-filter { position: relative; }
.co-filter__sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--wl-ink); }
.co-filter select, .co-filter input[type="number"] { min-height: 42px; border: 1.5px solid #dcd6ce; border-radius: 12px; background: #fff; color: var(--wl-ink); font: 500 15px/1 var(--wl-font); }
.co-filter select { padding: 0 34px 0 14px; }
.co-filter__price { position: relative; }
.co-filter__price > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid #dcd6ce; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--wl-ink); }
.co-filter__price > summary::-webkit-details-marker { display: none; }
.co-filter__price > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.co-filter__price[open] > summary { border-color: var(--wl-ink); }
.co-filter__panel { position: absolute; z-index: 5; right: 0; top: calc(100% + 8px); width: min(300px, 86vw); display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -18px rgba(20, 18, 16, .35), 0 0 0 1px var(--wl-line); }
.co-filter__panel p { font-size: 13px; color: var(--wl-muted); }
.co-filter__panel label { display: grid; grid-template-columns: 44px auto 1fr; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--wl-ink); }
.co-filter__panel input { width: 100%; padding: 0 10px; box-sizing: border-box; }
.co .co-filter__panel .wl-btn { min-height: 42px; font-size: 15px; }
.co-facets { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px !important; }
.co .co-facet { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--co-ivory); border: 1px solid #e6ddd2; font-size: 13px; font-weight: 600; color: var(--wl-ink); }
.co .co-facet--all { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.co-pages { margin-top: 34px; }
.co-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.co .co-pages a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 999px; border: 1.5px solid #dcd6ce; font-size: 15px; font-weight: 600; color: var(--wl-ink); }
.co .co-pages a:hover { border-color: var(--wl-ink); }
.co .co-pages a.is-current { background: var(--wl-ink); border-color: var(--wl-ink); color: #fff; }
.co-pages .wl-ico { width: 18px; height: 18px; }

/* ---------- how it works + closing band ---------- */
.co .co-works { background: var(--co-ivory); }
.co .co-works .wl-step { background: #fff; }
.co .co-works .wl-works__lead { max-width: 60ch; margin-inline: auto; font-size: clamp(16px, 4.2vw, 19px); color: #4a4d55; }
.co .co-close { background: #0d0d0e; color: #fff; padding-block: var(--wl-sec); }
.co-close__in { display: grid; justify-items: center; text-align: center; }
.co .co-close__title { font-size: clamp(34px, 8.6vw, 64px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: #fff; text-wrap: balance; }
.co-close__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.co .co-close__ghost { border-color: rgba(255, 255, 255, .55); color: #fff !important; background: transparent; min-height: 60px; font-size: 18px; }
.co .co-close__ghost:hover { background: #fff; color: #0d0d0e !important; }
.co-close__guide { margin-top: 18px !important; font-size: 15px; color: rgba(255, 255, 255, .78); }
.co .co-close__guide a { color: #fff; }
.co-close__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 22px !important; font-size: 15px; color: rgba(255, 255, 255, .78); }
.co-close__trust li { display: inline-flex; align-items: center; gap: 6px; }
.co-close__trust strong { color: #fff; }
.co-close__trust .wl-ico { width: 18px; height: 18px; color: #00b67a; }
@media (max-width: 749px) { .co-close__ctas .wl-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .co-card__img, .co-card__more .wl-ico { transition: none !important; transform: none !important; } }

/* ---------- Nov 15 pass 2 (user: alignment / centering on /collections/all) ---------- */
/* rows share their lines (picture, title, price, buttons) so every card in a row lines up; 2 → 4 columns only, so a page of 16
   never ends with a lone card; everything under the picture reads from the left edge */
.co-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; column-gap: 12px; }
.co-card { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 30px; }
.co-card__media--catalog .co-card__img { object-fit: cover; }
.co-card__btns { grid-template-columns: minmax(0, 1fr); gap: 4px; align-content: start; justify-items: start; margin-top: 12px; }
.co .co-card__more { justify-content: flex-start; min-height: 40px; white-space: nowrap; }
@media (min-width: 750px) { .co-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; } .co-card { margin-bottom: 38px; } }
@media (min-width: 1400px) { .co-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 22px; } }
@media (min-width: 1280px) {
  .co-card__btns { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
  .co .co-card__title { font-size: 17px; }
}
/* filter bar: count on its own line on phones, then Price and Sort side by side filling the row */
.co-filter__sort select { min-width: 0; }
@media (max-width: 749px) {
  .co-filter .co-grid__count { flex: 0 0 100%; margin: 0; }
  .co-filter__sort { flex: 1 1 0; justify-content: flex-end; min-width: 0; }
  .co-filter__sort select { flex: 0 1 168px; width: 168px; padding-right: 26px; }
  .co-filter__panel { right: auto; left: 0; }
  .co .co-intro .wl-os-coll__head { text-align: left; }
  .co .co-intro .wl-rule { margin-left: 0; }
  .co .wl-os-coll__close, .co-grid__foot { text-align: left; }
}

/* ---------- Nov 15 pass 3 (user: buttons not aligned, phones not centred, "busy and compact, no gaps") ---------- */
/* each product is its own padded tile with centred text and two equal buttons; phones show one button (the name and picture
   already link to the product page) and get real gaps between tiles; more air around the intro and the filter bar */
.co .co-intro { padding-block: 40px 14px; }
.co .co-intro .wl-os-coll__head { text-align: center; }
.co .co-intro .wl-rule { margin-left: auto; }
.co .wl-os-coll__close, .co-grid__foot { text-align: center; }
.co .co-grid { padding-top: 34px; }
.co-grid__bar, .co-filter { padding-bottom: 18px; margin-bottom: 26px; }
.co-cards { column-gap: 14px; }
.co-card { margin-bottom: 14px; padding: 10px 10px 16px; border-radius: 22px; background: #faf6f1; text-align: center; }
.co-card__media { border-radius: 14px; }
.co .co-card__title { margin-top: 16px; padding-inline: 4px; font-size: 15px; line-height: 1.35; text-wrap: balance; }
.co-card__price { justify-content: center; margin-top: 10px !important; padding-inline: 4px; }
.co-card__btns { grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 8px; margin-top: 18px; padding-inline: 2px; }
.co .co-card__btns .wl-btn { min-height: 46px; }
.co .co-card__more { justify-content: center; min-height: 46px; padding: 0 12px; border-radius: 999px; border: 1.5px solid #d9d0c6; background: #fff; font-size: 15px; font-weight: 700; transition: border-color .18s ease; }
.co .co-card__more:hover { border-color: var(--wl-ink); }
.co-card__more .wl-ico { display: none; }
@media (max-width: 749px) {
  .co .co-card__more { display: none; }
  .co-filter .co-grid__count { margin-bottom: 4px; }
}
@media (min-width: 750px) {
  .co-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
  .co-card { margin-bottom: 20px; padding: 12px 12px 18px; }
  .co .co-card__title { font-size: 16px; }
}
@media (min-width: 1100px) {
  .co-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
  .co-card { margin-bottom: 24px; padding: 14px 14px 20px; }
}
@media (min-width: 1280px) {
  .co-card__btns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .co .co-card__title { font-size: 17px; }
}
