/* ========================================
   SUB-PAGES STYLESHEET
   Styles for product pages (Domy, Balie, Sauny)
   ======================================== */

/* ========================================
   BASE STYLES
   ======================================== */

body {
	background-color: #ffffff;
}

/* ========================================
   UTILITIES & LAYOUT HELPERS
   ======================================== */

/* Utility wrapper (1200px max-width) */
.container-1200 {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.section-heading2 {
	position: relative;
	font-size: 4rem;
	font-weight: 300;
	letter-spacing: 1px;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	color: #a17455;
}

/* ========================================
   BREADCRUMBS NAVIGATION
   ======================================== */

.breadcrumbs {
	background-color: #f5f5f5;
	border-bottom: 1px solid #e0e0e0;
	padding: 1.5rem 0 1rem 0;
	margin-bottom: 2rem;
	text-align: left;
}

.breadcrumbs nav {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	font-size: 1.4rem;
}

.breadcrumb-link {
	color: rgb(161, 116, 85);
	text-decoration: none;
	transition: color 0.3s;
}

.breadcrumb-link:hover {
	color: #e4994a;
	text-decoration: underline;
}

.breadcrumb-current {
	color: rgb(161, 116, 85);
	font-weight: 500;
}

/* ========================================
   PRODUCT HERO / PAGE HEADER
   ======================================== */

.product-hero {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}
.product-hero .section-heading {
	text-align: left;
	margin-bottom: 0.4rem;
}
.benefits__description {
	margin: 0.5rem 0 1.5rem;
	color: #555;
	font-size: 1rem;
	line-height: 1.5;
}
.product-hero .benefits__description {
	margin: 0.5rem 0 1.5rem;
}

/* Product page headings */
.product-hero .section-heading,
.product-specs .section-heading,
.product-variants .section-heading,
.product-faq .section-heading,
.specs-grid .section-heading {
	text-align: left;
}
.section-heading[style*='padding-bottom'] {
	padding-bottom: 10px;
}

/* ========================================
   PRODUCT LAYOUT (2-COLUMN GRID)
   ======================================== */

.product {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2rem;
	padding: 0 1rem;
	align-items: start;
}
.product__panel {
	display: grid;
	gap: 1.2rem;
	align-content: start;
}

/* ========================================
   PRODUCT BADGES
   ======================================== */

.product__badges {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.badge {
	color: #fff;
	padding: 0.35em 0.7em;
	border-radius: 999px;
	font-size: 1.2rem;
	font-weight: 600;
}
.badge--brown {
	background: #5c4033;
}
.badge--beige {
	background: #a17455;
}
.badge--green {
	background: #2f7a4f;
}

/* ========================================
   PRODUCT DESCRIPTION & CONTENT
   ======================================== */

.product__description p {
	margin: 0;
	color: #444;
	line-height: 1.6;
	font-size: 1.6rem;
}
.product__panel .product__description p {
	line-height: 1.6;
	letter-spacing: 0.5px;
}

/* ========================================
   PRODUCT CTA BUTTONS
   ======================================== */

.product__cta {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

/* ========================================
   PRODUCT META (Icons & Info)
   ======================================== */

.product__meta {
	font-size: 1.4rem;
	color: #555;
}
.product__meta i {
	color: #ee780e;
	margin-right: 8px;
}

/* ========================================
   PRODUCT SPECIFICATIONS SECTION
   ======================================== */

.product-specs {
	max-width: 1200px;
	margin: 3rem auto 0;
	padding: 0 1rem;
}
.specs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11rem;
	margin-top: 1rem;
}
.specs-grid ul {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}
.specs-grid li strong {
	color: #000;
}
.product-specs ul li {
	line-height: 1.6;
	letter-spacing: 1px;
	border-bottom: 3px solid #eee;
}

.specs-grid h2 {
	text-align: left;
	padding-bottom: 10px;
}

/* ========================================
   FLOOR PLAN THUMBNAILS
   ======================================== */

.plan-thumb {
	position: relative;
	display: inline-block;
	width: 200px;
	margin-right: 1rem;
	overflow: hidden;
	cursor: pointer;
}
.plan-thumb img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.plan-thumb__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.plan-thumb__overlay i {
	color: #fff;
	font-size: 1.5rem;
}
.plan-thumb:hover img {
	transform: scale(1.05);
}
.plan-thumb:hover .plan-thumb__overlay {
	opacity: 1;
}

/* ========================================
   LIGHTBOX FOR FLOOR PLANS
   ======================================== */

.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.98);
	z-index: 9999;
	justify-content: center;
	align-items: center;
}

.lightbox.active {
	display: flex;
}

.lightbox__content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.lightbox__image {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
}

.lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #333;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 2.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease, transform 0.3s ease;
	color: #fff;
	line-height: 1;
}

.lightbox__close:hover {
	background: #5f3a3b;
	transform: scale(1.1);
}

/* ========================================
   PRODUCT VARIANTS / OPTIONS
   ======================================== */

.product-variants {
	max-width: 1200px;
	margin: 3rem auto 0;
	padding: 0 1rem;
}
.variants-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 1rem;
}
.card {
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	padding: 1.2rem;
}
.card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
}
.card ul {
	margin: 0.5rem 0 0 1rem;
	list-style: none;
	padding: 0;
}
.card li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.5rem;
	margin-bottom: 0.4rem;
}
.card i {
	color: #ee780e;
	font-size: 1.3rem;
}

/* ========================================
   PRODUCT SPACING DIVIDER
   ======================================== */

.products-spacing {
	position: relative;
	margin: 5rem auto;
	max-width: 1200px;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		#d7ad3a 20%,
		#d7ad3a 80%,
		transparent
	);
}

/* ========================================
   CSS-ONLY IMAGE GALLERY SYSTEM
   ======================================== */

/* Gallery base structure */
.gallery {
	display: grid;
	gap: 1rem;
}
.gallery__stage {
	position: relative;
	aspect-ratio: 16/10;
	overflow: hidden;
}
.gallery__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.01);
	transition: opacity 0.28s ease, transform 0.28s ease;
}
.gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5rem;
}
.thumb {
	display: block;
	overflow: hidden;
	cursor: pointer;
}
.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease, filter 0.25s ease;
}
.thumb:hover img {
	transform: scale(1.03);
}

/* Product gallery wrapper */
.product__gallery {
	display: grid;
	gap: 1rem;
}
.product__image {
	aspect-ratio: 16/10;
	overflow: hidden;
}
.product__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Product thumbnails row */
.product__thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5rem;
}
.product__thumbs .thumb {
	border: 0;
	background: transparent;
	cursor: pointer;
	aspect-ratio: 1/1;
	overflow: hidden;
	padding: 0;
}
.product__thumbs .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ========================================
   GALLERY RADIO BUTTON CONNECTIONS
   Each model needs unique prefixes (balk, m, p, s, etc.)
   ======================================== */

/* --- Balkonova --- */
.gallery:has(#balk1:checked) .gallery__stage .balk1,
.gallery:has(#balk2:checked) .gallery__stage .balk2,
.gallery:has(#balk3:checked) .gallery__stage .balk3,
.gallery:has(#balk4:checked) .gallery__stage .balk4,
.gallery:has(#balk5:checked) .gallery__stage .balk5 {
	opacity: 1;
	transform: scale(1);
}
.gallery:has(#balk1:checked) .gallery__thumbs label[for='balk1'] img,
.gallery:has(#balk2:checked) .gallery__thumbs label[for='balk2'] img,
.gallery:has(#balk3:checked) .gallery__thumbs label[for='balk3'] img,
.gallery:has(#balk4:checked) .gallery__thumbs label[for='balk4'] img,
.gallery:has(#balk5:checked) .gallery__thumbs label[for='balk5'] img {
	filter: contrast(1.08) saturate(1.05);
	outline: 2px solid #ee780e;
	outline-offset: 2px;
}

/* --- Moderna --- */
.gallery:has(#m1:checked) .gallery__stage .m1,
.gallery:has(#m2:checked) .gallery__stage .m2,
.gallery:has(#m3:checked) .gallery__stage .m3,
.gallery:has(#m4:checked) .gallery__stage .m4,
.gallery:has(#m5:checked) .gallery__stage .m5 {
	opacity: 1;
	transform: scale(1);
}
.gallery:has(#m1:checked) .gallery__thumbs label[for='m1'] img,
.gallery:has(#m2:checked) .gallery__thumbs label[for='m2'] img,
.gallery:has(#m3:checked) .gallery__thumbs label[for='m3'] img,
.gallery:has(#m4:checked) .gallery__thumbs label[for='m4'] img,
.gallery:has(#m5:checked) .gallery__thumbs label[for='m5'] img {
	filter: contrast(1.08) saturate(1.05);
	outline: 2px solid #ee780e;
	outline-offset: 2px;
}

/* --- Panorama Loft --- */
.gallery:has(#p1:checked) .gallery__stage .p1,
.gallery:has(#p2:checked) .gallery__stage .p2,
.gallery:has(#p3:checked) .gallery__stage .p3,
.gallery:has(#p4:checked) .gallery__stage .p4,
.gallery:has(#p5:checked) .gallery__stage .p5 {
	opacity: 1;
	transform: scale(1);
}
.gallery:has(#p1:checked) .gallery__thumbs label[for='p1'] img,
.gallery:has(#p2:checked) .gallery__thumbs label[for='p2'] img,
.gallery:has(#p3:checked) .gallery__thumbs label[for='p3'] img,
.gallery:has(#p4:checked) .gallery__thumbs label[for='p4'] img,
.gallery:has(#p5:checked) .gallery__thumbs label[for='p5'] img {
	filter: contrast(1.08) saturate(1.05);
	outline: 2px solid #ee780e;
	outline-offset: 2px;
}

/* --- Skandynaw 70 --- */
.gallery:has(#s1:checked) .gallery__stage .s1,
.gallery:has(#s2:checked) .gallery__stage .s2,
.gallery:has(#s3:checked) .gallery__stage .s3,
.gallery:has(#s4:checked) .gallery__stage .s4,
.gallery:has(#s5:checked) .gallery__stage .s5 {
	opacity: 1;
	transform: scale(1);
}
.gallery:has(#s1:checked) .gallery__thumbs label[for='s1'] img,
.gallery:has(#s2:checked) .gallery__thumbs label[for='s2'] img,
.gallery:has(#s3:checked) .gallery__thumbs label[for='s3'] img,
.gallery:has(#s4:checked) .gallery__thumbs label[for='s4'] img,
.gallery:has(#s5:checked) .gallery__thumbs label[for='s5'] img {
	filter: contrast(1.08) saturate(1.05);
	outline: 2px solid #ee780e;
	outline-offset: 2px;
}

/* ========================================
   SERVICES SECTION (CARDS LAYOUT)
   ======================================== */

.services__box {
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 2rem;
}

.services__service {
	flex: 1 1 300px;
	max-width: 350px;
	text-align: center;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

@media (max-width: 991px) {
	.product {
		grid-template-columns: 1fr;
	}
	.specs-grid {
		grid-template-columns: 1fr;
	}
	.variants-grid {
		grid-template-columns: 1fr;
	}

	/* Upewnij się, że galeria jest widoczna */
	.product__gallery,
	.gallery {
		display: grid;
		gap: 1rem;
	}

	.product__image,
	.gallery__stage {
		aspect-ratio: 16/10;
		overflow: hidden;
		border-radius: 8px;
		min-height: 250px;
	}

	.product__image img,
	.gallery__img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}
}

@media (max-width: 640px) {
	.product__thumbs,
	.gallery__thumbs {
		grid-template-columns: repeat(3, 1fr);
	}

	.product-hero .section-heading {
		font-size: 3rem;
	}

	.benefits__description {
		font-size: 1.4rem;
	}

	.variants-grid {
		gap: 0.8rem;
	}

	/* Utrzymaj widoczność galerii na małych ekranach */
	.product__image,
	.gallery__stage {
		min-height: 200px;
		aspect-ratio: 4/3;
	}
}

/* ========================================
   FAQ SECTION
   ======================================== */

.product-faq {
	max-width: 1200px;
	margin: 3rem auto 0;
	padding: 0 1rem;
}

.product-faq details {
	background: #fff;
	border-radius: 8px;
	padding: 1.5rem;
	margin-top: 1rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
	cursor: pointer;
}

.product-faq details:first-of-type {
	margin-top: 1rem;
}

.product-faq summary {
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.product-faq summary::-webkit-details-marker {
	display: none;
}

.product-faq details p {
	margin-top: 1.5rem;
	padding-left: 0.5rem;
	line-height: 1.6;
	color: #555;
}

/* ========================================
   STOLARNIA - CARPENTRY PAGE
   ======================================== */

/* Main heading spacing */
.section.carpentry h1.section-heading {
	margin-bottom: 3rem;
}

/* Hero image */
.carpentry__hero {
	width: 100%;
	max-height: 400px;
	overflow: hidden;
	margin-bottom: 3rem;
}

.carpentry__hero-image {
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
}

/* About section */
.carpentry__about {
	max-width: 1200px;
	margin: 0 auto 4rem;
	margin-top: 3rem;
	padding: 0 2rem;
}

.carpentry__about-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

.carpentry__content {
	display: flex;
	flex-direction: column;
}

.carpentry__content h1 {
	text-align: left;
	margin-bottom: 2rem;
}

.carpentry__image {
	display: flex;
	align-items: center;
	justify-content: center;
}

.carpentry__image img {
	width: 100%;
	max-width: 500px;
	height: auto;
}

.carpentry__content p {
	font-size: 1.6rem;
	line-height: 1.8;
	color: #555;
	margin-bottom: 1.5rem;
}

/* Why us section */
.carpentry__why {
	background: #3f2527;
	padding: 5rem 2rem;
	margin: 4rem 0;
}

.carpentry__why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	max-width: 1200px;
	margin: 3rem auto 0;
}

.carpentry__why-item {
	background: #fff;
	padding: 2.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	text-align: center;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.carpentry__why-item.animate {
	opacity: 1;
	transform: translateY(0);
}

.carpentry__why-item:nth-child(1) {
	transition-delay: 0.2s;
}

.carpentry__why-item:nth-child(2) {
	transition-delay: 0.5s;
}

.carpentry__why-item:nth-child(3) {
	transition-delay: 0.8s;
}

.carpentry__why-item:nth-child(4) {
	transition-delay: 1.1s;
}

.carpentry__why-item .benefits__icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	display: block;
}

.carpentry__why-item h3 {
	font-size: 2rem;
	color: #5f3a3b;
	margin-bottom: 1rem;
	font-family: 'Montserrat', sans-serif;
}

.carpentry__why-item p {
	font-size: 1.5rem;
	line-height: 1.6;
	color: #666;
}

/* Features section */
.carpentry__features {
	max-width: 1000px;
	margin: 4rem auto;
	padding: 0 2rem;
}

.carpentry__features-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 4rem;
	margin-top: 3rem;
}

.carpentry__features-col h3 {
	font-size: 2rem;
	color: #5f3a3b;
	margin-bottom: 1.5rem;
	font-family: 'Montserrat', sans-serif;
}

.carpentry__features-col ul {
	list-style: none;
	padding: 0;
}

.carpentry__features-col li {
	font-size: 1.6rem;
	color: #555;
	padding: 1rem 0;
	padding-left: 3rem;
	position: relative;
	border-bottom: 1px solid #e8e8e8;
}

.carpentry__features-col li:last-child {
	border-bottom: none;
}

.carpentry__features-col li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #a17455;
	font-weight: bold;
	font-size: 1.8rem;
}

/* Process section */
.carpentry__process {
	background: linear-gradient(135deg, #5f3a3b 0%, #a17455 100%);
	padding: 5rem 2rem;
	margin: 4rem 0;
	color: #fff;
}

.carpentry__process .section-heading {
	color: #fff;
}

.carpentry__process-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 3rem;
	max-width: 1200px;
	margin: 3rem auto 0;
}

.carpentry__step {
	text-align: center;
}

.carpentry__step-number {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.2);
	border: 3px solid #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4rem;
	font-weight: bold;
	margin: 0 auto 1.5rem;
	color: #fff;
}

.carpentry__step h3 {
	font-size: 2rem;
	margin-bottom: 1rem;
	font-family: 'Montserrat', sans-serif;
}

.carpentry__step p {
	font-size: 1.5rem;
	line-height: 1.6;
	opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
	.carpentry__hero-image {
		height: 250px;
	}

	.carpentry__about-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.carpentry__why-grid,
	.carpentry__features-columns,
	.carpentry__process-steps {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.carpentry__content p {
		font-size: 1.5rem;
	}

	.carpentry__why,
	.carpentry__process {
		padding: 3rem 1.5rem;
	}
}
