/* box-page.css - podstrony produktów /boxy/:sku i strony kategorii (styl scrapbook) */

.bp-main {
	padding-bottom: 3rem;
	/* cover = proporcje obrazu zachowane, nadmiar przycięty (wycinek motywu z głównej) */
	background: url('../img/bg-whole.webp?v=2') top center / cover no-repeat #fdf3ea;
}

.bp-wrap {
	text-align: left;
	padding: 120px clamp(1.2rem, 3vw, 2.4rem) 0;
	max-width: 1100px;
}

.bp-breadcrumbs {
	font-size: 1.25rem;
	color: #8a7563;
	margin-bottom: 1.6rem;
}

.bp-breadcrumbs a {
	color: #a03b52;
	text-decoration: none;
}

.bp-breadcrumbs a:hover {
	text-decoration: underline;
}

/* ===== hero: galeria + informacje ===== */
.bp-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(1.6rem, 3.5vw, 3.2rem);
	align-items: start;
	margin-bottom: 2.4rem;
}

.bp-photo {
	position: relative;
}

.bp-photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 10;
	object-fit: cover;
	border: 8px solid #fff;
	border-radius: 6px;
	box-shadow: 0 12px 28px rgba(95, 68, 45, 0.28);
	transform: rotate(-1deg);
}

.bp-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.bp-thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 3px solid #fff;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(95, 68, 45, 0.2);
	opacity: 0.75;
	background: #fff;
}

.bp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bp-thumb.active,
.bp-thumb:hover {
	opacity: 1;
	outline: 2px solid #d98a97;
}

.bp-title {
	font-family: var(--heading-font, 'Caveat', cursive);
	font-weight: 600;
	color: var(--heading-color, #8c9a74);
	font-size: clamp(3.2rem, 5.4vw, 5rem);
	line-height: 1.05;
	margin: 0 0 1rem;
}

.bp-price-row {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	flex-wrap: wrap;
	margin-bottom: 1.2rem;
}

.bp-price {
	display: inline-block;
	font-family: 'Caveat', cursive;
	font-size: 2.6rem;
	font-weight: 700;
	color: #a03b52;
	border: 2px dashed rgba(160, 59, 82, 0.75);
	border-radius: 999px;
	padding: 0.05em 0.7em;
	transform: rotate(-3deg);
}

.bp-serves {
	font-size: 1.45rem;
	color: #5a3e2b;
	font-weight: 600;
}

.bp-occasions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 1.4rem;
}

.bp-chip {
	background: #f6ece2;
	border: 1px solid #eaded3;
	color: #6a4a34;
	font-size: 1.2rem;
	border-radius: 999px;
	padding: 3px 12px;
}

.bp-desc {
	color: #5f4c3c;
	font-size: 1.5rem;
	line-height: 1.7;
}

.bp-desc p {
	margin: 0 0 0.9em;
}

.bp-add {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	border-radius: 12px;
	padding: 0.75em 1.8em;
	font-size: 1.6rem;
	margin: 0.4rem 0 1.2rem;
}

.bp-delivery {
	font-size: 1.3rem;
	color: #7a6553;
	background: #fbf5ee;
	border: 1px dashed #eaded3;
	border-radius: 12px;
	padding: 10px 14px;
	line-height: 1.55;
}

.bp-delivery a {
	color: #a03b52;
}

/* ===== sekcje: składniki / FAQ (papierowa kartka) ===== */
.bp-card,
.bp-faq {
	position: relative;
	padding: 2rem 2.2rem;
	margin-bottom: 2.2rem;
}

.bp-card::before,
.bp-faq::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(158deg, #fffefb 0%, #fdf8ef 55%, #fbf4e8 100%);
	filter: url('#boxy-torn-1') drop-shadow(0 14px 24px rgba(95, 68, 45, 0.22));
}

.bp-faq::before {
	filter: url('#boxy-torn-2') drop-shadow(0 14px 24px rgba(95, 68, 45, 0.22));
}

.bp-card > *,
.bp-faq > * {
	position: relative;
	z-index: 1;
}

.bp-h2 {
	font-family: var(--heading-font, 'Caveat', cursive);
	font-weight: 600;
	color: #8c9a74;
	font-size: clamp(2.4rem, 3.6vw, 3.2rem);
	margin: 0 0 1rem;
}

.bp-ingredients {
	list-style: none;
	padding: 0;
	margin: 0;
	columns: 2;
	column-gap: 2.4rem;
}

.bp-ingredients li {
	break-inside: avoid;
	font-size: 1.42rem;
	color: #5a4636;
	line-height: 1.55;
	padding: 0.35em 0 0.35em 1.5em;
	position: relative;
}

.bp-ingredients li::before {
	content: '♥';
	position: absolute;
	left: 0;
	color: #d98a97;
	font-size: 1.1rem;
	top: 0.55em;
}

.bp-ingredients-note {
	margin: 1rem 0 0;
	font-size: 1.2rem;
	color: #8a7563;
}

.bp-faq-item {
	border-bottom: 1px dashed #eaded3;
	padding: 0.7rem 0;
}

.bp-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 1.45rem;
	color: #5a3e2b;
	list-style: none;
	position: relative;
	padding-right: 28px;
}

.bp-faq-item summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 0;
	color: #a03b52;
	font-size: 1.8rem;
	transition: transform 0.2s;
}

.bp-faq-item[open] summary::after {
	transform: rotate(45deg);
}

.bp-faq-item p {
	margin: 0.7rem 0 0.3rem;
	font-size: 1.38rem;
	color: #6b5645;
	line-height: 1.6;
}

/* ===== powiązane / siatka kategorii ===== */
.bp-related {
	margin-bottom: 2rem;
}

.bp-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 1.6rem;
}

.bp-related-card {
	display: block;
	text-decoration: none;
	background: #fffdf8;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(90, 62, 43, 0.12);
	transition: transform 0.2s, box-shadow 0.25s;
}

.bp-related-card:hover {
	transform: translateY(-3px) rotate(-0.5deg);
	box-shadow: 0 14px 28px rgba(90, 62, 43, 0.18);
}

.bp-related-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.bp-related-name {
	display: block;
	padding: 10px 12px 2px;
	font-weight: 700;
	color: #5a3e2b;
	font-size: 1.4rem;
}

.bp-related-price {
	display: block;
	padding: 0 12px 12px;
	color: #a03b52;
	font-family: 'Caveat', cursive;
	font-size: 1.8rem;
	font-weight: 700;
}

/* kategoria */
.bp-cat-head {
	margin-bottom: 2rem;
}

.bp-cat-intro {
	max-width: 70ch;
	color: #6b5645;
	font-size: 1.5rem;
	line-height: 1.7;
}

.bp-cat-links {
	margin-top: 2rem;
	font-size: 1.35rem;
	color: #7a6553;
}

.bp-cat-links a {
	color: #a03b52;
}

.bp-guides {
	margin-top: 1.6rem;
	font-size: 1.3rem;
	color: #7a6553;
	background: #fbf5ee;
	border: 1px dashed #eaded3;
	border-radius: 12px;
	padding: 10px 14px;
	line-height: 1.7;
}

.bp-guides a {
	color: #a03b52;
}

/* ===== link "szczegóły" na kartach menu ===== */
.bcard__details {
	display: inline-block;
	margin-top: 0.5rem;
	color: #c2607a;
	font-weight: 700;
	font-size: 1.25rem;
	text-decoration: none;
	letter-spacing: 0.03em;
}

.bcard__details:hover {
	color: #a03b52;
	text-decoration: underline;
}

/* ===== responsywność ===== */
@media (max-width: 860px) {
	.bp-hero {
		grid-template-columns: 1fr;
	}

	.bp-ingredients {
		columns: 1;
	}

	.bp-wrap {
		padding-top: 105px;
	}
}
