/* WooCommerce стили на основе novakey.ru */

/* Общие стили */
.woocommerce-products-wrapper {
	width: min(1200px, calc(100% - 40px));
	margin: 60px auto;
	padding: 0;
}

/* Стили для слайдера товаров на главной */
.showcase__items .product-card {
	height: 100%;
}

.showcase__items .product-card__link {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.showcase__items .product-card__image {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.showcase__items .product-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.showcase__items .product-card__title {
	flex: 1;
}

.showcase__items .product-card__button {
	margin-top: auto;
}

/* Кнопка "Показать еще" */
.load-more-wrapper {
	display: flex;
	justify-content: center;
	margin: 40px 0;
}

.load-more-button {
	background: #000;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 16px 60px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.load-more-button:hover {
	background: #333;
}

.load-more-button:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.load-more-button.loading {
	opacity: 0.6;
	cursor: wait;
}

/* Блок помощи с выбором */
.help-section {
	background: white;
	border-radius: 20px;
	padding: 40px 60px;
	margin: 60px auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	box-sizing: border-box;
}

.help-section__content {
	flex: 1;
}

.help-section__title {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #000;
}

.help-section__text {
	font-size: 16px;
	color: #666;
	margin: 0;
}

.help-section__button {
	background: #000;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 16px 40px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	white-space: nowrap;
}

.help-section__button:hover {
	background: #333;
}

@media (max-width: 768px) {
	.help-section {
		flex-direction: column;
		padding: 30px 20px;
		text-align: center;
		gap: 20px;
	}

	.help-section__title {
		font-size: 22px;
	}

	.help-section__button {
		width: 100%;
	}
}

/* Сетка товаров */
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

@media (max-width: 768px) {
	.products-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

/* Карточка товара */
.product-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	position: relative;
	box-sizing: border-box;
}

.product-card * {
	box-sizing: border-box;
}

.product-card:hover {
	border: 2px solid;
}

.product-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
}

.product-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.product-card__badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #f6a70c;
	color: #fff;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.product-card__content {
	padding: 20px;
}

.product-card__title {
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 15px 0;
	line-height: 1.3;
	min-height: 48px;
}

.product-card__colors {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.product-card__color {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #e0e0e0;
	cursor: pointer;
	transition: transform 0.2s ease;
	background: #ccc;
}

.product-card__color:hover {
	transform: scale(1.2);
}

.product-card__colors-more {
	font-size: 12px;
	color: #666;
}

.product-card__price-wrapper {
	margin-bottom: 15px;
}

.product-card__price-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.product-card__price {
	font-size: 24px;
	font-weight: 600;
	color: #000;
}

.product-card__price_sale {
	color: #f6a70c;
}

.product-card__price_old {
	font-size: 18px;
	color: #999;
	text-decoration: line-through;
}

.product-card__button {
	width: 100%;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 12px 20px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.product-card__button:hover {
	background: #333;
}

.product-card__actions {
	display: flex;
	gap: 10px;
	padding: 0 20px 20px;
}

.product-card__button_primary {
	background: #000;
	color: #fff;
}

.product-card__button_primary:hover {
	background: #d7333f;
}

.product-card__button_secondary {
	background: #f5f5f5;
	color: #000;
	flex: 0 0 auto;
	padding: 12px;
}

.product-card__button_secondary:hover {
	background: #e0e0e0;
}

/* Детальная страница товара */
.single-product-wrapper {
	width: min(1200px, calc(100% - 40px));
	margin: 60px auto;
}

.single-product-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	margin-bottom: 60px;
}

@media (max-width: 768px) {
	.single-product-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* Галерея */
.single-product-gallery {
	position: relative;
}

.single-product-gallery__main {
	position: relative;
	background: #f5f5f5;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 1;
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	.single-product-gallery__main {
		aspect-ratio: 0;
	}
	#finishing-image {
		display: none;
	}
}

.single-product-gallery__main-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.single-product-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #f6a70c;
	color: #fff;
	padding: 8px 20px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
}

.single-product-gallery__thumbs {
	display: flex;
	gap: 15px;
	overflow-x: auto;
}

.single-product-gallery__thumb {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 10px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.3s ease;
}

.single-product-gallery__thumb:hover,
.single-product-gallery__thumb_active {
	border-color: #d7333f;
}

/* Информация о товаре */
.single-product-info {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.single-product-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

@media (max-width: 768px) {
	.single-product-title {
		font-size: 24px;
	}
}

.single-product-short-description {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
}

/* Выбор цвета */
.single-product-colors__title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 15px 0;
}

.single-product-colors__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.single-product-color {
	padding: 10px 20px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
}

.single-product-color:hover {
	border-color: #000;
}

.single-product-color_active {
	border-color: #000;
	background: #000;
	color: #fff;
}

.single-product-color__name {
	font-weight: 500;
}

/* Панели с изображениями */
.single-product-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px;
	min-width: 100px;
	max-width: 120px;
}

.single-product-panel__image {
	width: 80px;
	height: 80px;
	min-width: 80px;
	min-height: 80px;
	max-width: 80px;
	max-height: 80px;
	object-fit: cover;
	border-radius: 8px;
	transition: transform 0.3s ease;
	display: block;
}

.single-product-panel:hover .single-product-panel__image {
	transform: scale(1.05);
}

.single-product-panel_active .single-product-panel__image {
	box-shadow: 0 0 0 3px #000;
	border: 2px solid #000;
}

/* Цена */
.single-product-price-wrapper {
	padding: 20px 0;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
}

.single-product-price-group {
	display: flex;
	align-items: center;
	gap: 15px;
}

.single-product-price {
	font-size: 36px;
	font-weight: 700;
	color: #000;
}

.single-product-price_sale {
	color: #f6a70c;
}

.single-product-price_old {
	font-size: 24px;
	color: #999;
	text-decoration: line-through;
}

/* Кнопки действий */
.single-product-actions {
	display: flex;
	gap: 15px;
}

.single-product-button {
	flex: 1;
	padding: 18px 30px;
	border: none;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.single-product-button_primary {
	background: #000;
	color: #fff;
}

.single-product-button_secondary {
	background: #797fa1;
	color: #fff;
}

.single-product-button_secondary:hover {
	background: #6a7090;
}

@media (max-width: 768px) {
	.single-product-actions {
		flex-direction: column;
	}
}

/* Мета информация */
.single-product-meta {
	display: flex;
	gap: 20px;
}

.single-product-meta__button {
	display: flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: #666;
	transition: color 0.3s ease;
}

.single-product-meta__button:hover {
	color: #d7333f;
}

/* Секции описания и характеристик */
.single-product-description-section,
.single-product-attributes-section {
	margin-top: 60px;
}

.single-product-section-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 30px 0;
}

.single-product-description {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.single-product-description h4 {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 20px 0;
}

.single-product-description p {
	margin: 0 0 20px 0;
}

.single-product-description ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.single-product-description li {
	padding-left: 25px;
	position: relative;
	margin-bottom: 10px;
}

.single-product-description li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: #d7333f;
	font-weight: bold;
}

/* Характеристики */
.single-product-attributes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 35px;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 768px) {
	.single-product-attributes {
		grid-template-columns: 1fr;
	}
}

.single-product-attribute {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.single-product-attribute__name {
	font-size: 14px;
	font-weight: 600;
	color: #000;
}

.single-product-attribute__value {
	font-size: 14px;
	color: #666;
	text-align: right;
}

/* Мобильные элементы управления */
.door-mobile-controls {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	grid-template-areas: 'price consult btn';
	background-color: white;
	border-radius: 11px 11px 0 0;
	box-shadow: 1px 2px 10px 2px rgba(0, 0, 0, 0.25);
	width: 100%;
	overflow: hidden;
	z-index: 9999;
	gap: 20px;
	box-sizing: border-box;
}

.door-mobile-controls.door-mobile-controls_sale {
	grid-template-areas:
		'price old_price btn'
		'consult consult consult';
}

.door-mobile-controls__actual-price {
	grid-area: price;
	align-self: center;
	font:
		500 24px 'Inter',
		sans-serif;
	line-height: 1;
}

.door-mobile-controls_sale .door-mobile-controls__actual-price {
	align-self: flex-end;
	color: #f6a70c;
}

.door-mobile-controls__old-price {
	grid-area: old_price;
	font:
		500 20px 'Inter',
		sans-serif;
	color: gray;
	line-height: 1;
}

.door-mobile-controls__old-price span {
	position: relative;
}

.door-mobile-controls__old-price span::before {
	content: '';
	display: block;
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		-10deg,
		transparent 45%,
		#7d7a76,
		transparent 54%
	);
	background-repeat: no-repeat;
}

.door-mobile-controls__old-price,
.door-mobile-controls__actual-price {
	margin-left: 30px;
}

.door-mobile-controls__button {
	grid-area: btn;
	color: white;
	background-color: black;
	height: autio;
	padding: 10px;
	border: none;
	border-radius: 6px;
	font:
		500 16px 'Inter',
		sans-serif;
}

.door-mobile-controls.door-mobile-controls_sale
	.door-mobile-controls__actual-price {
	margin-bottom: 18px;
}

.door-mobile-controls.door-mobile-controls_sale
	.door-mobile-controls__old-price {
	display: flex;
	align-items: center;
}

@media screen and (max-width: 768px) {
	.door-mobile-controls {
		display: grid;
	}

	.single-product-actions {
		display: none;
	}
}
