

/* Start:/bitrix/templates/gidra_sub/components/bitrix/catalog/gidra/style.css?17898073264092*/
.grid{}
.grid .bx_content_section{
	margin-bottom: 15px;
}
.grid .bx_sidebar{
	margin-bottom: 15px;
}

/* grid2x1 */
.grid2x1{}
.grid2x1 .bx_content_section{
	float: left;
	width: 66%;
	margin-bottom: 15px;
}
.grid2x1 .bx_sidebar{
	float: right;
	width: 33%;
	margin-bottom: 15px;
	padding-left: 5%;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
}
@media (max-width:960px){
	.grid2x1 .bx_sidebar{
		padding-left: 4%;
	}
}
@media (max-width:640px) {
	.grid2x1 .bx_content_section,
	.grid2x1 .bx_sidebar{
		width: 100%;
		float: none;
	}
	.grid2x1 .bx_sidebar{
		padding-left: 3%;
	}
}
@media (max-width:479px){
	.grid2x1 .bx_sidebar{
		padding-left: 1%;
	}
}

/* ===== СЕТКА РАЗДЕЛОВ КАТАЛОГА ===== */
.products-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0 40px;
    grid-auto-rows: 1fr;
}

.products-category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.25s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
    min-height: 180px;
}

.products-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(228,152,81,0.3);
    border-color: #e49851;
}

/* Контейнер иконки — увеличен до 100x100 */
.products-category-icon {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf4eb;
    border-radius: 50%;
    transition: all 0.25s;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 6px;
}

/* Картинки внутри контейнера — занимают максимально возможное место */
.products-category-icon img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: all 0.25s;
}

.products-category-card:hover .products-category-icon {
    background: #e49851;
}
.products-category-card:hover .products-category-icon img {
    filter: brightness(0) invert(1);
}

/* SVG-иконки — крупные, вписываются в круг */
.products-category-icon svg {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    fill: #e49851;
    color: #e49851;
    stroke: #e49851;
    transition: fill 0.25s, stroke 0.25s, color 0.25s;
    display: block;
}
.products-category-card:hover .products-category-icon svg {
    fill: #ffffff;
    color: #ffffff;
    stroke: #ffffff;
}
.products-category-card:hover .products-category-icon svg circle,
.products-category-card:hover .products-category-icon svg path {
    stroke: #ffffff;
}

.products-category-name {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.25;
    margin-bottom: 4px;
    color: #2c3e50;
    flex-grow: 1;
}

.products-category-count {
    font-size: 11px;
    color: #999;
}

@media (max-width: 1200px) {
    .products-categories-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .products-categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-category-icon {
        width: 80px; height: 80px;
        min-width: 80px; min-height: 80px;
        max-width: 80px; max-height: 80px;
    }
    .products-category-icon svg {
        width: 44px; height: 44px;
        min-width: 44px; min-height: 44px;
        max-width: 44px; max-height: 44px;
    }
}
@media (max-width: 640px) {
    .products-categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .products-categories-grid { grid-template-columns: 1fr; }
}
/* End */
/* /bitrix/templates/gidra_sub/components/bitrix/catalog/gidra/style.css?17898073264092 */
