/**
 * Product Specifications Tabs - Shared Styles
 *
 * Used for: Pf Door Frames, Glass Families, Door Styles
 *
 * @package Plastpro
 * @since 1.0.0
 */

/* Specifications Section */
.product-specs {
	padding: 3rem 0;
	background: var(--plastpro-gray-6, #F5F5F5);
}

.product-specs-content {
	background: #fff;
	padding: 0;
}

.product-specs-tabs {
	display: flex;
	justify-content: center;
	gap: 2rem;
	padding: 0 2rem;
	padding-top: 2rem;
	background: #fff;
	position: relative;
}

.product-specs-tabs::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 1px;
	background: #E0E0E0;
}

.product-specs-tab {
	background: none;
	border: none;
	padding: 0.5rem 0;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	color: #000;
	cursor: pointer;
	position: relative;
	transition: color 0.3s ease;
}

.product-specs-tab:hover {
	color: var(--plastpro-orange, #E87722);
}

.product-specs-tab.active {
	font-weight: 700;
}

.product-specs-tab.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--plastpro-orange, #E87722);
}

.product-specs-panel {
	display: none;
	padding: 2rem;
}

.product-specs-panel.active {
	display: block;
}

.product-specs-no-content {
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #7C878E;
	margin: 0;
}

.product-specs-pdf-wrapper {
	width: 100%;
	max-width: 1200px;
	position: relative;
	margin: 0 auto;
}

.product-specs-pdf-actions {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	z-index: 10;
}

.product-specs-pdf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--plastpro-yellow, #FFCC00);
	color: var(--plastpro-black, #1D252D);
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	text-decoration: none;
	padding: 10px;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	transition: background 0.3s ease, transform 0.2s ease;
	position: relative;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	border: none;
}

.product-specs-pdf-btn:hover {
	background: #E6B800;
	transform: scale(1.05);
}

.product-specs-pdf-btn svg {
	width: 20px;
	height: 20px;
	display: block;
}

.product-specs-pdf-btn-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 8px;
	background: var(--plastpro-black, #1D252D);
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	padding: 6px 12px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
}

.product-specs-pdf-btn-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: var(--plastpro-black, #1D252D);
}

.product-specs-pdf-btn:hover .product-specs-pdf-btn-tooltip {
	opacity: 1;
}

.product-specs-pdf-btn--secondary {
	background: rgba(255, 255, 255, 0.9);
	color: var(--plastpro-black, #1D252D);
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-specs-pdf-btn--secondary:hover {
	background: rgba(255, 255, 255, 1);
	color: var(--plastpro-black, #1D252D);
}

.product-specs-pdf-container {
	width: 100%;
	max-width: 1200px;
	position: relative;
	margin: 0 auto;
}

.product-specs-pdf {
	width: 100%;
	max-width: 1200px;
	height: 1550px; /* Maintains approximate 8.5x11 aspect ratio */
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: block;
}

/* Responsive */
@media (max-width: 768px) {
	.product-specs-tabs {
		gap: 1rem;
		padding: 0 1rem;
		padding-top: 1.5rem;
	}
	
	.product-specs-tabs::after {
		width: 80%;
	}
	
	.product-specs-panel {
		padding: 1.5rem;
	}
	
	.product-specs-pdf-actions {
		top: 0.75rem;
		right: 0.75rem;
	}
	
	.product-specs-pdf {
		height: 900px;
	}
}

@media (max-width: 480px) {
	.product-specs-pdf-actions {
		top: 0.5rem;
		right: 0.5rem;
		gap: 0.5rem;
	}
	
	.product-specs-pdf-btn {
		width: 36px;
		height: 36px;
		padding: 8px;
	}
	
	.product-specs-pdf-btn svg {
		width: 18px;
		height: 18px;
	}
	
	.product-specs-pdf {
		height: 700px;
	}
}

/* Fullscreen PDF Modal */
.product-specs-pdf-fullscreen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-specs-pdf-fullscreen-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(4px);
}

.product-specs-pdf-fullscreen-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 20px 20px;
	z-index: 1;
}

.product-specs-pdf-fullscreen-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--plastpro-black, #1D252D);
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-specs-pdf-fullscreen-close:hover {
	background: rgba(255, 255, 255, 1);
	transform: scale(1.1);
}

.product-specs-pdf-fullscreen-close svg {
	width: 24px;
	height: 24px;
}

.product-specs-pdf-fullscreen-iframe {
	width: 100%;
	height: 100%;
	max-width: 1400px;
	max-height: calc(100vh - 80px);
	border: none;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	background: #fff;
}

@media (max-width: 768px) {
	.product-specs-pdf-fullscreen-content {
		padding: 50px 15px 15px;
	}
	
	.product-specs-pdf-fullscreen-close {
		top: 15px;
		right: 15px;
		width: 40px;
		height: 40px;
	}
	
	.product-specs-pdf-fullscreen-close svg {
		width: 20px;
		height: 20px;
	}
	
	.product-specs-pdf-fullscreen-iframe {
		max-height: calc(100vh - 70px);
	}
}

@media (max-width: 480px) {
	.product-specs-pdf-fullscreen-content {
		padding: 45px 10px 10px;
	}
	
	.product-specs-pdf-fullscreen-close {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
	}
	
	.product-specs-pdf-fullscreen-close svg {
		width: 18px;
		height: 18px;
	}
	
	.product-specs-pdf-fullscreen-iframe {
		max-height: calc(100vh - 60px);
	}
}

/* Documents List */
.product-specs-documents-list {
	list-style: none;
	padding: 0;
	margin: 0;
	margin-left: 25%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.product-specs-document-item {
	margin: 0;
	padding: 0;
}

.product-specs-document-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	color: #000;
	text-decoration: none;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	transition: color 0.3s ease;
}

.product-specs-document-link:hover {
	color: var(--plastpro-orange, #E87722);
}

.product-specs-document-icon {
	flex-shrink: 0;
	color: var(--plastpro-orange, #E87722);
	width: 20px;
	height: 20px;
}

.product-specs-document-name {
	flex: 1;
}

/* Door Features Table */
.door-features-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	margin: 0;
}

.door-features-table tbody tr {
	border-bottom: 1px solid #E0E0E0;
}

.door-features-table tbody tr:last-child {
	border-bottom: none;
}

.door-features-label {
	padding: 16px 12px 16px 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #000;
	width: 30%;
	vertical-align: top;
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.door-features-value {
	padding: 16px 0 16px 12px;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #000;
	width: 70%;
	vertical-align: top;
	text-align: left;
	border-left: 1px solid #E0E0E0;
}

.door-features-tooltip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #7C878E;
	cursor: help;
	flex-shrink: 0;
	position: relative;
}

.door-features-tooltip-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

.door-features-tooltip-icon:hover {
	color: var(--plastpro-orange, #E87722);
}

.door-features-tooltip-text {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 8px;
	background: var(--plastpro-black, #1D252D);
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	padding: 8px 12px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	z-index: 10;
	min-width: 200px;
	max-width: 500px;
	text-align: left;
}

.door-features-tooltip-text::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: var(--plastpro-black, #1D252D);
}

.door-features-tooltip-icon:hover .door-features-tooltip-text {
	opacity: 1;
}

@media (max-width: 768px) {
	.door-features-table {
		display: block;
	}
	
	.door-features-table tbody {
		display: block;
	}
	
	.door-features-table tbody tr {
		display: block;
		border-bottom: 1px solid #E0E0E0;
		padding: 12px 0;
	}
	
	.door-features-label,
	.door-features-value {
		display: block;
		width: 100%;
		padding: 0;
	}
	
	.door-features-label {
		margin-bottom: 4px;
	}
}

