/* TOA Product Combo — single combo (cooking_bundle) page. */

.toa-combo-hero,
.toa-combo-body {
	--toa-combo-crimson: var(--toa-crimson, #4a0d0d);
	--toa-combo-gold: var(--toa-gold, #f4b740);
	--toa-combo-max: 1400px;
}

/* ---- Breadcrumb topbar (above the hero) ---- */
.toa-combo-topbar {
	/* padding-top: calc(var(--toa-header-height, 144px) + 4px); */
	padding-top: 10px;
	background: var(--toa-crimson, #4a0d0d);
}

.toa-combo-topbar .toa-breadcrumb {
	max-width: var(--toa-combo-max, 1400px);
	margin: 0 auto;
	padding: 0 32px 14px;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 13px;
}

/* ---- Hero ---- */
.toa-combo-hero {
	background: var(--toa-combo-crimson, #4a0d0d);
	color: #fff;
	overflow: hidden;
}

.toa-combo-hero__inner {
	max-width: var(--toa-combo-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	gap: 0;
}

.toa-combo-hero__text {
	/* padding: 32px 32px 40px; */
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.toa-combo-hero__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 42px;
	line-height: 1.1;
	font-weight: 700;
	color: #fff;
	margin: 14px 0 10px;
}

.toa-combo-hero__desc {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 16px;
	max-width: 46ch;
}

.toa-combo-hero__save {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--toa-combo-gold, #f4b740);
}

.toa-combo-hero__media {
	position: relative;
	min-height: 240px;
}

.toa-combo-hero__media img {
	width: 100%;
	height: 100%;
	max-height: 320px;
	object-fit: cover;
	display: block;
}

/* Breadcrumb (reuses theme classes; restated for plugin independence). */
.toa-combo-topbar .toa-breadcrumb-link {
	color: var(--toa-combo-gold, #f4b740);
	text-decoration: none;
}

.toa-combo-topbar .toa-breadcrumb-sep {
	color: rgba(255, 255, 255, 0.5);
	margin: 0 6px;
}

.toa-combo-topbar .toa-breadcrumb-current {
	color: rgba(255, 255, 255, 0.7);
}

/* ---- Body ---- */
.toa-combo-body {
	background: #FCF8CF;
	padding: 40px 0 64px;
}

.toa-combo-body__inner {
	max-width: var(--toa-combo-max);
	margin: 0 auto;
	padding: 0 32px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 28px;
	align-items: start;
}

/* Grid items must be allowed to shrink below their content's intrinsic width.
   Without this the default min-width:auto lets the "What's in this bundle"
   carousel (a wide row of fixed-width cards) push the column — and the whole
   page — past the viewport once the grid collapses to one column on tablet. */
.toa-combo-body__main,
.toa-combo-body__buy {
	min-width: 0;
}

.toa-combo-card {
	background: #fff;
	border-radius: 12px;
	padding: 26px 28px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	margin-bottom: 24px;
}

.toa-combo-card__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 26px;
	font-weight: 700;
	color: #4C0005;
	margin: 0 0 18px;
}

.toa-combo-card__lead {
	color: var(--toa-text-muted, #777);
	margin: -8px 0 18px;
}

/* Bundle contents carousel */
.toa-combo-bundle__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	scrollbar-width: thin;
}

.toa-combo-bundle__item {
	flex: 0 0 200px;
	max-width: 200px;
	scroll-snap-align: start;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 14px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.toa-combo-bundle__item:hover {
	border-color: #ddd;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.toa-combo-bundle__img img {
	width: 100%;
	height: 110px;
	object-fit: contain;
	display: block;
	margin-bottom: 10px;
}

.toa-combo-bundle__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--toa-text-dark, #1a1a1a);
	margin-bottom: 8px;
	min-height: 36px;
}

.toa-combo-bundle__save {
	display: inline-block;
	background: #e3f4e3;
	color: #1f7a34;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	margin-bottom: 6px;
}

.toa-combo-bundle__qty {
	display: inline-block;
	background: #f0ede8;
	color: #4C0005;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	margin-bottom: 6px;
	margin-right: 6px;
}

.toa-combo-bundle__price {
	font-size: 16px;
	font-weight: 700;
	color: #1f7a34;
}

.toa-combo-bundle__nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}

.toa-combo-bundle__arrow {
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	color: #444;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.toa-combo-bundle__arrow:hover {
	border-color: var(--toa-combo-crimson, #4a0d0d);
	color: var(--toa-combo-crimson, #4a0d0d);
}

/* Recipe */
.toa-combo-recipe {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.7;
	color: #333;
}

.toa-combo-recipe ol,
.toa-combo-recipe ul {
	padding-left: 20px;
}

.toa-combo-recipe li {
	margin-bottom: 8px;
}

/* Video */
.toa-combo-video {
	border-radius: 8px;
	overflow: hidden;
	background: #000;
	line-height: 0;
}

.toa-combo-video__player {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
}

/* ---- Purchase box ---- */
.toa-combo-body__buy {
	position: sticky;
	top: 24px;
}

.toa-combo-buy {
	background: #fff;
	border-radius: 12px;
	padding: 26px 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.toa-combo-buy__badge {
	display: inline-block;
	background: #e6f0e6;
	color: #1f7a34;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.toa-combo-buy__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--toa-text-dark, #1a1a1a);
	margin: 0 0 14px;
}

.toa-combo-buy__price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.toa-combo-buy__was {
	font-size: 16px;
	color: #999;
	text-decoration: line-through;
}

.toa-combo-buy__now {
	font-size: 30px;
	font-weight: 700;
	color: #1f7a34;
}

.toa-combo-buy__saving {
	background: #e3f4e3;
	color: #1f7a34;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.toa-combo-buy__serves {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #555;
	margin-bottom: 18px;
}

.toa-combo-buy__form {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
}

.toa-combo-buy__add {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.toa-combo-buy__oos {
	color: #b32d2e;
	font-weight: 600;
	margin-bottom: 18px;
}

/* Delivery / returns perks now render via the theme's shared [toa_delivery_info]
   shortcode (.toa-delivery-info in the theme's global woocommerce.css). */

/* "You May Also Like" slider inside the body — align with page content. */
.toa-combo-body .toa-combo-slider {
	margin-top: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.toa-combo-body__inner {
		/* minmax(0, 1fr) — not a bare 1fr — so the single column keeps a zero
		   minimum and can't be blown out past the viewport by the carousel. */
		grid-template-columns: minmax(0, 1fr);
	}

	/* When stacked (tablet + mobile), lead with the purchase box so the price
	   and "Add combo to cart" sit above the item list / bundle contents.
	   Applies to both the cooking-bundle and the editable offer layouts. */
	.toa-combo-body__buy {
		position: static;
		order: -1;
	}
}

@media (max-width: 768px) {
	.toa-combo-hero__inner {
		grid-template-columns: 1fr;
	}

	.toa-combo-hero__media {
		min-height: 200px;
		order: -1;
	}

	.toa-combo-hero__title {
		font-size: 32px;
	}

	.toa-combo-body__inner {
		padding: 0 16px;
	}

	.toa-combo-topbar .toa-breadcrumb {
		padding-left: 16px;
		padding-right: 16px;
	}

	.toa-combo-body .toa-combo-slider {
		padding-left: 16px;
		padding-right: 16px;
	}

	.toa-combo-hero__text {
		padding: 16px;
	}
}
