/* Карточка товара: выбор цвета и размера у товара из 1688 (Э2, 01.12). Шторка таблицы размеров — общие стили `.vdraw` из variant-pick.css. Подробности — variant-card.js. */
.vcard { margin: 14px 0 0; }
.vcard:empty { display: none; }
.vcard__sec { margin: 0 0 14px; }
.vcard__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 14px; color: var(--sh-ink); }
.vcard__table { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--sh-blue); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.vcard__colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vcard__tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-sizing: border-box; min-height: 60px; min-width: 0; padding: 6px; border: 1px solid var(--sh-line);
	border-radius: 10px; background: var(--sh-card); color: var(--sh-ink); font: inherit; font-size: 13px; cursor: pointer; }
.vcard__tile .vcard__n { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.vcard__tile small { font-size: 10px; color: var(--sh-muted); }
.vcard__pic { width: 28px; height: 30px; object-fit: cover; border-radius: 6px; background: var(--sh-bg); }
.vcard__tile.is-on { border: 2px solid var(--sh-blue); font-weight: 600; padding: 5px; }
.vcard__tile.is-off, .vcard__chip.is-off { background: var(--sh-bg); color: var(--sh-muted); cursor: not-allowed; }
.vcard__sizes { display: flex; flex-wrap: wrap; gap: 3px; }
.vcard__chipw { display: flex; flex: 1 1 44px; min-width: 44px; max-width: 64px; }
.vcard__chip { width: 100%; min-height: 44px; min-width: 44px; padding: 6px 2px; border: 1px solid var(--sh-line); border-radius: 8px; background: var(--sh-card); color: var(--sh-ink); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.vcard__chip.is-on { background: var(--sh-blue); color: var(--sh-on-blue, #fff); border-color: var(--sh-blue); }
.vcard__grey { margin: 8px 0 0; font-size: 12px; color: var(--sh-muted); }
.vcard__grey[hidden], .vcard__msg[hidden], .vcard__need[hidden] { display: none; }
.vcard__msg { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--sh-sale-soft); color: var(--sh-sale-deep); font-size: 13px; }
.vcard__need { margin: 0 0 8px; font-size: 13px; color: var(--sh-muted); text-align: center; }
.tovar__go .tovar__act:disabled { opacity: .5; cursor: not-allowed; }
.vcard__tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.vcard__tbl th, .vcard__tbl td { padding: 10px 8px; border-bottom: 1px solid var(--sh-line); text-align: left; }
.vcard__tbl thead th { color: var(--sh-muted); font-weight: 500; font-size: 13px; }
.vcard__tbl tbody th { font-weight: 600; }

/* Липкая нижняя кнопка — только на телефоне. */
.vcard__bar { display: none; }
@media (max-width: 640px) {
	.vcard__colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vcard__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--sh-card); border-top: 1px solid var(--sh-line); }
	.vcard__bar-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
	.vcard__bar-t b { font-size: 14px; color: var(--sh-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.vcard__bar-t span { font-size: 12px; color: var(--sh-muted); }
	.vcard__bar-b { flex: 0 0 auto; min-width: 140px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--sh-radius, 12px); background: var(--sh-blue); color: var(--sh-on-blue, #fff); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
	.vcard__bar-b:disabled { opacity: .5; cursor: not-allowed; }
	/* Обычная «В корзину» не нужна, пока есть липкая: иначе над панелью видна копия. */
	.tovar__go:has([data-vc-buy]) { display: none; }
	/* Отступ под липкую панель — по её настоящей высоте (variant-card.js кладёт её в --vc-bar-h), 76px — запас до первого расчёта. */
	body:has(.vcard__bar) { padding-bottom: calc(var(--vc-bar-h, 76px) + 8px); }
}
.vcard__chip.is-off { text-decoration: line-through; }
