/* Каталог цветов: страница цвета и таблицы-каталоги. */

.tc-color {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Карточка цвета: две колонки, по центру, 880px */
.tc-color-card {
	max-width: 880px;
	margin: 0 auto;
	background: #fff;
	border-radius: 2rem;
	box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.12), 0 5px 12px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.tc-color-inner {
	display: flex;
	flex-direction: column;
}

@media (min-width: 600px) {
	.tc-color-inner {
		flex-direction: row;
		align-items: stretch;
	}
}

.tc-color-swatch {
	flex: 1 1 45%;
	min-height: 260px;
	display: flex;
	align-items: flex-end;
	padding: 1.5rem;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: inset 0 -40px 40px -20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 600px) {
	.tc-color-swatch {
		min-height: 340px;
	}
}

.tc-color-title {
	margin: 0;
	display: inline-block;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	padding: 0.3rem 1.2rem;
	border-radius: 40px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: 1px;
	color: #fff;
}

.tc-color-values {
	flex: 1 1 55%;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tc-color-values__head {
	margin: 0 0 1.4rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #eef2f6;
	font-size: 1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #5b6a7c;
}

.tc-color-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.4rem 1.2rem;
}

.tc-color-grid__item {
	display: flex;
	flex-direction: column;
}

.tc-color-grid__label {
	margin-bottom: 0.3rem;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #8091a5;
}

.tc-color-grid__value {
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1e2b39;
	word-break: break-word;
}

.tc-color-grid__value.is-hex {
	font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
	font-size: 1.25rem;
}

.tc-color-note {
	margin-top: 1.6rem;
	padding: 0.9rem 1.2rem;
	background: #f4f8fd;
	border-radius: 1.2rem;
	font-size: 0.92rem;
	color: #2d3f53;
}

.tc-color-note strong {
	font-weight: 700;
	color: #1e2b39;
}

.tc-color-catalog {
	padding: 1.5rem 2rem 2rem;
	background: #fafcff;
	border-top: 1px solid #e2e9f2;
	text-align: center;
}

.tc-color-catalog__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.9rem 2.6rem;
	border-radius: 60px;
	background: #663da5;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 8px 18px -6px rgba(102, 61, 165, 0.4);
	transition: background 0.2s ease, transform 0.2s ease;
}

.tc-color-catalog__btn:hover {
	background: #55318c;
	transform: translateY(-1px);
	color: #fff;
}

.tc-color-content {
	margin-top: 1.5rem;
	color: #2d3f53;
	line-height: 1.6;
}

/* SEO-текст */
.tc-color-seo {
	margin-top: 2rem;
}

.tc-color-seo__content {
	padding: 2rem 2.5rem;
	background: #fff;
	border-radius: 2rem;
	box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.12), 0 5px 12px rgba(0, 0, 0, 0.05);
	color: #2d3f53;
	line-height: 1.6;
}

/* Карусель связанных товаров */
.tc-color-related {
	margin-top: 2.5rem;
}

.tc-color-related__head {
	margin: 0 0 1.4rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #eef2f6;
	font-size: 1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #5b6a7c;
}

.tc-color-related__swiper {
	position: relative;
	padding: 0 8px;
}

.tc-color-related__swiper .swiper-slide {
	height: auto;
	display: flex;
}

.tc-color-related__swiper .rel-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tc-color-related__swiper .rel-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #663da5;
}

.tc-color-related__swiper .rel-img {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f8fa;
	padding: 12px;
}

.tc-color-related__swiper .rel-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.tc-color-related__swiper .rel-img svg {
	width: 48px;
	height: 48px;
	color: #c7c7d1;
}

.tc-color-related__swiper .rel-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
}

.tc-color-related__swiper .rel-stock {
	font-size: 12px;
	color: #16a34a;
}

.tc-color-related__swiper .rel-name {
	font-weight: 600;
	color: #111827;
	line-height: 1.3;
}

.tc-color-related__swiper .rel-spec {
	font-size: 13px;
	color: #6b7280;
}

.tc-color-related__swiper .rel-price {
	margin-top: auto;
	font-weight: 700;
	color: #111827;
}

.tc-color-related__swiper .swiper-button-prev,
.tc-color-related__swiper .swiper-button-next {
	color: #663da5;
}

.tc-color-related__swiper .swiper-button-prev::after,
.tc-color-related__swiper .swiper-button-next::after {
	font-size: 20px;
	font-weight: 700;
}

/* Обзорная: карточки палитр */
.tc-palettes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.tc-palette-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tc-palette-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #663da5;
}

.tc-palette-preview {
	display: flex;
	height: 72px;
}

.tc-palette-preview__sw {
	flex: 1 1 0;
}

.tc-palette-name {
	padding: 16px 20px 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #111827;
}

.tc-palette-count {
	padding: 2px 20px 18px;
	font-size: 0.85rem;
	color: #6b7280;
}

/* Таблицы-каталоги цветов (архив CPT и палитры) */
.tc-colors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

.tc-colors-grid .color-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tc-colors-grid .color-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.tc-colors-grid .color-swatch {
	height: 96px;
	background-size: cover;
	background-position: center;
}

.tc-colors-grid .color-info {
	padding: 10px 12px;
}

.tc-colors-grid .color-code {
	font-weight: 700;
	color: #111827;
}

.tc-colors-grid .color-name {
	display: block;
	font-size: 13px;
	color: #6b7280;
}
