/* Карточка семейства: только дополнения к стилям страницы товара сайта (productPage, productPrices,
   categoryTags__item, pageText__content). Цвета — как у сайта: акцент #e5332a (кнопки и иконки). */
.gkCard__select { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
/* Подписи полей в карточке — как «Размер» в форме editProduct. */
.gkCard__selectTitle { flex: 0 0 9em; color: #1E1E1E; font-size: 16px; font-weight: 700; line-height: 1.4; }
.gkCard__selectItems { display: flex; flex-wrap: wrap; gap: 6px; }
.gkCard__selectItems .categoryTags__item { margin: 0; }
.categoryTags__item.gkCard__chip--active { background: #1e1e1e; color: #fff; }
.gkCard__summary { margin-top: 18px; font-size: max(20px, var(--regular-text)); line-height: 1.4; color: var(--text); }
.gkCard__summary a { display: inline-block; max-width: 100%; color: inherit; text-decoration: underline; text-underline-offset: .12em; }
.gkCard__summary a:hover { color: var(--accent); }
.categoryTags__item.gkCard__chip--other { opacity: .55; }
.gkFilter__card { padding: 16px 0 8px; font-weight: 600; }
.gkFilter__card a { color: inherit; text-decoration: none; }
.gkFilter__card a:hover { color: #e5332a; }
.gkCard__price { font-size: max(20px, 1.125em); font-weight: 700; white-space: nowrap; }

/* Кнопки диаметра и длины — закреплены под шапкой сайта, пока видна таблица цен (top ставит card.js). */
.gkCard__pick { position: sticky; top: 0; z-index: 50; padding: 16px 0 12px; background: #fff; transition: box-shadow .2s; }
.gkCard__pick.is-stuck { box-shadow: 0 8px 8px -8px rgba(0, 0, 0, .18); }
.gkCard__pick .gkCard__select:first-child { margin-top: 0; }
.productPrices__item.is-hidden { display: none; }
.productPrices__itemBlock:has(> [data-unit-price="0"], > [data-unit-price=""], > [data-unit-price^="-"])::after { content: none; }
.productPrices__itemBlock .gkStock { display: block; font-size: 12px; color: #2e7d32; margin-top: 2px; }
@media (max-width: 1023px) { .productPrices__itemBlock .gkStock { display: inline; margin: 0 0 0 8px; } }
.gkStock--order { color: #7a7a7a; }


/* Вкладки «Характеристики / Размеры по стандарту» — deliveryPage__caption сайта, только отступы и размер плашек. */
.gkCard__tabs { margin-top: 48px; }
.gkCard__tabs .deliveryPage__caption { margin: 0 0 24px; }
.gkCard__tabs .deliveryPage__caption li :is(a, button) { padding: 16px 18px; font-size: 18px; }
.gkCard__tabs .gkCard__section { max-width: 900px; }
.gkCard__section .gkCard__note:first-child { margin-top: 0; }
.gkCard__note { font-size: 13px; color: #7a7a7a; }
.gkLinks { margin: 48px 0 0; }
.gkLinks__list { display: flex; flex-wrap: wrap; gap: 8px; }
.gkLinks .categoryTags__item { margin: 0; }
.gkCard__docsList { display: flex; flex-wrap: wrap; gap: 12px; }
.gkCard__docsList { gap: 24px; }
.gkCard__doc { display: flex; align-items: center; gap: 8px; }
.gkCard__related { margin-top: 48px; }

@media (max-width: 767px) {
  .gkCard__select { flex-direction: column; gap: 6px; }
  .gkCard__selectTitle { flex: none; }
  .gkCard__tabs { margin-top: 32px; }
  .gkCard__tabs .deliveryPage__caption li :is(a, button) { padding: 12px; font-size: 16px; }
}

/* На телефоне закреплённые кнопки — одной строкой с прокруткой, чтобы не закрывали полэкрана. */
@media (max-width: 1023px) {
  .gkCard__summary { font-size: var(--regular-text); }
  /* The picker changes height as it sticks. Anchoring to a product row would undo that scroll. */
  .gkCard { overflow-anchor: none; }
  .gkCard__pick.is-stuck { padding: 10px 0 8px; }
  .gkCard__pick.is-stuck .gkCard__select { margin-top: 6px; }
  .gkCard__pick.is-stuck .gkCard__selectTitle { display: none; }
  .gkCard__pick.is-stuck .gkCard__selectItems { min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gkCard__pick.is-stuck .gkCard__selectItems .categoryTags__item { flex: none; }
}


.gkCard__tabs button[role=tab], .gkCard button.categoryTags__item { border: 0; }
.gkCard__tabs [role=tabpanel][hidden], dialog.editProduct:not([open]) { display: none; }

/* Remove the browser dialog frame so the sheet uses the site's editProduct layout. */
dialog.editProduct {
  inset-block-start: auto;
  margin: 0;
  border: 0;
  max-width: none;
  color: inherit;
}
dialog.editProduct[open] { display: block; }
