/**
 * Specifications Page Styles
 *
 * @package Plastpro
 * @since 1.0.0
 */

/* Hero Section */
.specifications-hero {
	position: relative;
	width: 100%;
	min-height: var(--plastpro-hero-min-height);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 0;
}

.specifications-hero .hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.specifications-hero .hero-overlay {
	position: relative;
	width: 100%;
	height: 100%;
	background: rgba(29, 37, 45, 0.3); /* #1D252D at 30% opacity */
	z-index: 1;
}

.specifications-hero .hero-text-wrapper {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 6rem;
}

.specifications-hero .hero-text-content {
	position: relative;
	z-index: 1;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.specifications-hero .hero-text-content .hero-title {
	font-family: 'Gilda Display', serif !important;
	font-size: var(--font-size-display) !important;
	font-weight: 400 !important;
	line-height: 70px !important;
	margin: 0 !important;
	color: #FFFFFF !important;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.specifications-page {
	padding: 0;
	background: #fff;
}

.specifications-page-header {
	margin-bottom: 3rem;
	text-align: center;
}

.specifications-page-title {
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-h1);
	font-weight: 700;
	line-height: 44px;
	color: #000;
	margin: 0 0 1rem 0;
}

.specifications-page-content {
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-h6);
	font-weight: 400;
	line-height: 24px;
	color: #000;
	max-width: 800px;
	margin: 0 auto;
}

/* Filters Section */
.specifications-filters-wrapper {
	width: 100%;
	background: #F5F5F5;
	margin-bottom: 3rem;
	margin-top: 0;
	position: relative;
	overflow: visible;
	z-index: 1;
}

.specifications-filters-wrapper .site-container {
	overflow: visible;
	position: relative;
}

.specifications-filters {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	padding: 2rem 0;
	position: relative;
	overflow: visible;
}

.specifications-filters-left {
	flex: 1;
	min-width: 0;
}

.specifications-filters-right {
	flex: 0 0 auto;
	min-width: 300px;
}

.specifications-filter-section-label {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-h6);
	font-weight: 700;
	line-height: 20px;
	color: #000;
	margin-bottom: 1rem;
}

.specifications-filter-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 1rem;
}


.specifications-filter-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	position: relative;
}

.specifications-filter-radio-input {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #7C878E;
	border-radius: 50%;
	margin: 0;
	position: relative;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.3s ease;
}

.specifications-filter-radio-input:checked {
	border-color: #E87722;
}

.specifications-filter-radio-input:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	background-color: #E87722;
	border-radius: 50%;
}

.specifications-filter-radio-input:hover {
	border-color: #E87722;
}

.specifications-filter-icon {
	width: 16px;
	height: 16px;
	color: #1D252D;
	flex-shrink: 0;
}

.specifications-filter-radio-label {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-small);
	font-weight: 400;
	color: #1D252D;
	cursor: pointer;
	text-transform: uppercase;
}

.specifications-filter-clear {
	background: #fff;
	border: 1px solid var(--plastpro-orange, #E87722);
	padding: 6px 16px;
	border-radius: 50px; /* Pill shape */
	cursor: pointer;
	font-size: var(--font-size-small);
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	color: #1D252D;
	text-transform: uppercase;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 12px;
	white-space: nowrap;
}

.specifications-filter-clear::after {
	content: '×';
	font-size: var(--font-size-large);
	font-weight: 400;
	color: #1D252D;
	line-height: 1;
}

.specifications-filter-clear:hover {
	background: #fff;
	border-color: var(--plastpro-orange, #E87722);
	color: var(--plastpro-orange, #E87722);
}

.specifications-filter-clear:hover::after {
	color: var(--plastpro-orange, #E87722);
}

.specifications-filter-radio {
	position: relative;
}

/* Custom Dropdown Styles */
.specifications-custom-dropdown {
	position: relative;
	display: inline-block;
}

.specifications-dropdown-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.specifications-dropdown-trigger:hover {
	opacity: 0.7;
}

.specifications-dropdown-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background: #fff;
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	min-width: 200px;
	z-index: 99999;
	display: none;
	max-height: 400px;
	overflow-y: auto;
	overflow-x: hidden;
}

.specifications-custom-dropdown.active .specifications-dropdown-menu {
	display: block;
}

.specifications-dropdown-menu-top {
	height: 3px;
	background: #E87722;
	border-radius: 4px 4px 0 0;
}

.specifications-dropdown-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.specifications-dropdown-item {
	padding: 12px 16px;
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-small);
	font-weight: 600;
	color: #1D252D;
	cursor: pointer;
	transition: background-color 0.2s ease;
	border-bottom: 1px solid #F5F5F5;
}

.specifications-dropdown-item:last-child {
	border-bottom: none;
}

.specifications-dropdown-item:hover {
	background-color: #F5F5F5;
}

.specifications-dropdown-item.selected {
	background-color: #F5F5F5;
}

.specifications-filter-chevron {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	margin-left: 4px;
}

.specifications-product-code-group {
	display: flex;
	gap: 12px;
	align-items: center;
}

.specifications-product-code-input {
	flex: 1;
	min-width: 300px;
	padding: 10px 16px;
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-h6);
	font-weight: 400;
	line-height: 24px;
	color: #000;
	background: #fff;
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	transition: border-color 0.3s ease;
}

.specifications-product-code-input:focus {
	outline: none;
	border-color: #E87722;
	box-shadow: 0 0 0 2px rgba(232, 119, 34, 0.1);
}

.specifications-product-code-input::placeholder {
	color: #999;
}

.specifications-product-code-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 32px;
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-small);
	font-weight: 600;
	color: #fff;
	background: #7C878E;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	white-space: nowrap;
}

.specifications-product-code-search:hover {
	background: #6A747A;
}

.specifications-product-code-search svg {
	flex-shrink: 0;
}

/* Specifications by Series */
.specifications-by-series {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.specification-series-group {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
}

.specification-series-content {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 3rem;
	padding: 2rem;
	align-items: start;
}

.specification-series-image {
	width: 100%;
	height: auto;
}

.specification-series-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.specification-series-details {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.specification-series-title {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-h2);
	font-weight: 700;
	color: #1D252D;
	margin: 0;
	text-transform: uppercase;
}

.specification-series-heights {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	align-items: flex-start;
}

.specification-height-column {
	flex: 0 0 auto;
	min-width: 140px;
}

.specification-height-title {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-h6);
	font-weight: 700;
	color: #1D252D;
	margin: 0 0 1rem 0;
	text-transform: uppercase;
}

.specification-document-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.specification-document-item {
	margin: 0;
	padding: 0;
}

.specification-document-link,
.specification-document-text {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-small);
	font-weight: 400;
	color: #1D252D;
	text-decoration: none;
	display: block;
	transition: color 0.3s ease;
}

.specification-document-link:hover {
	color: #E87722;
}

.specification-card {
	background: #fff;
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

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

.specification-card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: var(--plastpro-gray-6, #F5F5F5);
}

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

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

.specification-card-content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.specification-card-title {
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-large);
	font-weight: 700;
	line-height: 24px;
	color: #000;
	margin: 0 0 0.75rem 0;
}

.specification-card-title a {
	color: #000;
	text-decoration: none;
	transition: color 0.3s ease;
}

.specification-card-title a:hover {
	color: var(--plastpro-orange, #E87722);
}

.specification-card-description {
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-small);
	font-weight: 400;
	line-height: 20px;
	color: #7C878E;
	margin: 0 0 1rem 0;
	flex: 1;
}

.specification-card-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-small);
	font-weight: 600;
	line-height: 20px;
	color: var(--plastpro-orange, #E87722);
	text-decoration: none;
	margin-top: auto;
	transition: color 0.3s ease;
}

.specification-card-download:hover {
	color: var(--plastpro-orange, #E87722);
	text-decoration: underline;
}

.specification-card-download::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 15V3M12 15L7 10M12 15L17 10' stroke='%23E87722' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 17L2 19C2 20.1046 2.89543 21 4 21L20 21C21.1046 21 22 20.1046 22 19L22 17' stroke='%23E87722' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.specifications-no-results {
	text-align: center;
	padding: 3rem 2rem;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-h6);
	font-weight: 400;
	line-height: 24px;
	color: #7C878E;
}

/* Tablet - Medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
	.specifications-hero .hero-text-content .hero-title {
		font-size: var(--font-size-display) !important;
		line-height: 60px !important;
	}

	.specification-series-content {
		grid-template-columns: 250px 1fr;
		gap: 2rem;
		padding: 1.5rem;
	}

	.specification-series-heights {
		gap: 1.5rem;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.specifications-hero {
		min-height: var(--plastpro-hero-min-height-mobile);
	}

	.specifications-hero .hero-text-content .hero-title {
		font-size: var(--font-size-display) !important;
		line-height: 52px !important;
	}

	.specifications-hero .hero-text-wrapper {
		padding-bottom: 3rem;
	}

	.specifications-page {
		padding: 2rem 0;
	}

	.specifications-page-title {
		font-size: var(--font-size-h2);
		line-height: 36px;
	}

	.specifications-filters {
		flex-direction: column;
		gap: 1rem;
		padding: 1.5rem;
	}

	.specifications-filter-group {
		min-width: 100%;
	}

	.specifications-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.specifications-by-series {
		gap: 2rem;
	}

	/* Stack image above details on mobile */
	.specification-series-content {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1.5rem;
	}

	.specification-series-image {
		max-width: 280px;
		margin: 0 auto;
	}

	/* Stack height columns vertically on mobile */
	.specification-series-heights {
		flex-direction: column;
		gap: 1.5rem;
	}

	.specification-height-column {
		width: 100%;
		min-width: 0;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.specifications-hero {
		min-height: var(--plastpro-hero-min-height-mobile);
	}

	.specifications-hero .hero-text-content .hero-title {
		font-size: var(--font-size-h2) !important;
		line-height: 38px !important;
	}

	.specifications-hero .hero-text-wrapper {
		padding-bottom: 2rem;
	}

	.specifications-page {
		padding: 1.5rem 0;
	}

	.specifications-page-title {
		font-size: var(--font-size-h2);
		line-height: 32px;
	}

	.specification-series-content {
		padding: 1rem;
		gap: 1.25rem;
	}

	.specification-series-title {
		font-size: var(--font-size-h4);
	}

	.specification-series-heights {
		gap: 1.25rem;
	}

	.specification-height-title {
		font-size: var(--font-size-small);
		margin-bottom: 0.75rem;
	}

	.specification-document-link,
	.specification-document-text {
		font-size: var(--font-size-xs);
	}
}

