/**
 * Body Bella products.
 *
 * Colours and type follow the live Breakdance palette, same fallbacks as the recipe library.
 * Scoped under .bb-products / .bb-submit so this file cannot restyle recipe cards.
 */

.bb-products,
.bb-submit {
	--bb-blush: var(--bde-palette-color-1-8e96d4a2-842a-4b35-9848-3fb76c269a57, #FBF1EC);
	--bb-card: var(--bde-palette-color-1-0f648f7b-572f-4a0f-b12f-305a296a336f, #FFF);
	--bb-rose: var(--bde-palette-color-1-67f91f41-28ef-4519-8946-01d088ded877, #C9396A);
	--bb-rose-deep: var(--bde-palette-color-1-7b9f1401-ceb1-492d-8e0f-10f714eab88f, #A82A53);
	--bb-ink: var(--bde-palette-color-1-a91ffc62-02ca-4189-a046-a15cd61386c7, #2E2A28);
	--bb-body: var(--bde-palette-color-1-8f7a6cb1-b767-4fca-a163-a20c9f40361a, #5C544F);
	--bb-muted: var(--bde-palette-color-1-930592a9-b74b-46d5-abf7-9ac2d9c7e889, #8A817B);
	--bb-hairline: var(--bde-palette-color-1-2fb742d4-2ff8-4762-a36e-d0301cc142a9, rgba(46, 42, 40, 0.10));
	--bb-serif: var(--bde-heading-font-family, "Playfair Display", Georgia, serif);
	--bb-sans: var(--bde-body-font-family, "Mulish", system-ui, sans-serif);

	font-family: var(--bb-sans);
	color: var(--bb-body);
	line-height: 1.65;
}

.bb-products__lede {
	margin: 0 0 1.5rem;
	max-width: 40rem;
	font-size: 1.05rem;
	color: var(--bb-body);
}

.bb-products .bb-index__search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.75rem;
}

.bb-products .bb-index__search input[type="search"] {
	flex: 1 1 18rem;
	min-width: 0;
	padding: 0.85rem 1.1rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--bb-ink);
	background: var(--bb-card);
	border: 1px solid var(--bb-hairline);
	border-radius: 999px;
}

.bb-products .bb-index__search input[type="search"]:focus {
	outline: 2px solid var(--bb-rose);
	outline-offset: 1px;
}

.bb-products .bb-index__search button {
	padding: 0.85rem 1.6rem;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #fff;
	background: var(--bb-rose);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.bb-products .bb-index__search button:hover {
	background: var(--bb-rose-deep);
}

.bb-products .bb-index__clear {
	font-size: 0.875rem;
	color: var(--bb-muted);
	text-decoration: none;
}

.bb-products .bb-index__clear:hover {
	color: var(--bb-rose);
}

.bb-products .bb-index__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
}

.bb-products .bb-index__cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--bb-hairline);
	border-radius: 999px;
	background: var(--bb-card);
	color: var(--bb-body);
	font-family: var(--bb-sans);
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
}

.bb-products .bb-index__cat:hover,
.bb-products .bb-index__cat:focus {
	border-color: var(--bb-rose);
	background: var(--bb-blush);
	color: var(--bb-ink);
}

.bb-products .bb-index__cat.is-current {
	border-color: var(--bb-rose);
	background: var(--bb-rose);
	color: #fff;
}

.bb-products .bb-index__cat-n {
	font-size: 12px;
	opacity: 0.6;
}

.bb-products .bb-index__cat.is-current .bb-index__cat-n {
	opacity: 0.85;
}

.bb-products .bb-index__count {
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bb-muted);
	margin: 0 0 1.5rem;
}

.bb-products .bb-index__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.bb-products .bb-index__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--bb-card);
	border: 1px solid var(--bb-hairline);
	border-radius: 16px;
	overflow: hidden;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bb-products .bb-index__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(46, 42, 40, 0.10);
}

@media (prefers-reduced-motion: reduce) {
	.bb-products .bb-index__card {
		transition: none;
	}

	.bb-products .bb-index__card:hover {
		transform: none;
	}
}

.bb-products .bb-index__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #e4dfda;
	overflow: hidden;
}

.bb-products .bb-index__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.bb-products .bb-index__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.25rem 1.35rem 1.5rem;
	flex: 1;
}

.bb-products .bb-index__title {
	font-family: var(--bb-serif);
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--bb-ink);
	margin: 0;
}

.bb-products .bb-index__tagline {
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--bb-body);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bb-products .bb-index__out {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	padding: 0.7rem 1.2rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--bb-rose);
	border-radius: 999px;
	text-decoration: none;
}

.bb-products .bb-index__out:hover {
	background: var(--bb-rose-deep);
	color: #fff;
}

.bb-products .bb-index__empty {
	padding: 2.5rem 0;
	font-size: 1.05rem;
}

.bb-products .bb-index__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1.5rem;
}

.bb-products .bb-index__page {
	min-width: 2.5rem;
	padding: 0.55rem 0.75rem;
	text-align: center;
	text-decoration: none;
	font-size: 0.9rem;
	color: var(--bb-body);
	background: var(--bb-card);
	border: 1px solid var(--bb-hairline);
	border-radius: 8px;
}

.bb-products .bb-index__page.is-current {
	color: #fff;
	background: var(--bb-rose);
	border-color: var(--bb-rose);
}

/* ---------------------------------------------------------------- Rimsha's screen */

.bb-submit__heading {
	font-family: var(--bb-serif);
	font-weight: 500;
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	color: var(--bb-ink);
	margin: 0 0 0.5rem;
}

.bb-submit__heading--list {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--bb-hairline);
}

.bb-submit__lede {
	margin: 0 0 1.5rem;
	max-width: 44em;
}

.bb-submit__label {
	display: block;
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bb-muted);
	margin: 0 0 0.4rem;
}

.bb-submit__hint {
	margin: -0.4rem 0 1rem;
	font-size: 0.85rem;
	color: var(--bb-muted);
}

.bb-submit input[type="text"],
.bb-submit input[type="url"],
.bb-submit input[type="password"],
.bb-submit textarea {
	display: block;
	width: 100%;
	max-width: 36rem;
	padding: 0.9rem 1.1rem;
	font-family: var(--bb-sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--bb-ink);
	background: var(--bb-card);
	border: 1px solid var(--bb-hairline);
	border-radius: 12px;
	margin-bottom: 1rem;
}

.bb-submit__signin-form input[type="password"] {
	max-width: 22rem;
}

.bb-submit input:focus,
.bb-submit textarea:focus {
	outline: 2px solid var(--bb-rose);
	outline-offset: 1px;
}

.bb-submit input[type="file"] {
	display: block;
	margin-bottom: 0.4rem;
}

.bb-submit__button {
	display: inline-block;
	padding: 0.9rem 1.9rem;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: var(--bb-rose);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.bb-submit__button:hover {
	background: var(--bb-rose-deep);
}

.bb-submit__link {
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--bb-rose);
	text-decoration: underline;
	cursor: pointer;
}

.bb-submit__link--danger {
	color: var(--bb-muted);
}

.bb-submit__notice {
	padding: 0.9rem 1.2rem;
	border-radius: 10px;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

.bb-submit__notice--ok {
	background: var(--bb-blush);
	color: var(--bb-ink);
}

.bb-submit__notice--warn {
	background: #FDF3E3;
	color: #7A5A16;
}

.bb-submit__review {
	margin: 0 0 1.5rem;
}

.bb-submit__review div {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: 0.5rem 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--bb-hairline);
}

.bb-submit__review dt {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bb-muted);
}

.bb-submit__review dd {
	margin: 0;
	color: var(--bb-ink);
}

.bb-submit__confirm {
	margin-bottom: 1rem;
}

.bb-submit__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-submit__item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--bb-hairline);
}

.bb-submit__item-thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
}

.bb-submit__item-name {
	font-family: var(--bb-serif);
	font-size: 1.05rem;
	color: var(--bb-ink);
}

.bb-submit__flag {
	display: block;
	font-family: var(--bb-sans);
	font-size: 0.8rem;
	font-style: normal;
	color: var(--bb-muted);
}

.bb-submit__item-actions {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	font-size: 0.9rem;
}

.bb-submit__inline {
	display: inline;
	margin: 0;
}

.bb-submit__signout {
	margin-top: 2.5rem;
}

.bb-submit__photo-preview {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 0.5rem;
}
