@import '_mixins';
@import '_variables';

#page-hero {
	margin-bottom: 100px;
	width: 100%;
}

#nav_tabs,
#nav_tabs_colors {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 17px;
	list-style-type: none;

	li {
		position: relative;
		min-width: fit-content;
		width: 200px;
		border: 1px solid #000;
		background: #fff;
		transition: background 250ms ease;

		&.new {
			&::before {
				content: url('/upload/filemanager/Icons/new-icon.png');
				position: absolute;
				top: -10px;
				right: -15px;
			}
		}

		&.active {
			background: #000;

			a {
				color: #fff;
			}
		}

		a {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			text-decoration: none;
			row-gap: 7px;

			color: #000;
			font-weight: 300;
			font-size: 18px;
			line-height: 1;
			margin-bottom: 0;

			padding: 12px 20px;
			cursor: pointer;
			transition: color 250ms ease;

			u {
				display: flex;
				flex-direction: column;
				align-items: center;
				font-weight: 300;
				font-size: 14px;
				line-height: 1.3;
				margin-bottom: 0;
				letter-spacing: 0.05em;
				text-decoration: none;

				span {
					margin-top: -4px;
					font-size: 14px;
				}
			}
		}
	}
}

button.c-button {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 250px;
	min-height: 38px;
	background: #fff;
	border: 1px solid #000;
	padding: 0 20px;
	outline: none !important;
	background: #fff;
	transition: background 250ms ease-in-out;
	cursor: pointer;

	&:hover {
		background: #000;
		color: #fff;
	}
}

.box-01 {
	padding-bottom: 150px;

	@include respond-below(md) {
		padding-bottom: 50px;
	}

	#product-preview-box {
		margin-bottom: 0;

		.product-preview-box {
			.scontainer-content {
				.product-preview {
					padding-left: 0;

					.row {
						&:not(:last-child) {
							margin-bottom: 110px;
							padding-bottom: 110px;
							border-bottom: 1px solid #000;
						}
					}
				}

				h3 {
					color: #000;
					font-size: 32px;
					font-weight: 300;
					letter-spacing: 4px;
					line-height: 1;
					margin-bottom: 40px;
					text-transform: uppercase;
				}

				#nav_tabs {
					margin-bottom: 50px;
					// padding-bottom: 0;

					max-width: unset;
					padding: 0;
					border: none;

					&::before {
						display: none;
					}
				}

				.product-doors-list {
					display: grid;
					grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
					column-gap: 30px;
					row-gap: 40px;
					padding: 0;

					li {
						display: flex;
						flex-direction: column;
						row-gap: 16px;
						align-items: center;

						img {
							width: 100%;
							max-width: fit-content;
						}

						p {
							margin-bottom: 0;
							text-align: center;

							color: #000;
							font-size: 20px;
							font-weight: 700;
							letter-spacing: 1px;
							line-height: 1;
							font-family: 'URW Form', sans-serif;
						}
					}
				}

				.product-doors-list-more {
					padding-top: 40px;
					display: none;
				}

				.c-button {
					margin-top: 40px;
				}
			}
		}
	}
}

#product-colors-preview-box {
	margin-bottom: 70px;

	.scontainer-content {
		.colors-box-header {
			padding: 45px 50px 30px;
			margin-bottom: 50px;
			background: #f4f4f4;

			h2 {
				font-size: 30px;
				font-weight: 300;
				line-height: 25px;
				letter-spacing: 0.15em;
			}

			p {
				font-size: 16px;
				font-weight: 300;
				line-height: 25px;
				letter-spacing: 0.05em;
				margin-bottom: 0;
			}

			.c-row {
				display: flex;
				flex-direction: row;
				column-gap: 40px;

				.c-col {
					&-2 {
						display: flex;
						justify-content: center;
						flex: 1;
					}
				}
			}
		}

		.colors-preview {
			display: none;

			&.active {
				display: block;
			}

			.color-tiles-rows {
				.color-tiles {
					&:not(:last-child) {
						margin-bottom: 130px;
					}

					.color-tiles-title {
					}

					.color-tiles-data {
						display: flex;
						flex-direction: row;
						flex-wrap: wrap;
						column-gap: 17px;
						row-gap: 17px;
						align-items: flex-start;
						overflow: hidden;

						li {
							flex: 0 0 calc(100% / 3 - (17px * 2 / 3));

							@include respond-below(md) {
								flex: 0 0 calc(100% / 2 - (17px / 2));

								&.empty {
									display: none;
								}
							}

							@include respond-below(sm) {
								flex: 0 0 100%;
							}
						}
					}
				}
			}
		}
	}
}

.color-tiles {
	position: relative;
	height: fit-content;

	&::before {
		content: '';
		position: absolute;
		left: 0;
		top: 12px;
		bottom: 0;
		width: 1px;
		background: #6c6d70;
	}

	&-title {
		position: relative;
		padding-left: 240px;
		min-height: 30px;

		&::before {
			content: '';
			position: absolute;
			left: 0;
			top: 12px;
			width: 213px;
			height: 1px;
			background: #6c6d70;
		}

		h2 {
			font-weight: 700;
			font-size: 20px;
			line-height: 25px;
			letter-spacing: 0.07em;
			text-transform: uppercase;
			margin-bottom: 0;
		}

		@include respond-below(md) {
			padding-left: 100px;

			&::before {
				width: 60px;
			}
		}
	}

	&-data {
		padding-left: 60px;
		padding-top: 50px;
		max-height: unset;

		li {
			display: flex;
			flex-direction: row;
			align-items: center;
			column-gap: 17px;

			img {
				width: 100%;
				max-width: fit-content;
			}

			p {
				font-weight: 300;
				font-size: 13px;
				line-height: 15px;
				letter-spacing: 0.05em;
				text-transform: uppercase;
				margin-bottom: 0;
				font-family: 'URW Form', sans-serif;
			}
		}

		@include respond-below(md) {
			padding-left: 30px;
			padding-top: 30px;
		}
	}

	&[status='true'] {
		button {
			span {
				&::after {
					width: 0;
				}
			}
		}
	}

	button {
		position: relative;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		max-width: 250px;
		min-height: 38px;
		background: #fff;
		border: 1px solid #000;
		margin-left: 60px;
		margin-top: 19px;
		padding: 0 20px;
		outline: none !important;
		background: #fff;
		transition: background 250ms ease-in-out;
		cursor: pointer;

		&:hover {
			background: #000;

			p {
				color: #fff;
			}

			span {
				border-color: #fff;

				&::before,
				&::after {
					background: #fff;
				}
			}
		}

		p {
			font-weight: 300;
			font-size: 16px;
			line-height: 20px;
			letter-spacing: 0.15em;
			text-transform: uppercase;
			margin-bottom: 0;
			transition: color 250ms ease-in;
		}

		span {
			position: relative;
			width: 20px;
			height: 20px;
			border-radius: 100%;
			border: 1px solid #000;
			transition: border 250ms ease-in;

			&::before {
				content: '';
				position: absolute;
				left: 50%;
				top: 50%;
				width: 10px;
				height: 1px;
				background: #000;
				border-radius: 3px;
				transform: translate(-50%, -50%);
				transition: background 250ms ease-in;
			}

			&::after {
				content: '';
				position: absolute;
				left: 50%;
				top: 50%;
				width: 10px;
				height: 1px;
				background: #000;
				border-radius: 3px;
				transform: translate(-50%, -50%) rotate(90deg);
				transition: width 250ms ease-in, background 250ms ease-in;
			}
		}

		@include respond-below(md) {
			margin-left: 30px;
		}
	}
}

.additional-colors {
	color: #303030;
	text-decoration: none;
	cursor: pointer;

	background: #f4f4f4;
	font-weight: 500;
	padding: 10px 20px;
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 25px;

	&.active {
		span {
			&::after {
				height: 0;
			}
		}
	}

	span {
		position: relative;
		padding-top: 3px;
		padding-right: 20px;

		&::before {
			content: '';
			position: absolute;
			top: 50%;
			right: 0;
			width: 10px;
			height: 2px;
			background-color: #000;
			transform: translateY(-50%);
		}

		&::after {
			content: '';
			position: absolute;
			top: 50%;
			right: 4px;
			width: 2px;
			height: 10px;
			background-color: #000;
			transform: translateY(-50%);
			transition: all 250ms ease-in-out;
		}
	}
}

.box-03 {
	margin-bottom: 100px;

	.c-row {
		display: flex;
		flex-direction: row;
		align-items: center;

		@include respond-below(md) {
			flex-direction: column-reverse;
			row-gap: 20px;
		}

		.c-col-1 {
			flex-basis: 50%;

			@include respond-below(md) {
				max-width: 527px;
			}

			h2 {
				color: #000;
				font-size: 30px;
				font-family: 'URW Form', sans-serif;
				font-weight: 400;
				letter-spacing: 2px;
				text-transform: uppercase;
				padding: 35px 30px 25px;
				margin: 0;
				background: #f4f4f4;

				@include respond-below(lg) {
					font-size: 26px;
					padding: 25px 20px 17px;
				}
			}

			ul {
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;
				gap: 20px 30px;
				padding: 30px 0 0 30px;

				@include respond-below(lg) {
					padding: 20px 0 0 20px;
					gap: 20px 30px;
				}

				@include respond-below(md) {
					justify-content: center;
				}

				li {
					display: flex;
					flex-direction: column;
					row-gap: 4px;

					img {
						width: 100%;
						max-width: 130px;

						@include respond-between(md, lg) {
							max-width: 110px;
						}
					}
					p {
						color: #000;
						font-size: 15px;
						font-family: 'URW Form', sans-serif;
						font-weight: 400;
						margin-bottom: 0;
						text-transform: uppercase;
						letter-spacing: 1px;
					}
				}
			}
		}
		.c-col-2 {
			flex-basis: 50%;

			img {
				width: 100%;
				max-width: fit-content;
			}
		}
	}
}
