

/* 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 */
/* /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 */
