/*
 * Strona produktu, serii, modelu i żmijki – style uzupełniające makietę (właściciel: A4).
 * Ładowany po styles.css (desktop, od 1025 px) i mobile.css (do 1024 px), bez ograniczenia media.
 * Kolory makiety: #1c1958 (granat), #35a9ff (niebieski), #68b001 (zielony), #efefef (tło kafelków).
 */

/* ------------------------------------------------------------------ */
/* Lista modeli (.inmenu): nagłówek jako <button>                      */
/* ------------------------------------------------------------------ */

.l-typ1 .inmenu-name {
	-webkit-appearance: none;
	appearance: none;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	color: #1c1958;
	cursor: default;
	font: inherit;
	font-weight: 600;
	letter-spacing: inherit;
	line-height: inherit;
	margin: 0;
	padding: 0;
	text-align: left;
}

/* ------------------------------------------------------------------ */
/* Sekcja .product                                                     */
/* ------------------------------------------------------------------ */

/* Lista w opisie (agpl_opis) – zwykła lista, nie styl listy usług z makiety. */
.l-typ1 .product-sec2 .desc ul:not(.agpl-uslugi):not(.is-style-agpl-uslugi) {
	display: block;
	margin-bottom: 16px;
	padding-top: 0;
}

.l-typ1 .product-sec2 .desc ul:not(.agpl-uslugi):not(.is-style-agpl-uslugi) li {
	color: inherit;
	font-size: inherit;
	font-weight: 400;
	margin: 0;
	padding: 3px 0 3px 20px;
	position: relative;
}

.l-typ1 .product-sec2 .desc ul:not(.agpl-uslugi):not(.is-style-agpl-uslugi) li::before {
	background-color: #35a9ff;
	content: "";
	height: 6px;
	left: 5px;
	position: absolute;
	top: 13px;
	width: 6px;
}

.l-typ1 .product-sec2 .desc ol {
	list-style: decimal;
	margin: 0 0 16px 22px;
}

.l-typ1 .product-sec2 .desc a {
	color: #35a9ff;
	text-decoration: underline;
}

.l-typ1 .product-sec2 .desc h2,
.l-typ1 .product-sec2 .desc h3 {
	color: #1c1958;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.625rem;
	margin-bottom: 12px;
}

/* Śródtytuły z dawnej treści stron produktów (nagłówki obniżone o poziom przy przenoszeniu do pól). */
.l-typ1 .product-sec2 .desc h4 {
	color: #1c1958;
	font-weight: 600;
	margin: 18px 0 8px;
}

.l-typ1 .product-sec2 .extra .zmijka-promo img {
	display: block;
	margin-left: auto;
}

/* Orkiestrator: baner jest gotowym obrazkiem – tło i wcięcia z makiety (baner-tlo-zmijki.webp) dawały podwójny baner. */
.l-typ1 .product-sec2 .extra .zmijka-promo {
	background: none;
	padding: 0;
	min-height: 0;
}

/* Żmijka: H1 nad treścią strony. */
.l-typ1.agpl-zmijka-page > .product {
	margin-bottom: 10px;
}

.l-typ1.agpl-zmijka-page > .product .product-sec1 {
	margin-bottom: 20px;
}

/* ------------------------------------------------------------------ */
/* Kafelki: powiązane produkty i podstrony serii (.related)           */
/* ------------------------------------------------------------------ */

/* Siatka z makiety ma margin 0 -25px – bez tego przy oknie ~1440 px strona wystaje o kilka pikseli w poziomie. */
.l-typ1 .related {
	overflow-x: hidden;
}

.l-typ1 .related-box .thumb a {
	display: block;
}

.l-typ1 .related-box .thumb img {
	display: block;
	margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* Wyposażenie i dane techniczne (.description)                       */
/* ------------------------------------------------------------------ */

.l-typ1 .description-content .col-left,
.l-typ1 .description-content .col-right {
	min-width: 0;
}

/* Przewijanie zapewnia .agpl-table-scroll – kolumna bez stałego paska przewijania. */
.l-typ1 .description-content .col-right {
	overflow-x: visible;
}

/* Jedna kolumna pusta → druga na całą szerokość. */
.l-typ1 .description-content.agpl-description--single > .col-left,
.l-typ1 .description-content.agpl-description--single > .col-right {
	flex: 1 1 100%;
	margin-right: 0;
	max-width: 100%;
}

/* Numerowane nagłówki grup wyposażenia (bin.agro.pl: <ol start="2"><li>…</li></ol> + <ul>). */
.l-typ1 .description-content ol {
	color: #1c1958;
	font-weight: 600;
	list-style: decimal;
	margin: 15px 0 0 22px;
}

.l-typ1 .description-content ol > li {
	padding: 0 0 0 4px;
}

.l-typ1 .description-content ol + ul {
	padding-left: 8px;
}

/* Śródtytuły w kolumnach (pod H3 kolumny z pola nagłówka). */
.l-typ1 .description-content h4 {
	color: #1c1958;
	font-weight: 600;
	margin: 20px 0 10px;
}

.l-typ1 .description-content a {
	color: #35a9ff;
	text-decoration: underline;
}

.l-typ1 .description-content img {
	display: block;
	margin: 10px 0 20px;
}

/* Kontener tabeli: przewijanie poziome, gdy tabela jest szersza niż kolumna. */
.agpl-table-scroll {
	-webkit-overflow-scrolling: touch;
	margin: 0 0 24px;
	max-width: 100%;
	overflow-x: auto;
}

/* Tabele danych technicznych (także z bin.agro.pl: <td><p>…</p></td>, colspan, rowspan). */
.l-typ1 .description-content table {
	border-collapse: collapse;
	font-size: 0.875rem;
	line-height: 1.375rem;
	width: 100%;
}

.l-typ1 .description-content table td,
.l-typ1 .description-content table th {
	border: 1px solid #dfe3ea;
	min-width: 90px;
	padding: 7px 10px;
	text-align: left;
	vertical-align: top;
}

.l-typ1 .description-content table th,
.l-typ1 .description-content table thead td,
.l-typ1 .description-content table tr:first-of-type td {
	background-color: #f2f5f9;
	color: #1c1958;
	font-weight: 600;
}

.l-typ1 .description-content table tbody tr:nth-of-type(2n+3) td {
	background-color: #fafbfc;
}

.l-typ1 .description-content table td:first-child {
	color: #1c1958;
	min-width: 160px;
}

.l-typ1 .description-content table td p,
.l-typ1 .description-content table th p {
	margin: 0;
}

.l-typ1 .description-content table td p + p,
.l-typ1 .description-content table th p + p {
	margin-top: 4px;
}

.l-typ1 .description-content table img {
	display: inline-block;
	margin: 0;
	max-width: none;
}

/* ------------------------------------------------------------------ */
/* Galeria (agpl_galeria)                                              */
/* ------------------------------------------------------------------ */

.l-typ1 .agpl-gallery {
	border-top: 1px solid #efefef;
	padding: 40px 0 50px;
}

.l-typ1 .agpl-gallery-header {
	color: #1c1958;
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 2.5rem;
	margin-bottom: 40px;
	text-align: center;
}

.l-typ1 .agpl-gallery-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.l-typ1 .agpl-gallery-grid li {
	align-items: center;
	aspect-ratio: 1 / 1;
	background-color: #efefef;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.l-typ1 .agpl-gallery-grid a {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	transition: opacity 100ms ease-in-out;
	width: 100%;
}

.l-typ1 .agpl-gallery-grid a:hover {
	opacity: 0.85;
}

.l-typ1 .agpl-gallery-grid img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Treść strony pod sekcjami (.agpl-content) – HTML z produkcji       */
/* ------------------------------------------------------------------ */

.agpl-product-content,
.agpl-zmijka-content {
	padding-bottom: 40px;
}

.agpl-product-content {
	font-size: 0.9375rem;
	line-height: 1.625rem;
	padding-top: 10px;
}

/* Zagnieżdżony .wrapper z treści – bez dodatkowych marginesów; flow-root zamyka floaty (zdjęcie + wstęp). */
.agpl-product-content .wrapper,
.agpl-zmijka-content .wrapper {
	display: flow-root;
	margin: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* Typografia treści – :where() (specyficzność 0), więc klasy z treści i bloków mają pierwszeństwo. */
:where(.agpl-product-content) h2 {
	color: #1c1958;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 2rem;
	margin: 10px 0 20px;
}

:where(.agpl-product-content) h3 {
	color: #1c1958;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.625rem;
	margin: 10px 0 14px;
}

:where(.agpl-product-content) h4 {
	color: #1c1958;
	font-size: 1rem;
	font-weight: 600;
	margin: 10px 0;
}

:where(.agpl-product-content) p,
:where(.agpl-product-content) figure {
	margin-bottom: 16px;
}

:where(.agpl-product-content) ul {
	margin-bottom: 16px;
}

:where(.agpl-product-content) ul > li {
	padding: 3px 0 3px 20px;
	position: relative;
}

:where(.agpl-product-content) ul > li::before {
	background-color: #35a9ff;
	content: "";
	height: 6px;
	left: 5px;
	position: absolute;
	top: 13px;
	width: 6px;
}

:where(.agpl-product-content) ol {
	list-style: decimal;
	margin: 0 0 16px 22px;
}

:where(.agpl-product-content) a {
	color: #35a9ff;
	text-decoration: underline;
}

:where(.agpl-product-content) a:hover {
	text-decoration: none;
}

:where(.agpl-product-content) strong {
	color: #1c1958;
}

:where(.agpl-product-content) table {
	border-collapse: collapse;
	font-size: 0.875rem;
	line-height: 1.375rem;
	margin-bottom: 20px;
	width: 100%;
}

:where(.agpl-product-content) td,
:where(.agpl-product-content) th {
	border: 1px solid #dfe3ea;
	padding: 7px 10px;
	text-align: left;
	vertical-align: top;
}

:where(.agpl-product-content) th {
	background-color: #f2f5f9;
	color: #1c1958;
	font-weight: 600;
}

:where(.agpl-product-content) .alignleft {
	float: left;
	margin: 5px 20px 10px 0;
}

:where(.agpl-product-content) .alignright {
	float: right;
	margin: 5px 0 10px 20px;
}

:where(.agpl-product-content) .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Klasy starego motywu w treści z produkcji. */
.agpl-product-content .product-header {
	border-bottom: 1px solid #efefef;
	color: #1c1958;
	margin-bottom: 25px;
	padding: 10px 0 20px;
}

.agpl-product-content .product-header h1,
.agpl-product-content .product-header h2 {
	color: #1c1958;
	font-size: 1.625rem;
	font-weight: 600;
	line-height: 2.125rem;
	margin: 0 0 6px;
}

.agpl-product-content .product-header p {
	font-size: 1.0625rem;
	margin: 0;
}

.agpl-product-content .product-photo {
	margin-bottom: 30px;
	text-align: center;
}

.agpl-product-content .product-photo img {
	display: block;
	margin: 0 auto;
}

.agpl-product-content .product-photo h2 {
	background-color: #68b001;
	color: #fff;
	font-size: 1.125rem;
	line-height: 1.5rem;
	margin: 0;
	padding: 8px 16px;
	text-align: left;
}

.agpl-product-content .product-intro {
	margin-bottom: 20px;
}

.agpl-product-content .inner-menu {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	margin: 10px 0 0;
}

.agpl-product-content .inner-menu > * {
	background-color: #efefef;
	color: #1c1958;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5rem;
	padding: 4px 12px;
	text-decoration: none;
}

.agpl-product-content .inner-menu a {
	transition: all 100ms ease-in-out;
}

.agpl-product-content .inner-menu a::before {
	content: "\203A";
	margin-right: 6px;
}

.agpl-product-content .inner-menu a:hover {
	background-color: #35a9ff;
	color: #fff;
}

/* Strzałki z adresu starego motywu – po przeniesieniu mogą nie istnieć; zastępuje je ::before. */
.agpl-product-content .inner-menu img {
	display: none;
}

.agpl-product-content .product-mod2-grid {
	border-top: 1px solid #efefef;
	margin-top: 10px;
	padding-top: 30px;
}

.agpl-product-content .product-mod2-grid .col {
	min-width: 0;
}

/* Żmijka: zastępczy wygląd nagłówka H1 z treści (zamienionego na h2) – specyficzność 0, CSS zm-* ma pierwszeństwo. */
:where(.agpl-zmijka-content .agpl-h1-z-tresci) {
	color: #1c1958;
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 2.75rem;
	margin-bottom: 10px;
}

/* ------------------------------------------------------------------ */
/* Desktop (od 1025 px, jak styles.css)                                */
/* ------------------------------------------------------------------ */

@media (min-width: 1025px) {

	/* Lista modeli: dłuższe listy zawijają się do kolejnego wiersza. */
	.l-typ1 .inmenu-name {
		flex: 0 0 auto;
	}

	.l-typ1 .inmenu ul {
		flex-wrap: wrap;
		row-gap: 10px;
	}

	/* Brak listy modeli: odstęp od okruszków jak w makiecie. */
	.l-typ1 > .product:first-child {
		padding-top: 50px;
	}

	/* Bez zdjęcia: tytuł i opis na całą szerokość, opis i baner obok siebie. */
	.l-typ1 .product.agpl-product--no-photo .product-sec1,
	.l-typ1 .product.agpl-product--no-photo .product-sec2 {
		float: none;
		width: auto;
	}

	.l-typ1 .product.agpl-product--no-photo .product-sec2 {
		align-items: flex-start;
		display: flex;
		gap: 5%;
	}

	.l-typ1 .product.agpl-product--no-photo .product-sec2 .desc {
		flex: 1 1 auto;
	}

	.l-typ1 .product.agpl-product--no-photo .product-sec2 .extra {
		flex: 0 0 40%;
	}

	/* Kafelki: więcej niż 3 – kolejne wiersze po 3, mniej – wyśrodkowane. */
	.l-typ1 .related-grid {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 50px;
	}

	.l-typ1 .related-box {
		flex: 0 0 calc(33.333% - 50px);
		max-width: calc(33.333% - 50px);
	}

	.l-typ1 .related-box .thumb {
		align-items: center;
		display: flex;
		justify-content: center;
	}

	/* Treść z produkcji: zdjęcie z lewej, nagłówek i wstęp z prawej, opis w dwóch kolumnach. */
	.agpl-product-content .product-photo {
		float: left;
		width: 45%;
	}

	.agpl-product-content .product-header,
	.agpl-product-content .product-intro {
		float: right;
		width: 50%;
	}

	.agpl-product-content .product-mod2-grid {
		display: flex;
		gap: 60px;
		justify-content: space-between;
	}

	.agpl-product-content .product-mod2-grid .col {
		flex: 1 1 0;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile (do 1024 px, jak mobile.css)                                 */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {

	.l-typ1 .inmenu-name {
		cursor: pointer;
	}

	.l-typ1 .inmenu-name[aria-expanded="true"]::after {
		content: "(Zwi\0144)";
	}

	.l-typ1 .related-box .thumb img {
		max-height: 80px;
		width: auto;
	}

	.l-typ1 .description-content .col-left {
		margin-bottom: 20px;
	}

	.l-typ1 .description-content table td:first-child,
	.l-typ1 .description-content table td:first-of-type {
		min-width: 140px;
		padding-right: 10px;
	}

	.l-typ1 .agpl-gallery {
		padding: 20px 20px 40px;
	}

	.l-typ1 .agpl-gallery-header {
		font-size: 1.375rem;
		line-height: 2rem;
		margin-bottom: 20px;
	}

	.l-typ1 .agpl-gallery-grid {
		gap: 10px;
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}

	.agpl-product-content .product-header,
	.agpl-product-content .product-intro,
	.agpl-product-content .product-photo {
		float: none;
		width: auto;
	}

	.agpl-product-content .product-mod2-grid .col + .col {
		margin-top: 20px;
	}

	:where(.agpl-product-content) h2 {
		font-size: 1.25rem;
		line-height: 1.75rem;
	}

	:where(.agpl-product-content) .alignleft,
	:where(.agpl-product-content) .alignright {
		float: none;
		margin: 0 0 16px;
	}

	:where(.agpl-zmijka-content .agpl-h1-z-tresci) {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}

/* Cechy produktu: przy więcej niż 2 pozycjach albo pozycji dłuższej niż 30 znaków (klasa
   features--list, template-parts/product/head.php) – lista pionowa zamiast jednego wiersza
   (makieta: ul z display:flex ściskała długi tekst w wąskie kolumny). */
.l-typ1 .product-sec1 .features.features--list {
	display: block;
}

.l-typ1 .product-sec1 .features.features--list ul {
	display: block;
	padding-bottom: 12px;
	margin-bottom: 16px;
}

.l-typ1 .product-sec1 .features.features--list li,
.l-typ1 .product-sec1 .features.features--list li:nth-of-type(n+2) {
	line-height: 1.5;
	margin: 0 0 6px;
	padding-left: 18px;
	position: relative;
}

.l-typ1 .product-sec1 .features.features--list li::before,
.l-typ1 .product-sec1 .features.features--list li:nth-of-type(n+2)::before {
	background-color: #35a9ff;
	content: " ";
	display: block;
	height: 6px;
	left: 0;
	margin: 0;
	position: absolute;
	top: 0.6em;
	width: 6px;
}
