/**
 * DarCommerce — витрина каталога: страница товара и архив.
 * Скоуп: .dc-product, .dc-archive__*, .dc-catalog-main.
 *
 * Токены берутся из дизайн-системы сайта (--dag-*), с собственными
 * значениями по умолчанию — стиль не разваливается в чужой теме.
 */

.dc-product,
.dc-catalog-main {
	--dc-acc: var(--dag-acc, #1a63d8);
	--dc-acc-2: var(--dag-acc-2, #1348a4);
	--dc-tx: var(--dag-tx, #15181d);
	--dc-tx-soft: var(--dag-tx-faint, #6a7180);
	--dc-line: var(--dag-line, #e2e5ea);
	--dc-bg: var(--dag-ink-0, #fff);
	--dc-bg-2: var(--dag-ink-2, #f6f7f9);
	--dc-radius: var(--dag-radius, 12px);
	--dc-h: 44px;
	--dc-mono: var(--dag-mono, ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace);
}

.dc-catalog-main {
	background: var(--dc-bg);
	color: var(--dc-tx);
	padding: 32px 0 64px;
}

.dc-catalog-main .dc-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Хлебные крошки --- */

.dc-product__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	font-family: var(--dc-mono);
	font-size: 12px;
	color: var(--dc-tx-soft);
}

.dc-product__crumbs a {
	color: var(--dc-tx-soft);
	text-decoration: none;
	transition: color .18s ease;
}

.dc-product__crumbs a:hover {
	color: var(--dc-acc-2);
}

.dc-product__crumb-sep {
	font-style: normal;
	opacity: .45;
}

/* --- Верх карточки --- */

.dc-product__perks {
	display: grid;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	color: var(--dc-tx-soft);
}

.dc-product__perks li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.dc-product__perks svg {
	flex: none;
	color: var(--dc-acc);
}

.dc-product--sticky-gallery .dc-product__gallery {
	position: sticky;
	top: 24px;
	align-self: start;
}

.dc-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

@media (max-width: 900px) {
	.dc-product__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

/* --- Галерея --- */

.dc-product__image {
	border: 1px solid var(--dc-line);
	border-radius: var(--dc-radius);
	background: var(--dc-bg-2);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dc-product__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.dc-product__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.dc-product__thumb {
	width: 76px;
	height: 76px;
	padding: 0;
	border: 1px solid var(--dc-line);
	border-radius: 10px;
	background: var(--dc-bg-2);
	cursor: pointer;
	overflow: hidden;
	/* Только цвет и тень: размеры не анимируются, сетка не пляшет. */
	transition: border-color .18s ease, box-shadow .18s ease;
}

.dc-product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dc-product__thumb:hover {
	border-color: var(--dc-acc);
}

.dc-product__thumb.is-active {
	border-color: var(--dc-acc);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc-acc) 18%, transparent);
}

/* --- Правая колонка --- */

.dc-product__summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.dc-product__title {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.01em;
	color: var(--dc-tx);
}

.dc-product__sku {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--dc-mono);
	font-size: 12px;
	color: var(--dc-tx-soft);
}

.dc-product__sku b {
	color: var(--dc-tx);
	font-weight: 500;
}

.dc-product__price {
	font-family: var(--dc-mono);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: var(--dc-tx);
}

.dc-product__price del {
	font-size: 18px;
	font-weight: 400;
	color: var(--dc-tx-soft);
	margin-right: 10px;
}

.dc-product__price ins {
	text-decoration: none;
	color: var(--dc-acc-2);
}

.dc-product__tax {
	font-family: var(--dc-mono);
	font-size: 12px;
	color: var(--dc-tx-soft);
	margin-top: -8px;
}

.dc-product__units {
	font-family: var(--dc-mono);
	font-size: 13px;
	color: var(--dc-tx-soft);
}

.dc-notify {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.dc-notify input[type="email"] {
	height: var(--dc-h);
	min-width: 220px;
	flex: 1 1 220px;
	box-sizing: border-box;
	padding: 0 14px;
	border: 1px solid var(--dc-line);
	border-radius: var(--dc-radius);
	background: var(--dc-bg);
	color: var(--dc-tx);
	font: inherit;
}

.dc-notify .dc-btn {
	height: var(--dc-h);
}

.dc-notify__msg {
	flex: 1 0 100%;
	font-family: var(--dc-mono);
	font-size: 12px;
	color: var(--dc-acc-2);
}

.dc-price-personal {
	display: inline-block;
	margin-left: 8px;
	font-family: var(--dc-mono);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dc-acc-2);
	vertical-align: middle;
}

.dc-tiers,
.dc-warehouses {
	border-collapse: collapse;
	border: 1px solid var(--dc-line);
	border-radius: var(--dc-radius);
	overflow: hidden;
	width: 100%;
	max-width: 340px;
	font-family: var(--dc-mono);
	font-size: 13px;
}

.dc-tiers caption,
.dc-warehouses caption {
	caption-side: top;
	text-align: left;
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dc-tx-soft);
	padding: 0 0 6px;
}

.dc-tiers th,
.dc-tiers td,
.dc-warehouses th,
.dc-warehouses td {
	padding: 7px 12px;
	text-align: left;
	border-top: 1px solid var(--dc-line);
	background: var(--dc-bg-2);
}

.dc-tiers tr:first-child th,
.dc-tiers tr:first-child td,
.dc-warehouses tr:first-child th,
.dc-warehouses tr:first-child td {
	border-top: 0;
}

.dc-tiers th,
.dc-warehouses th {
	font-weight: 500;
	color: var(--dc-tx-soft);
}

.dc-tiers td,
.dc-warehouses td {
	color: var(--dc-tx);
	font-weight: 700;
}

.dc-tiers .dc-tier__save {
	text-align: right;
	color: var(--dc-acc-2);
	font-weight: 700;
}

.dc-product__stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
}

.dc-product__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
}

.dc-product__stock.is-in {
	color: #1a8a4a;
}

.dc-product__stock.is-out {
	color: #b0424a;
}

.dc-product__stock.is-backorder {
	color: #9a4d00;
}

.dc-product__excerpt {
	font-size: 15px;
	line-height: 1.62;
	color: var(--dc-tx-soft);
	max-width: 62ch;
}

.dc-product__excerpt p {
	margin: 0 0 10px;
}

/* --- Покупка: поле и кнопка одной высоты --- */

.dc-product__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.dc-product__buy .dc-qty,
.dc-product__buy .dc-btn,
.dc-product__buy .button,
.dc-product__buy select {
	height: var(--dc-h);
	box-sizing: border-box;
}

.dc-product__buy .dc-qty {
	width: 92px;
	padding: 0 12px;
	border: 1px solid var(--dc-line);
	border-radius: 10px;
	background: var(--dc-bg);
	color: var(--dc-tx);
	font-family: var(--dc-mono);
	font-size: 15px;
}

.dc-product__buy .dc-qty:focus {
	outline: none;
	border-color: var(--dc-acc);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc-acc) 16%, transparent);
}

.dc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: var(--dc-h);
	padding: 0 22px;
	border-radius: var(--dc-btn-radius, 10px);
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.dc-btn--cart {
	background: var(--dc-acc);
	color: #fff;
}

.dc-btn--cart:hover {
	background: var(--dc-acc-2);
	box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--dc-acc) 70%, transparent);
}

.dc-btn--ghost {
	background: transparent;
	border-color: var(--dc-line);
	color: var(--dc-tx);
}

.dc-btn--ghost:hover {
	border-color: var(--dc-acc);
	color: var(--dc-acc-2);
}

/* --- Свойства --- */

.dc-product__specs {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
	font-size: 14px;
}

.dc-product__specs th,
.dc-product__specs td {
	text-align: left;
	padding: 10px 0;
	border-bottom: 1px solid var(--dc-line);
	vertical-align: top;
}

.dc-product__specs th {
	width: 42%;
	font-weight: 500;
	color: var(--dc-tx-soft);
}

.dc-product__specs td {
	font-family: var(--dc-mono);
	color: var(--dc-tx);
}

/* Раздел «Характеристики»: две равные колонки, в каждой строке название и
   значение на одной сетке, поэтому половины совпадают по вертикали. */
.dc-product__specs-sec {
	margin-top: 56px;
}

.dc-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(24px, 4vw, 56px);
	border-top: 1px solid var(--dc-line);
}

.dc-specs__col {
	margin: 0;
}

.dc-specs__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--dc-line);
	font-size: 14px;
	line-height: 1.45;
}

.dc-specs__row--pad {
	min-height: calc(1.45em + 22px);
	box-sizing: border-box;
}

.dc-specs__row dt {
	color: var(--dc-tx-soft);
}

.dc-specs__row dd {
	margin: 0;
	font-weight: 500;
	color: var(--dc-tx);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
	.dc-specs {
		grid-template-columns: minmax(0, 1fr);
	}

	.dc-specs__row--pad {
		display: none;
	}
}

/* --- Описание --- */

.dc-product__description {
	margin-top: 56px;
	max-width: 78ch;
	font-size: 16px;
	line-height: 1.68;
}

.dc-product__section-title {
	margin: 0 0 16px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dc-tx-soft);
}

/* --- Архив --- */

.dc-archive__head {
	margin-bottom: 28px;
}

.dc-archive__title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.dc-archive__description {
	max-width: 76ch;
	color: var(--dc-tx-soft);
	font-size: 15px;
	line-height: 1.6;
}

/* --- Быстрый просмотр --- */

html.dc-quick-open {
	overflow: hidden;
}

.dc-quick {
	position: fixed;
	inset: 0;
	z-index: 99985;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.dc-quick__overlay {
	position: absolute;
	inset: 0;
	background: rgba(12, 15, 20, .5);
	opacity: 0;
	transition: opacity .2s ease;
}

.dc-quick__panel {
	position: relative;
	max-width: 1020px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 28px;
	box-sizing: border-box;
	border-radius: var(--dc-radius, 12px);
	background: var(--dag-ink-0, #fff);
	color: var(--dag-tx, #15181d);
	box-shadow: 0 40px 90px -40px rgba(10, 14, 20, .6);
	/* Едет только прозрачность и масштаб — соседи по документу не двигаются. */
	opacity: 0;
	transform: scale(.98);
	transition: opacity .2s ease, transform .2s ease;
}

.dc-quick.is-open {
	pointer-events: auto;
}

.dc-quick.is-open .dc-quick__overlay {
	opacity: 1;
}

.dc-quick.is-open .dc-quick__panel {
	opacity: 1;
	transform: scale(1);
}

.dc-quick__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: var(--dag-tx-faint, #6a7180);
	cursor: pointer;
	transition: color .18s ease, border-color .18s ease;
}

.dc-quick__close:hover {
	color: var(--dag-tx, #15181d);
	border-color: var(--dag-line, #e2e5ea);
}

/* Внутри модалки карточка без внешних отступов страницы. */
.dc-quick__body .dc-product__top {
	gap: 32px;
}

.dc-quick__link {
	display: inline-block;
	margin-top: 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dag-acc-2, #1348a4);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
	.dc-quick {
		padding: 12px;
	}

	.dc-quick__panel {
		padding: 20px;
	}
}

/* --- Звёзды и отзывы --- */

.dc-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--dc-star, var(--dc-tx));
	line-height: 0;
}

.dc-stars__count {
	margin-left: 8px;
	font-family: var(--dc-mono);
	font-size: 12px;
	color: var(--dc-tx-soft);
}

.dc-product__rating {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.dc-card__rating {
	display: flex;
	align-items: center;
	margin-top: 2px;
}

/* --- Рекомендации --- */

.dc-related {
	margin-top: 56px;
}

.dc-related__strip {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 20px;
}

.dc-related__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.dc-related__image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--dc-line);
	border-radius: var(--dc-radius);
	background: var(--dc-bg-2);
	overflow: hidden;
	/* Только рамка: размеры фиксированы, сетка не дёргается на ховере. */
	transition: border-color .18s ease;
}

.dc-related__image:hover {
	border-color: var(--dc-acc);
}

.dc-related__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.dc-related__title {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--dc-tx);
	text-decoration: none;
	transition: color .18s ease;
}

.dc-related__title:hover {
	color: var(--dc-acc-2);
}

.dc-related__price {
	font-family: var(--dc-mono);
	font-size: 15px;
	font-weight: 700;
}

.dc-related__price del {
	font-size: 12px;
	font-weight: 400;
	color: var(--dc-tx-soft);
	margin-right: 6px;
}

.dc-related__price ins {
	text-decoration: none;
	color: var(--dc-acc-2);
}

.dc-related__buy .dc-btn {
	height: 38px;
	padding: 0 16px;
	font-size: 13px;
}

/* Полоса на странице корзины живёт вне .dc-catalog-main — токены нужны свои. */
.dc-cart-root + .dc-related {
	--dc-acc: var(--dag-acc, #1a63d8);
	--dc-acc-2: var(--dag-acc-2, #1348a4);
	--dc-tx: var(--dag-tx, #15181d);
	--dc-tx-soft: var(--dag-tx-faint, #6a7180);
	--dc-line: var(--dag-line, #e2e5ea);
	--dc-bg-2: var(--dag-ink-2, #f6f7f9);
	--dc-radius: var(--dag-radius, 12px);
	--dc-mono: var(--dag-mono, ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace);
}

/* ==========================================================================
   Видео в галерее товара
   ========================================================================== */

.dc-product__video {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 0;
	border-radius: var(--dc-radius, 12px);
	background: #000;
}

.dc-product__thumb--video {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #2a2f3a, #12151b);
}

.dc-product__thumb--video img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dc-product__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0;
	height: 0;
	border-left: 14px solid #fff;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
}

/* ==========================================================================
   Таблица размеров
   ========================================================================== */

.dc-size-guide {
	margin: 12px 0;
	font-size: 14px;
}

.dc-size-guide summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--dc-acc, #1a63d8);
}

.dc-size-guide__table {
	width: 100%;
	max-width: 480px;
	margin-top: 10px;
	border: 1px solid var(--dc-line, #e2e5ea);
	border-collapse: collapse;
}

.dc-size-guide__table th,
.dc-size-guide__table td {
	padding: 6px 10px;
	border: 1px solid var(--dc-line, #e2e5ea);
	text-align: left;
	font-variant-numeric: tabular-nums;
}

.dc-size-guide__table th {
	background: var(--dc-bg-2, #f6f7f9);
	font-weight: 600;
}

/* ==========================================================================
   Лэйауты галереи: боковые ленты, мозаики, слайдеры
   ========================================================================== */

/* Боковые ленты миниатюр: на телефоне ведут себя как классика. */
.dc-product__gallery--thumbs-left,
.dc-product__gallery--thumbs-right {
	display: flex;
	gap: 12px;
}

.dc-product__gallery--thumbs-left .dc-product__image,
.dc-product__gallery--thumbs-right .dc-product__image {
	flex: 1 1 auto;
	min-width: 0;
	order: 1;
}

.dc-product__gallery--thumbs-left .dc-product__thumbs {
	order: 0;
}

.dc-product__gallery--thumbs-right .dc-product__thumbs {
	order: 2;
}

.dc-product__gallery--thumbs-left .dc-product__thumbs,
.dc-product__gallery--thumbs-right .dc-product__thumbs {
	flex: 0 0 76px;
	width: 76px;
	max-height: 100%;
	margin-top: 0;
	flex-direction: column;
	flex-wrap: nowrap;
	overflow-y: auto;
}

@media (max-width: 600px) {
	.dc-product__gallery--thumbs-left,
	.dc-product__gallery--thumbs-right {
		flex-direction: column;
	}

	.dc-product__gallery--thumbs-left .dc-product__image,
	.dc-product__gallery--thumbs-right .dc-product__image {
		order: 0;
	}

	.dc-product__gallery--thumbs-left .dc-product__thumbs,
	.dc-product__gallery--thumbs-right .dc-product__thumbs {
		order: 1;
		flex: 0 0 auto;
		width: auto;
		max-height: none;
		flex-direction: row;
		flex-wrap: wrap;
		margin-top: 12px;
	}
}

/* Мозаики: все кадры сразу, у сеток фиксированные ячейки. */
.dc-product__mosaic {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.dc-product__gallery--grid .dc-product__mosaic {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dc-product__gallery--grid-3 .dc-product__mosaic {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 600px) {
	.dc-product__gallery--grid-3 .dc-product__mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.dc-product__tile {
	margin: 0;
	border: 1px solid var(--dc-line, #e2e5ea);
	border-radius: var(--dc-radius, 12px);
	background: var(--dc-bg-2, #f6f7f9);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.dc-product__tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dc-product__tile--video .dc-product__video {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	border: 0;
	border-radius: 0;
}

/* Слайдеры: flex-лента со snap; JS добавляет точки и стрелки. */
.dc-product__gallery--slider-dots,
.dc-product__gallery--slider-arrows {
	position: relative;
}

.dc-product__gallery--slider-dots .dc-product__mosaic,
.dc-product__gallery--slider-arrows .dc-product__mosaic {
	display: flex;
	grid-template-columns: none;
	gap: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	border-radius: var(--dc-radius, 12px);
	scrollbar-width: none;
}

.dc-product__gallery--slider-dots .dc-product__mosaic::-webkit-scrollbar,
.dc-product__gallery--slider-arrows .dc-product__mosaic::-webkit-scrollbar {
	display: none;
}

.dc-product__gallery--slider-dots .dc-product__tile,
.dc-product__gallery--slider-arrows .dc-product__tile {
	flex: 0 0 100%;
	min-width: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid var(--dc-line, #e2e5ea);
}

.dc-product__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.dc-product__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--dc-line, #e2e5ea);
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.dc-product__dot.is-active {
	background: var(--dc-acc, #1a63d8);
	transform: scale(1.2);
}

.dc-product__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 1px solid var(--dc-line, #e2e5ea);
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--dc-tx, #15181d);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.dc-product__arrow:hover {
	border-color: var(--dc-acc, #1a63d8);
}

.dc-product__arrow--prev {
	left: 10px;
}

.dc-product__arrow--next {
	right: 10px;
}

/* Допродажа в боковой корзине. */
.dc-drawer__bumps {
	margin-bottom: 14px;
}

.dc-drawer__bumps-title {
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dc-tx-soft, #6a7180);
}

.dc-bump {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 8px;
	padding: 8px;
	border: 1px solid var(--dc-line, #e2e5ea);
	border-radius: 10px;
	background: var(--dc-bg-2, var(--dag-ink-2, #f6f7f9));
	cursor: pointer;
	text-align: left;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.dc-bump:hover {
	border-color: var(--dc-acc, #1a63d8);
}

.dc-bump.is-busy {
	opacity: .55;
	pointer-events: none;
}

.dc-bump__img {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--dc-bg, #fff);
	object-fit: contain;
}

.dc-bump__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 13px;
	font-weight: 600;
	color: var(--dc-tx, #15181d);
}

.dc-bump__price {
	flex: 0 0 auto;
	font-family: var(--dc-mono, ui-monospace, monospace);
	font-size: 13px;
	font-weight: 700;
	color: var(--dc-tx, #15181d);
	font-variant-numeric: tabular-nums;
}

.dc-bump__add {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--dc-acc, #1a63d8);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

/* =====================================================================
 * Витрина 0.37: перетекание фото, свотчи, степпер, лайтбокс
 * ===================================================================== */

/* --- Перетекание кадра: новый слой проявляется поверх старого --- */

.dc-product__image {
	position: relative;
}

.dc-product__layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity .45s cubic-bezier(.4, 0, .2, 1);
	pointer-events: none;
}

.dc-product__layer.is-shown {
	opacity: 1;
}

.dc-zoomable {
	cursor: zoom-in;
}

/* --- Свотчи вариаций --- */

.dc-variations {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin: 4px 0 2px;
}

.dc-swatch-group__head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 13px;
}

.dc-swatch-group__label {
	color: var(--dc-tx-soft);
	font-weight: 600;
}

.dc-swatch-group__value {
	color: var(--dc-tx);
	font-weight: 700;
}

.dc-swatch-group__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(var(--dc-sw-gap, 6px) + 4px);
}

.dc-swatch-group--color .dc-sw {
	--dc-sw-size: var(--dc-sw-size-page, 32px);
}

.dc-swatch-group--image .dc-sw {
	--dc-sw-size: calc(var(--dc-sw-size-page, 32px) * 1.75);
	border-radius: var(--dc-sw-img-radius, 12px);
}

.dc-swatch-group--label .dc-sw {
	--dc-sw-size: calc(var(--dc-sw-size-page, 32px) * 1.25);
	min-width: 48px;
	height: var(--dc-sw-size);
}

/* Список вариаций остаётся для работы без JS; со свотчами он не нужен. */
.dc-variation.is-enhanced select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.dc-variation {
	display: flex;
	flex: 1 1 auto;
	gap: 12px;
}

.dc-variation .dc-add-variation {
	flex: 1 1 auto;
}

/* --- Степпер: кнопки той же высоты, что поле и корзина --- */

.dc-stepper {
	display: inline-flex;
	align-items: stretch;
	height: var(--dc-h);
	border: 1px solid var(--dc-line);
	border-radius: 10px;
	background: var(--dc-bg);
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.dc-stepper:focus-within {
	border-color: var(--dc-acc);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc-acc) 16%, transparent);
}

.dc-stepper__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--dc-tx-soft);
	cursor: pointer;
	transition: color .18s ease, background-color .18s ease;
}

.dc-stepper__btn:hover {
	color: var(--dc-tx);
	background: var(--dc-bg-2);
}

.dc-product__buy .dc-stepper .dc-qty,
.dc-stepper .dc-qty {
	width: 56px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--dc-tx);
	text-align: center;
	font-family: var(--dc-mono);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	appearance: textfield;
}

.dc-stepper .dc-qty::-webkit-outer-spin-button,
.dc-stepper .dc-qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.dc-product__buy .dc-stepper .dc-qty:focus {
	box-shadow: none;
}

.dc-product__buy .dc-btn--cart,
.dc-product__buy .add_to_cart_button {
	flex: 1 1 200px;
}

/* --- Цена сменилась: короткое проявление --- */

.dc-flash {
	animation: dc-flash .6s cubic-bezier(.16, 1, .3, 1);
}

@keyframes dc-flash {
	from {
		opacity: .2;
		filter: blur(4px);
	}

	to {
		opacity: 1;
		filter: none;
	}
}

.dc-product__price,
.dc-sticky-atc__price {
	font-variant-numeric: tabular-nums;
}

/* --- Лайтбокс --- */

html.dc-lightbox-open {
	overflow: hidden;
}

.dc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(9, 11, 15, .92);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
	touch-action: pan-y;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.dc-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.dc-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 64px 72px;
	box-sizing: border-box;
}

.dc-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	opacity: 0;
	transform: scale(.97);
	transition: opacity .35s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1);
	user-select: none;
	-webkit-user-drag: none;
}

.dc-lightbox__img.is-shown {
	opacity: 1;
	transform: none;
}

.dc-lightbox__close,
.dc-lightbox__nav {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}

.dc-lightbox__close:hover,
.dc-lightbox__nav:hover {
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .4);
}

.dc-lightbox__close {
	top: 16px;
	right: 16px;
}

.dc-lightbox__nav--prev {
	left: 16px;
	top: 50%;
	margin-top: -24px;
}

.dc-lightbox__nav--next {
	right: 16px;
	top: 50%;
	margin-top: -24px;
}

.dc-lightbox.is-single .dc-lightbox__nav {
	display: none;
}

.dc-lightbox__count {
	position: absolute;
	left: 20px;
	bottom: 18px;
	color: rgba(255, 255, 255, .75);
	font-family: var(--dag-mono, ui-monospace, monospace);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
	.dc-lightbox__stage {
		padding: 56px 8px;
	}

	.dc-lightbox__nav {
		display: none;
	}
}

/* --- Быстрый просмотр: скелет и мягкий вход --- */

.dc-quick__panel {
	transform: translate3d(0, 14px, 0) scale(.985);
	transition: opacity .3s cubic-bezier(.16, 1, .3, 1), transform .4s cubic-bezier(.16, 1, .3, 1);
}

.dc-quick__overlay {
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: opacity .3s ease;
}

.dc-quick__skel {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 32px;
	color: var(--dag-tx, #15181d);
}

.dc-quick__skel-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 8px;
}

.dc-quick__skel .dc-skel__block {
	aspect-ratio: 4 / 3;
}

.dc-quick__content {
	animation: dc-flash .5s cubic-bezier(.16, 1, .3, 1);
}

@media (max-width: 900px) {
	.dc-quick__skel {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Склейка вариантов (Catalog_Siblings): размер, покрытие, сторона */
.dc-sib {
	display: grid;
	gap: 12px;
	margin: 4px 0 2px;
}

.dc-sib__row {
	display: grid;
	gap: 6px;
}

.dc-sib__k {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--dc-tx-soft, var(--dag-tx-faint, #6b6f73));
}

.dc-sib__v {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dc-sib__o {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--dc-line, rgba(0, 0, 0, 0.14));
	border-radius: var(--dc-radius, 8px);
	background: transparent;
	color: var(--dc-tx, inherit);
	font-size: 13.5px;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

a.dc-sib__o:hover {
	border-color: var(--dc-tx, currentColor);
}

.dc-sib__o.is-on {
	border-color: var(--dc-acc, currentColor);
	background: color-mix(in srgb, var(--dc-acc, #1a63d8) 10%, transparent);
	font-weight: 600;
}
/* Главное фото на телефоне листается свайпом (catalog.js): горизонтальный жест отдаём скрипту. */
.dc-product__image {
	touch-action: pan-y;
}

/* Цена по запросу (Product_Page::ask_box) */
.dc-product__ask {
	display: grid;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--dc-line, rgba(0, 0, 0, 0.12));
	border-radius: var(--dc-radius, 8px);
	background: var(--dc-card, transparent);
}

.dc-product__ask-t {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--dc-tx, inherit);
}

.dc-ask {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 96px;
	gap: 10px;
	align-items: end;
}

.dc-ask__f {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.dc-ask__f span {
	font-size: 12px;
	font-weight: 600;
	color: var(--dc-tx-soft, var(--dag-tx-faint, #6b6f73));
}

.dc-ask__f input {
	width: 100%;
	height: var(--dc-ctl, 44px);
	padding: 0 12px;
	border: 1px solid var(--dc-line, rgba(0, 0, 0, 0.16));
	border-radius: var(--dc-radius, 8px);
	background: var(--dc-bg, #fff);
	color: var(--dc-tx, inherit);
	font: inherit;
	font-size: 15px;
}

.dc-ask__f input:focus {
	outline: 2px solid var(--dc-acc, #1a63d8);
	outline-offset: 1px;
	border-color: var(--dc-acc, #1a63d8);
}

.dc-ask .dc-btn {
	grid-column: 1 / -1;
	width: 100%;
	height: var(--dc-ctl, 44px);
}

.dc-ask .dc-request__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.dc-ask__st {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13.5px;
	color: var(--dc-tx-soft, var(--dag-tx-faint, #6b6f73));
}

.dc-ask__st:empty {
	display: none;
}

.dc-ask.is-error .dc-ask__st {
	color: var(--dc-danger, #dc2626);
}

.dc-ask.is-sent .dc-ask__st {
	color: var(--dc-ok, #2f8a57);
	font-weight: 600;
}

.dc-ask.is-sent .dc-btn,
.dc-ask.is-sent .dc-ask__f {
	display: none;
}