/* gv-catalog.css — «Список продуктов для кормящей мамы» (v1, 07.10.2026, Jarvis)
   Подключается после base-style.css и gv-article.css. Префикс .gc- */

/* Заголовок */
.gc-head { display: grid; gap: 14px; align-items: end; margin: 6px 0 18px; padding: 22px 20px; border-radius: var(--r-xl); background: radial-gradient(120% 90% at 100% 0%, #FFE6EC 0%, rgba(255,230,236,0) 55%), linear-gradient(180deg,#FFF8F3 0%,#fff 100%); border: 1px solid var(--rose-2); }
.gc-head h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.12; margin-bottom: 8px; }
.gc-head__lead { font-size: 16px; line-height: 1.65; color: var(--ga-text); max-width: 720px; }
.gc-head__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--border-2); font-size: 14px; color: var(--mid); }
.gc-stat b { font-size: 18px; font-weight: 800; }
.gc-stat--ok b { color: var(--mint-text); } .gc-stat--care b { color: var(--warn-text); } .gc-stat--wait b { color: var(--stop-text); }
@media (min-width: 900px) { .gc-head { grid-template-columns: minmax(0,1fr) auto; padding: 30px 32px; } .gc-head__stats { flex-direction: column; align-items: stretch; } }

/* Инструменты */
.gc-tools { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border-2); box-shadow: var(--sh-sm); }
.gc-search { margin-top: 0; max-width: none; }
.gc-row { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 10px; align-items: start; }
.gc-row__label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 9px; }
.gc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-pill, .gc-cat { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: #fff; font-size: 14px; font-weight: 600; color: var(--dark); white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.gc-pill span, .gc-cat__n { font-size: 12px; font-weight: 700; color: var(--muted); }
.gc-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.gc-pill--ok i { background: var(--mint); } .gc-pill--care i { background: var(--warn); } .gc-pill--wait i { background: var(--stop); }
.gc-pill:hover, .gc-cat:hover { border-color: var(--rose-soft); }
.gc-pill.is-on, .gc-cat.is-on { background: var(--rose); border-color: var(--rose); color: #fff; }
.gc-pill.is-on span, .gc-cat.is-on .gc-cat__n { color: rgba(255,255,255,.8); }
.gc-pill.is-on i { background: #fff; }
.gc-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-cats.is-collapsed { max-height: 84px; overflow: hidden; }
.gc-cat__e { font-size: 16px; line-height: 1; }
.gc-cats__more { grid-column: 2; justify-self: start; font-size: 13.5px; font-weight: 700; color: var(--rose); padding: 2px 0; }
@media (max-width: 720px) {
  .gc-tools { padding: 12px; }
  .gc-row { grid-template-columns: 1fr; gap: 6px; }
  .gc-row__label { padding-top: 0; }
  .gc-pills, .gc-cats { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
  .gc-pills::-webkit-scrollbar, .gc-cats::-webkit-scrollbar { display: none; }
  .gc-cats.is-collapsed { max-height: none; overflow-x: auto; }
  .gc-cats__more { display: none; }
}

/* Панель результатов */
.gc-list { margin-top: 18px; scroll-margin-top: 90px; }
.gc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 14px; }
.gc-bar__found { font-size: 15px; color: var(--mid); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gc-bar__found b { color: var(--dark); font-size: 17px; }
.gc-reset { font-size: 13.5px; font-weight: 700; color: var(--rose); }
.gc-reset.is-hidden { display: none; }
.gc-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.gc-sort select { font: inherit; font-size: 14px; color: var(--dark); padding: 8px 32px 8px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23B7104C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center/12px no-repeat; -webkit-appearance: none; appearance: none; }
.gc-bar__pager { margin-left: auto; }
@media (max-width: 720px) { .gc-bar__pager { display: none; } .gc-sort { margin-left: auto; } }

/* Карточки */
.gc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 640px) { .gc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; } }
@media (min-width: 1000px) { .gc-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.gc-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--border-2); transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 148px; }
.gc-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--rose-soft); }
.gc-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.gc-card__e { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-warm); display: grid; place-items: center; font-size: 24px; line-height: 1; flex: 0 0 auto; }
.gc-card__name { font-weight: 800; font-size: 15.5px; line-height: 1.3; color: var(--dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-card__cat { font-size: 12.5px; color: var(--muted); }
.gc-card__when { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mid); }
.gc-card__when .ga-ico { width: 15px; height: 15px; color: var(--rose); }
.gc-st { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; white-space: nowrap; }
.gc-st--ok { background: var(--mint-bg); color: var(--mint-text); }
.gc-st--care { background: var(--warn-bg); color: var(--warn-text); }
.gc-st--wait { background: var(--stop-bg); color: var(--stop-text); }
.gc-empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--mid); background: var(--bg-warm); border-radius: var(--r-md); }
.gc-empty a { color: var(--rose); font-weight: 700; }
@media (max-width: 400px) { .gc-card { padding: 12px; min-height: 140px; } .gc-card__e { width: 38px; height: 38px; font-size: 21px; } .gc-card__name { font-size: 14.5px; } }

/* Низ списка */
.gc-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.gc-foot__pager { margin-left: auto; }
.gc-more { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill); background: var(--rose); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 22px rgba(183,16,76,.22); transition: transform .15s, opacity .15s; }
.gc-more:hover { transform: translateY(-1px); }
.gc-more.is-hidden { display: none; }
.gc-more.is-loading { opacity: .6; }
.gc-more__n { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: rgba(255,255,255,.22); font-size: 13px; }
@media (max-width: 560px) { .gc-foot { flex-direction: column-reverse; align-items: stretch; } .gc-foot__pager { margin-left: 0; display: flex; justify-content: center; } .gc-more { justify-content: center; } }

/* Пагинатор — тот же вид, что на poleznyblog и everfin */
.gv-pager { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mid); }
.gv-pager__arrow { width: 48px; height: 48px; flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-2); border-radius: 12px; background: #fff; color: var(--dark); transition: border-color .15s, color .15s; }
.gv-pager__arrow:hover { border-color: var(--rose-soft); color: var(--rose); }
.gv-pager__arrow.is-disabled { opacity: .4; pointer-events: none; }
.gv-pager__input { width: 56px; height: 48px; text-align: center; border: 1.5px solid var(--border-2); border-radius: 12px; background: #fff; color: var(--dark); font: inherit; font-size: 15px; font-weight: 700; }
.gv-pager__input:focus { outline: none; border-color: var(--rose); }
.gv-pager__total { white-space: nowrap; }

/* Текст раздела */
.gc-text { margin-top: 30px; max-width: 900px; }
.gc-tlink { color: var(--dark) !important; text-decoration: none !important; font-weight: 700; }
.gc-tlink:hover { color: var(--rose) !important; }
.gc-ttable td:nth-child(2) { color: var(--mint-text); font-weight: 700; }
.gc-ttable td:nth-child(3) { color: var(--warn-text); font-weight: 700; }
.gc-ttable td:nth-child(4) { color: var(--stop-text); font-weight: 700; }
