/* --- EKRAN POWITALNY (MOBILE) --- */
.welcome-screen {
	padding: 40px 20px; /* Increased padding */
	background-color: var(--color-white);
	max-width: 1200px;
	margin: 0 auto;
	min-height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-image {
	width: 100%;
	height: 30vh;
	object-fit: cover;
	object-position: center 40%;
	margin-bottom: 20px; /* Increased margin */
	display: block;
}

.welcome-content {
	max-width: 800px;
	margin: 0 auto;
}

.welcome-content h1 {
	font-family: var(--font-header);
	font-size: 3.2em; /* Increased font size */
	color: var(--color-primary);
	margin-bottom: 10px; /* Added margin */
	line-height: 1.2; /* Adjusted line height */
}

.welcome-content .subtitle {
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 1.8em; /* Increased font size */
	color: var(--color-secondary);
	margin-top: 0;
	line-height: 1.4; /* Adjusted line height */
}

.welcome-content hr {
	border: 1px solid var(--color-primary);
	width: 80px;
	margin: 20px auto;
}

.info-box {
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 15px;
	padding: 30px; /* Increased padding */
	margin-top: 30px; /* Increased margin */
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* More prominent shadow */
	text-align: left;
}

.client-info h4 {
	font-family: var(--font-header);
	margin-bottom: 0.5em;
}

.client-info p {
	line-height: 1.6;
}

.ask-about {
	margin-top: 30px; /* Increased margin */
	padding-top: 30px; /* Increased padding */
	border-top: 1px solid #ddd;
}

.ask-about strong {
	font-family: var(--font-header);
}

.ask-about p {
	margin-top: 5px;
	color: var(--color-secondary);
	font-weight: bold;
}

.price-amount {
	font-size: 2em;
	font-weight: bold;
	color: var(--color-primary);
	margin-bottom: 20px;
}

.discount-price {
	text-align: center;
	margin-bottom: var(--spacing-l);
}

.price-amount.discount {
	font-size: 1.8em;
	color: var(--color-primary);
	font-weight: bold;
}

.price-details {
	margin-top: var(--spacing-s);
	font-size: 0.8em;
	color: var(--color-text-muted);
}

.original-price {
	text-decoration: line-through;
}

/* Nowe style dla lepszej prezentacji cen */
.original-price-section {
	margin-bottom: 30px;
	text-align: center;
}

.price-label {
	font-size: 1.2em;
	font-weight: bold;
	color: var(--color-text-muted);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.price-amount.original {
	font-size: 2.5em;
	font-weight: bold;
	color: #999;
	text-decoration: line-through;
	text-decoration-thickness: 3px;
	text-decoration-color: #ff6b6b;
}

.discount-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 15px;
	text-align: center;
}

.discount-amount {
	font-size: 1.3em;
	font-weight: bold;
	color: #28a745;
}

.discount-percentage {
	font-size: 1.1em;
	color: var(--color-secondary);
	font-weight: bold;
}

.includes-list {
	list-style: none;
	padding-left: 0;
}

.includes-list li {
	padding: 8px 0;
	border-bottom: 1px solid var(--color-border);
}

.includes-list li:before {
	content: '✓ ';
	color: var(--color-secondary);
	font-weight: bold;
	margin-right: 10px;
}

/* Nowa galeria produktu - wyciągnięta pod głównym zdjęciem - MOBILE FIRST */
.product-gallery {
	margin-bottom: 30px;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.main-gallery-image {
	margin-bottom: 20px;
	width: 100%;
}

.main-gallery-image img {
	width: 100%;
	height: 300px;
	max-width: 100%;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	object-fit: cover;
	object-position: center;
}

.gallery-thumbnails {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
	padding: 0 10px;
	box-sizing: border-box;
}

.thumbnail-item {
	width: 70px;
	height: 70px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	position: relative;
	flex-shrink: 0;
}

.thumbnail-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumbnail-item.active {
	border-color: var(--color-primary);
	transform: scale(1.05);
}

.thumbnail-item:hover {
	border-color: var(--color-secondary);
	transform: scale(1.05);
}

.video-thumbnail {
	position: relative;
}

.video-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

/* Style dla iframe video w galerii - MOBILE */
.video-iframe {
	width: 100%;
	height: 250px;
	border: none;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	max-width: 100%;
	aspect-ratio: 16/9; /* Naprawia problem z pionowym układem filmu */
	object-fit: cover;
}

/* Lightbox - MOBILE */
.lightbox-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 10000;
	justify-content: center;
	align-items: center;
}

.lightbox-content {
	position: relative;
	max-width: 95%;
	max-height: 95%;
}

.lightbox-content img {
	width: 100%;
	height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	background: #000;
}

.lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: white;
	font-size: 30px;
	cursor: pointer;
	padding: 5px;
}

/* Stara galeria w zakładkach (jeśli jeszcze gdzieś jest używana) */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: var(--spacing-m);
	margin-top: var(--spacing-l);
}

.gallery-item {
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.gallery-item:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item:active,
.gallery-item.touched {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-item .video-container {
	width: 100%;
	height: 120px; /* Same as gallery images */
	padding-bottom: 0; /* Remove the padding trick for gallery */
	position: relative;
}

.video-item iframe {
	width: 100%;
	height: 100%;
	object-fit: cover;
}



/* --- GŁÓWNY KONTENER I EKRANY (MOBILE) --- */
main {
	display: block;
	min-height: calc(100vh - 200px);
	overflow-x: hidden; /* Zapobiega scrollowaniu na boki */
	width: 100%;
	max-width: 100%;
}

.screen {
	scroll-snap-align: start;
	padding: var(--spacing-xxl) var(--spacing-l); /* Increased padding */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	animation: fadeIn 0.5s ease-in-out;
	min-height: 100vh; /* Ensure full screen height for scroll-snap */
	overflow-x: hidden; /* Zapobiega scrollowaniu na boki */
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- NAWIGACJA MIĘDZY EKRANAMI (MOBILE) --- */
.screen-navigation {
	flex-direction: column;
	gap: var(--spacing-m);
}

#screen-indicators {
	order: -1;
	margin-bottom: var(--spacing-s);
}

.nav-button {
	width: 100%;
	padding: 15px var(--spacing-l); /* Increased vertical padding for touch target */
}

.tabs-nav {
	flex-wrap: wrap;
}

.tab-link {
	flex: 1 0 auto;
	text-align: center;
	padding: 15px var(--spacing-s); /* Increased vertical padding for touch target */
}

.screen-content {
	width: 100%;
	max-width: 900px;
}

/* --- EKRANY MARKI I SERII (MOBILE) --- */
.brand-screen .screen-content,
.series-screen .screen-content {
	padding: 80px 30px; /* Increased padding */
	background-color: var(--color-background);
	text-align: center;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Added shadow for card effect */
	border-radius: 15px; /* Added border-radius for card effect */
}

/* Rozwijana treść */
.expandable-content {
	width: 100%;
}

.content-preview,
.content-full {
	transition: all 0.3s ease;
}

.read-more-btn,
.read-less-btn {
	background-color: transparent;
	color: var(--color-primary);
	border: none;
	padding: 10px 0; /* Increased vertical padding for touch target */
	margin-top: var(--spacing-xs);
	cursor: pointer;
	font-weight: bold;
	text-decoration: underline;
}

.read-more-btn:hover,
.read-less-btn:hover {
	color: var(--color-secondary);
}

.brand-screen img,
.series-screen img {
	width: 100%;
	height: 30vh;
	object-fit: cover;
	object-position: center;
	display: block;
	margin: 0 auto 20px auto;
}

.brand-screen h2,
.series-screen h2 {
	font-family: var(--font-header);
	font-size: 2em; /* Increased font size */
	color: var(--color-primary);
	margin-bottom: 15px; /* Added margin */
	line-height: 1.2; /* Adjusted line height */
}

.brand-screen p,
.series-screen p {
	font-size: 1.2em; /* Increased font size */
	line-height: 1.8; /* Adjusted line height */
	color: var(--color-text); /* Changed color for better contrast */
}

/* --- EKRAN PRODUKTU (MOBILE) --- */
.product-screen .screen-content {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px 20px; /* Keep original padding for now, adjust later if needed */
	box-sizing: border-box;
	border-bottom: 1px solid #eee;
	background-color: var(--color-white);
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	overflow-x: hidden; /* Dodatkowe zabezpieczenie przed scrollowaniem na boki */
	max-width: 900px;
	width: 100%;
}

.product-header {
	width: 100%;
	/*height: 35vh;  Changed to vh for responsiveness */
	object-fit: cover;
	object-position: center; /* Ensure consistent positioning */
}

.product-body {
	padding: 0px; /* Increased padding */
	width: 100%;
}

.product-title h2 {
	font-family: var(--font-header);
	font-size: 2.5em; /* Increased font size */
	color: var(--color-primary);
	margin-top: 0;
	margin-bottom: 10px; /* Adjusted margin */
	line-height: 1.2; /* Adjusted line height */
}

.product-title .series {
	font-weight: bold;
	font-size: 1.1em; /* Increased font size */
	color: var(--color-secondary);
	display: block;
	margin-bottom: 20px; /* Increased margin */
}

.accessories-section,
.options-section {
	padding: 60px 30px; /* Increased padding */
	max-width: 900px;
	margin: 0 auto;
}

.accessories-section h2,
.options-section h2 {
	font-family: var(--font-header);
	font-size: 2.5em; /* Increased font size */
	color: var(--color-primary);
	text-align: center;
	margin-bottom: 30px;
	line-height: 1.2; /* Adjusted line height */
}
