/* Pociechom Donations – sekcje podstron darowizn (paleta serwisu)
   krem #F6F1DD | zieleń #072A17 | żółty #F6C846 | Satoshi dziedziczony */

.pd-page {
	--pdp-cream: #F6F1DD;
	--pdp-green: #072A17;
	--pdp-green-soft: #0e4527;
	--pdp-yellow: #F6C846;
	--pdp-white: #ffffff;
	--pdp-radius: 24px;

	color: var(--pdp-green);
	font-size: 18px;
	margin: 0 auto;
	max-width: 1140px;
	padding: 28px 16px 48px;
}

.pd-page *,
.pd-page *::before,
.pd-page *::after {
	box-sizing: border-box;
}

.pd-page img {
	display: block;
	height: auto;
	max-width: 100%;
}

/* ── HERO ───────────────────────────────────────── */
.pd-hero {
	align-items: center;
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
	padding: 24px 0 40px;
}

@media (min-width: 900px) {
	.pd-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
	}
}

.pd-hero__eyebrow {
	background: var(--pdp-yellow);
	border-radius: 999px;
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 14px;
	padding: 8px 18px;
}

.pd-hero__title {
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 16px;
}

.pd-hero__lead {
	font-size: 20px;
	line-height: 1.6;
	margin: 0 0 10px;
	max-width: 54ch;
}

.pd-hero__note {
	font-size: 15px;
	opacity: 0.75;
}

.pd-hero__media img {
	border-radius: var(--pdp-radius);
	object-fit: cover;
	width: 100%;
}

/* ── SEKCJE ─────────────────────────────────────── */
.pd-section {
	padding: 40px 0;
}

.pd-section--cream {
	background: var(--pdp-cream);
	border-radius: var(--pdp-radius);
	padding: 40px 32px;
}

.pd-section--green {
	background: var(--pdp-green);
	border-radius: var(--pdp-radius);
	color: var(--pdp-cream);
	padding: 40px 32px;
}

.pd-section__title {
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 10px;
}

.pd-section__intro {
	font-size: 20px;
	line-height: 1.6;
	margin: 0 0 26px;
	max-width: 70ch;
}

.pd-section--center .pd-section__title,
.pd-section--center .pd-section__intro {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* ── UKŁAD DWUKOLUMNOWY ─────────────────────────── */
.pd-split {
	align-items: center;
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.pd-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.pd-split--media-right .pd-split__media {
		order: 2;
	}
}

.pd-split__media img {
	border-radius: var(--pdp-radius);
	object-fit: cover;
	width: 100%;
}

/* ── KARTY (kroki, liczby) ──────────────────────── */
.pd-cards {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
	margin: 26px 0 0;
	padding: 0;
}

@media (min-width: 700px) {
	.pd-cards--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pd-cards--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.pd-card {
	background: var(--pdp-white);
	border-radius: 18px;
	list-style: none;
	padding: 26px 22px;
}

.pd-section--green .pd-card {
	background: rgba(246, 241, 221, 0.08);
	color: var(--pdp-cream);
}

.pd-card__num {
	align-items: center;
	background: var(--pdp-yellow);
	border-radius: 50%;
	color: var(--pdp-green);
	display: flex;
	font-size: 20px;
	font-weight: 700;
	height: 44px;
	justify-content: center;
	margin-bottom: 14px;
	width: 44px;
}

.pd-card__title {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 8px;
}

.pd-card__text {
	font-size: 17px;
	line-height: 1.55;
	margin: 0;
}

/* ── KARTY ZWIERZĄT ─────────────────────────────── */
.pd-animals {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
	margin: 26px 0 0;
	padding: 0;
}

@media (min-width: 640px) {
	.pd-animals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.pd-animals {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.pd-animal {
	background: var(--pdp-white);
	border-radius: var(--pdp-radius);
	display: flex;
	flex-direction: column;
	list-style: none;
	overflow: hidden;
}

.pd-animal__photo {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.pd-animal__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 24px;
}

.pd-animal__name {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

.pd-animal__tag {
	background: var(--pdp-cream);
	border-radius: 999px;
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 12px;
	width: fit-content;
}

.pd-animal__desc {
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
}

.pd-animal__cta {
	background: var(--pdp-yellow);
	border-radius: 999px;
	color: var(--pdp-green) !important;
	display: inline-block;
	font-weight: 700;
	margin-top: auto;
	padding: 12px 22px;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}

.pd-animal__cta:hover {
	background: #ecb92e;
}

/* ── GALERIA ────────────────────────────────────── */
.pd-gallery {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 26px 0 0;
	padding: 0;
}

@media (min-width: 800px) {
	.pd-gallery {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.pd-gallery li {
	list-style: none;
	margin: 0;
}

.pd-gallery img {
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	object-fit: cover;
	width: 100%;
}

/* ── PASEK CTA / LICZBY ─────────────────────────── */
.pd-stats {
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr;
	margin: 0;
	padding: 0;
	text-align: center;
}

@media (min-width: 700px) {
	.pd-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.pd-stats li {
	list-style: none;
}

.pd-stats__num {
	display: block;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
}

.pd-stats__label {
	font-size: 16px;
	opacity: 0.85;
}

/* ── FORMULARZ ADOPCYJNY ────────────────────────── */
.pd-adopt-form {
	background: var(--pdp-white);
	border: 1px solid #dcd5bd;
	border-radius: var(--pdp-radius);
	margin: 26px auto 0;
	max-width: 560px;
	padding: 28px;
}

.pd-adopt-form .pd-form__field select {
	background: #ffffff;
	border: 2px solid #dcd5bd;
	border-radius: 10px;
	font-size: 16px;
	min-height: 48px;
	padding: 10px 14px;
	width: 100%;
}

.pd-adopt-form .pd-form__field select:focus {
	border-color: var(--pdp-green);
	outline: none;
}

.pd-adopt-form__submit {
	background: var(--pdp-yellow);
	border: 0;
	border-radius: 999px;
	color: var(--pdp-green);
	cursor: pointer;
	display: block;
	font-size: 17px;
	font-weight: 700;
	min-height: 54px;
	padding: 14px 24px;
	width: 100%;
}

.pd-adopt-form__submit:hover {
	background: #ecb92e;
}

.pd-adopt-form__ok {
	background: #e8f3ec;
	border-radius: 12px;
	font-size: 16px;
	margin: 0 0 14px;
	padding: 14px 16px;
}

/* ── DROBNE ─────────────────────────────────────── */
.pd-page .pd-form {
	margin-left: auto;
	margin-right: auto;
}

.pd-anchor {
	scroll-margin-top: 120px;
}

/* Poprawka: karta formularza adopcji ma własne zmienne (nie dziedziczy z sekcji) */
.pd-adopt-form {
	--pd-muted: #5f6368;
	--pd-accent: #072A17;
	--pd-accent-dark: #0e4527;
	--pd-border: #dcd5bd;
	color: var(--pdp-green);
	text-align: left;
}

.pd-adopt-form .pd-form__heading {
	color: var(--pdp-green);
	text-align: center;
}

.pd-adopt-form .pd-form__field input {
	background: #ffffff;
	color: var(--pdp-green);
}


/* ── FOTO-HERO (zbiórki) ── */
.pd-photohero {
	border-radius: var(--pdp-radius);
	overflow: hidden;
	position: relative;
}

.pd-photohero img {
	display: block;
	height: 440px;
	object-fit: cover;
	width: 100%;
}

.pd-photohero__box {
	background: rgba(7, 42, 23, 0.82);
	border-radius: 18px;
	bottom: 24px;
	color: var(--pdp-cream);
	left: 24px;
	max-width: 560px;
	padding: 22px 26px;
	position: absolute;
	right: 24px;
}

.pd-photohero__box .pd-hero__title {
	color: #ffffff;
	font-size: clamp(28px, 4vw, 42px);
	margin-bottom: 8px;
}

.pd-photohero__box .pd-hero__lead {
	color: var(--pdp-cream);
	font-size: 18px;
	margin-bottom: 6px;
}

.pd-photohero__box .pd-hero__note {
	color: var(--pdp-cream);
	opacity: 0.85;
}

@media (max-width: 700px) {
	.pd-photohero img {
		height: 520px;
	}
}

/* ── ŻÓŁTY PAS LICZB ── */
.pd-band {
	background: var(--pdp-yellow);
	border-radius: var(--pdp-radius);
	color: var(--pdp-green);
	padding: 34px 32px;
}

.pd-band .pd-section__title {
	text-align: center;
}

.pd-band .pd-stats__label {
	opacity: 1;
}

/* ── PASEK ZDJĘĆ ── */
.pd-strip {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 34px 0 0;
	padding: 0;
}

.pd-strip li {
	list-style: none;
	margin: 0;
}

.pd-strip img {
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 640px) {
	.pd-strip {
		grid-template-columns: minmax(0, 1fr);
	}

	.pd-strip img {
		aspect-ratio: 16 / 9;
	}
}

.pd-hero__media--stack img {
	aspect-ratio: 16 / 10;
	margin-top: 22px;
}


/* Płatność darowizny – odsklepowiony checkout */
body.pd-donation-checkout .woocommerce-form-coupon-toggle,
body.pd-donation-checkout .woocommerce-additional-fields,
body.pd-donation-checkout .woocommerce-billing-fields > h3 {
	display: none !important;
}

body.pd-donation-checkout form.checkout {
	margin: 0 auto;
	max-width: 760px;
}

body.pd-donation-checkout .woocommerce {
	max-width: 800px;
	margin: 0 auto;
}

body.pd-donation-checkout table.shop_table {
	background: #ffffff;
	border: 1px solid #e7e0c9 !important;
	border-radius: 16px;
	overflow: hidden;
}

body.pd-donation-checkout .woocommerce-billing-fields input.input-text {
	border: 2px solid #dcd5bd !important;
	border-radius: 12px !important;
	min-height: 48px;
	padding: 10px 14px !important;
}

body.pd-donation-checkout #payment {
	background: #F6F1DD !important;
	border-radius: 16px;
}

body.pd-donation-checkout #place_order {
	background: #F6C846 !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: #072A17 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	min-height: 56px;
	padding: 16px 28px !important;
}

body.pd-donation-checkout #place_order:hover {
	background: #ecb92e !important;
}


/* Płatność darowizny – układ 2 kolumny, jeden ekran */
@media (min-width: 881px) {
	body.pd-donation-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
		gap: 18px 28px;
		align-items: start;
		max-width: 1040px !important;
	}

	body.pd-donation-checkout #customer_details {
		grid-column: 1;
		grid-row: 1;
	}

	body.pd-donation-checkout #order_review_heading {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		font-size: 18px;
		margin: 0 0 4px;
	}

	body.pd-donation-checkout #order_review {
		display: contents;
	}

	body.pd-donation-checkout #order_review table.shop_table {
		grid-column: 2;
		grid-row: 2;
		margin: 0;
	}

	body.pd-donation-checkout #order_review #payment {
		grid-column: 1;
		grid-row: 2;
		margin: 0;
	}
}

/* Kompakt: mniejsze odstępy, wszystko zwarte */
body.pd-donation-checkout .entry-title,
body.pd-donation-checkout h1 {
	font-size: clamp(26px, 3vw, 34px);
	margin-bottom: 12px;
}

body.pd-donation-checkout #customer_details .col-1,
body.pd-donation-checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

body.pd-donation-checkout table.shop_table th,
body.pd-donation-checkout table.shop_table td {
	font-size: 14px;
	padding: 9px 12px;
}

body.pd-donation-checkout #payment .payment_box {
	font-size: 14px;
}

body.pd-donation-checkout #payment ul.payment_methods {
	padding: 14px !important;
}

body.pd-donation-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text p {
	font-size: 12.5px;
	margin-bottom: 8px;
}

body.pd-donation-checkout .form-row {
	margin-bottom: 8px;
}
