/* =============================================================================
   Kanel25aars — product.css
   Editorial single-product layout. Asymmetric, generous, premium.
   ============================================================================= */

.bk-product-page {
	margin: var(--bk-space-8) 0 var(--bk-space-16);
	background: linear-gradient(180deg, #fff 0%, var(--bk-cream-50) 100%);
}

.bk-product {
	display: grid;
	gap: var(--bk-space-8);
	grid-template-columns: 1fr;
	margin-top: var(--bk-space-3);
}
@media (min-width: 1024px) {
	.bk-product { grid-template-columns: 1.05fr 1fr; gap: var(--bk-space-16); align-items: start; }
}

/* ---------- Media column ---------- */
.bk-product__media {
	position: relative;
	/* Begræns galleriets højde på små skærme så CTA og pris er synlige
	   over fold uden ekstra scroll. */
	max-width: min(100%, 70vh);
	margin-inline: auto;
}
@media (min-width: 1024px) {
	.bk-product__media {
		max-width: none;
		margin-inline: 0;
		position: sticky;
		top: calc(var(--bk-header-height) + var(--bk-space-4));
		align-self: start;
	}
}
.bk-product__media .woocommerce-product-gallery {
	background: linear-gradient(135deg, #fff, var(--bk-cream-100));
	border-radius: var(--bk-radius-lg);
	padding: var(--bk-space-6);
	box-shadow: var(--bk-shadow-sm);
	position: relative;
	overflow: hidden;
	/* WC's woocommerce-layout.css forcer .images { float:left; width:48% } —
	   den regel sigter mod den default float-baserede produktside. Vi bruger
	   CSS grid (.bk-product), så galleriet skal have hele media-column'en. */
	float: none !important;
	width: 100% !important;
}
/* Force the gallery image into a square frame so small product shots
   (e.g. the 300×270 kanel pose) fill the same footprint as the
   editorial SVG fallback used by other products. */
.bk-product__media .woocommerce-product-gallery__wrapper {
	aspect-ratio: 1 / 1;
	display: block;
	overflow: hidden;
	border-radius: var(--bk-radius);
}
.bk-product__media .woocommerce-product-gallery__wrapper > * {
	display: block;
	height: 100%;
}
.bk-product__media .woocommerce-product-gallery__wrapper picture,
.bk-product__media .woocommerce-product-gallery__wrapper a {
	display: block;
	height: 100%;
}
.bk-product__media .woocommerce-product-gallery__wrapper img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
/* Hovedprodukt: lad det lille kanel-billede (300×270) fylde hele kvadrat-rammen
   så det matcher den fulde column-bredde som SVG-fallback'en på øvrige produkter. */
body.bk-hovedprodukt .bk-product__media .woocommerce-product-gallery__wrapper img {
	object-fit: cover;
}
.bk-product__media .woocommerce-product-gallery::before {
	content: "";
	position: absolute;
	inset: 1.4rem;
	border: 1px solid rgba(26, 20, 16, 0.07);
	border-radius: var(--bk-radius);
	pointer-events: none;
	z-index: 1;
}
.bk-product__media img {
	border-radius: var(--bk-radius-sm);
	width: 100%;
	height: auto;
	max-width: 100%;
}
.bk-product__media .flex-control-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
	list-style: none;
	padding: 0;
}
.bk-product__media .flex-control-thumbs li { width: 64px; }
.bk-product__media .flex-control-thumbs img {
	border: 2px solid transparent;
	border-radius: var(--bk-radius-sm);
	cursor: pointer;
	opacity: 0.7;
}
.bk-product__media .flex-control-thumbs img:hover,
.bk-product__media .flex-control-thumbs .flex-active {
	border-color: var(--bk-cinnamon);
	opacity: 1;
}

/* Media decorative caption */
.bk-product__media-caption {
	position: absolute;
	bottom: -12px;
	left: var(--bk-space-4);
	background: var(--bk-espresso);
	color: var(--bk-cream-50);
	padding: 0.5rem 0.95rem;
	border-radius: var(--bk-radius-pill);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	z-index: 2;
	box-shadow: var(--bk-shadow);
}
.bk-product__media-caption span { color: var(--bk-saffron); }

/* ---------- Summary column ---------- */
.bk-product__summary {
	display: flex;
	flex-direction: column;
}
.bk-product__header { margin-bottom: var(--bk-space-5); }
.bk-product__header h1 {
	font-size: clamp(2.25rem, 3.5vw + 1rem, 3.5rem);
	margin: 0 0 var(--bk-space-3);
	letter-spacing: -0.035em;
	font-weight: 400;
	font-variation-settings: "opsz" 144, "SOFT" 50;
}
.bk-product__header h1 em {
	font-style: italic;
	color: var(--bk-cinnamon);
	font-variation-settings: "opsz" 144, "SOFT" 80;
}
.bk-product__lede {
	color: var(--bk-stone-700);
	font-size: var(--bk-fs-500);
	margin: 0;
	line-height: 1.5;
}

.bk-product__price {
	font-family: var(--bk-font-display);
	font-size: var(--bk-fs-800);
	color: var(--bk-cinnamon);
	font-weight: 400;
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin: var(--bk-space-5) 0;
	letter-spacing: -0.025em;
	font-variation-settings: "opsz" 96, "SOFT" 50;
}
.bk-product__price-prefix {
	font-family: var(--bk-font-body);
	font-size: 0.78rem;
	color: var(--bk-stone-500);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.bk-price-per-kg {
	font-family: var(--bk-font-body);
	font-size: 0.92rem;
	color: var(--bk-stone-500);
	font-weight: 500;
}

/* (Legacy chip-grid + WC variation form CSS removed — replaced by .bk-pack-builder.) */

/* Trust bullets stacked under add-to-cart */
.bk-product__summary .bk-trust-bullets--stack {
	margin: var(--bk-space-5) 0 var(--bk-space-3);
	color: var(--bk-stone-700);
	font-size: 0.92rem;
}

/* Delivery box — collapsible <details> på mobil, åben på desktop. */
.bk-delivery-box {
	background: var(--bk-cream-100);
	border: 1px solid var(--bk-cream-200);
	border-radius: var(--bk-radius);
	padding: 0;
	margin-top: var(--bk-space-4);
	overflow: hidden;
}
.bk-delivery-box__title {
	display: flex;
	gap: 0.55rem;
	align-items: center;
	font-family: var(--bk-font-display);
	font-size: var(--bk-fs-500);
	margin: 0;
	padding: var(--bk-space-4) var(--bk-space-5);
	letter-spacing: -0.015em;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
	min-height: 56px;
	user-select: none;
}
.bk-delivery-box__title::-webkit-details-marker { display: none; }
.bk-delivery-box__title svg.bk-icon {
	width: 22px;
	height: 22px;
	color: var(--bk-cinnamon);
	flex-shrink: 0;
}
.bk-delivery-box__title-text { flex: 1; }
.bk-delivery-box__chevron {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor);
	background-size: 100% 1.5px, 1.5px 100%;
	background-position: center, center;
	background-repeat: no-repeat;
	color: var(--bk-stone-500);
	transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}
details[open] > .bk-delivery-box__title .bk-delivery-box__chevron { transform: rotate(45deg); }
.bk-delivery-box__content {
	padding: 0 var(--bk-space-5) var(--bk-space-5);
}
@media (min-width: 1024px) {
	/* Desktop: skjul chevron, gør title til en statisk header */
	.bk-delivery-box__title {
		cursor: default;
		padding-bottom: var(--bk-space-3);
	}
	.bk-delivery-box__chevron { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bk-delivery-box__chevron { transition: none; }
}
.bk-delivery-box__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}
.bk-delivery-box__list li {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: var(--bk-space-3);
	font-size: 0.92rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--bk-stone-300);
}
.bk-delivery-box__list li:last-child { border-bottom: 0; }
.bk-delivery-box__list strong { color: var(--bk-espresso); font-weight: 700; }
.bk-delivery-box__list span { color: var(--bk-stone-700); }

/* Tabs (details-based) */
.bk-product__tabs {
	margin-top: var(--bk-space-12);
	border-top: 1px solid var(--bk-stone-300);
}
.bk-product__tab {
	border-bottom: 1px solid var(--bk-stone-300);
	transition: background .15s;
}
.bk-product__tab[open] { background: rgba(255,255,255,0.5); }
.bk-product__tab-title {
	cursor: pointer;
	padding: var(--bk-space-5) 0;
	font-family: var(--bk-font-display);
	font-weight: 500;
	font-size: var(--bk-fs-600);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	letter-spacing: -0.015em;
	transition: color .15s;
}
.bk-product__tab-title:hover { color: var(--bk-cinnamon); }
.bk-product__tab-title::-webkit-details-marker { display: none; }
.bk-product__tab-title::after {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor);
	background-size: 100% 1.5px, 1.5px 100%;
	background-position: center, center;
	background-repeat: no-repeat;
	transition: transform .25s;
}
.bk-product__tab[open] .bk-product__tab-title::after { transform: rotate(45deg); }
.bk-product__tab-content {
	padding-bottom: var(--bk-space-5);
	color: var(--bk-stone-700);
	font-size: var(--bk-fs-400);
	line-height: 1.65;
	max-width: 70ch;
}

/* Product meta */
.bk-product__meta {
	margin-top: var(--bk-space-3);
	font-size: 0.82rem;
	color: var(--bk-stone-500);
	letter-spacing: 0.04em;
}

/* Related products */
.related.products {
	margin-top: var(--bk-space-16);
	padding-top: var(--bk-space-12);
	border-top: 1px solid var(--bk-stone-300);
}
.related.products h2 {
	font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
	margin-bottom: var(--bk-space-8);
	text-align: center;
	font-style: italic;
	font-weight: 400;
	font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* =============================================================================
   Premium product page polish — USP highlight, refined trust-bullets layout.
   ============================================================================= */

.bk-product-usp {
	margin: var(--bk-space-5) 0;
	padding: var(--bk-space-4);
	background: var(--bk-cream-50);
	border: 1px solid rgba(31, 26, 20, 0.06);
	border-radius: 12px;
}
.bk-product-usp__highlight {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px;
	background: linear-gradient(135deg, var(--bk-cinnamon-50) 0%, var(--bk-cinnamon-100) 100%);
	border-radius: 8px;
	text-decoration: none;
	color: var(--bk-cinnamon-900);
	margin-bottom: var(--bk-space-3);
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.bk-product-usp__highlight:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -12px rgba(122, 49, 21, 0.4);
	text-decoration: none;
	color: var(--bk-cinnamon-900);
}
.bk-product-usp__highlight strong {
	font-size: 0.94rem;
	font-weight: 600;
	flex-grow: 1;
}
.bk-product-usp__highlight-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--bk-cinnamon);
	box-shadow: 0 0 0 3px rgba(164, 71, 33, 0.18);
	flex-shrink: 0;
}
.bk-product-usp__highlight-link {
	font-size: 0.78rem;
	color: var(--bk-cinnamon-700);
	font-weight: 600;
	white-space: nowrap;
}

/* =============================================================================
   SVG product gallery (CSS-only, radio + sibling combinator).
   ============================================================================= */
.bk-svg-gallery {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--bk-space-3);
}
.bk-svg-gallery__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.bk-svg-gallery__main {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--bk-radius-lg);
	overflow: hidden;
	background: linear-gradient(135deg, #fdf6ea 0%, #f5e9d4 100%);
	box-shadow:
		0 30px 60px -36px rgba(31, 26, 20, 0.34),
		0 0 0 1px rgba(31, 26, 20, 0.08);
	isolation: isolate;
}
.bk-svg-gallery__main::before {
	content: "";
	position: absolute;
	inset: 18px;
	border: 1px solid rgba(58, 38, 22, 0.18);
	border-radius: calc(var(--bk-radius) - 4px);
	pointer-events: none;
	z-index: 4;
}
.bk-svg-gallery__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	display: grid;
	place-items: stretch;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity .55s cubic-bezier(0.16, 1, 0.3, 1), transform .55s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1;
}
.bk-svg-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}
/* Active slide based on which radio is checked */
.bk-svg-gallery__radio[data-bk-svg-gallery="01"]:checked ~ .bk-svg-gallery__main .bk-svg-gallery__slide[data-bk-svg-slide="01"],
.bk-svg-gallery__radio[data-bk-svg-gallery="02"]:checked ~ .bk-svg-gallery__main .bk-svg-gallery__slide[data-bk-svg-slide="02"],
.bk-svg-gallery__radio[data-bk-svg-gallery="03"]:checked ~ .bk-svg-gallery__main .bk-svg-gallery__slide[data-bk-svg-slide="03"],
.bk-svg-gallery__radio[data-bk-svg-gallery="04"]:checked ~ .bk-svg-gallery__main .bk-svg-gallery__slide[data-bk-svg-slide="04"] {
	opacity: 1;
	transform: scale(1);
	z-index: 2;
}

.bk-svg-gallery__corner {
	position: absolute;
	bottom: 18px;
	right: 18px;
	z-index: 5;
	display: inline-flex;
	gap: 6px;
	align-items: baseline;
	background: rgba(58, 38, 22, 0.92);
	color: var(--bk-cream-50);
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	backdrop-filter: blur(6px);
}
.bk-svg-gallery__corner em {
	font-style: italic;
	color: var(--bk-saffron);
	letter-spacing: 0.05em;
	font-weight: 700;
	font-size: 0.78rem;
}

.bk-svg-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.bk-svg-gallery__thumb {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
	user-select: none;
	border-radius: var(--bk-radius-sm);
	transition: transform .15s ease;
}
.bk-svg-gallery__thumb:hover { transform: translateY(-2px); }
.bk-svg-gallery__thumb-img {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: var(--bk-radius-sm);
	overflow: hidden;
	background: var(--bk-cream-100);
	border: 2px solid transparent;
	transition: border-color .15s, box-shadow .2s;
	position: relative;
}
.bk-svg-gallery__thumb-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.78;
	transition: opacity .2s;
}
.bk-svg-gallery__thumb:hover .bk-svg-gallery__thumb-img img { opacity: 1; }
.bk-svg-gallery__thumb-meta {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--bk-font-display);
	color: var(--bk-stone-700);
	letter-spacing: 0.04em;
}
.bk-svg-gallery__thumb-num {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--bk-cinnamon);
	font-feature-settings: "tnum";
}
.bk-svg-gallery__thumb-label {
	font-size: 0.78rem;
	font-style: italic;
	font-variation-settings: "opsz" 60, "SOFT" 50;
}

/* Active thumb — sibling-combinator from each radio */
.bk-svg-gallery__radio[data-bk-svg-gallery="01"]:checked ~ .bk-svg-gallery__thumbs .bk-svg-gallery__thumb[data-bk-svg-thumb="01"] .bk-svg-gallery__thumb-img,
.bk-svg-gallery__radio[data-bk-svg-gallery="02"]:checked ~ .bk-svg-gallery__thumbs .bk-svg-gallery__thumb[data-bk-svg-thumb="02"] .bk-svg-gallery__thumb-img,
.bk-svg-gallery__radio[data-bk-svg-gallery="03"]:checked ~ .bk-svg-gallery__thumbs .bk-svg-gallery__thumb[data-bk-svg-thumb="03"] .bk-svg-gallery__thumb-img,
.bk-svg-gallery__radio[data-bk-svg-gallery="04"]:checked ~ .bk-svg-gallery__thumbs .bk-svg-gallery__thumb[data-bk-svg-thumb="04"] .bk-svg-gallery__thumb-img {
	border-color: var(--bk-cinnamon);
	box-shadow: 0 6px 18px -8px rgba(164, 71, 33, 0.45);
}
.bk-svg-gallery__radio[data-bk-svg-gallery="01"]:checked ~ .bk-svg-gallery__thumbs .bk-svg-gallery__thumb[data-bk-svg-thumb="01"] .bk-svg-gallery__thumb-img img,
.bk-svg-gallery__radio[data-bk-svg-gallery="02"]:checked ~ .bk-svg-gallery__thumbs .bk-svg-gallery__thumb[data-bk-svg-thumb="02"] .bk-svg-gallery__thumb-img img,
.bk-svg-gallery__radio[data-bk-svg-gallery="03"]:checked ~ .bk-svg-gallery__thumbs .bk-svg-gallery__thumb[data-bk-svg-thumb="03"] .bk-svg-gallery__thumb-img img,
.bk-svg-gallery__radio[data-bk-svg-gallery="04"]:checked ~ .bk-svg-gallery__thumbs .bk-svg-gallery__thumb[data-bk-svg-thumb="04"] .bk-svg-gallery__thumb-img img {
	opacity: 1;
}

/* Keyboard focus ring */
.bk-svg-gallery__radio:focus-visible ~ .bk-svg-gallery__thumbs .bk-svg-gallery__thumb[data-bk-svg-thumb="01"] .bk-svg-gallery__thumb-img,
.bk-svg-gallery__radio:focus-visible + .bk-svg-gallery__thumbs .bk-svg-gallery__thumb-img {
	outline: 2px solid var(--bk-cinnamon);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.bk-svg-gallery__slide { transition: none; transform: none; }
	.bk-svg-gallery__thumb { transition: none; }
}

/* =============================================================================
   Pack-builder — single, smart picker for variable products.
   Replaces the legacy chip-grid + dropdown combo with one composable form.
   ============================================================================= */
.bk-pack-builder {
	display: flex;
	flex-direction: column;
	gap: var(--bk-space-4);
	margin: var(--bk-space-5) 0 var(--bk-space-4);
	padding: var(--bk-space-4);
	background: linear-gradient(180deg, #fff 0%, var(--bk-cream-50) 100%);
	border: 1px solid rgba(31, 26, 20, 0.08);
	border-radius: 18px;
	box-shadow: 0 2px 6px rgba(31, 26, 20, 0.04);
	scroll-margin-top: calc(var(--bk-header-height-mobile) + var(--bk-space-3));
	transition: box-shadow .35s ease, border-color .35s ease;
}
@media (min-width: 768px) {
	.bk-pack-builder {
		padding: var(--bk-space-6);
		border-radius: 22px;
		scroll-margin-top: calc(var(--bk-header-height) + var(--bk-space-4));
	}
}
/* Flash state — sticky-bar bruger denne klasse til at fremhæve pack-builder
   når kunden trykker bar'ens "Vælg mængde". */
.bk-pack-builder.is-flash {
	box-shadow: 0 0 0 4px var(--bk-cinnamon-100), 0 14px 32px -12px rgba(164, 71, 33, 0.35);
	border-color: var(--bk-cinnamon);
}
@media (prefers-reduced-motion: reduce) {
	.bk-pack-builder { transition: none; }
}

.bk-pack-builder__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--bk-space-4);
	padding-bottom: var(--bk-space-4);
	border-bottom: 1px dashed rgba(31, 26, 20, 0.12);
}
.bk-pack-builder__eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bk-cinnamon);
	margin-bottom: 6px;
}
.bk-pack-builder__title {
	font-family: var(--bk-font-display);
	font-size: 1.45rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--bk-espresso);
	margin: 0 0 6px;
	line-height: 1.15;
	font-variation-settings: "opsz" 60, "SOFT" 30;
}
.bk-pack-builder__hint {
	margin: 0;
	color: var(--bk-stone-700);
	font-size: 0.86rem;
	max-width: 38ch;
	line-height: 1.5;
}
/* "Altid 1 kg-poser"-badge — fremhævet over vægtvælgeren */
.bk-pack-builder__bags {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 var(--bk-space-4);
	padding: 0.7rem 0.9rem;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--bk-cinnamon-700);
	background: var(--bk-cinnamon-50);
	border: 1px solid var(--bk-cinnamon-100);
	border-radius: var(--bk-radius);
}
.bk-pack-builder__bags-icon { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }

.bk-pack-builder__from {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	min-width: 100px;
}
.bk-pack-builder__from span {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bk-stone-500);
}
.bk-pack-builder__from strong {
	font-family: var(--bk-font-display);
	font-size: 1.45rem;
	font-weight: 500;
	color: var(--bk-cinnamon);
	font-variation-settings: "opsz" 60, "SOFT" 50;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.bk-pack-builder__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bk-pack-row {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	grid-template-rows: auto auto;
	gap: 6px var(--bk-space-3);
	align-items: center;
	padding: var(--bk-space-3);
	background: #fff;
	border: 1.5px solid rgba(31, 26, 20, 0.08);
	border-radius: 14px;
	transition: border-color .18s ease, transform .12s ease, box-shadow .18s ease;
	position: relative;
}
@media (min-width: 600px) {
	.bk-pack-row {
		grid-template-columns: 64px 1fr auto auto;
		grid-template-rows: 1fr;
		padding: var(--bk-space-3) var(--bk-space-4);
	}
}
.bk-pack-row:hover { border-color: rgba(31, 26, 20, 0.18); }
.bk-pack-row.is-active {
	border-color: var(--bk-cinnamon);
	background: linear-gradient(135deg, #fff 0%, var(--bk-cinnamon-50) 100%);
	box-shadow: 0 6px 18px -10px rgba(164, 71, 33, 0.4);
}
.bk-pack-row.is-active .bk-pack-row__kg { color: var(--bk-cinnamon); }
.bk-pack-row.is-out { opacity: 0.55; }
.bk-pack-row.is-out .bk-pack-row__kg { color: var(--bk-stone-500); }

.bk-pack-row__lead {
	grid-row: 1 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
}
@media (min-width: 600px) { .bk-pack-row__lead { grid-row: auto; } }
.bk-pack-row__kg {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: var(--bk-cream-100);
	font-family: var(--bk-font-display);
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--bk-espresso);
	letter-spacing: -0.02em;
	font-variation-settings: "opsz" 60, "SOFT" 30;
	line-height: 1;
}
.bk-pack-row__kg small {
	font-family: var(--bk-font-body);
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--bk-stone-500);
	margin-top: 2px;
}
.bk-pack-row__thumb {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 12px;
	background: var(--bk-cream-100);
	transition: transform .25s ease;
}
@media (min-width: 600px) {
	.bk-pack-row__thumb { width: 64px; height: 64px; }
}
.bk-pack-row:hover .bk-pack-row__thumb { transform: scale(1.04); }
.bk-pack-row.is-active .bk-pack-row__thumb {
	box-shadow: 0 0 0 2px var(--bk-cinnamon);
}
.bk-pack-row__lead picture { display: contents; }

.bk-pack-row__body {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.bk-pack-row__name {
	font-weight: 600;
	font-size: 0.96rem;
	color: var(--bk-espresso);
	letter-spacing: -0.01em;
}
.bk-pack-row__price {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.82rem;
	color: var(--bk-stone-500);
	font-variant-numeric: tabular-nums;
}
.bk-pack-row__price strong {
	color: var(--bk-cinnamon);
	font-weight: 700;
}

.bk-pack-row__qty {
	grid-column: 3;
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1.5px solid rgba(31, 26, 20, 0.18);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	height: 48px;
}
@media (min-width: 600px) {
	.bk-pack-row__qty { grid-column: 3; height: 44px; }
}
.bk-pack-row__qty:focus-within {
	border-color: var(--bk-cinnamon);
	box-shadow: 0 0 0 3px var(--bk-cinnamon-100);
}
.bk-pack-row__btn {
	width: 44px;
	height: 100%;
	border: 0;
	background: transparent;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--bk-espresso);
	cursor: pointer;
	transition: background .12s ease, color .12s ease, transform .08s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
}
@media (min-width: 600px) {
	.bk-pack-row__btn { width: 40px; }
}
.bk-pack-row__btn:hover { background: var(--bk-cinnamon-50); color: var(--bk-cinnamon); }
.bk-pack-row__btn:active { transform: scale(0.94); }
.bk-pack-row__btn:focus-visible {
	outline: 2px solid var(--bk-cinnamon);
	outline-offset: -2px;
}
.bk-pack-row__input {
	width: 48px;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(31, 26, 20, 0.08);
	border-right: 1px solid rgba(31, 26, 20, 0.08);
	background: #fff;
	text-align: center;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	font-size: 1rem;
	color: var(--bk-espresso);
	-moz-appearance: textfield;
	border-radius: 0;
	box-shadow: none;
}
@media (min-width: 600px) {
	.bk-pack-row__input { width: 44px; font-size: 0.96rem; }
}
.bk-pack-row__input:focus { outline: 0; box-shadow: none; }
.bk-pack-row__input::-webkit-outer-spin-button,
.bk-pack-row__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bk-pack-row__qty--out {
	border-style: dashed;
	color: var(--bk-stone-500);
	padding: 0 var(--bk-space-3);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
}

.bk-pack-row__line {
	grid-column: 2 / -1;
	grid-row: 2;
	font-size: 0.78rem;
	color: var(--bk-stone-500);
	font-variant-numeric: tabular-nums;
	text-align: right;
}
@media (min-width: 600px) {
	.bk-pack-row__line {
		grid-column: 4;
		grid-row: 1;
		min-width: 70px;
		text-align: right;
		font-size: 0.86rem;
	}
}
.bk-pack-row.is-active .bk-pack-row__line { color: var(--bk-cinnamon); font-weight: 700; }

.bk-pack-builder__footer {
	display: flex;
	flex-direction: column;
	gap: var(--bk-space-3);
	padding-top: var(--bk-space-4);
	border-top: 1px solid rgba(31, 26, 20, 0.08);
}
.bk-pack-builder__summary {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--bk-space-3) var(--bk-space-4);
	margin: 0;
	align-items: end;
}
.bk-pack-builder__summary > div { margin: 0; min-width: 0; }
.bk-pack-builder__summary dt {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bk-stone-500);
	margin: 0 0 2px;
}
.bk-pack-builder__summary dd {
	margin: 0;
	font-size: 1rem;
	color: var(--bk-espresso);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.bk-pack-builder__summary dd small { color: var(--bk-stone-500); font-weight: 500; font-size: 0.78rem; margin-left: 2px; }
.bk-pack-builder__total dd {
	font-family: var(--bk-font-display);
	font-size: 1.55rem;
	color: var(--bk-cinnamon);
	font-weight: 500;
	letter-spacing: -0.01em;
	font-variation-settings: "opsz" 96, "SOFT" 50;
	text-align: right;
}

.bk-pack-builder__cta {
	position: relative;
	min-height: 56px;
	font-size: 1rem;
	letter-spacing: 0.005em;
	transition: background .18s ease, transform .12s ease, box-shadow .18s ease, opacity .18s ease;
}
.bk-pack-builder__cta:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
	background: var(--bk-stone-400);
	border-color: var(--bk-stone-400);
}
.bk-pack-builder__cta-spinner {
	position: absolute;
	right: 1.4rem;
	width: 18px; height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	display: none;
	animation: bk-spin .9s linear infinite;
}
.bk-pack-builder__cta.is-loading .bk-pack-builder__cta-spinner { display: inline-block; }
.bk-pack-builder__cta.is-loading .bk-pack-builder__cta-label { opacity: 0.7; }

@keyframes bk-spin { to { transform: rotate(360deg); } }

.bk-pack-builder__assist {
	margin: 0;
	font-size: 0.82rem;
	text-align: center;
	color: var(--bk-stone-500);
}
.bk-pack-builder__assist a {
	color: var(--bk-cinnamon);
	font-weight: 600;
}

/* Hide any leftover WC variation form remnants if hooks fire elsewhere. */
.bk-product__summary .variations_form .variations,
.bk-product__summary .variations_form .single_variation_wrap,
.bk-product__summary .variations_form .reset_variations { display: none !important; }

/* =============================================================================
   Cinnamon calculator polish — premium card on the product page.
   ============================================================================= */
.bk-calc { padding-block: var(--bk-space-12); }
@media (min-width: 1024px) { .bk-calc { padding-block: var(--bk-space-20); } }
.bk-calc__card {
	max-width: 880px;
	margin: 0 auto;
	background: linear-gradient(180deg, #fff 0%, var(--bk-cream-50) 100%);
	border: 1px solid rgba(31, 26, 20, 0.08);
	border-radius: 24px;
	padding: var(--bk-space-6) var(--bk-space-5);
	box-shadow: 0 30px 60px -32px rgba(31, 26, 20, 0.18);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
@media (min-width: 768px) {
	.bk-calc__card { padding: var(--bk-space-10) var(--bk-space-8); }
}
.bk-calc__card::before {
	content: "";
	position: absolute;
	inset: -20%;
	background:
		radial-gradient(45% 35% at 80% 0%, rgba(196, 154, 79, 0.18), transparent 70%),
		radial-gradient(50% 40% at 0% 100%, rgba(164, 71, 33, 0.12), transparent 70%);
	z-index: -1;
	pointer-events: none;
}

.bk-calc__form {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--bk-space-4);
	margin-top: var(--bk-space-6);
}
@media (min-width: 720px) {
	.bk-calc__form {
		grid-template-columns: minmax(180px, 1fr) 2fr;
		gap: var(--bk-space-5);
		align-items: end;
	}
}

.bk-calc__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bk-calc__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bk-stone-500);
}
.bk-calc__field input {
	width: 100%;
	height: 56px;
	padding: 0 var(--bk-space-4);
	background: #fff;
	border: 1.5px solid rgba(31, 26, 20, 0.12);
	border-radius: 14px;
	font-family: var(--bk-font-display);
	font-size: 1.6rem;
	font-weight: 500;
	color: var(--bk-espresso);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}
.bk-calc__field input:focus {
	outline: 0;
	border-color: var(--bk-cinnamon);
	box-shadow: 0 0 0 4px var(--bk-cinnamon-100);
}

.bk-calc__intensity {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.bk-calc__intensity legend {
	grid-column: 1 / -1;
	padding: 0;
	margin: 0 0 6px;
}
.bk-calc__chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: var(--bk-space-3) 6px;
	background: #fff;
	border: 1.5px solid rgba(31, 26, 20, 0.1);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease, transform .1s ease;
	font-weight: 600;
	font-size: 0.86rem;
	color: var(--bk-espresso);
	text-align: center;
}
.bk-calc__chip:hover { border-color: var(--bk-cinnamon); transform: translateY(-1px); }
.bk-calc__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bk-calc__chip:has(input:checked),
.bk-calc__chip.is-checked {
	border-color: var(--bk-espresso);
	background: var(--bk-espresso);
	color: var(--bk-cream-50);
}
.bk-calc__chip:has(input:checked) small,
.bk-calc__chip.is-checked small { color: var(--bk-saffron); }
.bk-calc__chip small {
	display: block;
	font-size: 0.7rem;
	color: var(--bk-stone-500);
	font-weight: 500;
	margin-top: 2px;
}

.bk-calc__result {
	margin-top: var(--bk-space-6);
	padding: var(--bk-space-5);
	background: #fff;
	border: 1px solid rgba(31, 26, 20, 0.08);
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	gap: var(--bk-space-3);
}
@media (min-width: 768px) {
	.bk-calc__result { padding: var(--bk-space-6); }
}
.bk-calc__metrics {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--bk-space-3);
	margin: 0;
	padding-bottom: var(--bk-space-4);
	border-bottom: 1px dashed rgba(31, 26, 20, 0.12);
}
@media (min-width: 600px) {
	.bk-calc__metrics { grid-template-columns: repeat(3, 1fr); gap: var(--bk-space-4); }
}
.bk-calc__metrics > div { margin: 0; }
.bk-calc__metrics dt {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bk-stone-500);
	margin: 0 0 4px;
}
.bk-calc__metrics dd {
	margin: 0;
	font-family: var(--bk-font-display);
	font-size: 1.6rem;
	font-weight: 500;
	color: var(--bk-cinnamon);
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
	font-variation-settings: "opsz" 96, "SOFT" 50;
}
.bk-calc__hint {
	margin: 0;
	color: var(--bk-stone-700);
	font-size: 0.92rem;
	min-height: 1.4rem;
}

/* (Toast + fly-to-cart styles live in main.css so they work on every page.) */


/* CRO additions (ecommerce-cro-auditor) */
/* Per-kg unit price beside the main price (kanel weights). */
.bk-product__price-perkg {
	display: inline-block;
	margin-left: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--bk-stone-500);
	white-space: nowrap;
}
