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

/* Сетка товаров */
.fabrics-catalog .products-grid {
	margin: 0 -0.5rem;
}

.fabrics-catalog .product-col {
	padding: 0.5rem;
}

/* Карточка товара */
.product-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: transform 0.2s, box-shadow 0.2s;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-card.not-available {
	opacity: 0.6;
}

/* Изображение товара */
.product-card-image-wrapper {
	position: relative;
	padding-top: 100%;
	background: #f5f5f5;
	overflow: hidden;
}

.product-card-image-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.product-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.product-card:hover .product-card-image {
	transform: scale(1.05);
}

.product-card-no-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
}

.product-card-no-image .material-symbols-outlined {
	font-size: 48px;
}

/* Бейджи */
.product-card-badges {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	z-index: 2;
}

.product-card-badges .badge {
	font-size: 0.7rem;
	padding: 0.25rem 0.5rem;
	font-weight: 600;
}

.badge-new {
	background: #28a745;
	color: #fff;
}

.badge-hit {
	background: #fd7e14;
	color: #fff;
}

.badge-sale {
	background: #dc3545;
	color: #fff;
}

/* Кнопки действий на изображении */
.product-card-favorite,
.product-card-compare {
	position: absolute;
	right: 0.5rem;
	background: rgba(255,255,255,0.9);
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s, background 0.2s;
	z-index: 2;
}

.product-card-favorite {
	top: 0.5rem;
}

.product-card-compare {
	top: 3rem;
}

.product-card:hover .product-card-favorite,
.product-card:hover .product-card-compare {
	opacity: 1;
}

.product-card-favorite:hover,
.product-card-compare:hover {
	background: #fff;
}

.product-card-favorite .material-symbols-outlined,
.product-card-compare .material-symbols-outlined {
	font-size: 20px;
	color: #666;
}

/* Информация о товаре */
.product-card-info {
	padding: 0.75rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.product-card-title {
	font-size: 0.9rem;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 0.25rem;
}

.product-card-title:hover {
	color: var(--primary, #007bff);
	text-decoration: none;
}

.product-card-material {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 0.5rem;
}

.product-card-price-row {
	margin-top: auto;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.product-card-price {
	font-size: 1.1rem;
	font-weight: 700;
	color: #333;
}

.product-card-measure {
	font-size: 0.85rem;
	color: #666;
}

.product-card-old-price {
	font-size: 0.85rem;
	color: #999;
	text-decoration: line-through;
	margin-left: 0.5rem;
}

.product-card-price-request {
	font-size: 0.9rem;
	color: #888;
	font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
	.product-card-info {
		padding: 0.5rem;
	}

	.product-card-title {
		font-size: 0.85rem;
	}

	.product-card-price {
		font-size: 1rem;
	}

	.product-card-favorite,
	.product-card-compare {
		opacity: 1;
		width: 32px;
		height: 32px;
	}

	.product-card-compare {
		top: 2.5rem;
	}
}
