

/* Start:/local/templates/tkanililiya_custom/components/bitrix/catalog.section.list/bootstrap_v4/style.css?17715202105586*/
.catalog-section-list-item { }

.catalog-section-list-item-title {
	overflow: hidden;
	margin: 0;
	padding: 0;
	vertical-align: middle;
	text-align: center;
	text-overflow: ellipsis;
	font-size: 14px;
	line-height: 20px;
}

.catalog-section-list-item-link {
	vertical-align: middle;
	font-size: 14px;
	line-height: 20px;
}

.catalog-section-list-item-counter {
	vertical-align: middle;
	font-size: 12px;
	line-height: 20px;
}

.catalog-section-list-item-description { font-size: 13px; }

.catalog-section-list-item-img {
	display: block;
	padding-top: 100%;
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 2px;
	background-color: #fff;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transition: 250ms linear all;
}

.catalog-section-list-item-img:hover { border-color: var(--theme-color-primary); }

/* region Line */
.catalog-section-list-line-list {
	padding: 0;
	list-style: none;
}

.catalog-section-list-line-list .catalog-section-list-item {
	display: flex;
	margin-bottom: 15px;
	align-items: flex-start;
}

.catalog-section-list-line-list .catalog-section-list-item-title { text-align: left; }

.catalog-section-list-line-img-container {
	padding-right: 15px;
	min-width: 75px;
	width: 75px;
}

.catalog-section-list-line-list .catalog-section-list-titles {
	margin: 0;
	line-height: 20px;
}

/*endregion*/

/*region Text */
.catalog-section-list-text-list {
	padding: 0;
	list-style: none;
	column-count: 3;
}

.catalog-section-list-text-list .catalog-section-list-item-title { text-align: left; }

@media (max-width: 767px) {
	.catalog-section-list-text-list { column-count: 1; }
}

/*endregion*/

/*region Tile */

.catalog-section-list-tile-list {
	padding: 0;
	list-style: none;
}

.catalog-section-list-tile-img-container { width: 100%; }

/*endregion*/

/* list */

.catalog-section-list-list { margin-bottom: 30px; }

.catalog-section-list-list .catalog-section-list-item {
	padding: 0;
	line-height: 16px;
}

.catalog-section-list-list .catalog-section-list-item:before { content: '' !important }

.catalog-section-list-list-title {
	display: inline-block;
	margin: 0;
	margin-bottom: 10px;
	padding: 0;
	vertical-align: top;
	font-weight: normal;
	font-size: 12px;
	line-height: 16px;
}

.catalog-section-list-list-link {
	white-space: nowrap;
	font-size: 13px;
}

.catalog-section-list-list-link:hover { text-decoration: none }

.catalog-section-list-list-title span { font-size: 11px; }

@media (max-width: 639px) {
	.bx-touch .catalog-section-list-list .bx_catalog_line_title {
		margin-bottom: 5px;
		line-height: 12px;
	}

	.bx-touch .catalog-section-list-list .bx_catalog_line_title a { font-size: 12px; }
}

.catalog-section-list-list-title,
.catalog-section-list-list-link { transition: all 0.3s ease; }

/* ============================================
   Ткани Лилия - Кастомные стили категорий
   ============================================ */

/* Сетка категорий (TILE mode) */
.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
}

.categories-grid .category-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.2s, box-shadow 0.2s;
	text-decoration: none !important;
	color: inherit;
}

.categories-grid .category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	text-decoration: none !important;
	color: inherit;
}

.categories-grid .category-card-image-wrapper {
	position: relative;
	padding-top: 100%;
	background: #f8f8f8;
	overflow: hidden;
}

.categories-grid .category-card-image-wrapper img,
.categories-grid .category-card-image {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center top;
	transition: transform 0.3s;
}

.categories-grid .category-card:hover .category-card-image,
.categories-grid .category-card:hover .category-card-image-wrapper img {
	transform: scale(1.05);
}

.category-card-body {
	padding: 1rem;
	text-align: center;
}

.category-card-title {
	font-size: 1rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 0.25rem;
}

.category-card-count {
	font-size: 0.85rem;
	color: #888;
}

/* Кнопки категорий (LINE mode) */
.category-buttons-wrapper {
	overflow-x: auto;
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
}

.category-buttons-list {
	display: flex;
	gap: 0.5rem;
	flex-wrap: nowrap;
}

.category-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	color: #333;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s;
}

.category-btn:hover {
	background: #e8e8e8;
	text-decoration: none;
	color: #333;
}

.category-btn.active {
	background: var(--primary, #007bff);
	border-color: var(--primary, #007bff);
	color: #fff;
}

.category-btn-name {
	font-weight: 500;
}

.category-btn-count {
	font-size: 0.8rem;
	opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.category-card-body {
		padding: 0.75rem;
	}

	.category-card-title {
		font-size: 0.9rem;
	}

	/* Скрываем кнопки категорий на мобильных */
	.catalog-category-buttons {
		display: none !important;
	}
}
/* End */


/* Start:/local/templates/tkanililiya_custom/components/bitrix/catalog.smart.filter/horizontal_wb/style.css?177152021012276*/
/* ===================================================================
   Horizontal Filter Bar (horizontal_wb)
   Префикс: hf-
   Корпоративная палитра: Ткани Лилия
   =================================================================== */

/* === Панель === */
.hf-bar {
    padding: 12px 0;
    margin-bottom: 16px;
    overflow: visible !important; /* попверы не обрезаются */
}

#hf-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hf-bar__sort {
    flex-shrink: 0;
}

.hf-sort-select {
    height: 38px;
    padding: 0 32px 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.hf-sort-select:hover {
    border-color: #bbb;
}

.hf-sort-select:focus {
    border-color: #00818a;
}

/* === Кнопка "Все фильтры" === */
.hf-bar__all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f5f5;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.hf-bar__all-btn:hover {
    background: #eee;
    border-color: #bbb;
}

.hf-bar__all-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #00818a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* === Контейнер чипсов === */
.hf-bar__chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* === Чипс фильтра === */
.hf-chip {
    position: relative;
}

.hf-chip__btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f5f5;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hf-chip__btn:hover {
    background: #eee;
}

.hf-chip__arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
}

/* Чипс активен (есть выбранные фильтры) */
.hf-chip--active .hf-chip__btn {
    background: rgba(0, 129, 138, 0.08);
    border-color: #00818a;
    color: #00818a;
}

.hf-chip--active .hf-chip__btn:hover {
    background: rgba(0, 129, 138, 0.12);
}

/* Попвер открыт */
.hf-chip--open .hf-chip__arrow {
    transform: rotate(180deg);
}

/* === Попвер === */
.hf-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 300px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 30;
    overflow: hidden;
}

.hf-chip--open .hf-popover {
    display: block;
}

/* Попвер сдвинут вправо (если выходит за viewport) */
.hf-popover--right {
    left: auto;
    right: 0;
}

/* Поиск внутри попвера */
.hf-popover__search {
    padding: 10px 12px 6px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.hf-popover__search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.hf-popover__search-input:focus {
    border-color: #00818a;
}

/* Список опций */
.hf-popover__list {
    max-height: 300px;
    overflow-y: auto;
    padding: 6px 0;
}

.hf-popover__empty {
    padding: 16px 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 0;
}

/* Футер попвера */
.hf-popover__footer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
}

.hf-popover__reset {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.hf-popover__reset:hover {
    background: #eee;
}

.hf-popover__done {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #00818a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.hf-popover__done:hover {
    background: #006d75;
}

/* === Опция (чекбокс) === */
.hf-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 14px;
    color: #333;
    line-height: 1.3;
}

.hf-option:hover {
    background: #f8f8f8;
}

.hf-option--disabled {
    opacity: 0.4;
    cursor: default;
}

.hf-option__checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #00818a;
    cursor: pointer;
}

.hf-option--disabled .hf-option__checkbox {
    cursor: default;
}

/* Swatch (цветовой кружок) */
.hf-option__swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.hf-option__swatch--multi {
    background: conic-gradient(
        #E53935 0deg, #FB8C00 60deg, #FDD835 120deg,
        #43A047 180deg, #1E88E5 240deg, #8E24AA 300deg, #E53935 360deg
    );
}

.hf-option__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hf-option__count {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
}

/* === Инпуты цены === */
.hf-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.hf-price-input {
    flex: 1;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    min-width: 0;
    -moz-appearance: textfield;
    transition: border-color 0.15s;
}

.hf-price-input::-webkit-inner-spin-button,
.hf-price-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hf-price-input:focus {
    border-color: #00818a;
}

.hf-price-sep {
    color: #999;
    flex-shrink: 0;
}

/* === Drawer "Все фильтры" === */
.hf-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
}

.hf-drawer--open {
    visibility: visible;
    pointer-events: auto;
}

.hf-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hf-drawer--open .hf-drawer__overlay {
    opacity: 1;
}

.hf-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 460px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.hf-drawer--open .hf-drawer__panel {
    transform: translateX(0);
}

.hf-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.hf-drawer__title {
    font-size: 18px;
    font-weight: 600;
    color: #2a3a4a;
}

.hf-drawer__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: background 0.15s;
}

.hf-drawer__close:hover {
    background: #eee;
}

.hf-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.hf-drawer__footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.hf-drawer__reset {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #f5f5f5;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.hf-drawer__reset:hover {
    background: #eee;
}

.hf-drawer__apply {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #00818a;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.hf-drawer__apply:hover {
    background: #006d75;
}

/* === Секции аккордеона в drawer === */
.hf-section {
    border-bottom: 1px solid #f0f0f0;
}

.hf-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 500;
    color: #2a3a4a;
    cursor: pointer;
    text-align: left;
}

.hf-section__header:hover {
    background: #fafafa;
}

.hf-section__arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
    color: #999;
}

.hf-section[data-expanded="true"] .hf-section__arrow {
    transform: rotate(180deg);
}

.hf-section__content {
    display: none;
    padding: 0 20px 12px;
}

.hf-section[data-expanded="true"] .hf-section__content {
    display: block;
}

.hf-section__search {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    margin-bottom: 8px;
    transition: border-color 0.15s;
}

.hf-section__search:focus {
    border-color: #00818a;
}

.hf-section__options {
    max-height: 280px;
    overflow-y: auto;
}

/* === Мобильная кнопка "Фильтры" (FAB) === */
.hf-mobile-toggle {
    display: none; /* Показывается только на mobile */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 22px;
    background: #2a3a4a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.15s, transform 0.15s;
}

.hf-mobile-toggle:active {
    transform: translateX(-50%) scale(0.97);
}

.hf-mobile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #00818a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* === AJAX Loading state === */
#wbg-catalog.wbg--loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* === Responsive === */

/* Mobile: <768px */
@media (max-width: 767px) {
    .hf-bar__chips { display: none; }
    .hf-bar__all-btn { display: none; }
    .hf-bar__sort {
        display: block;
        width: 100%;
    }
    .hf-sort-select {
        width: 100%;
    }
    .hf-bar {
        padding: 8px 0;
        margin-bottom: 8px;
    }
    #hf-form {
        flex-wrap: nowrap;
    }
    .hf-mobile-toggle { display: flex; }

    /* Drawer mobile */
    .hf-drawer__panel {
        width: 85vw;
        max-width: 360px;
    }
    .hf-drawer__footer {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* Tablet: 768-1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .hf-mobile-toggle { display: none; }
    .hf-drawer__panel {
        width: 400px;
    }
}

/* Desktop: >=1024px */
@media (min-width: 1024px) {
    .hf-mobile-toggle { display: none; }
}

/* End */


/* Start:/bitrix/components/bitrix/system.pagenavigation/templates/bootstrap_v4/style.min.css?1770637024272*/
.page-link,.page-link:hover{color:var(--theme-color-primary)}.page-item.active .page-link{color:var(--theme-b-tx-primary);background-color:var(--theme-color-primary);border-color:var(--theme-color-primary)}.page-link:focus{box-shadow:0 0 0 .2rem var(--theme-b-sd-primary)}
/* End */


/* Start:/local/templates/tkanililiya_custom/components/bitrix/catalog.section/fabrics_grid/style.css?177152021014653*/
/* =========================================
   Grid Catalog — Ткани Лилия
   Корпоративная палитра: #00818a / #006d75
   ========================================= */

/* === Сетка === */
.wbg { padding: 0; }

.wbg-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
}

@media (min-width: 640px) {
	.wbg-grid { gap: 8px; }
}
@media (min-width: 768px) {
	.wbg-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (min-width: 1024px) {
	.wbg-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

/* === Карточка === */
.wbg-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.wbg-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wbg-card--out {
	opacity: 0.65;
}

/* === Фото === */
.wbg-card__img {
	position: relative;
	aspect-ratio: 4/5;
	overflow: hidden;
	background: #f8f8f8;
	border-radius: 12px 12px 0 0;
}

.wbg-card__img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.wbg-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.wbg-card:hover .wbg-card__photo {
	transform: scale(1.03);
}

.wbg-card__photo[loading="lazy"] {
	background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: wbg-shimmer 1.5s infinite;
}

.wbg-card__no-photo {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f5f5f5, #ececec);
}

/* === Зоны галереи (desktop hover) === */
.wbg-card__zones {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	z-index: 3;
}

@media (hover: hover) {
	.wbg-card:hover .wbg-card__zones {
		display: flex;
	}
}

.wbg-card__zone {
	flex: 1;
	cursor: pointer;
}

/* === Точки галереи === */
.wbg-card__dots {
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 4px;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.2s;
}

.wbg-card:hover .wbg-card__dots {
	opacity: 1;
}

.wbg-card__dot {
	width: 20px;
	height: 3px;
	border-radius: 2px;
	background: rgba(255,255,255,0.5);
	transition: background 0.15s;
}

.wbg-card__dot--active {
	background: #fff;
}

/* === Бейджи === */
.wbg-card__badges {
	position: absolute;
	bottom: 8px;
	left: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	z-index: 2;
}

.wbg-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 4px;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.wbg-badge--new {
	background: rgba(16, 185, 129, 0.85);
	color: #fff;
}

.wbg-badge--hit {
	background: rgba(0, 129, 138, 0.85);
	color: #fff;
}

.wbg-badge--sale {
	background: rgba(239, 68, 68, 0.9);
	color: #fff;
}

/* === Избранное (сердечко) === */
.wbg-card__fav {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255,255,255,0.85);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
	opacity: 0;
	transition: opacity 0.2s, transform 0.2s, background 0.2s;
	padding: 0;
}

.wbg-card__fav svg {
	width: 18px;
	height: 18px;
	color: #666;
	transition: color 0.15s;
}

.wbg-card:hover .wbg-card__fav {
	opacity: 1;
}

/* На мобильном — всегда видно */
@media (hover: none) {
	.wbg-card__fav {
		opacity: 1;
		width: 28px;
		height: 28px;
		top: 6px;
		right: 6px;
	}
	.wbg-card__fav svg {
		width: 16px;
		height: 16px;
	}
}

.wbg-card__fav:hover {
	background: #fff;
}

.wbg-card__fav:hover svg,
.wbg-card__fav--active svg {
	color: #ef4444;
	fill: #ef4444;
}

.wbg-card__fav--active {
	opacity: 1;
}

.wbg-card__fav--animate {
	animation: wbg-heart-pop 0.35s ease;
}

@keyframes wbg-heart-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

/* === Quick View === */
.wbg-card__qv {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
	opacity: 0;
	transition: opacity 0.2s, transform 0.2s;
	padding: 0;
}

.wbg-card__qv svg {
	width: 20px;
	height: 20px;
	color: #333;
}

.wbg-card:hover .wbg-card__qv {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* === Информация === */
.wbg-card__info {
	padding: 8px 8px 10px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

@media (min-width: 768px) {
	.wbg-card__info { padding: 10px 10px 12px; }
}

/* === Цена === */
.wbg-card__price-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.wbg-card__price {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.wbg-card__price { font-size: 20px; }
}

.wbg-card__price--req {
	font-size: 13px;
	font-weight: 500;
	color: #999;
	font-style: italic;
}

.wbg-card__old-price {
	font-size: 12px;
	color: #999;
	text-decoration: line-through;
}

.wbg-card__per-unit {
	font-size: 10px;
	color: #999;
	line-height: 1;
	margin-top: -1px;
}

/* === Название === */
.wbg-card__title {
	font-size: 13px;
	font-weight: 400;
	color: #333;
	text-decoration: none;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 6px;
}

@media (min-width: 768px) {
	.wbg-card__title { font-size: 14px; }
}

.wbg-card__title:hover {
	color: #00818a;
}

/* === Характеристика === */
.wbg-card__spec {
	font-size: 11px;
	color: #999;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* === Артикул === */
.wbg-card__art {
	font-size: 10px;
	color: #bbb;
	margin-top: 2px;
}

/* === Статус наличия === */
.wbg-card__stock {
	font-size: 11px;
	margin-top: 4px;
}

.wbg-card__stock--out {
	color: #999;
}

.wbg-card__stock--low {
	color: #ef4444;
	font-weight: 500;
}

/* === Кнопки === */
.wbg-card__actions {
	margin-top: auto;
	padding-top: 8px;
}

.wbg-card__cart-btn {
	width: 100%;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: #00818a;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background 0.15s, transform 0.1s;
}

.wbg-card__cart-btn:hover {
	background: #006d75;
}

.wbg-card__cart-btn:active {
	transform: scale(0.97);
}

.wbg-card__cart-icon {
	width: 16px;
	height: 16px;
}

.wbg-card__cart-check {
	width: 18px;
	height: 18px;
	display: none;
}

.wbg-card__cart-btn--done {
	background: #10b981;
}

.wbg-card__cart-btn--done:hover {
	background: #059669;
}

.wbg-card__cart-btn--done .wbg-card__cart-icon { display: none; }
.wbg-card__cart-btn--done .wbg-card__cart-check { display: inline-block; }

@media (max-width: 639px) {
	.wbg-card__cart-btn {
		height: 32px;
		font-size: 12px;
		border-radius: 6px;
	}
	.wbg-card__cart-text { display: none; }
	.wbg-card__cart-icon { width: 18px; height: 18px; }
}

/* Кнопка "Сообщить о поступлении" */
.wbg-card__notify-btn {
	width: 100%;
	height: 36px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #666;
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background 0.15s, border-color 0.15s;
}

.wbg-card__notify-btn:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

@media (max-width: 639px) {
	.wbg-card__notify-btn {
		height: 32px;
		font-size: 11px;
	}
}

/* === Пустой каталог === */
.wbg-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	color: #94a3b8;
	gap: 12px;
}

.wbg-empty p {
	font-size: 15px;
	margin: 0;
}

/* === Load More === */
.wbg-load-more {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.wbg-load-more__btn {
	padding: 12px 48px;
	background: #00818a;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}

.wbg-load-more__btn:hover {
	background: #006d75;
}

.wbg-load-more__btn:active {
	transform: scale(0.97);
}

.wbg-load-more__btn:disabled {
	background: #d1d5db;
	cursor: not-allowed;
}

.wbg-load-more__info {
	font-size: 12px;
	color: #999;
}

/* === Quick View Modal === */
.wbg-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.wbg-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	animation: wbg-fade-in 0.2s ease;
}

.wbg-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 720px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	animation: wbg-slide-up 0.25s ease;
	z-index: 1;
}

.wbg-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f3f4f6;
	border: none;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	color: #666;
	transition: background 0.15s;
}

.wbg-modal__close:hover {
	background: #e5e7eb;
}

.wbg-modal__body {
	padding: 24px;
}

.wbg-modal__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

/* Modal content layout */
.wbg-qv {
	display: flex;
	gap: 24px;
}

@media (max-width: 639px) {
	.wbg-qv { flex-direction: column; gap: 16px; }
	.wbg-modal__body { padding: 16px; }
}

.wbg-qv__gallery {
	flex: 0 0 280px;
	max-width: 280px;
}

@media (max-width: 639px) {
	.wbg-qv__gallery { flex: none; max-width: 100%; }
}

.wbg-qv__main-img {
	width: 100%;
	aspect-ratio: 4/5;
	object-fit: cover;
	border-radius: 12px;
	background: #f8f8f8;
}

.wbg-qv__thumbs {
	display: flex;
	gap: 6px;
	margin-top: 8px;
	overflow-x: auto;
}

.wbg-qv__thumb {
	width: 48px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.15s;
	flex-shrink: 0;
}

.wbg-qv__thumb--active,
.wbg-qv__thumb:hover {
	border-color: #00818a;
}

.wbg-qv__no-photo {
	width: 100%;
	aspect-ratio: 4/5;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f5f5f5, #ececec);
	border-radius: 12px;
}

.wbg-qv__info {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.wbg-qv__name {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
	margin: 0 0 4px;
}

.wbg-qv__article {
	font-size: 12px;
	color: #999;
	margin-bottom: 12px;
}

.wbg-qv__price-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}

.wbg-qv__price {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
}

.wbg-qv__old-price {
	font-size: 14px;
	color: #999;
	text-decoration: line-through;
}

.wbg-qv__per-unit {
	font-size: 12px;
	color: #999;
	margin-bottom: 16px;
}

.wbg-qv__props {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
	padding: 12px;
	background: #f9fafb;
	border-radius: 8px;
}

.wbg-qv__prop {
	display: flex;
	font-size: 13px;
	gap: 8px;
}

.wbg-qv__prop-label {
	color: #999;
	min-width: 90px;
	flex-shrink: 0;
}

.wbg-qv__prop-value {
	color: #333;
}

.wbg-qv__qty-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.wbg-qv__qty-label {
	font-size: 13px;
	color: #666;
}

.wbg-qv__qty-ctrl {
	display: flex;
	align-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.wbg-qv__qty-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: #f9fafb;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	transition: background 0.15s;
}

.wbg-qv__qty-btn:hover {
	background: #f3f4f6;
}

.wbg-qv__qty-input {
	width: 60px;
	height: 36px;
	border: none;
	border-left: 1px solid #e5e7eb;
	border-right: 1px solid #e5e7eb;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
}

.wbg-qv__cart-btn {
	width: 100%;
	height: 44px;
	border: none;
	border-radius: 10px;
	background: #00818a;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.wbg-qv__cart-btn:hover {
	background: #006d75;
}

.wbg-qv__cart-btn--done {
	background: #10b981;
}

.wbg-qv__cart-btn--done:hover {
	background: #059669;
}

.wbg-qv__link {
	display: block;
	text-align: center;
	margin-top: 8px;
	font-size: 13px;
	color: #00818a;
	text-decoration: none;
}

.wbg-qv__link:hover {
	text-decoration: underline;
}

.wbg-qv__stock {
	font-size: 12px;
	margin-top: 8px;
}

.wbg-qv__stock--out {
	color: #999;
}

.wbg-qv__stock--ok {
	color: #10b981;
	font-weight: 500;
}

.wbg-qv__stock--low {
	color: #ef4444;
	font-weight: 500;
}

/* Spinner */
.wbg-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #e5e7eb;
	border-top-color: #00818a;
	border-radius: 50%;
	animation: wbg-spin 0.6s linear infinite;
}

@keyframes wbg-spin {
	to { transform: rotate(360deg); }
}

@keyframes wbg-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes wbg-slide-up {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Skeleton loading */
.wbg-skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: wbg-shimmer 1.5s infinite;
	border-radius: 8px;
}

@keyframes wbg-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* === Тост добавления в корзину === */
.wbg-toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: #1a1a1a;
	color: #fff;
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	z-index: 9999;
	opacity: 0;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.wbg-toast--show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.wbg-toast a {
	color: #4dd8e0;
	text-decoration: underline;
	margin-left: 4px;
}

/* End */
/* /local/templates/tkanililiya_custom/components/bitrix/catalog.section.list/bootstrap_v4/style.css?17715202105586 */
/* /local/templates/tkanililiya_custom/components/bitrix/catalog.smart.filter/horizontal_wb/style.css?177152021012276 */
/* /bitrix/components/bitrix/system.pagenavigation/templates/bootstrap_v4/style.min.css?1770637024272 */
/* /local/templates/tkanililiya_custom/components/bitrix/catalog.section/fabrics_grid/style.css?177152021014653 */
