

/* Start:/local/templates/shop.qwelp.ru/components/bitrix/catalog/main/style.css?17655322941108*/
.catalog-grid__col:first-child {
    order: 2;
}

/* Ensure overlay layers (SKU) can escape the grid cells without clipping */
.catalog-grid,
.catalog-grid__wrapper,
.catalog-grid__col { overflow: visible; }

/* In products grid rows, allow overflow for absolute children */
.products.products_card [data-entity="items-row"]{
    display:grid;
    grid-template-columns:repeat(var(--line-element-count, 4), minmax(255px,1fr));
    gap:20px !important;
    align-items:stretch; /* важно */
    overflow: visible; /* allow children overlays to be visible outside cell */
}

/* Поддержка кастомного количества колонок через CSS-переменную */
.products {
    --line-element-count: 4; /* По умолчанию 4 колонки */
}

/* LINE_CATALOG view - горизонтальные карточки в одну колонку */
.products.products_line_catalog [data-entity="items-row"] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.products.products_line_catalog .product__item {
    width: 100%;
}

/* End */


/* Start:/local/templates/shop.qwelp.ru/components/bitrix/catalog/main/bitrix/catalog.section.list/.default/style.css?17651917033339*/
/* ===== Category Grid Section ===== */
.category-grid-section {
	margin-bottom: clamp(1.25rem, 0.8796rem + 1.8519vw, 2.5rem);
}

.category-grid__title {
	margin-bottom: clamp(1rem, 0.7222rem + 1.3889vw, 1.75rem);
}

/* ===== Category Grid ===== */
.category-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: clamp(0.625rem, 0.4028rem + 1.1111vw, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ===== Category Grid Item ===== */
.category-grid__item {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

/* ===== Category Card ===== */
.category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	min-height: 8.75rem;
	text-decoration: none;
	background-color: var(--color-primary-rgba-alpha-04);
	border-radius: var(--border-radius-xs);
	padding: clamp(0.625rem, 0.5139rem + 0.5556vw, 1rem);
	transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

@media (min-width: 1024px) and (any-hover: hover) {
	.category-card:hover {
		transform: translateY(-0.125rem);
		box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
	}
}

@media (min-width: 1024px) and (any-hover: none) {
	.category-card:active {
		transform: translateY(-0.125rem);
		box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
	}
}

/* ===== Image Wrapper ===== */
.category-card__image-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: clamp(0.5rem, 0.4259rem + 0.3704vw, 0.75rem);
	min-height: 5rem;
	max-height: 7.5rem;
	width: 100%;
}

.category-card__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Placeholder */
.category-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 5rem;
	color: var(--color-light-text);
	opacity: 0.5;
}

/* ===== Label ===== */
.category-card__label {
	font-family: var(--font-family-base);
	font-size: clamp(0.8125rem, 0.7546rem + 0.2894vw, 1rem);
	font-weight: 500;
	line-height: 1.3;
	color: var(--color-dark-text);
	text-align: center;
	margin: 0;
	flex-shrink: 0;
	word-break: break-word;
}

/* ===== Responsive ===== */
@media (max-width: 1440px) {
	.category-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (max-width: 1023px) {
	.category-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 991px) {
	.category-card {
		min-height: 7.5rem;
	}

	.category-card__image-wrapper {
		min-height: 4rem;
		max-height: 6rem;
	}
}

@media (max-width: 767px) {
	.category-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.category-card {
		min-height: 6.25rem;
		padding: 0.5rem;
	}

	.category-card__image-wrapper {
		min-height: 3.5rem;
		max-height: 5rem;
		margin-bottom: 0.375rem;
	}

	.category-card__placeholder svg {
		width: 2rem;
		height: 2rem;
	}
}

@media (max-width: 499px) {
	.category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 479px) {
	.category-card {
		min-height: 5.5rem;
	}

	.category-card__image-wrapper {
		min-height: 3rem;
		max-height: 4rem;
	}

	.category-card__label {
		font-size: 0.75rem;
	}
}

/* End */
/* /local/templates/shop.qwelp.ru/components/bitrix/catalog/main/style.css?17655322941108 */
/* /local/templates/shop.qwelp.ru/components/bitrix/catalog/main/bitrix/catalog.section.list/.default/style.css?17651917033339 */
