/**
 * Product detail page — refs 03 (desktop density) / 04 (mobile + sticky CTA).
 */

/* Breadcrumbs are shared — styles live in sections.css. */

.nbf-product__head {
	margin-block-end: var(--nbf-space-5);
}

.nbf-product__title {
	margin-block-end: var(--nbf-space-2);
}

.nbf-product__meta-row {
	display: flex;
	align-items: center;
	gap: var(--nbf-space-1);
	color: var(--nbf-color-text-2);
	font-size: var(--nbf-fs-sm);
	margin-block-end: var(--nbf-space-2);
}

.nbf-product__meta-row .nbf-icon {
	color: var(--nbf-color-primary-600);
}

.nbf-product__lead {
	color: var(--nbf-color-text-2);
	/* max-inline-size: 60rem; */
	margin: 0;
}

/* ------------------------------------------------------------------
 * Main layout
 *
 * Approved desktop (issue-06-product-desktop): the gallery sits on the
 * PHYSICAL LEFT with the details panel on the physical right. In this RTL
 * document the first grid column is the physical right, so the details
 * area is column 1 and the media column 2.
 *
 * Named areas also let mobile reorder the same markup into the approved
 * mobile sequence without duplicating any of it.
 * ---------------------------------------------------------------- */
.nbf-product__layout {
	display: grid;
	grid-template-columns: 1fr 1.45fr;
	grid-template-areas:
		"head   head"
		"info   media"
		"info   thumbs";
	grid-template-rows: auto auto 1fr;
	gap: var(--nbf-space-4) var(--nbf-space-6);
	align-items: start;
	margin-block-end: var(--nbf-space-8);
}

.nbf-product__head {
	grid-area: head;
}

.nbf-product__gallery {
	grid-area: media;
}

.nbf-product__thumbs {
	grid-area: thumbs;
}

.nbf-product__aside {
	grid-area: info;
}

/* Price/status line belongs to the approved MOBILE order; on desktop the
 * booking panel carries the price. */
.nbf-product__price-summary {
	display: none;
}

/* Grid children must be shrinkable (scrollers live inside). */
.nbf-product__layout > *,
.nbf-product__aside > *,
.nbf-booking-box__grid > * {
	min-inline-size: 0;
}

.nbf-product__main-media {
	margin: 0;
	border-radius: var(--nbf-radius-xl);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--nbf-color-surface-sunken);
}

.nbf-product__main-img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nbf-product__thumbs {
	margin-block-start: var(--nbf-space-3);
	gap: var(--nbf-space-2);
}

.nbf-product__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--nbf-radius-md);
	overflow: hidden;
	background: var(--nbf-color-surface-sunken);
	cursor: pointer;
	inline-size: 5.5rem;
	block-size: 4rem;
	flex-shrink: 0;
}

.nbf-product__thumb img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.nbf-product__thumb.is-active {
	border-color: var(--nbf-color-primary-600);
}

.nbf-product__thumb:focus-visible {
	outline: 2px solid var(--nbf-color-focus-ring);
	outline-offset: 2px;
}

/* Aside: variants, facts, booking */
.nbf-product__aside {
	display: grid;
	gap: var(--nbf-space-4);
}

.nbf-product__aside-title {
	font-size: var(--nbf-fs-md);
	font-weight: var(--nbf-fw-bold);
	margin-block-end: var(--nbf-space-2);
}

.nbf-product__variants {
	border: 0;
	padding: 0;
	margin: 0;
}

.nbf-product__variant-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--nbf-space-2);
}

.nbf-product__variant-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--nbf-space-1);
	padding: var(--nbf-space-3);
	border: 1.5px solid var(--nbf-color-border);
	border-radius: var(--nbf-radius-md);
	background: var(--nbf-color-surface);
	font-size: var(--nbf-fs-sm);
	font-weight: var(--nbf-fw-medium);
	cursor: pointer;
	text-align: center;
	color: var(--nbf-color-text-2);
	transition: border-color var(--nbf-duration) var(--nbf-ease), color var(--nbf-duration) var(--nbf-ease);
}

.nbf-product__variant-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nbf-product__variant-card:has(input:checked) {
	border-color: var(--nbf-color-primary-600);
	color: var(--nbf-color-primary-700);
	background: var(--nbf-color-primary-50);
}

.nbf-product__variant-card:has(input:focus-visible) {
	outline: 2px solid var(--nbf-color-focus-ring);
	outline-offset: 2px;
}

.nbf-product__variant-info {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--nbf-space-3);
	align-items: start;
}

.nbf-product__variant-media {
	margin: 0;
	inline-size: 7.5rem;
	border-radius: var(--nbf-radius-md);
	overflow: hidden;
	background: var(--nbf-color-surface-sunken);
}

.nbf-product__variant-media img {
	inline-size: 100%;
	block-size: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

/* Facility chips: a 2-up grid, as the approved variation panel shows. */
.nbf-product__variant-features {
	list-style: none;
	margin: var(--nbf-space-3) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--nbf-space-2) var(--nbf-space-3);
	font-size: var(--nbf-fs-xs);
	color: var(--nbf-color-text-2);
}

.nbf-product__variant-features li {
	display: inline-flex;
	align-items: center;
	gap: var(--nbf-space-1);
	min-inline-size: 0;
}

.nbf-product__variant-features .nbf-icon {
	color: var(--nbf-color-primary-600);
	flex-shrink: 0;
}

.nbf-product__variant-info {
	padding: var(--nbf-space-4);
}

/* Facts: boxed cards, two per row (approved right-panel grid). */
.nbf-product__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--nbf-space-3);
	margin: 0;
}

.nbf-product__fact-schedule {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.125rem;
}

.nbf-product__fact {
	background: var(--nbf-color-surface);
	border: 1px solid var(--nbf-color-border);
	border-radius: var(--nbf-radius-md);
	padding: var(--nbf-space-3);
}

.nbf-product__fact dt {
	display: flex;
	align-items: center;
	gap: var(--nbf-space-1);
	font-size: var(--nbf-fs-xs);
	color: var(--nbf-color-text-3);
	margin-block-end: var(--nbf-space-1);
}

.nbf-product__fact dt .nbf-icon {
	color: var(--nbf-color-primary-600);
}

.nbf-product__fact dd {
	margin: 0;
	font-size: var(--nbf-fs-sm);
	font-weight: var(--nbf-fw-bold);
}

/* ------------------------------------------------------------------
 * Booking box
 * ---------------------------------------------------------------- */
.nbf-booking-box {
	padding: var(--nbf-space-5);
	    padding-bottom: 15px;
}

/* Three compact controls in one row, per the approved booking panel. */
.nbf-booking-box__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--nbf-space-4);
	align-items: start;
}

.nbf-booking-box__persons {
	border: 0;
	margin: 0;
	padding: 0;
}

.nbf-booking-box__persons legend {
	padding: 0;
}

.nbf-booking-box__person-rows {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--nbf-space-2);
}

.nbf-booking-box__person {
	display: grid;
	gap: var(--nbf-space-1);
	min-inline-size: 0;
}

.nbf-booking-box__person-label {
	font-size: var(--nbf-fs-2xs);
	color: var(--nbf-color-text-2);
}

.nbf-booking-box__person-label .nbf-field__hint {
	display: block;
	font-size: inherit;
	display: none;
}

/* Full-width purchase panel below the gallery/details area: price, the
 * three booking controls, then the two actions — one row on desktop. */
.nbf-booking-box__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"controls price"
		"actions  price";
	align-items: start;
	gap: var(--nbf-space-4) var(--nbf-space-6);
}

.nbf-booking-box__grid {
	grid-area: controls;
}

/* Price sits at the physical left of the panel, opposite the controls,
 * with the trust bullets stacked beneath it (approved layout). */
.nbf-booking-box__price {
	grid-area: price;
	min-inline-size: 13rem;
	text-align: end;
}

.nbf-booking-box__sale {
	margin-block-end: var(--nbf-space-2);
}

.nbf-booking-box__price .nbf-price {
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nbf-booking-box__trust {
	list-style: none;
	margin: var(--nbf-space-4) 0 0;
	padding: var(--nbf-space-3) 0 0;
	border-block-start: 1px dashed var(--nbf-color-border);
	display: grid;
	gap: var(--nbf-space-2);
	font-size: var(--nbf-fs-xs);
	color: var(--nbf-color-text-2);
	text-align: start;
}

.nbf-booking-box__trust li {
	display: flex;
	align-items: center;
	gap: var(--nbf-space-2);
}

.nbf-booking-box__trust .nbf-icon {
	color: var(--nbf-color-primary-600);
	flex-shrink: 0;
}

.nbf-booking-box__actions {
	grid-area: actions;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: var(--nbf-space-3);
}

.nbf-booking-box__availability:empty {
	display: none;
}

.nbf-booking-box__assurance {
	display: flex;
	align-items: center;
	gap: var(--nbf-space-2);
	margin: 0;
	margin-top: 5px;
	color: var(--nbf-color-success);
	font-size: var(--nbf-fs-xs);
}

/* ------------------------------------------------------------------
 * Jalali date picker (booking-widget.js swaps the native date input for
 * this once availability arrives). The trigger mirrors the .nbf-select
 * control; the popover is a Saturday-first calendar of server-labelled
 * Jalali days.
 * ---------------------------------------------------------------- */
.nbf-datepicker {
	position: relative;
}

.nbf-datepicker__trigger {
	display: flex;
	align-items: center;
	gap: var(--nbf-space-2);
	inline-size: 100%;
	min-block-size: var(--nbf-control-h);
	padding-block: var(--nbf-space-2);
	padding-inline: var(--nbf-space-3);
	border: 1px solid var(--nbf-color-border-strong);
	border-radius: var(--nbf-radius-md);
	background: var(--nbf-color-surface);
	color: var(--nbf-color-text);
	font: inherit;
	font-size: var(--nbf-fs-sm);
	line-height: var(--nbf-lh-tight);
	text-align: start;
	cursor: pointer;
	transition:
		border-color var(--nbf-duration) var(--nbf-ease),
		box-shadow var(--nbf-duration) var(--nbf-ease);
}

.nbf-datepicker__trigger:hover {
	border-color: var(--nbf-color-primary-300);
}

.nbf-datepicker__trigger:focus-visible,
.nbf-datepicker__trigger[aria-expanded="true"] {
	outline: none;
	border-color: var(--nbf-color-primary-500);
	box-shadow: 0 0 0 3px var(--nbf-color-primary-100);
}

.nbf-datepicker__cal {
	flex-shrink: 0;
	color: var(--nbf-color-primary-600);
}

.nbf-datepicker__value {
	flex: 1 1 auto;
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nbf-datepicker__chevron {
	flex-shrink: 0;
	color: var(--nbf-color-text-3);
	transition: transform var(--nbf-duration) var(--nbf-ease);
}

.nbf-datepicker__trigger[aria-expanded="true"] .nbf-datepicker__chevron {
	transform: rotate(180deg);
}

.nbf-datepicker__pop {
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: calc(100% + var(--nbf-space-2));
	z-index: var(--nbf-z-dropdown);
	inline-size: max(100%, min(19rem, calc(100vw - 4rem)));
	padding: var(--nbf-space-4);
	background: var(--nbf-color-surface);
	border: 1px solid var(--nbf-color-border);
	border-radius: var(--nbf-radius-lg);
	box-shadow: var(--nbf-shadow-lg);
}

.nbf-datepicker__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nbf-space-2);
	margin-block-end: var(--nbf-space-3);
}

.nbf-datepicker__month {
	font-size: var(--nbf-fs-sm);
	font-weight: var(--nbf-fw-black);
	color: var(--nbf-color-text);
}

.nbf-datepicker__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	border: 0;
	border-radius: var(--nbf-radius-full);
	background: var(--nbf-color-primary-50);
	color: var(--nbf-color-primary-700);
	cursor: pointer;
	transition: background-color var(--nbf-duration) var(--nbf-ease);
}

.nbf-datepicker__nav:hover:not(:disabled) {
	background: var(--nbf-color-primary-100);
}

.nbf-datepicker__nav:focus-visible {
	outline: 2px solid var(--nbf-color-focus-ring);
	outline-offset: 2px;
}

.nbf-datepicker__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.nbf-datepicker__weekdays,
.nbf-datepicker__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
}

.nbf-datepicker__weekdays {
	margin-block-end: var(--nbf-space-1);
	font-size: var(--nbf-fs-2xs);
	font-weight: var(--nbf-fw-bold);
	color: var(--nbf-color-text-3);
	text-align: center;
}

.nbf-datepicker__day {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	min-inline-size: 0;
	border: 0;
	border-radius: var(--nbf-radius-sm);
	background: none;
	color: var(--nbf-color-text);
	font: inherit;
	font-size: var(--nbf-fs-sm);
	cursor: pointer;
	transition:
		background-color var(--nbf-duration-fast) var(--nbf-ease),
		color var(--nbf-duration-fast) var(--nbf-ease);
}

.nbf-datepicker__day:hover:not(:disabled, .is-selected) {
	background: var(--nbf-color-primary-50);
	color: var(--nbf-color-primary-700);
}

.nbf-datepicker__day:focus-visible {
	outline: 2px solid var(--nbf-color-focus-ring);
	outline-offset: 1px;
}

.nbf-datepicker__day:disabled,
.nbf-datepicker__day.is-muted {
	color: var(--nbf-color-text-3);
	opacity: 0.45;
	cursor: default;
}

.nbf-datepicker__day.is-today {
	box-shadow: inset 0 0 0 1px var(--nbf-color-primary-400);
}

.nbf-datepicker__day.is-selected {
	background: var(--nbf-color-primary-600);
	color: var(--nbf-color-text-inverse);
	font-weight: var(--nbf-fw-bold);
}

@media (prefers-reduced-motion: reduce) {
	.nbf-datepicker__trigger,
	.nbf-datepicker__chevron,
	.nbf-datepicker__nav,
	.nbf-datepicker__day {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * Gallery chrome: zoom trigger, position counter, main-image arrows
 * ---------------------------------------------------------------- */
.nbf-product__main-media {
	position: relative;
}

/* The image itself is the zoom trigger. */
.nbf-product__main-frame {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	appearance: none;
}

.nbf-product__main-frame:focus-visible {
	outline: 2px solid var(--nbf-color-focus-ring);
	outline-offset: -2px;
}

.nbf-product__zoom-hint {
	position: absolute;
	inset-block-end: var(--nbf-space-3);
	inset-inline-start: var(--nbf-space-3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	border-radius: var(--nbf-radius-full);
	background: rgb(255 255 255 / 0.9);
	color: var(--nbf-color-text-2);
	box-shadow: var(--nbf-shadow-sm);
}

/* Discount badge over the gallery, same corner as the activity cards. */
.nbf-product__sale-badge {
	position: absolute;
	inset-block-start: var(--nbf-space-3);
	inset-inline-start: var(--nbf-space-3);
	z-index: 2;
}

/* "۱ / ۲۰" over the image — physical left per the approved design. */
.nbf-product__gallery-counter {
	position: absolute;
	inset-block-start: var(--nbf-space-3);
	inset-inline-end: var(--nbf-space-3);
	z-index: 2;
	padding: 0.25rem var(--nbf-space-3);
	border-radius: var(--nbf-radius-full);
	background: rgb(10 26 43 / 0.55);
	color: #fff;
	font-size: var(--nbf-fs-xs);
	font-variant-numeric: tabular-nums;
}

.nbf-product__gallery-nav {
	position: absolute;
	inset-block-start: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgb(255 255 255 / 0.92);
	border: 1px solid var(--nbf-color-border);
	box-shadow: var(--nbf-shadow-md);
}

.nbf-product__gallery-nav--prev {
	inset-inline-start: var(--nbf-space-3);
}

.nbf-product__gallery-nav--next {
	inset-inline-end: var(--nbf-space-3);
}

/* ------------------------------------------------------------------
 * Description tab (approved): why-choose panel, prose, media card
 * ---------------------------------------------------------------- */
.nbf-product__desc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);
	gap: var(--nbf-space-5);
	align-items: start;
}

.nbf-product__why {
	padding: var(--nbf-space-4);
}

.nbf-product__why-title {
	font-size: var(--nbf-fs-md);
	margin: 0 0 var(--nbf-space-3);
}

.nbf-product__desc-media {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	background: none;
	border-radius: var(--nbf-radius-lg);
	overflow: hidden;
	cursor: zoom-in;
	appearance: none;
}

.nbf-product__desc-media img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.nbf-product__desc-media:focus-visible {
	outline: 2px solid var(--nbf-color-focus-ring);
	outline-offset: -2px;
}

@media (max-width: 1023px) {
	.nbf-product__desc-grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------
 * Info sections + similar
 * ---------------------------------------------------------------- */
.nbf-product__sections {
	display: grid;
	gap: var(--nbf-space-4);
	margin-block-end: var(--nbf-section-gap);
}

.nbf-product__section-title {
	font-size: var(--nbf-fs-lg);
	margin-block-end: var(--nbf-space-3);
}

.nbf-product__feature-list,
.nbf-product__rule-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--nbf-space-2);
	font-size: var(--nbf-fs-sm);
}

.nbf-product__feature-list li {
	display: flex;
	align-items: center;
	gap: var(--nbf-space-2);
}

.nbf-product__feature-list .nbf-icon {
	color: var(--nbf-color-success);
	flex-shrink: 0;
}

.nbf-product__rule-list li {
	padding-inline-start: var(--nbf-space-4);
	position: relative;
}

.nbf-product__rule-list li::before {
	content: "•";
	position: absolute;
	inset-inline-start: 0;
	color: var(--nbf-color-primary-600);
}

/* ------------------------------------------------------------------
 * Sticky CTA (mobile)
 * ---------------------------------------------------------------- */
.nbf-sticky-cta {
	display: none;
}

@media (max-width: 1023px) {
	.nbf-sticky-cta {
		position: fixed;
		inset-inline: 0;
		/* Sits ABOVE the global bottom nav: nav height + safe area. */
		inset-block-end: calc(3.5rem + env(safe-area-inset-bottom, 0px));
		z-index: var(--nbf-z-sticky);
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--nbf-space-3);
		padding: var(--nbf-space-3) var(--nbf-space-4);
		background: var(--nbf-color-surface);
		border-block-start: 1px solid var(--nbf-color-border);
		box-shadow: 0 -4px 16px rgb(16 44 84 / 0.08);
	}

	.nbf-sticky-cta__price,
	.nbf-sticky-cta__btn {
		min-inline-size: 0;
	}

	.nbf-sticky-cta__btn {
		flex: 1 1 auto;
		min-block-size: var(--nbf-control-h);
		padding-inline: var(--nbf-space-4);
		font-size: var(--nbf-fs-md);
	}

	.nbf-sticky-cta__price {
		flex-shrink: 0;
	}

	.nbf-sticky-cta__hint {
		display: block;
		font-size: var(--nbf-fs-2xs);
		color: var(--nbf-color-text-3);
	}

	/* Content must not hide behind bottom nav + sticky CTA. */
	body.single-product {
		padding-block-end: calc(8.25rem + env(safe-area-inset-bottom, 0px));
	}

	/* Approved mobile order (issue-14-product-mobile):
	 * gallery, title + location + price summary, variation cards and
	 * summary, then the gallery thumbnails — the booking card, accordions,
	 * related carousel and sticky bar follow outside this grid. */
	.nbf-product__layout {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"head"
			"info"
			"thumbs";
		grid-template-rows: none;
		gap: var(--nbf-space-4);
	}

	.nbf-product__price-summary {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: var(--nbf-space-2) var(--nbf-space-3);
		margin-block: var(--nbf-space-3) 0;
	}

	.nbf-product__price-status {
		display: inline-flex;
		align-items: center;
		gap: var(--nbf-space-1);
		font-size: var(--nbf-fs-xs);
		color: var(--nbf-color-success);
	}

	.nbf-product__price-status .nbf-icon {
		flex-shrink: 0;
	}

	/* Booking controls stack into one readable card, full available width. */
	.nbf-booking-box__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"price"
			"controls"
			"actions";
		gap: var(--nbf-space-4);
	}

	.nbf-booking-box__price {
		text-align: start;
		min-inline-size: 0;
	}

	.nbf-booking-box__grid {
		grid-template-columns: 1fr;
	}

	.nbf-booking-box__actions {
		grid-template-columns: 1fr;
	}

	.nbf-product__variant-info {
		grid-template-columns: 1fr;
	}

	.nbf-product__variant-media {
		inline-size: 100%;
	}
}


/* ------------------------------------------------------------------
 * Reassurance / service strip under the purchase panel
 * ---------------------------------------------------------------- */
.nbf-product__reassurance {
	list-style: none;
	margin: var(--nbf-space-4) 0 var(--nbf-section-gap);
	padding: var(--nbf-space-4);
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--nbf-space-3);
	background: var(--nbf-color-surface-tint);
	border-radius: var(--nbf-radius-lg);
	font-size: var(--nbf-fs-sm);
	color: var(--nbf-color-text-2);
}

@media (min-width: 481px) {
	.nbf-product__reassurance {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.nbf-product__reassurance {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.nbf-product__reassurance li {
	display: flex;
	align-items: center;
	gap: var(--nbf-space-2);
	min-inline-size: 0;
}

.nbf-product__reassurance .nbf-icon {
	color: var(--nbf-color-primary-600);
	flex-shrink: 0;
}

/* ------------------------------------------------------------------
 * Information tabs (desktop) — built by product-tabs.js over the same
 * <details> panels the mobile accordion uses.
 * ---------------------------------------------------------------- */
.nbf-product__tablist {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nbf-space-1);
	border-block-end: 1px solid var(--nbf-color-border);
	margin-block-end: var(--nbf-space-4);
}

.nbf-product__tab {
	appearance: none;
	background: none;
	border: 0;
	border-block-end: 2px solid transparent;
	margin-block-end: -1px;
	padding: var(--nbf-space-3) var(--nbf-space-4);
	font: inherit;
	font-weight: var(--nbf-fw-medium);
	color: var(--nbf-color-text-2);
	cursor: pointer;
}

.nbf-product__tab:hover {
	color: var(--nbf-color-primary-700);
}

.nbf-product__tab.is-active {
	color: var(--nbf-color-primary-700);
	border-block-end-color: var(--nbf-color-primary-600);
	font-weight: var(--nbf-fw-bold);
}

.nbf-product__tab:focus-visible {
	outline: 2px solid var(--nbf-color-focus-ring);
	outline-offset: -2px;
	border-radius: var(--nbf-radius-sm);
}

/* In tab mode the panel is a plain container: its own summary would be a
 * second, redundant control for the same content. */
.nbf-product__sections--tabs .nbf-product__section {
	border: 0;
	background: none;
	padding: 0;
}

.nbf-product__sections--tabs .nbf-product__section > .nbf-accordion__summary {
	display: none;
}

/* ------------------------------------------------------------------
 * Add-to-cart toast
 * ---------------------------------------------------------------- */
.nbf-toast {
	position: fixed;
	inset-inline: 0;
	/* Above the mobile bottom navigation and the sticky purchase bar. */
	inset-block-end: calc(9rem + env(safe-area-inset-bottom, 0px));
	z-index: var(--nbf-z-toast, 90);
	margin-inline: auto;
	inline-size: min(32rem, calc(100vw - 2rem));
	display: flex;
	align-items: center;
	gap: var(--nbf-space-3);
	padding: var(--nbf-space-3) var(--nbf-space-4);
	background: var(--nbf-color-surface);
	border: 1px solid var(--nbf-color-border);
	border-radius: var(--nbf-radius-lg);
	box-shadow: var(--nbf-shadow-lg);
	opacity: 0;
	transform: translateY(var(--nbf-space-4));
	transition:
		opacity var(--nbf-duration) var(--nbf-ease),
		transform var(--nbf-duration) var(--nbf-ease);
}

.nbf-toast.is-visible {
	opacity: 1;
	transform: none;
}

.nbf-toast__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	flex-shrink: 0;
	border-radius: var(--nbf-radius-full);
	background: var(--nbf-color-success-soft, #e6f6ee);
	color: var(--nbf-color-success);
}

.nbf-toast__body {
	display: grid;
	gap: 0.125rem;
	min-inline-size: 0;
	flex: 1 1 auto;
}

.nbf-toast__title {
	font-size: var(--nbf-fs-sm);
}

.nbf-toast__product {
	font-size: var(--nbf-fs-xs);
	color: var(--nbf-color-text-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nbf-toast__cta {
	flex-shrink: 0;
}

.nbf-toast__close {
	flex-shrink: 0;
	color: var(--nbf-color-text-3);
}

@media (min-width: 1024px) {
	.nbf-toast {
		inset-block-end: var(--nbf-space-6);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nbf-toast {
		transition: none;
		transform: none;
	}
}
