/*
 * Forces Marketplace — Customer Shopfront Styles
 * Used on all public-facing marketplace pages.
 */

/* =====================================================================
   Shared layout
   ===================================================================== */

.fm-shop,
.fm-brands,
.fm-brand,
.fm-categories,
.fm-category {
	max-width: var(--fb-container, 1180px);
	margin: 0 auto;
	padding: 2rem 1rem;
	font-family: var(--fb-font-body, inherit);
	color: var(--fb-ink, #12141b);
}

.fm-shop__heading,
.fm-brands__heading,
.fm-brand__heading,
.fm-categories__heading,
.fm-category__heading {
	font-family: var(--fb-font-heading, inherit);
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--fb-ink, #12141b);
}

.fm-shop__intro,
.fm-brands__intro,
.fm-brand__intro {
	color: var(--fb-ink-soft, #3b424f);
	margin: 0 0 1.5rem;
	font-size: 1rem;
	line-height: 1.6;
}

/* =====================================================================
   Product grid
   ===================================================================== */

.fm-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

/* =====================================================================
   Product card (reusable)
   ===================================================================== */

.fm-product-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: var(--fb-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	position: relative;
	box-shadow: var(--fb-shadow-sm);
}

.fm-product-card:hover {
	box-shadow: var(--fb-shadow-md);
	transform: translateY(-2px);
	border-color: var(--fb-border-strong);
}

.fm-product-card__image-wrap {
	aspect-ratio: 4 / 3;
	background: var(--fb-sand);
	overflow: hidden;
	position: relative;
}

.fm-product-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fm-product-card__image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fb-green-soft);
	font-size: 2.5rem;
}

.fm-product-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.fm-product-card__name {
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	line-height: 1.35;
	color: var(--fb-ink);
}

.fm-product-card__brand {
	font-size: 0.8125rem;
	color: var(--fb-green-soft);
	margin: 0 0 0.5rem;
}

.fm-product-card__price {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--fb-ink-soft);
	margin: 0 0 0.5rem;
}

.fm-product-card__category {
	font-size: 0.75rem;
	background: var(--fb-khaki);
	color: var(--fb-green);
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.fm-product-card__stock {
	font-size: 0.8rem;
	margin: 0 0 0.75rem;
}

.fm-product-card__stock--in {
	color: var(--fb-success);
}

.fm-product-card__stock--out {
	color: var(--fb-danger);
}

.fm-product-card__cta {
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid var(--fb-sand);
}

.fm-product-card__view-btn {
	display: block;
	width: 100%;
	padding: 0.65rem 1rem;
	background: var(--fb-green);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.18s ease;
}

.fm-product-card[data-href] {
	cursor: pointer;
}

.fm-product-card__view-btn:hover,
.fm-product-card__view-btn:focus {
	background: var(--fb-green-dark);
	color: #fff;
	text-decoration: none;
}

/* =====================================================================
   Shop filter bar
   ===================================================================== */

/* Collapsed by default at EVERY width — the search/filter form only takes up
   space once the shopper opens it via the toggle below (previously it was always
   expanded on desktop, pushing the products down). */
.fm-shop__filters {
	display: none;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
}

.fm-shop__filters.is-open {
	display: block;
}

/* Search & filters toggle — shown at all widths. */
.fm-shop__filters-toggle {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.85rem 1rem;
	margin-bottom: 0.75rem;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	color: var(--fb-ink);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease;
}

.fm-shop__filters-toggle:hover,
.fm-shop__filters-toggle:focus-visible {
	border-color: var(--fb-azure);
}

.fm-shop__filters-toggle-icon {
	flex-shrink: 0;
	color: var(--fb-azure);
}

.fm-shop__filters-toggle-label {
	flex: 1 1 auto;
	text-align: left;
}

.fm-shop__filters-toggle-chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.fm-shop__filters-toggle[aria-expanded="true"] .fm-shop__filters-toggle-chevron {
	transform: rotate(180deg);
}

@media ( max-width: 700px ) {
	.fm-shop__filters {
		margin-bottom: 1rem;
	}
}

.fm-shop__filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
}

.fm-shop__filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1 1 160px;
	min-width: 140px;
}

.fm-shop__filter-group label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--fb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.fm-shop__filter-input,
.fm-shop__filter-select {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 0.9rem;
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	width: 100%;
	min-height: 38px;
}

.fm-shop__filter-input:focus,
.fm-shop__filter-select:focus {
	outline: 2px solid var(--fb-green);
	outline-offset: 1px;
}

.fm-shop__filter-actions {
	display: flex;
	gap: 0.5rem;
	align-items: flex-end;
	flex-wrap: wrap;
}

.fm-shop__filter-submit {
	padding: 0.5rem 1.25rem;
	background: var(--fb-green);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 38px;
	transition: background 0.18s ease;
}

.fm-shop__filter-submit:hover {
	background: var(--fb-green-dark);
}

.fm-shop__filter-clear {
	padding: 0.5rem 1rem;
	background: transparent;
	color: var(--fb-ink-soft);
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 0.9rem;
	text-decoration: none;
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	transition: border-color 0.18s, color 0.18s;
}

.fm-shop__filter-clear:hover {
	border-color: var(--fb-green-soft);
	color: var(--fb-ink);
	text-decoration: none;
}

/* Active filter summary */
.fm-shop__active-filters {
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: var(--fb-ink-soft);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.fm-shop__active-filter-tag {
	background: var(--fb-khaki);
	color: var(--fb-green);
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
}

/* Result meta */
.fm-shop__result-meta {
	font-size: 0.875rem;
	color: var(--fb-green-soft);
	margin-bottom: 0.75rem;
}

/* =====================================================================
   Pagination
   ===================================================================== */

.fm-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.fm-pagination__item {
	display: inline-block;
}

.fm-pagination__link,
.fm-pagination__current {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--fb-green);
	background: var(--fb-surface);
	transition: background 0.15s;
}

.fm-pagination__current {
	background: var(--fb-green);
	color: #fff;
	border-color: var(--fb-green);
	font-weight: 700;
}

.fm-pagination__link:hover {
	background: var(--fb-khaki);
	text-decoration: none;
}

/* =====================================================================
   Empty states
   ===================================================================== */

.fm-empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--fb-green-soft);
}

.fm-empty-state__icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	display: block;
	opacity: 0.5;
}

.fm-empty-state__message {
	font-size: 1.05rem;
	margin-bottom: 0.75rem;
}

.fm-empty-state__action {
	display: inline-block;
	margin-top: 0.5rem;
	color: var(--fb-green);
	text-decoration: underline;
	font-size: 0.9rem;
}

/* =====================================================================
   Brands listing page
   ===================================================================== */

.fm-brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.fm-brand-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fm-brand-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.09);
	transform: translateY(-2px);
}

.fm-brand-card__logo {
	width: 56px;
	height: 56px;
	background: var(--fb-sand);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fm-brand-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fm-brand-card__logo-placeholder {
	font-size: 1.5rem;
	color: var(--fb-green-soft);
}

.fm-brand-card__name {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--fb-ink);
}

.fm-brand-card__desc {
	font-size: 0.875rem;
	color: var(--fb-green-soft);
	margin: 0 0 0.75rem;
	line-height: 1.5;
	flex: 1;
}

.fm-brand-card__count {
	font-size: 0.8125rem;
	color: var(--fb-ink-soft);
	margin-bottom: 1rem;
}

.fm-brand-card__btn {
	display: block;
	padding: 0.55rem 1rem;
	background: var(--fb-green);
	color: #fff;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.18s;
}

.fm-brand-card__btn:hover {
	background: var(--fb-green-dark);
	color: #fff;
	text-decoration: none;
}

/* =====================================================================
   Brand storefront page
   ===================================================================== */

.fm-brand__header {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: 2rem;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 1.5rem;
}

.fm-brand__logo {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	background: var(--fb-surface);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--fb-border);
}

.fm-brand__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fm-brand__logo-placeholder {
	font-size: 2rem;
	color: var(--fb-green-soft);
}

.fm-brand__meta {
	flex: 1;
}

.fm-brand__name {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
}

.fm-brand__desc {
	font-size: 0.9rem;
	color: var(--fb-ink-soft);
	margin: 0 0 0.5rem;
	line-height: 1.6;
}

.fm-brand__count-label {
	font-size: 0.8125rem;
	color: var(--fb-green-soft);
}

.fm-brand__back-link {
	font-size: 0.875rem;
	color: var(--fb-green);
	text-decoration: underline;
	display: inline-block;
	margin-bottom: 0.75rem;
}

/* =====================================================================
   Categories placeholder
   ===================================================================== */

.fm-categories__placeholder,
.fm-category__placeholder {
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 8px;
	padding: 1.5rem;
	color: #fbbf24;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-top: 1rem;
}

/* =====================================================================
   Customer navigation helper
   ===================================================================== */

.fm-customer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fm-customer-nav__item {
	margin: 0;
}

.fm-customer-nav__link {
	display: inline-block;
	padding: 0.45rem 1rem;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 0.9rem;
	color: var(--fb-ink-soft);
	text-decoration: none;
	background: var(--fb-surface);
	transition: background 0.15s, border-color 0.15s;
}

.fm-customer-nav__link:hover,
.fm-customer-nav__link--active {
	background: var(--fb-khaki);
	border-color: var(--fb-green);
	color: var(--fb-green);
	text-decoration: none;
}

/* =====================================================================
   Product detail breadcrumb and brand attribution (Slice 9)
   ===================================================================== */

.forces-marketplace-product-detail__breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	font-size: 0.85rem;
	margin-bottom: 1.25rem;
	color: var(--fb-green-soft);
}

.forces-marketplace-product-detail__breadcrumb-link {
	color: var(--fb-green);
	text-decoration: none;
}

.forces-marketplace-product-detail__breadcrumb-link:hover {
	text-decoration: underline;
}

.forces-marketplace-product-detail__breadcrumb-sep {
	color: var(--fb-green-soft);
	font-size: 0.8rem;
}

.forces-marketplace-product-detail__breadcrumb-current {
	color: var(--fb-ink-soft);
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.forces-marketplace-product-detail__brand-line {
	font-size: 0.9rem;
	color: var(--fb-green-soft);
	margin: 0.25rem 0 0.75rem;
}

.forces-marketplace-product-detail__brand-link {
	color: var(--fb-green);
	text-decoration: none;
	font-weight: 600;
}

.forces-marketplace-product-detail__brand-link:hover {
	text-decoration: underline;
}

/* =====================================================================
   Product detail page improvements (Slice 12)
   ===================================================================== */

.forces-marketplace-product-detail__vendor-card {
	margin-top: 2rem;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
}

.forces-marketplace-product-detail__vendor-card-heading {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--fb-green-soft);
	margin: 0 0 0.5rem;
}

.forces-marketplace-product-detail__vendor-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 0.35rem;
}

.forces-marketplace-product-detail__vendor-desc {
	font-size: 0.875rem;
	color: var(--fb-ink-soft);
	line-height: 1.5;
	margin: 0 0 0.75rem;
}

.forces-marketplace-product-detail__vendor-link {
	font-size: 0.875rem;
	color: var(--fb-green);
	text-decoration: underline;
}

.forces-marketplace-product-detail__back-links {
	margin-top: 1.5rem;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.forces-marketplace-product-detail__back-link {
	font-size: 0.875rem;
	color: var(--fb-green);
	text-decoration: underline;
}

/* =====================================================================
   Cart page — Phase 52D premium rebuild
   ===================================================================== */

.fm-cart {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

.fm-cart__page-header {
	margin-bottom: 1.75rem;
}

.fm-cart__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 0.35rem;
}

.fm-cart__subtitle {
	font-size: 0.9375rem;
	color: var(--fb-green-soft);
	margin: 0;
}

/* Two-column layout */
.fm-cart__layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2rem;
	align-items: start;
}

.fm-cart__items-col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Vendor group card — shown in multi-vendor carts */
.fm-cart-vendor-group {
	border: 1px solid var(--fb-border);
	border-radius: 14px;
	overflow: hidden;
}

.fm-cart-vendor-group__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	background: var(--fb-cream);
	border-bottom: 1px solid var(--fb-border);
}

.fm-cart-vendor-group__name {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-cart-vendor-group .fm-cart-item {
	border: none;
	border-bottom: 1px solid var(--fb-sand);
	border-radius: 0;
}

.fm-cart-vendor-group .fm-cart-item:last-of-type {
	border-bottom: none;
}

.fm-cart-vendor-group__delivery-note {
	font-size: 0.8125rem;
	color: var(--fb-green-soft);
	margin: 0;
	padding: 0.625rem 1.25rem;
	background: var(--fb-cream);
	border-top: 1px solid var(--fb-sand);
}

/* Individual item card */
.fm-cart-item {
	display: grid;
	grid-template-columns: 88px 1fr auto;
	gap: 1rem;
	align-items: start;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 14px;
	padding: 1rem 1.25rem 1rem 1rem;
	transition: box-shadow 0.15s;
}

.fm-cart-item:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.fm-cart-item__image {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 8px;
	background: var(--fb-sand);
	flex-shrink: 0;
}

.fm-cart-item__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: var(--fb-green-soft);
}

.fm-cart-item__body {
	min-width: 0;
}

.fm-cart-item__name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 0.2rem;
	line-height: 1.35;
}

.fm-cart-item__name a {
	color: inherit;
	text-decoration: none;
}

.fm-cart-item__name a:hover {
	text-decoration: underline;
}

.fm-cart-item__brand {
	font-size: 0.8125rem;
	color: var(--fb-green-soft);
	margin: 0 0 0.2rem;
}

.fm-cart-item__variant {
	font-size: 0.8125rem;
	color: var(--fb-ink-soft);
	background: var(--fb-sand);
	border-radius: 4px;
	display: inline-block;
	padding: 1px 6px;
	margin: 0 0 0.25rem;
}

.fm-cart-item__sku {
	font-size: 0.75rem;
	color: var(--fb-green-soft);
	margin: 0 0 0.3rem;
}

.fm-cart-item__unit-price {
	font-size: 0.875rem;
	color: var(--fb-ink-soft);
	margin: 0;
}

/* Controls column */
.fm-cart-item__controls {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.6rem;
	min-width: 110px;
}

.fm-cart-item__line-total {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

.fm-cart-item__qty-form {
	margin: 0;
}

.fm-cart-item__qty-row {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.fm-cart-item__qty-label {
	font-size: 0.8125rem;
	color: var(--fb-green-soft);
}

.fm-cart-item__qty-input {
	width: 54px;
	padding: 4px 6px;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 0.875rem;
	text-align: center;
	color: var(--fb-ink);
}

.fm-cart-item__qty-input:focus {
	outline: 2px solid var(--fb-green);
	outline-offset: 1px;
	border-color: var(--fb-green);
}

.fm-cart-item__qty-update {
	font-size: 0.75rem;
	color: var(--fb-green);
	background: none;
	border: none;
	padding: 2px 0;
	cursor: pointer;
	text-decoration: underline;
}

.fm-cart-item__qty-update:hover {
	color: var(--fb-green-dark);
}

.fm-cart-item__remove-form {
	margin: 0;
}

.fm-cart-item__remove-btn {
	font-size: 0.75rem;
	color: var(--fb-green-soft);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.fm-cart-item__remove-btn:hover {
	color: var(--fb-danger);
}

.fm-cart-item__save-btn {
	font-size: 0.75rem;
	color: var(--fb-green-soft);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
}

.fm-cart-item__save-btn:hover {
	color: var(--fb-green);
}

.fm-cart-item__save-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Focus-visible outlines — cart page */
.fm-cart-item__qty-update:focus-visible,
.fm-cart-item__remove-btn:focus-visible,
.fm-cart-item__save-btn:focus-visible {
	outline: 2px solid var(--fb-green);
	outline-offset: 2px;
	border-radius: 2px;
}

.fm-cart-summary__checkout-btn:focus-visible {
	outline: 3px solid var(--fb-green);
	outline-offset: 2px;
}

.fm-cart__empty-btn:focus-visible {
	outline: 3px solid var(--fb-green);
	outline-offset: 2px;
}

/* Tap targets — quantity input and stepper */
.fm-cart-item__qty-input {
	min-height: 36px;
}

.fm-cart-item__qty-update {
	min-height: 32px;
	min-width: 44px;
}

.fm-cart-item__remove-btn {
	min-height: 32px;
	min-width: 44px;
}

/* Saved items link on empty cart */
.fm-cart__empty-saved {
	margin-top: 0.75rem;
	font-size: 0.875rem;
}

.fm-cart__empty-saved a {
	color: var(--fb-green);
	text-decoration: underline;
}

/* Loading state */
.fm-cart-item--loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s;
}

@media (prefers-reduced-motion: reduce) {
	.fm-cart-item--loading {
		transition: none;
	}
}

/* Order summary panel */
.fm-cart-summary {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 14px;
	padding: 1.5rem;
	position: sticky;
	top: 1.5rem;
}

.fm-cart-summary__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 1.25rem;
}

.fm-cart-summary__lines {
	margin: 0 0 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.fm-cart-summary__line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 0.9375rem;
	color: var(--fb-ink-soft);
}

.fm-cart-summary__line dt {
	font-weight: 400;
}

.fm-cart-summary__line dd {
	font-weight: 500;
	margin: 0;
}

.fm-cart-summary__delivery-note {
	font-size: 0.8125rem;
	color: var(--fb-green-soft);
}

.fm-cart-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--fb-ink);
	border-top: 1px solid var(--fb-border);
	padding-top: 1rem;
	margin-bottom: 1.25rem;
}

.fm-cart-summary__checkout-btn {
	display: block;
	background: var(--fb-green);
	color: #fff;
	text-align: center;
	padding: 0.875rem 1rem;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}

.fm-cart-summary__checkout-btn:hover {
	background: var(--fb-green-dark);
	color: #fff;
}

.fm-cart-summary__checkout-btn:focus-visible {
	outline: 3px solid var(--fb-green);
	outline-offset: 2px;
}

.fm-cart-summary__trust {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--fb-green-soft);
	margin: 0.75rem 0 0.5rem;
}

.fm-cart-summary__delivery-info {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--fb-green-soft);
	margin: 0;
}

/* Continue shopping */
.fm-cart__continue {
	margin-top: 1.5rem;
	font-size: 0.875rem;
}

.fm-cart__continue a {
	color: var(--fb-green-soft);
	text-decoration: underline;
}

.fm-cart__continue a:hover {
	color: var(--fb-ink-soft);
}

/* Empty state */
.fm-cart--empty .fm-cart__empty-state {
	text-align: center;
	padding: 4rem 1rem;
}

.fm-cart__empty-icon {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	display: block;
}

.fm-cart__empty-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 0.5rem;
}

.fm-cart__empty-lead {
	font-size: 1rem;
	color: var(--fb-green-soft);
	margin: 0 0 1.75rem;
}

.fm-cart__empty-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.fm-cart__empty-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background 0.15s, color 0.15s;
}

.fm-cart__empty-btn--primary {
	background: var(--fb-green);
	color: #fff;
}

.fm-cart__empty-btn--primary:hover {
	background: var(--fb-green-dark);
	color: #fff;
}

.fm-cart__empty-btn--secondary {
	background: var(--fb-sand);
	color: var(--fb-ink-soft);
	border: 1px solid var(--fb-border);
}

.fm-cart__empty-btn--secondary:hover {
	background: var(--fb-border);
}

/* Mobile */
@media (max-width: 767px) {
	.fm-cart__layout {
		grid-template-columns: 1fr;
	}

	.fm-cart-summary {
		position: static;
	}

	.fm-cart-item {
		grid-template-columns: 72px 1fr;
		grid-template-rows: auto auto;
	}

	.fm-cart-item__controls {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		min-width: unset;
		border-top: 1px solid var(--fb-sand);
		padding-top: 0.75rem;
		margin-top: 0.25rem;
	}

	.fm-cart-item__line-total {
		margin-left: auto;
	}

	.fm-cart-summary__checkout-btn {
		padding: 1rem;
	}
}

@media (max-width: 479px) {
	.fm-cart-item {
		grid-template-columns: 64px 1fr;
	}

	.fm-cart-item__image {
		width: 64px;
		height: 64px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.fm-cart-item {
		transition: none;
	}

	.fm-cart-summary__checkout-btn {
		transition: none;
	}
}

/* =====================================================================
   Customer orders improvements (Slice 14)
   ===================================================================== */

.fm-orders {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.fm-orders__heading {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 1.5rem;
}

.fm-order-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.fm-order-card__header {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	background: var(--fb-cream);
	border-bottom: 1px solid var(--fb-border);
}

.fm-order-card__number {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--fb-ink);
}

.fm-order-card__date {
	font-size: 0.8125rem;
	color: var(--fb-green-soft);
}

.fm-order-card__status-badge {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
}

.fm-order-card__status-badge--pending { background: rgba(245,158,11,0.16); color: #fbbf24; }
.fm-order-card__status-badge--processing { background: var(--fb-accent-bg); color: var(--fb-azure); }
.fm-order-card__status-badge--completed { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-order-card__status-badge--cancelled { background: rgba(248,113,113,0.14); color: var(--fb-danger); }
.fm-order-card__status-badge--failed { background: rgba(248,113,113,0.14); color: var(--fb-danger); }

.fm-order-card__body {
	padding: 1.25rem;
}

.fm-order-card__items {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.fm-order-card__item {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.fm-order-card__item-image {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	background: var(--fb-sand);
	flex-shrink: 0;
}

.fm-order-card__item-image-placeholder {
	width: 56px;
	height: 56px;
	background: var(--fb-sand);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fb-green-soft);
	font-size: 1.25rem;
	flex-shrink: 0;
}

.fm-order-card__item-name {
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0 0 0.15rem;
}

.fm-order-card__item-meta {
	font-size: 0.8rem;
	color: var(--fb-green-soft);
}

.fm-order-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--fb-border);
	flex-wrap: wrap;
	gap: 0.75rem;
}

.fm-order-card__total {
	font-weight: 700;
	font-size: 1rem;
}

.fm-order-card__paid-notice {
	font-size: 0.875rem;
	color: var(--fb-success);
	background: rgba(74,222,128,0.14);
	padding: 0.3rem 0.75rem;
	border-radius: 4px;
}

/* =====================================================================
   Premium shopfront header (Slice 3)
   ===================================================================== */

.fm-shopfront-header {
	background: linear-gradient(135deg, var(--fb-blue-deep, #1a4aad) 0%, var(--fb-blue, #2461d8) 100%);
	border-radius: 12px;
	padding: 0.85rem 1.25rem 0.75rem;
	margin-bottom: 1rem;
	color: #fff;
}

.fm-shopfront-header__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.6rem;
	gap: 1rem;
	flex-wrap: wrap;
}

.fm-shopfront-header__branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.fm-shopfront-header__logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	line-height: 1;
	flex-shrink: 0;
}

.fm-shopfront-header__logo-mark svg {
	display: block;
}

.fm-shopfront-header__logo {
	height: 40px;
	width: auto;
	display: block;
}

.fm-shopfront-header__brand-text {
	display: flex;
	flex-direction: column;
}

.fm-shopfront-header__title {
	font-size: 1.1rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.fm-shopfront-header__subtitle {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin-top: 0.1rem;
}

.fm-shopfront-header__actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.fm-shopfront-header__action-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	padding: 0.55rem 1rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	transition: background 0.15s;
	min-width: 68px;
	text-align: center;
}

.fm-shopfront-header__action-link:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	text-decoration: none;
}

.fm-shopfront-header__action-link--cta {
	background: var(--fb-on-accent);
	border-color: var(--fb-on-accent);
	color: var(--fb-blue-deep);
	font-weight: 700;
}

.fm-shopfront-header__action-link--cta:hover {
	background: rgba(255, 255, 255, 0.86);
	color: var(--fb-blue-deep);
}

.fm-shopfront-header__tagline {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.5;
}

.fm-shopfront-header__action-icon {
	font-size: 1.2rem;
	line-height: 1;
}

.fm-shopfront-header__action-label {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Hero search bar */

.fm-shopfront-hero-search {
	text-align: center;
}

.fm-shopfront-hero-search__tagline {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 0.9rem;
}

.fm-shopfront-hero-search__form {
	display: flex;
	max-width: 640px;
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.fm-shopfront-hero-search__input {
	flex: 1;
	padding: 0.6rem 1rem;
	border: none;
	font-size: 0.95rem;
	color: var(--fb-ink);
	background: var(--fb-surface);
	outline: none;
	min-width: 0;
}

.fm-shopfront-hero-search__input::placeholder {
	color: var(--fb-green-soft);
}

.fm-shopfront-hero-search__btn {
	padding: 0.6rem 1.25rem;
	background: var(--fb-green);
	color: #fff;
	border: none;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
	white-space: nowrap;
	flex-shrink: 0;
}

.fm-shopfront-hero-search__btn:hover {
	background: var(--fb-green-hover);
}

/* =====================================================================
   Shop-by-category visual tiles (Slice 4)
   ===================================================================== */

.fm-shopfront-tiles {
	margin-bottom: 2.5rem;
}

.fm-shopfront-tiles__heading {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: var(--fb-ink);
}

.fm-shopfront-tiles__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: auto auto;
	gap: 0.75rem;
}

.fm-shopfront-tile {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	display: flex;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fm-shopfront-tile--large {
	grid-row: span 2;
	aspect-ratio: auto;
	min-height: 280px;
}

.fm-shopfront-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	text-decoration: none;
}

.fm-shopfront-tile--clothing  { background: linear-gradient(135deg, var(--fb-blue-deep, #1a4aad) 0%, var(--fb-blue, #2461d8) 100%); }
.fm-shopfront-tile--equipment { background: linear-gradient(135deg, #14306e 0%, var(--fb-blue, #2461d8) 100%); }
.fm-shopfront-tile--fitness   { background: linear-gradient(135deg, #1a4aad 0%, var(--fb-azure, #5aa9f2) 100%); }
.fm-shopfront-tile--accessories { background: linear-gradient(135deg, #1d54c4 0%, var(--fb-azure, #5aa9f2) 100%); }
.fm-shopfront-tile--all       { background: linear-gradient(135deg, #14306e 0%, #3a72e0 100%); }
.fm-shopfront-tile--brands    { background: linear-gradient(135deg, #14306e 0%, var(--fb-blue, #2461d8) 100%); }

.fm-shopfront-tile__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 1.25rem 1.5rem;
	background: rgba(0, 0, 0, 0.22);
	transition: background 0.2s;
	overflow: hidden;
}

.fm-shopfront-tile:hover .fm-shopfront-tile__overlay {
	background: rgba(0, 0, 0, 0.35);
}

/* Large watermark letter — decorative, not a label */
.fm-shopfront-tile__deco {
	position: absolute;
	top: -0.2em;
	right: -0.05em;
	font-size: 7rem;
	font-weight: 900;
	line-height: 1;
	color: #fff;
	opacity: 0.09;
	pointer-events: none;
	user-select: none;
	letter-spacing: -0.02em;
}

.fm-shopfront-tile--large .fm-shopfront-tile__deco {
	font-size: 11rem;
}

.fm-shopfront-tile__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	position: relative;
	z-index: 1;
}

.fm-shopfront-tile__label {
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	line-height: 1.25;
}

.fm-shopfront-tile--large .fm-shopfront-tile__label {
	font-size: 1.35rem;
}

.fm-shopfront-tile__subtitle {
	font-size: 0.72rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.3;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.fm-shopfront-tile--large .fm-shopfront-tile__subtitle {
	font-size: 0.85rem;
}

.fm-shopfront-tile__arrow {
	display: inline-block;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 0.35rem;
	transition: transform 0.2s ease, color 0.2s;
	line-height: 1;
}

.fm-shopfront-tile:hover .fm-shopfront-tile__arrow {
	transform: translateX(4px);
	color: #fff;
}

/* =====================================================================
   Shop-by-brand strip (Slice 5)
   ===================================================================== */

.fm-shopfront-brand-strip {
	margin-bottom: 2.5rem;
}

.fm-shopfront-brand-strip__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.fm-shopfront-brand-strip__heading {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0;
	color: var(--fb-ink);
}

.fm-shopfront-brand-strip__view-all {
	font-size: 0.875rem;
	color: var(--fb-green);
	text-decoration: underline;
	white-space: nowrap;
}

.fm-shopfront-brand-strip__view-all:hover {
	color: var(--fb-green-dark);
}

.fm-shopfront-brand-strip__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
	gap: 1rem;
}

.fm-shopfront-brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.25rem 1rem;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	text-align: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s;
}

.fm-shopfront-brand-card:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
	border-color: var(--fb-green);
	text-decoration: none;
}

.fm-shopfront-brand-card__logo {
	width: 52px;
	height: 52px;
	background: var(--fb-sand);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	overflow: hidden;
	flex-shrink: 0;
}

.fm-shopfront-brand-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fm-shopfront-brand-card__name {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--fb-ink);
	line-height: 1.2;
}

.fm-shopfront-brand-card__count {
	font-size: 0.775rem;
	color: var(--fb-green-soft);
}

/* =====================================================================
   Product card image badge (Slice 6)
   ===================================================================== */

.fm-product-card__badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.18rem 0.5rem;
	border-radius: 4px;
	line-height: 1.5;
	pointer-events: none;
}

.fm-product-card__badge--in {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
}

.fm-product-card__badge--out {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
}

/* =====================================================================
   Filter section heading (Slice 7)
   ===================================================================== */

.fm-shop__filter-section {
	margin-bottom: 1.5rem;
}

.fm-shop__filter-heading {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--fb-ink);
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 900px) {
	.fm-shopfront-tiles__grid {
		grid-template-columns: 1fr 1fr;
	}

	.fm-shopfront-tile--large {
		grid-column: span 2;
		min-height: 200px;
	}

	.fm-shopfront-brand-strip__cards {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
}

@media (max-width: 700px) {
	.fm-shopfront-header__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.fm-shopfront-header__actions {
		width: 100%;
		justify-content: flex-start;
	}

	.fm-shopfront-hero-search__btn {
		padding: 0.6rem 0.85rem;
	}
}

@media (max-width: 600px) {
	.fm-shop__filter-form {
		flex-direction: column;
	}

	.fm-shop__filter-group {
		flex: 1 1 100%;
	}

	/* One item per row is the mobile default. Two-per-row is opt-in via the
	   density toggle (see the [data-fm-cols] rules below). */
	.fm-product-grid {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	/* Two-up mode only: tighten the card for the narrow width — clamp the name to
	   two lines so cards line up, pull the button up against the content, and keep
	   "View product" on a single line. One-per-row keeps the roomier default card. */
	.fm-shop[data-fm-cols="2"] .fm-product-card__body {
		padding: 0.7rem;
	}

	.fm-shop[data-fm-cols="2"] .fm-product-card__name {
		font-size: 0.85rem;
		margin: 0 0 0.3rem;
		line-height: 1.3;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		min-height: 2.2em;
	}

	.fm-shop[data-fm-cols="2"] .fm-product-card__price {
		font-size: 1rem;
		margin: 0 0 0.15rem;
	}

	.fm-shop[data-fm-cols="2"] .fm-product-card__rating {
		margin: 0 0 0.15rem;
	}

	.fm-shop[data-fm-cols="2"] .fm-product-card__cta {
		margin-top: 0.55rem;
		padding-top: 0;
		border-top: none;
	}

	.fm-shop[data-fm-cols="2"] .fm-product-card__view-btn {
		padding: 0.55rem 0.5rem;
		font-size: 0.8125rem;
		white-space: nowrap;
		letter-spacing: 0;
	}

	/* Grid density toggle (mobile only): let the shopper pick 1 or 2 per row. */
	.fm-shop__filter-bar-header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.fm-shop__grid-toggle {
		display: inline-flex;
		gap: 2px;
		padding: 3px;
		background: var(--fb-surface);
		border: 1px solid var(--fb-border);
		border-radius: 10px;
		flex-shrink: 0;
	}

	.fm-shop__grid-toggle-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 34px;
		padding: 0;
		border: none;
		background: transparent;
		color: var(--fb-green-soft);
		border-radius: 7px;
		cursor: pointer;
		transition: background-color 0.15s ease, color 0.15s ease;
	}

	.fm-shop__grid-toggle-btn svg { display: block; }

	.fm-shop__grid-toggle-btn[aria-pressed="true"] {
		background: var(--fb-accent-bg);
		color: var(--fb-azure);
	}

	.fm-shop[data-fm-cols="1"] .fm-product-grid { grid-template-columns: 1fr; }
	.fm-shop[data-fm-cols="2"] .fm-product-grid { grid-template-columns: 1fr 1fr; }

	.fm-brand-grid {
		grid-template-columns: 1fr;
	}

	.fm-brand__header {
		flex-direction: column;
	}

	.fm-cart__item {
		grid-template-columns: 60px 1fr;
	}

	.fm-cart__item-actions {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
	}

	.fm-order-card__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-shopfront-tiles__grid {
		grid-template-columns: 1fr 1fr;
	}

	.fm-shopfront-tile--large {
		grid-column: span 2;
		min-height: 160px;
	}

	.fm-shopfront-brand-strip__cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 400px) {
	.fm-shopfront-tiles__grid {
		grid-template-columns: 1fr;
	}

	.fm-shopfront-tile--large {
		grid-column: span 1;
		min-height: 140px;
	}

	.fm-shopfront-brand-strip__cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------------------------------------------------------------------------
   Public product variant selector
--------------------------------------------------------------------------- */

.fm-variant-selector {
	margin: 1.25rem 0;
}

.fm-variant-selector__hint {
	font-size: 0.875rem;
	color: var(--fb-ink-soft);
	margin: 0 0 0.75rem;
}

.fm-variant-selector__option {
	margin-bottom: 0.875rem;
}

.fm-variant-selector__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: var(--fb-ink);
}

.fm-variant-selector__select {
	display: block;
	width: 100%;
	max-width: 320px;
	padding: 0.5rem 0.75rem;
	font-size: 0.9375rem;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	background: var(--fb-surface);
	color: var(--fb-ink);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aab6c8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 10px 7px;
}

.fm-variant-selector__select:focus {
	outline: none;
	border-color: var(--fb-ink);
	box-shadow: 0 0 0 2px rgba(26, 26, 46, 0.15);
}

.fm-variant-selector__notice {
	font-size: 0.875rem;
	color: var(--fb-danger);
	min-height: 1.25em;
	margin-top: 0.25rem;
}

.fm-variant-selector__empty {
	font-size: 0.875rem;
	color: var(--fb-ink-soft);
	font-style: italic;
	margin: 1rem 0;
}

/* --------------------------------------------------------------------------
   Disabled add-to-cart state (variable product, no valid selection yet)
---------------------------------------------------------------------------- */

.forces-marketplace-product-detail__add-to-cart-button:disabled,
.forces-marketplace-product-detail__add-to-cart-button[aria-disabled="true"] {
	background: var(--fb-border-strong);
	cursor: not-allowed;
	opacity: 0.7;
}

.forces-marketplace-product-detail__add-to-cart-button:disabled:hover,
.forces-marketplace-product-detail__add-to-cart-button[aria-disabled="true"]:hover {
	background: var(--fb-border-strong);
}

.forces-marketplace-product-detail__quantity-input:disabled {
	background: var(--fb-sand);
	color: var(--fb-green-soft);
	cursor: not-allowed;
}

/* =========================================================================
   Scoped marketplace page shell (body.fm-marketplace-page)
   Container sizing and spacing for plugin component areas.
   Page title, header, footer, and page-wrapper spacing are handled by the theme.
   ========================================================================= */

/* Ensure shop/product containers sit close to the site header */
body.fm-marketplace-page .fm-shop,
body.fm-marketplace-page .fm-brands,
body.fm-marketplace-page .fm-brand,
body.fm-marketplace-page .fm-categories,
body.fm-marketplace-page .fm-category,
body.fm-marketplace-page .fm-cart,
body.fm-marketplace-page .fm-orders {
	padding-top: 24px;
}

body.fm-marketplace-page .forces-marketplace-product-detail {
	padding-top: 20px;
}

/* Widen the shop containers to match seller portal max-width */
body.fm-marketplace-page .fm-shop,
body.fm-marketplace-page .fm-brands,
body.fm-marketplace-page .fm-brand,
body.fm-marketplace-page .fm-categories,
body.fm-marketplace-page .fm-category {
	max-width: var(--fb-container, 1180px);
}

/* Customer product detail page — widen the container (scoped to fm-product-page only) */
body.fm-product-page .forces-marketplace-product-detail {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px 48px;
}

@media (max-width: 640px) {
	body.fm-marketplace-page .fm-shop,
	body.fm-marketplace-page .fm-brands,
	body.fm-marketplace-page .fm-brand,
	body.fm-marketplace-page .fm-categories,
	body.fm-marketplace-page .fm-category,
	body.fm-marketplace-page .fm-cart,
	body.fm-marketplace-page .fm-orders,
	body.fm-product-page .forces-marketplace-product-detail {
		padding-top: 24px;
	}

	/* The product detail sits inside the theme's .fbm-container, which already
	   provides the page gutter. Drop the section's own left/right padding on
	   mobile so the content isn't double-inset (container-in-a-container) and
	   uses the full available width. */
	body.fm-product-page .forces-marketplace-product-detail {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
		padding-top: 16px;
	}
}

/* ==========================================================================
   Product Detail — Premium Design
   Scoped to .forces-marketplace-product-detail — no global side-effects.
   ========================================================================== */

/* Section wrapper — constrains page width and centers content */
.forces-marketplace-product-detail {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	padding-top: 24px;
	padding-bottom: 72px;
}

/* Breadcrumb */
.forces-marketplace-product-detail__breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	color: var(--fb-green-soft);
	margin-bottom: 20px;
}

.forces-marketplace-product-detail__breadcrumb-link {
	color: var(--fb-ink-soft);
	text-decoration: none;
	transition: color 0.12s ease;
}

.forces-marketplace-product-detail__breadcrumb-link:hover {
	color: var(--fb-green);
}

.forces-marketplace-product-detail__breadcrumb-sep {
	color: var(--fb-border-strong);
}

.forces-marketplace-product-detail__breadcrumb-current {
	color: var(--fb-green-soft);
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Single ecommerce product container — one card holding media + content */
.fm-pd-container {
	display: grid;
	grid-template-columns: 60% 1fr;
	gap: 32px;
	align-items: start;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 24px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.05);
}

/* Media column — left 40% */
.fm-pd-media {
	width: 100%;
	min-width: 0;
}

/* Content column — right 60% */
.fm-pd-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Full-width info area — spans both grid columns, stacked sections below the media/buy split */
.fm-pd-full-info {
	grid-column: 1 / -1;
	border-top: 1px solid var(--fb-border);
	margin-top: 24px;
	padding-top: 4px;
	display: block;
	background: linear-gradient(to bottom, transparent 0%, var(--fb-surface) 60%);
}

.fm-pd-info-section {
	padding: 20px 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.fm-pd-info-section:last-child {
	border-bottom: 0;
	padding-bottom: 6px;
}

.fm-pd-info-section__heading {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--fb-green-soft);
	margin: 0 0 10px;
}

.fm-pd-info-section__body {
	font-size: 15px;
	color: var(--fb-ink);
	line-height: 1.72;
	max-width: 72ch;
}

.fm-pd-info-section__body p {
	margin: 0 0 10px;
}

.fm-pd-info-section__body p:last-child {
	margin-bottom: 0;
}

.fm-pd-info-section__text {
	font-size: 14px;
	color: var(--fb-ink-soft);
	line-height: 1.6;
	margin: 0 0 4px;
}

.fm-pd-info-section__text:last-child {
	margin-bottom: 0;
}

.fm-pd-info-section__text--dispatch {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--fb-success);
	font-weight: 600;
}

.fm-pd-info-section__text--dispatch::before {
	content: '\2713';
	font-size: 11px;
	font-weight: 900;
}

.fm-pd-info-section__seller-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fm-pd-info-row {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.fm-pd-info-row__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fb-green-soft);
}

.fm-pd-info-row__value {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--fb-ink-soft);
}

/* Main image — sits inside the media column */
.forces-marketplace-product-detail__main-media {
	height: 400px;
	background: var(--fb-sand);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.forces-marketplace-product-detail__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 24px;
}

.forces-marketplace-product-detail__image-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--fb-sand);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.forces-marketplace-product-detail__image-placeholder::after {
	content: '';
	display: block;
	width: 52px;
	height: 52px;
	background: var(--fb-border-strong);
	border-radius: 10px;
	opacity: 0.45;
}

/* Thumbnail strip */
.forces-marketplace-product-detail__thumbnails {
	display: flex;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--fb-border) transparent;
}

.forces-marketplace-product-detail__thumbnail {
	appearance: none;
	-webkit-appearance: none;
	background: var(--fb-surface);
	font: inherit;
	padding: 0;
	margin: 0;
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	border: 2px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.forces-marketplace-product-detail__thumbnail:hover {
	border-color: var(--fb-green-soft);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.forces-marketplace-product-detail__thumbnail:focus-visible {
	outline: 2px solid var(--fb-green);
	outline-offset: 2px;
}

.forces-marketplace-product-detail__thumbnail--active {
	border-color: var(--fb-ink);
	box-shadow: 0 0 0 1px var(--fb-border-strong);
}

.forces-marketplace-product-detail__thumbnail-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

/* Video thumbnail: poster image with a centred play badge + "Video" label. */
.forces-marketplace-product-detail__thumbnail--video {
	position: relative;
}
/* Dark backdrop only when there's no poster, so the play icon stays visible. */
.forces-marketplace-product-detail__thumbnail--video:not(:has( img )) {
	background: var(--fb-ink);
}
.forces-marketplace-product-detail__thumbnail-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.55 );
	pointer-events: none;
}
.forces-marketplace-product-detail__thumbnail-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate( -50%, -50% );
	border-style: solid;
	border-width: 5px 0 5px 9px;
	border-color: transparent transparent transparent #fff;
}
.forces-marketplace-product-detail__thumbnail-video-badge {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	font-size: 8.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: center;
	color: #fff;
	background: rgba( 0, 0, 0, 0.55 );
	padding: 1px 0;
	pointer-events: none;
}

/* Brand badge — logo + name pill */
.fm-pd-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	background: var(--fb-sand);
	border: 1px solid var(--fb-border);
	border-radius: 999px;
	padding: 5px 14px 5px 5px;
	max-width: fit-content;
}

.fm-pd-brand__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--fb-border);
	flex-shrink: 0;
}

.fm-pd-brand__name {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--fb-ink);
	text-decoration: none;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: color 0.12s ease;
}

.fm-pd-brand__name:hover {
	color: var(--fb-green);
}

.fm-pd-brand__name--plain {
	color: var(--fb-green-soft);
}

/* Product title */
.forces-marketplace-product-detail__header {
	margin: 0 0 12px;
}

.forces-marketplace-product-detail__title {
	font-size: clamp(22px, 2vw, 32px);
	font-weight: 800;
	color: var(--fb-ink);
	line-height: 1.15;
	letter-spacing: -0.025em;
	margin: 0;
}

/* Price row */
.forces-marketplace-product-detail__price {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 6px;
}

.forces-marketplace-product-detail__price-value {
	font-size: clamp(22px, 2.2vw, 32px);
	font-weight: 900;
	color: var(--fb-ink);
	line-height: 1;
	letter-spacing: -0.03em;
}

/* Short description */
.forces-marketplace-product-detail__description {
	font-size: 15px;
	color: var(--fb-ink-soft);
	line-height: 1.65;
	margin: 14px 0 24px;
}

.forces-marketplace-product-detail__description:empty {
	display: none;
}

/* Buy box — flat, no background box */
.fm-product-buy-box {
	background: transparent;
	border: none;
	border-top: 1.5px solid var(--fb-border);
	border-radius: 0;
	padding: 24px 0 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Availability */
.forces-marketplace-product-detail__availability {
	margin: 0;
}

/* Stock badges */
.forces-marketplace-product-detail__stock-badge {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	letter-spacing: 0.01em;
}

.forces-marketplace-product-detail__stock-badge--in-stock {
	color: var(--fb-success);
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
}

.forces-marketplace-product-detail__stock-badge--out-of-stock {
	color: var(--fb-danger);
	background: rgba(248,113,113,0.14);
	border: 1px solid rgba(248,113,113,0.35);
}

.forces-marketplace-product-detail__stock-badge--pending {
	color: #fbbf24;
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
}

/* Variant selector inside buy box */
.fm-product-buy-box .fm-variant-selector {
	margin: 0;
}

.fm-product-buy-box .fm-variant-selector__hint {
	font-size: 11px;
	font-weight: 700;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin: 0 0 10px;
}

.fm-product-buy-box .fm-variant-selector__option {
	margin-bottom: 12px;
}

.fm-product-buy-box .fm-variant-selector__option:last-of-type {
	margin-bottom: 0;
}

.fm-product-buy-box .fm-variant-selector__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin-bottom: 6px;
}

.fm-product-buy-box .fm-variant-selector__select {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-size: 15px;
	color: var(--fb-ink);
	background: var(--fb-surface);
	border: 1.5px solid var(--fb-border-strong);
	border-radius: 10px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aab6c8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.fm-product-buy-box .fm-variant-selector__select:focus {
	outline: none;
	border-color: var(--fb-ink);
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.fm-product-buy-box .fm-variant-selector__notice {
	font-size: 13px;
	color: var(--fb-green-soft);
	min-height: 0;
}

.fm-product-buy-box .fm-variant-selector__notice--error {
	color: var(--fb-danger);
}

.forces-marketplace-cart-notice {
	font-size: 14px;
	font-weight: 500;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
	border: 1px solid rgba(74,222,128,0.35);
}

.forces-marketplace-cart-notice--failed,
.forces-marketplace-cart-notice--out_of_stock,
.forces-marketplace-cart-notice--invalid_request,
.forces-marketplace-cart-notice--invalid_nonce,
.forces-marketplace-cart-notice--remove_failed,
.forces-marketplace-cart-notice--quantity_update_failed {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
	border-color: rgba(248,113,113,0.35);
}

.forces-marketplace-cart-notice--login_required {
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
	border-color: rgba(124,192,255,0.30);
}

/* Add-to-cart form inside buy box */
.fm-product-buy-box .forces-marketplace-product-detail__add-to-cart {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
}

/* Quantity row — label + input inline */
.forces-marketplace-product-detail__quantity-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.forces-marketplace-product-detail__quantity-label,
.fm-product-buy-box .forces-marketplace-product-detail__add-to-cart label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	white-space: nowrap;
	margin: 0;
}

.forces-marketplace-product-detail__quantity-input,
.fm-product-buy-box .forces-marketplace-product-detail__quantity-input {
	width: 76px;
	padding: 10px 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink);
	background: var(--fb-surface);
	border: 1.5px solid var(--fb-border-strong);
	border-radius: 10px;
	text-align: center;
	transition: border-color 0.15s ease;
	margin: 0;
}

.forces-marketplace-product-detail__quantity-input:focus {
	outline: none;
	border-color: var(--fb-ink);
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* Purchase actions stack */
.forces-marketplace-product-detail__add-to-cart-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Add to cart — deep navy, primary CTA */
.forces-marketplace-product-detail__add-to-cart-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--fb-surface);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	letter-spacing: -0.01em;
}

.forces-marketplace-product-detail__add-to-cart-button:hover:not(:disabled) {
	background: var(--fb-surface);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
}

.forces-marketplace-product-detail__add-to-cart-button:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: none;
}

.forces-marketplace-product-detail__add-to-cart-button:disabled,
.forces-marketplace-product-detail__add-to-cart-button[aria-disabled="true"] {
	background: var(--fb-border-strong);
	color: var(--fb-green-soft);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Higher-specificity cursor guards — override any theme rule that sets cursor:default on buttons. */
.fm-product-buy-box .forces-marketplace-product-detail__add-to-cart-button:not(:disabled):not([aria-disabled="true"]) {
	cursor: pointer;
}

/* Buy Now — accent blue */
.fm-product-buy-now-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 15px 24px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--fb-green);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	letter-spacing: -0.01em;
}

.fm-product-buy-now-btn:hover:not(:disabled) {
	background: var(--fb-brass);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(181, 138, 53, 0.24);
}

.fm-product-buy-now-btn:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: none;
}

.fm-product-buy-now-btn:disabled,
.fm-product-buy-now-btn[aria-disabled="true"] {
	background: var(--fb-border-strong);
	color: var(--fb-green-soft);
	cursor: not-allowed;
	opacity: 1;
	transform: none;
}

.fm-product-buy-box .fm-product-buy-now-btn:not(:disabled):not([aria-disabled="true"]) {
	cursor: pointer;
}

/* Full-width hitbox enforcement for purchase buttons.
 *
 * Without box-sizing:border-box, width:100% + padding:16px 24px causes the
 * button to overflow its container by 48px (24px on each side). Any parent
 * with overflow:hidden clips that overflow — leaving the right ~24px of the
 * visible button outside the DOM element's clickable area. position:relative
 * + z-index:20 also ensures the buttons sit above any theme pseudo-element or
 * stacking-context overlay that could intercept pointer events on the right.
 */
.fm-product-buy-box [data-fm-cart-intent] {
	box-sizing: border-box;
	width: 100%;
	position: relative;
	z-index: 20;
	pointer-events: auto;
}

.fm-product-buy-box [data-fm-cart-intent]:not(:disabled):not([aria-disabled="true"]) {
	cursor: pointer;
}

.fm-product-buy-box [data-fm-cart-intent]:disabled,
.fm-product-buy-box [data-fm-cart-intent][aria-disabled="true"] {
	cursor: not-allowed;
}

/* Apple Pay placeholder — disabled, decorative; must not intercept pointer events. */
.fm-product-buy-box .fm-product-apple-pay-wrap {
	position: static;
	z-index: 0;
	pointer-events: none;
}

.fm-product-buy-box .fm-product-apple-pay-wrap > * {
	pointer-events: none;
}

/* Apple Pay placeholder */
.fm-product-apple-pay-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-product-apple-pay-btn {
	display: block;
	width: 100%;
	padding: 13px 24px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fb-green-soft);
	background: transparent;
	border: 1.5px dashed var(--fb-border-strong);
	border-radius: 12px;
	cursor: not-allowed;
	letter-spacing: 0.01em;
}

.fm-product-apple-pay-hint {
	text-align: center;
	font-size: 11px;
	color: var(--fb-green-soft);
	margin: 0;
}

/* Purchase notice — shown by JS click router when options required but not chosen */
.fm-purchase-notice {
	position: static;
	z-index: 0;
	pointer-events: none;
	font-size: 13px;
	color: var(--fb-danger);
	min-height: 0;
	margin-top: 8px;
}

/* SKU meta */
.forces-marketplace-product-detail__meta {
	margin: 0;
	border-top: 1px solid var(--fb-border);
	padding-top: 14px;
}

.forces-marketplace-product-detail__meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.forces-marketplace-product-detail__meta-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.forces-marketplace-product-detail__meta-value {
	font-size: 13px;
	font-weight: 500;
	color: var(--fb-ink-soft);
}

/* Trust notes */
.fm-product-trust-notes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.fm-product-trust-notes__item {
	font-size: 13px;
	color: var(--fb-ink-soft);
	padding-left: 20px;
	position: relative;
	line-height: 1.45;
}

.fm-product-trust-notes__item::before {
	content: '\2713';
	position: absolute;
	left: 0;
	top: 1px;
	color: var(--fb-success);
	font-weight: 900;
	font-size: 12px;
}

/* Below-fold: main details (left) + sidebar (right) */
.fm-product-below {
	margin-top: 40px;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: start;
}

.fm-product-below__sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Product details card */
.fm-product-details-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 16px;
	padding: 28px 32px;
}

.fm-product-details-card__heading {
	font-size: 17px;
	font-weight: 700;
	color: var(--fb-ink);
	letter-spacing: -0.01em;
	margin: 0 0 16px;
}

.fm-product-details-card__body {
	font-size: 14px;
	color: var(--fb-ink-soft);
	line-height: 1.7;
}

.fm-product-details-card__body p {
	margin: 0 0 10px;
}

.fm-product-details-card__body p:last-child {
	margin-bottom: 0;
}

.fm-product-details-card__empty {
	font-size: 14px;
	color: var(--fb-green-soft);
	font-style: italic;
	margin: 0;
}

/* Vendor card */
.fm-product-vendor-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 16px;
	padding: 20px;
}

.fm-product-vendor-card__logo {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--fb-sand);
	border: 1.5px solid var(--fb-border);
	margin-bottom: 12px;
}

.fm-product-vendor-card__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--fb-green-soft);
	margin: 0 0 4px;
}

.fm-product-vendor-card__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
	letter-spacing: -0.01em;
	margin: 0 0 8px;
}

.fm-product-vendor-card__desc {
	font-size: 13px;
	color: var(--fb-green-soft);
	line-height: 1.55;
	margin: 0 0 14px;
}

.fm-product-vendor-card__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-green);
	text-decoration: none;
	transition: color 0.12s ease;
}

.fm-product-vendor-card__link:hover {
	color: var(--fb-azure);
	text-decoration: underline;
}

/* Delivery card */
.fm-product-delivery-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 16px;
	padding: 20px;
}

.fm-product-delivery-card__heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	letter-spacing: -0.01em;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.fm-product-delivery-card__heading::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
	flex-shrink: 0;
}

.fm-product-delivery-card__line {
	font-size: 13px;
	color: var(--fb-green-soft);
	line-height: 1.55;
	margin: 0 0 6px;
}

.fm-product-delivery-card__line:last-child {
	margin-bottom: 0;
}

.fm-product-delivery-card__line--dispatch,
.fm-product-delivery-card__line--ships-separately {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-success);
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	border-radius: 8px;
	padding: 5px 12px;
	margin: 0 0 8px;
}

/* Empty / not-found state */
.fm-product-empty-state {
	max-width: 480px;
	margin: 64px auto;
	text-align: center;
	padding: 56px 40px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.05);
}

.fm-product-empty-state__icon {
	font-size: 48px;
	line-height: 1;
	margin-bottom: 16px;
}

.fm-product-empty-state__heading {
	font-size: 24px;
	font-weight: 800;
	color: var(--fb-ink);
	letter-spacing: -0.02em;
	margin: 0 0 10px;
}

.fm-product-empty-state__message {
	font-size: 15px;
	color: var(--fb-green-soft);
	margin: 0 0 28px;
	line-height: 1.6;
}

.fm-product-empty-state__cta {
	display: inline-flex;
	align-items: center;
	padding: 13px 32px;
	background: var(--fb-surface);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.1s ease;
	letter-spacing: -0.01em;
}

.fm-product-empty-state__cta:hover {
	background: var(--fb-surface);
	color: #fff;
	transform: translateY(-1px);
}

/* Compact delivery block — inside the content column */
.fm-pdp-delivery {
	border-top: 1px solid var(--fb-border);
	padding-top: 16px;
	margin-top: 4px;
}

.fm-pdp-delivery__heading {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--fb-green-soft);
	margin: 0 0 8px;
}

.fm-pdp-delivery__line {
	font-size: 13px;
	color: var(--fb-green-soft);
	line-height: 1.5;
	margin: 0 0 4px;
}

.fm-pdp-delivery__line:last-child {
	margin-bottom: 0;
}

.fm-pdp-delivery__line--dispatch {
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--fb-success);
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	border-radius: 8px;
	padding: 4px 10px;
	margin: 0 0 6px;
}

/* Compact seller block — inside the content column */
.fm-pd-seller {
	display: flex;
	align-items: center;
	gap: 10px;
	border-top: 1px solid var(--fb-border);
	padding-top: 14px;
	margin-top: 4px;
}

.fm-pd-seller__logo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--fb-sand);
	border: 1.5px solid var(--fb-border);
	flex-shrink: 0;
}

.fm-pd-seller__text {
	flex: 1;
	min-width: 0;
}

.fm-pd-seller__label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-pd-seller__name {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

.fm-pd-seller__link {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-green);
	text-decoration: none;
	flex-shrink: 0;
	transition: color 0.12s ease;
}

.fm-pd-seller__link:hover {
	color: var(--fb-azure);
	text-decoration: underline;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
	.fm-pd-container {
		gap: 24px;
		padding: 22px;
	}
}

@media (max-width: 860px) {
	.fm-pd-container {
		grid-template-columns: 1fr;
		gap: 20px;
		border-radius: 16px;
		padding: 20px;
	}

	.fm-pd-media {
		max-width: 480px;
		margin-left: auto;
		margin-right: auto;
		width: 100%;
	}

	.forces-marketplace-product-detail__main-media {
		height: 300px;
	}
}

@media (max-width: 640px) {
	body.fm-product-page .forces-marketplace-product-detail {
		padding: 12px 12px 48px;
	}

	.fm-pd-container {
		border-radius: 12px;
		padding: 16px;
		gap: 16px;
	}

	.fm-pd-media {
		max-width: none;
	}

	.forces-marketplace-product-detail__main-media {
		height: 240px;
		border-radius: 8px;
	}

	.forces-marketplace-product-detail__title {
		font-size: 20px;
	}

	.forces-marketplace-product-detail__price-value {
		font-size: 26px;
	}

	.fm-related-options__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

/* ==========================================================================
   Related options strip — shown below product detail reviews
   ========================================================================== */

.fm-related-options {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid var(--fb-border);
}

.fm-related-options__heading {
	font-size: 19px;
	font-weight: 800;
	color: var(--fb-ink);
	letter-spacing: -0.02em;
	margin: 0 0 20px;
}

.fm-related-options__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.fm-related-option-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	color: inherit;
}

.fm-related-option-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

.fm-related-option-card__image-wrap {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--fb-sand);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fm-related-option-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 16px;
	display: block;
}

.fm-related-option-card__image-placeholder {
	width: 44px;
	height: 44px;
	background: var(--fb-border-strong);
	border-radius: 8px;
	opacity: 0.45;
}

.fm-related-option-card__body {
	padding: 12px 14px 14px;
}

.fm-related-option-card__vendor {
	font-size: 11px;
	font-weight: 700;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 5px;
}

.fm-related-option-card__name {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 6px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fm-related-option-card__price {
	font-size: 14px;
	font-weight: 800;
	color: var(--fb-ink);
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}

.fm-related-option-card__cta {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-green);
	letter-spacing: 0.01em;
}

@media (max-width: 860px) {
	.fm-related-options__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

/* ==========================================================================
   Featured items strip — active boost campaigns, shown below related options
   ========================================================================== */

.fm-featured-items {
	margin-top: 36px;
	padding-top: 36px;
	border-top: 1px solid var(--fb-border);
}

.fm-featured-items__heading {
	font-size: 19px;
	font-weight: 800;
	color: var(--fb-ink);
	letter-spacing: -0.02em;
	margin: 0 0 20px;
}

.fm-featured-items__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

@media (max-width: 860px) {
	.fm-featured-items__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

@media (max-width: 640px) {
	.fm-featured-items__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

/* =========================================================================
   Phase 20 — Formatted product description display
   ========================================================================= */

.fm-product-description {
	font-size: 15px;
	line-height: 1.65;
	color: var(--fb-ink-soft);
}

.fm-product-description p {
	margin: 0 0 10px;
}

.fm-product-description p:last-child {
	margin-bottom: 0;
}

.fm-product-description ul,
.fm-product-description ol {
	margin: 8px 0 10px 20px;
	padding-left: 4px;
}

.fm-product-description li {
	margin-bottom: 4px;
}

.fm-product-description strong,
.fm-product-description b {
	font-weight: 600;
}

.fm-product-description em,
.fm-product-description i {
	font-style: italic;
}

.fm-product-description u {
	text-decoration: underline;
}

/* ==========================================================================
   Floating Basket Widget — Phase 52H rebuild
   Fixed bottom-right on desktop; bottom sheet on mobile.
   ========================================================================== */

.fm-floating-cart {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	pointer-events: none;
}

/* Keep the basket button visible even when the basket is empty, so shoppers
   always have a clear, persistent way to open it on the shop. */
.fm-floating-cart--empty .fm-floating-cart__toggle {
	display: flex;
}

/* Toggle button */
.fm-floating-cart__toggle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: var(--fb-green);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(26, 86, 219, 0.35);
	position: relative;
	transition: background 0.15s, transform 0.15s;
	font-size: 22px;
	flex-shrink: 0;
	pointer-events: auto;
}

.fm-floating-cart__toggle:hover {
	background: var(--fb-green-dark);
	transform: scale(1.06);
}

.fm-floating-cart__toggle:focus-visible {
	outline: 3px solid var(--fb-green);
	outline-offset: 3px;
}

.fm-floating-cart__icon {
	line-height: 1;
	pointer-events: none;
}

.fm-floating-cart__count-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	background: var(--fb-danger);
	color: #fff;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	pointer-events: none;
}

/* Expandable panel */
.fm-floating-cart__panel {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 18px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
	width: 320px;
	max-height: 80vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px) scale(0.97);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.fm-floating-cart__panel--open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

/* Panel header */
.fm-floating-cart__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px 12px;
	border-bottom: 1px solid var(--fb-sand);
	position: sticky;
	top: 0;
	background: var(--fb-surface);
	z-index: 1;
}

.fm-floating-cart__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
	flex: 1;
	margin: 0;
}

.fm-floating-cart__header-count {
	font-size: 12px;
	color: var(--fb-green-soft);
}

.fm-floating-cart__close {
	border: none;
	background: none;
	color: var(--fb-green-soft);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
	min-width: 28px;
	min-height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 50%;
	transition: color 0.12s, background 0.12s;
}

.fm-floating-cart__close:hover {
	color: var(--fb-ink-soft);
	background: var(--fb-sand);
}

.fm-floating-cart__close:focus-visible {
	outline: 2px solid var(--fb-green);
	outline-offset: 1px;
}

/* Just-added banner */
.fm-floating-cart__added-banner {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: rgba(74,222,128,0.14);
	border-bottom: 1px solid rgba(74,222,128,0.35);
	font-size: 13px;
	color: var(--fb-success);
}

.fm-floating-cart__added-check {
	font-weight: 700;
	color: var(--fb-success);
	flex-shrink: 0;
}

.fm-floating-cart__added-name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Items preview list */
.fm-floating-cart__items {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--fb-sand);
}

.fm-floating-cart__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--fb-cream);
}

.fm-floating-cart__item:last-child {
	border-bottom: none;
}

.fm-floating-cart__item-image {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	background: var(--fb-sand);
	flex-shrink: 0;
}

.fm-floating-cart__item-image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	color: var(--fb-green-soft);
}

.fm-floating-cart__item-info {
	flex: 1;
	min-width: 0;
}

.fm-floating-cart__item-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fm-floating-cart__item-meta {
	display: block;
	font-size: 12px;
	color: var(--fb-green-soft);
	margin-top: 2px;
}

.fm-floating-cart__items-more {
	font-size: 12px;
	color: var(--fb-green-soft);
	text-align: center;
	padding: 6px 16px 8px;
	margin: 0;
	border-bottom: 1px solid var(--fb-sand);
}

/* Empty state */
.fm-floating-cart__empty-state {
	padding: 24px 16px;
	text-align: center;
}

.fm-floating-cart__empty-text {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

/* Subtotal row */
.fm-floating-cart__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid var(--fb-sand);
}

.fm-floating-cart__summary-label {
	font-size: 13px;
	color: var(--fb-green-soft);
}

.fm-floating-cart__subtotal {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
}

/* Action buttons */
.fm-floating-cart__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 16px 16px;
}

.fm-floating-cart__btn {
	display: block;
	text-align: center;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.12s, color 0.12s;
	cursor: pointer;
	border: none;
}

.fm-floating-cart__btn--primary {
	background: var(--fb-green);
	color: #fff;
}

.fm-floating-cart__btn--primary:hover {
	background: var(--fb-green-dark);
	color: #fff;
}

.fm-floating-cart__btn--secondary {
	background: var(--fb-sand);
	color: var(--fb-ink-soft);
	border: 1px solid var(--fb-border);
}

.fm-floating-cart__btn--secondary:hover {
	background: var(--fb-border);
}

.fm-floating-cart__btn--ghost {
	background: none;
	color: var(--fb-green-soft);
	font-size: 13px;
	font-weight: 500;
	padding: 6px 16px;
}

.fm-floating-cart__btn--ghost:hover {
	color: var(--fb-ink-soft);
}

.fm-floating-cart__btn:focus-visible {
	outline: 2px solid var(--fb-green);
	outline-offset: 2px;
}

/* Pulse animation when item is added */
@keyframes fm-cart-pulse {
	0%, 100% { transform: scale(1); }
	30%       { transform: scale(1.22); }
	60%       { transform: scale(0.94); }
}

.fm-floating-cart--pulse .fm-floating-cart__toggle {
	animation: fm-cart-pulse 0.55s ease;
}

/* Mobile — bottom sheet */
@media (max-width: 640px) {
	.fm-floating-cart {
		bottom: 0;
		right: 0;
		left: 0;
		align-items: stretch;
	}

	.fm-floating-cart__toggle {
		position: fixed;
		bottom: 16px;
		right: 16px;
		left: auto;
	}

	.fm-floating-cart__panel {
		width: 100%;
		max-width: 100%;
		border-radius: 18px 18px 0 0;
		border-left: none;
		border-right: none;
		border-bottom: none;
		max-height: 80svh;
		transform: translateY(16px);
	}

	.fm-floating-cart__panel--open {
		transform: translateY(0);
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.fm-floating-cart__toggle,
	.fm-floating-cart__panel {
		transition: none;
	}

	.fm-floating-cart--pulse .fm-floating-cart__toggle {
		animation: none;
	}
}

/* ==========================================================================
   Checkout preview — shipping breakdown (Phase 39F)
   ========================================================================== */

.forces-marketplace-checkout-preview__shipping {
	margin: 16px 0;
	padding: 16px 18px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
}

.forces-marketplace-checkout-preview__shipping-heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 10px;
}

.forces-marketplace-checkout-preview__shipping-multivendor {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 12px;
	line-height: 1.45;
}

.forces-marketplace-checkout-preview__shipping-list {
	margin: 0;
}

.forces-marketplace-checkout-preview__shipping-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 5px 0;
	border-bottom: 1px solid var(--fb-sand);
	font-size: 14px;
}

.forces-marketplace-checkout-preview__shipping-row:last-child {
	border-bottom: none;
}

.forces-marketplace-checkout-preview__shipping-row--total {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1.5px solid var(--fb-border);
	border-bottom: none;
}

.forces-marketplace-checkout-preview__shipping-label {
	color: var(--fb-ink-soft);
}

.forces-marketplace-checkout-preview__shipping-label--total {
	font-weight: 700;
}

.forces-marketplace-checkout-preview__shipping-amount {
	font-weight: 600;
	color: var(--fb-ink);
}

.forces-marketplace-checkout-preview__shipping-amount--total {
	font-weight: 700;
}

.forces-marketplace-checkout-preview__shipping-free {
	color: var(--fb-success);
}

.forces-marketplace-checkout-preview__shipping-pending {
	color: var(--fb-azure);
	font-style: italic;
}

.forces-marketplace-checkout-preview__grand-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 14px;
	padding: 12px 16px;
	background: linear-gradient(135deg, rgba(124,192,255,0.10) 0%, rgba(124,192,255,0.06) 100%);
	border: 1.5px solid var(--fb-blue);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
}

/* Guest checkout-preview — cart summary + login/register CTA */

.forces-marketplace-checkout-preview--guest {
	max-width: 560px;
}

.forces-marketplace-checkout-preview__guest-item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--fb-border);
	font-size: 15px;
}

.forces-marketplace-checkout-preview__guest-item-name {
	flex: 1 1 auto;
	font-weight: 600;
	color: var(--fb-ink);
}

.forces-marketplace-checkout-preview__guest-item-qty {
	flex: 0 0 auto;
	color: var(--fb-green-soft);
	font-size: 13px;
}

.forces-marketplace-checkout-preview__guest-item-price {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--fb-ink);
}

.forces-marketplace-checkout-preview__guest-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 16px 0 24px;
	padding: 12px 16px;
	background: var(--fb-sand);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
}

.forces-marketplace-checkout-preview__guest-cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 12px;
}

.forces-marketplace-checkout-preview__guest-cta-text {
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--fb-azure);
	line-height: 1.5;
}

.forces-marketplace-checkout-preview__guest-cta-btn {
	display: block;
	text-align: center;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.forces-marketplace-checkout-preview__guest-cta-btn:hover {
	opacity: 0.85;
}

.forces-marketplace-checkout-preview__guest-cta-btn--primary {
	background: var(--fb-blue);
	color: #fff;
}

.forces-marketplace-checkout-preview__guest-cta-btn--secondary {
	background: var(--fb-surface);
	color: var(--fb-ink);
	border: 1.5px solid var(--fb-border-strong);
}

.forces-marketplace-checkout-preview__guest-cta-btn--ghost {
	background: transparent;
	color: var(--fb-green-soft);
	font-size: 13px;
	font-weight: 400;
	padding: 4px 0;
}

/* Phase 65H — Guest checkout form */

.fm-guest-checkout-form {
	margin-top: 24px;
}

.fm-guest-checkout-fieldset {
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px 20px 12px;
	margin: 0 0 20px;
}

.fm-guest-checkout-fieldset__legend {
	padding: 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.fm-guest-checkout-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 14px;
}

.fm-guest-checkout-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.fm-guest-checkout-field__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-guest-checkout-field--required .fm-guest-checkout-field__label::after {
	content: ' *';
	color: var(--fb-danger);
}

.fm-guest-checkout-field__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--fb-border);
	border-radius: 7px;
	font-size: 15px;
	color: var(--fb-ink);
	background: var(--fb-surface);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fm-guest-checkout-field__input:focus {
	outline: none;
	border-color: var(--fb-ink);
	box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

.fm-guest-checkout-total {
	margin: 20px 0 8px;
	padding: 14px 16px;
	background: var(--fb-sand);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.fm-guest-checkout-actions {
	margin: 20px 0 8px;
}

.fm-guest-checkout-submit {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: var(--fb-blue);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.fm-guest-checkout-submit:hover {
	opacity: 0.88;
}

.fm-guest-checkout-login-note {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--fb-green-soft);
	text-align: center;
}

.fm-guest-checkout-login-note a {
	color: var(--fb-ink);
	text-decoration: underline;
}

@media (max-width: 540px) {
	.fm-guest-checkout-field-row {
		grid-template-columns: 1fr;
	}
}

/* =====================================================================
   Shopify-style two-column guest checkout
   ===================================================================== */
.forces-marketplace-checkout-preview--guest {
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}

.fm-checkout2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 40px;
	align-items: start;
	margin-top: 8px;
}

.fm-checkout2__main {
	min-width: 0;
}

.fm-checkout2__main .fm-guest-checkout-form {
	margin-top: 0;
}

/* Cleaner focus ring on the dark theme */
.fm-checkout2__main .fm-guest-checkout-field__input:focus {
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 3px rgba( 59, 130, 246, 0.25 );
}

/* Right column — sticky order summary card */
.fm-checkout2__summary {
	position: sticky;
	top: 24px;
	background: var(--fb-sand);
	border: 1px solid var(--fb-border);
	border-radius: 14px;
	padding: 22px 22px 10px;
}

.fm-checkout2__summary-title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fb-ink-soft);
}

.fm-checkout2__items {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 18px;
}

.fm-checkout2__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fm-checkout2__item-media {
	position: relative;
	flex: 0 0 auto;
	display: block;
}

.fm-checkout2__item-img {
	width: 54px;
	height: 54px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	display: block;
}

.fm-checkout2__item-img--placeholder {
	background: linear-gradient( 135deg, var(--fb-surface), var(--fb-sand) );
}

.fm-checkout2__item-qty {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 21px;
	height: 21px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--fb-border-strong);
	color: var(--fb-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 21px;
	text-align: center;
	box-shadow: 0 0 0 2px var(--fb-sand);
}

.fm-checkout2__item-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
	line-height: 1.35;
}

.fm-checkout2__item-price {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
	white-space: nowrap;
}

.fm-checkout2__totals {
	border-top: 1px solid var(--fb-border);
	padding-top: 14px;
}

.fm-checkout2__total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 14px;
	color: var(--fb-ink-soft);
	padding: 5px 0;
}

.fm-checkout2__total-row--grand {
	margin-top: 6px;
	padding-top: 13px;
	border-top: 1px solid var(--fb-border);
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-checkout2__total-row--grand strong {
	font-size: 21px;
	font-weight: 800;
	color: var(--fb-ink);
}

@media (max-width: 900px) {
	.fm-checkout2 {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.fm-checkout2__summary {
		position: static;
		order: -1;
	}
}

/* =====================================================================
   Phase 50 — Product card wishlist save button (Phases 50F / 50H)
   ===================================================================== */

.fm-product-card__save-btn {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 1.1rem;
	line-height: 1;
	transition: transform 0.15s ease, background 0.15s ease;
	z-index: 2;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.fm-product-card__save-btn:hover {
	transform: scale(1.15);
	background: #fff;
}

.fm-product-card__save-btn:focus-visible {
	outline: 2px solid var(--fb-green);
	outline-offset: 2px;
}

.fm-product-card__save-btn--saved .fm-product-card__save-icon {
	color: var(--fb-danger);
}

@keyframes fm-save-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.45); }
	70%  { transform: scale(0.9); }
	100% { transform: scale(1); }
}

.fm-product-card__save-btn--pop {
	animation: fm-save-pop 0.4s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
	.fm-product-card__save-btn--pop {
		animation: none;
	}
}

/* =====================================================================
   Phase 50H — Product card quick-add and action layout
   ===================================================================== */

.fm-product-card__quick-add {
	margin-bottom: 0.4rem;
}

.fm-product-card__add-btn {
	display: block;
	width: 100%;
	padding: 0.55rem 1rem;
	background: var(--fb-green);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background 0.18s ease;
}

.fm-product-card__add-btn:hover {
	background: var(--fb-green-hover);
}

.fm-product-card__view-link {
	display: block;
	text-align: center;
	font-size: 0.8rem;
	color: var(--fb-green);
	text-decoration: underline;
	margin-top: 0.3rem;
}

.fm-product-card__view-link:hover {
	color: var(--fb-green-dark);
}

.fm-product-card__oos-notice {
	display: block;
	font-size: 0.8rem;
	color: var(--fb-danger);
	margin-bottom: 0.3rem;
}

/* =====================================================================
   Phase 50C / 50D — Discover CTA banner above product grid
   ===================================================================== */

.fm-shop__discover-cta {
	background: linear-gradient(135deg, var(--fb-blue-deep) 0%, var(--fb-blue) 100%);
	border-radius: 10px;
	margin-bottom: 1.25rem;
}

.fm-shop__discover-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	gap: 1rem;
	flex-wrap: wrap;
}

.fm-shop__discover-cta__text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	color: #fff;
}

.fm-shop__discover-cta__text strong {
	font-size: 1rem;
	font-weight: 700;
}

.fm-shop__discover-cta__text span {
	font-size: 0.85rem;
	opacity: 0.85;
}

.fm-shop__discover-btn {
	padding: 0.6rem 1.25rem;
	background: var(--fb-on-accent);
	color: var(--fb-blue-deep);
	border: none;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.15s ease;
	flex-shrink: 0;
}

.fm-shop__discover-btn:hover {
	background: rgba(255, 255, 255, 0.86);
	transform: translateY(-1px);
}

.fm-shop__discover-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 500px) {
	.fm-shop__discover-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.fm-shop__discover-btn {
		width: 100%;
	}
}

/* =====================================================================
   Phase 51 — Product discovery viewer (full-screen premium rebuild)
   ===================================================================== */

@keyframes fm-viewer-enter {
	from {
		opacity: 0;
		transform: translate3d(0, 24px, 0) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes fm-viewer-exit {
	from {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		opacity: 0;
		transform: translate3d(0, 20px, 0) scale(0.985);
	}
}

.fm-viewer {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100svh;
	z-index: 9999;
	background: var(--fb-cream);
	overflow: hidden;
	touch-action: none;
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
}

.fm-viewer[hidden] {
	display: none;
}

.fm-viewer--entering {
	animation: fm-viewer-enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
	will-change: transform, opacity;
}

.fm-viewer--exiting {
	animation: fm-viewer-exit 460ms cubic-bezier(0.65, 0, 0.35, 1) both;
	pointer-events: none;
	will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
	.fm-viewer--entering,
	.fm-viewer--exiting {
		animation: none;
		will-change: auto;
	}
}

/* Backdrop kept for entry fade-in transition; no longer click-to-close.
   Matches the card surface so it can never read as a dark gap between cards. */
.fm-viewer__backdrop {
	position: absolute;
	inset: 0;
	background: var(--fb-cream, #0e1320);
	pointer-events: none;
}

.fm-viewer__stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	touch-action: none;
	/* Depth for the "open details" card turn/recede transition. */
	perspective: 1200px;
}

/* Bottom bar — page indicator + gesture hints */

.fm-viewer__bottom-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 1rem;
	padding-bottom: max(env(safe-area-inset-bottom, 0.6rem), 0.6rem);
	z-index: 10;
	pointer-events: none;
}

.fm-viewer__bottom-hint {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.4);
	font-weight: 500;
	white-space: nowrap;
}

.fm-viewer__page-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	pointer-events: auto;
}

.fm-viewer__hint-center {
	font-size: 0.65rem;
	color: rgba(255, 255, 255, 0.35);
	font-weight: 500;
	text-align: center;
}

/* Desktop skip button — hidden on touch devices, shown on pointer:fine (mouse) */
.fm-viewer__skip-btn {
	display: none;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.55rem;
	padding: 0.5rem 1.2rem;
	background: rgba(255, 255, 255, 0.13);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50px;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, transform 0.15s;
	pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
	.fm-viewer__skip-btn {
		display: flex;
	}
}

.fm-viewer__skip-btn:hover {
	background: rgba(255, 255, 255, 0.24);
	transform: translateY(-1px);
}

.fm-viewer__skip-btn:disabled {
	opacity: 0.28;
	cursor: not-allowed;
	transform: none;
}

.fm-viewer__skip-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.fm-viewer__skip-btn { transition: none; }
}

/* Discovery mode selector — Random | Categories pill */
.fm-viewer__mode-selector {
	display: flex;
	align-items: center;
	background: rgba(12, 14, 18, 0.58);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50px;
	padding: 2px;
}

.fm-viewer__mode-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.32rem 0.85rem;
	min-height: 32px;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
	letter-spacing: 0.01em;
	line-height: 1;
}

.fm-viewer__mode-btn--active {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.fm-viewer__mode-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Category selection sheet */
.fm-viewer__cat-sheet {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 20;
	background: rgba(8, 10, 16, 0.96);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px 20px 0 0;
	padding: 1.2rem 1rem;
	padding-bottom: max(env(safe-area-inset-bottom, 1.2rem), 1.2rem);
}

.fm-viewer__cat-sheet-title {
	font-size: 0.68rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	letter-spacing: 0.09em;
	margin: 0 0 0.8rem;
	text-align: center;
}

.fm-viewer__cat-list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.fm-viewer__cat-btn {
	display: block;
	width: 100%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 0.7rem 1rem;
	min-height: 44px;
	border-radius: 10px;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s;
}

.fm-viewer__cat-btn:hover,
.fm-viewer__cat-btn:active {
	background: rgba(255, 255, 255, 0.13);
}

.fm-viewer__cat-btn--active {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.28);
}

.fm-viewer__cat-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.fm-viewer__mode-btn { transition: none; }
	.fm-viewer__cat-btn  { transition: none; }
}

/* Category skip suppression */

.fm-viewer__cat-btn--suppressed {
	display: none;
}

/* Brand pin section inside cat sheet */

.fm-viewer__pin-section {
	margin-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 0.9rem;
}

.fm-viewer__cat-sheet-title--pin {
	margin-top: 0;
}

.fm-viewer__pin-list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.fm-viewer__pin-btn {
	display: block;
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.65rem 1rem;
	min-height: 44px;
	border-radius: 10px;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s, border-color 0.15s;
}

.fm-viewer__pin-btn:hover,
.fm-viewer__pin-btn:active {
	background: rgba(255, 255, 255, 0.10);
	color: #fff;
}

.fm-viewer__pin-btn--active {
	background: rgba(255, 200, 60, 0.12);
	border-color: rgba(255, 200, 60, 0.35);
	color: #ffc83c;
}

.fm-viewer__pin-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Reset preferences link */

.fm-viewer__prefs-reset {
	display: block;
	width: 100%;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.35);
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.6rem 0 0;
	cursor: pointer;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s;
	min-height: 44px;
}

.fm-viewer__prefs-reset:hover {
	color: rgba(255, 255, 255, 0.65);
}

.fm-viewer__prefs-reset:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Brand pin strip — shown below top-nav when a vendor is pinned */

.fm-viewer__pin-strip {
	position: absolute;
	top: 3.6rem;
	left: 0;
	right: 0;
	z-index: 12;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	background: rgba(255, 200, 60, 0.12);
	border-bottom: 1px solid rgba(255, 200, 60, 0.25);
	padding: 0.4rem 1rem;
}

.fm-viewer__pin-strip-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: #ffc83c;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-viewer__pin-strip-unpin {
	flex-shrink: 0;
	background: none;
	border: 1px solid rgba(255, 200, 60, 0.4);
	border-radius: 6px;
	color: #ffc83c;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.2rem 0.55rem;
	min-height: 28px;
	cursor: pointer;
	transition: background 0.15s;
}

.fm-viewer__pin-strip-unpin:hover {
	background: rgba(255, 200, 60, 0.18);
}

.fm-viewer__pin-strip-unpin:focus-visible {
	outline: 2px solid #ffc83c;
	outline-offset: 2px;
}

/* Full-screen media surface — replaces white card */

.fm-viewer__card {
	background: var(--fb-cream, #0e1320);
	overflow: hidden;
	position: absolute;
	inset: 0;
	will-change: transform;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Two-slot system: slot A starts on-screen, slot B waits below */
.fm-viewer__card--a {
	transform: translateY(0);
}

.fm-viewer__card--b {
	transform: translateY(100%);
}

@media (prefers-reduced-motion: reduce) {
	.fm-viewer__card {
		transition: none;
	}
}

/* "Open details" exit — the active card slides right, then turns on its right
   edge and recedes behind (smaller + fading), like it's being stacked behind the
   product detail page that comes forward. */
.fm-viewer__card--to-detail {
	z-index: 4;
	transform-origin: right center;
	animation: fm-viewer-to-detail 0.52s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

@keyframes fm-viewer-to-detail {
	0% {
		transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
		opacity: 1;
	}
	30% {
		transform: translateX(18%) translateZ(0) rotateY(-4deg) scale(0.99);
		opacity: 1;
	}
	100% {
		transform: translateX(56%) translateZ(-380px) rotateY(-46deg) scale(0.84);
		opacity: 0;
	}
}

/* Matching "come forward" entrance for the detail page (set by JS only when the
   page is opened straight from Discover mode). */
.forces-marketplace-product-detail--entering {
	animation: fm-pd-come-forward 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fm-pd-come-forward {
	0% {
		opacity: 0;
		transform: scale(0.965) translateY(8px);
	}
	100% {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fm-viewer__card--to-detail { animation: none; }
	.forces-marketplace-product-detail--entering { animation: none; }
}

/* Full-screen media background — product image fills viewport */
.fm-viewer__card-image {
	position: absolute;
	inset: 0;
	background: var(--fb-cream) center 30% / contain no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Cinematic gradient overlays — top (for nav) and bottom (for info) */
.fm-viewer__card::before,
.fm-viewer__card::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	pointer-events: none;
	z-index: 2;
}

.fm-viewer__card::before {
	top: 0;
	height: 38%;
	background: linear-gradient(to bottom, rgba(3, 7, 12, 0.78) 0%, transparent 100%);
}

.fm-viewer__card::after {
	bottom: 0;
	height: 62%;
	background: linear-gradient(to top, rgba(3, 7, 12, 0.97) 0%, rgba(3, 7, 12, 0.6) 45%, transparent 100%);
}

.fm-viewer__card-img-placeholder {
	font-size: 4rem;
	color: rgba(255, 255, 255, 0.18);
}

/* Card body hidden in Phase 51B — replaced by info overlay in Phase 51F */
.fm-viewer__card-body {
	display: none;
}

.fm-viewer__card-name,
.fm-viewer__card-brand,
.fm-viewer__card-price,
.fm-viewer__card-stock {
	display: none;
}

.fm-viewer__variant-notice {
	display: none;
}

.fm-viewer__variant-notice p {
	margin: 0 0 0.25rem;
}

.fm-viewer__variant-link {
	color: var(--fb-green);
	text-decoration: underline;
	font-size: 0.85rem;
}

/* Right-side action rail */

.fm-viewer__action-rail {
	position: absolute;
	right: 0.85rem;
	bottom: 30%;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	z-index: 10;
}

.fm-viewer__rail-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	width: 56px;
	padding: 0.65rem 0.4rem;
	background: rgba(12, 14, 18, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
}

.fm-viewer__rail-btn:hover {
	background: rgba(30, 32, 40, 0.8);
	transform: scale(1.06);
}

.fm-viewer__rail-btn:disabled,
.fm-viewer__rail-btn[aria-disabled="true"] {
	opacity: 0.38;
	cursor: not-allowed;
	transform: none;
}

.fm-viewer__rail-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.fm-viewer__rail-icon {
	font-size: 1.45rem;
	line-height: 1;
	display: block;
}

.fm-viewer__rail-label {
	font-size: 0.66rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.82);
	text-align: center;
	line-height: 1.2;
	white-space: nowrap;
}

.fm-viewer__rail-btn--save.fm-viewer__rail-btn--saved {
	background: rgba(200, 40, 40, 0.35);
	border-color: rgba(229, 62, 62, 0.55);
}

@keyframes fm-rail-save-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.22); }
	100% { transform: scale(1); }
}

.fm-viewer__rail-btn--save.fm-viewer__rail-btn--pop {
	animation: fm-rail-save-pop 0.35s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
	.fm-viewer__rail-btn--save.fm-viewer__rail-btn--pop {
		animation: none;
	}
}

/* Bottom-left product info overlay */

.fm-viewer__info {
	position: absolute;
	bottom: 88px;
	left: 1rem;
	right: 80px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	pointer-events: none;
}

/* Brand avatar circle — bottom-right of stage, below the action rail */
.fm-viewer__brand-avatar {
	position: absolute;
	right: 0.85rem;
	bottom: 96px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--fb-blue-deep) center / cover no-repeat;
	border: 2px solid rgba(255, 255, 255, 0.65);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	z-index: 10;
}

.fm-viewer__brand-avatar[hidden] {
	display: none;
}

.fm-viewer__info-name {
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
	margin: 0;
	line-height: 1.2;
}

.fm-viewer__info-brand {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.fm-viewer__info-price {
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.fm-viewer__info-stock {
	font-size: 0.78rem;
	font-weight: 600;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.fm-viewer__info-stock::before {
	content: '●';
	font-size: 0.55rem;
}

.fm-viewer__info-stock--in  { color: #68d391; }
.fm-viewer__info-stock--in::before  { color: #68d391; }
.fm-viewer__info-stock--out { color: #fc8181; }
.fm-viewer__info-stock--out::before { color: #fc8181; }

/* State chip — options / ready / out-of-stock */
.fm-viewer__state-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: 0.45rem;
	padding: 0.32rem 0.75rem;
	border-radius: 50px;
	font-size: 0.76rem;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(12, 14, 18, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.88);
	pointer-events: auto;
	cursor: default;
	width: fit-content;
}

.fm-viewer__state-chip--options {
	border-color: rgba(144, 205, 244, 0.45);
	color: #90cdf4;
	cursor: pointer;
}

.fm-viewer__state-chip--ready {
	border-color: rgba(104, 211, 145, 0.45);
	color: #68d391;
}

.fm-viewer__state-chip--oos {
	border-color: rgba(252, 129, 129, 0.35);
	color: #fc8181;
}

.fm-viewer__state-chip--options:focus-visible {
	outline: 2px solid #90cdf4;
	outline-offset: 2px;
}


/* Featured badge — marks boosted/featured cards woven into the swipe stream.
   Sits top-left, clearing the top-nav overlay. */
.fm-viewer__featured-badge {
	position: absolute;
	top: calc(max(env(safe-area-inset-top, 0.75rem), 0.75rem) + 3.1rem);
	left: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	z-index: 6;
	background: var(--fb-blue, #2461d8);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.28rem 0.6rem;
	border-radius: 6px;
	line-height: 1.3;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

.fm-viewer__featured-badge[hidden] {
	display: none;
}

.fm-viewer__featured-badge-mark {
	font-size: 0.95em;
	line-height: 1;
}


/* Top navigation overlay */

.fm-viewer__top-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	padding: max(env(safe-area-inset-top, 0.75rem), 0.75rem) 1rem 0.75rem;
	z-index: 10;
	gap: 0.5rem;
	pointer-events: none;
}

.fm-viewer__top-nav > * {
	pointer-events: auto;
}

.fm-viewer__brand-label {
	font-size: 0.85rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
	flex-shrink: 0;
	line-height: 1;
}

.fm-viewer__tabs {
	display: flex;
	flex: 1;
	justify-content: center;
	gap: 0;
}

.fm-viewer__tab {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.35rem 0.7rem;
	min-height: 44px;
	cursor: pointer;
	position: relative;
	transition: color 0.15s;
	letter-spacing: 0.01em;
}

.fm-viewer__tab--active {
	color: #fff;
}

.fm-viewer__tab--active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: 1.5rem;
	height: 2px;
	background: var(--fb-surface);
	border-radius: 1px;
}

/* Close button — inside top nav flex row */

.fm-viewer__close {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.15s;
	flex-shrink: 0;
}

.fm-viewer__close:hover { background: rgba(255, 255, 255, 0.26); }

.fm-viewer__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Toast notification */

.fm-viewer__toast {
	position: absolute;
	bottom: 6rem;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 0.5rem 1.25rem;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 30;
}

.fm-viewer__toast--visible {
	opacity: 1;
}

/* Desktop: viewer is always full-screen; no max-width constraint */

@media (max-width: 380px) {
	.fm-viewer__action-label {
		font-size: 0.7rem;
	}
	.fm-viewer__action-icon {
		font-size: 1.3rem;
	}
}

/* Small-screen: hide swipe hints on very narrow viewports */
@media (max-width: 340px) {
	.fm-viewer__bottom-hint {
		display: none;
	}
	.fm-viewer__action-rail {
		right: 0.5rem;
	}
}

/* Reduced motion: disable all viewer transitions */
@media (prefers-reduced-motion: reduce) {
	.fm-viewer__card         { transition: none; }
	.fm-viewer__rail-btn     { transition: none; }
	.fm-viewer__rail-btn:hover { transform: none; }
	.fm-viewer__tab          { transition: none; }
	.fm-viewer__close        { transition: none; }
	.fm-viewer__toast        { transition: none; }
	.fm-viewer__nav-btn      { transition: none; }
}

/* =========================================================
   Phase 63O — Featured Products section (boost campaigns)
   ========================================================= */

.fm-shop__featured {
	padding: 32px 0 24px;
	border-bottom: 1px solid var(--fb-border);
}

.fm-shop__featured-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding: 0 4px;
}

.fm-shop__featured-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

.fm-shop__featured-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.fm-shop__featured-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	background: var(--fb-surface);
}

.fm-shop__featured-card:hover,
.fm-shop__featured-card:focus-visible {
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
	transform: translateY(-2px);
	outline: none;
}

.fm-shop__featured-card__image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--fb-sand);
}

.fm-shop__featured-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fm-shop__featured-card__image--placeholder {
	background: linear-gradient(135deg, var(--fb-sand) 0%, var(--fb-border) 100%);
}

.fm-shop__featured-card__body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.fm-featured-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--fb-brass), var(--fb-green));
	color: #fff;
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 3px 9px;
	border-radius: 20px;
	align-self: flex-start;
	margin-bottom: 4px;
	box-shadow: 0 1px 4px rgba(181, 138, 53, 0.25);
}

.fm-shop__featured-card__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--fb-ink);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.fm-shop__featured-card__vendor {
	font-size: 0.75rem;
	color: var(--fb-green-soft);
}

.fm-shop__featured-card__price {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--fb-success);
	margin-top: 4px;
}

@media (max-width: 480px) {
	.fm-shop__featured-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fm-shop__featured-card { transition: none; }
	.fm-shop__featured-card:hover { transform: none; }
}

/* =====================================================================
   Phase 65A — Priority shop layout: compact header, featured near top,
   category chips, discover pill, brand strip below grid.
   ===================================================================== */

/* Category chip navigation — single scrollable row */
.fm-shop-category-chips {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: none; /* Firefox — hide the bar; scroll by swipe/wheel/drag */
	-ms-overflow-style: none; /* old Edge */
}

.fm-shop-category-chips::-webkit-scrollbar {
	display: none; /* Chrome, Safari */
}

/* Edge fades — JS adds the class for whichever side has more content to scroll,
   so the chip at a scroll end is never dimmed. */
.fm-shop-category-chips.fm-chips--fade-end {
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
	        mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
}

.fm-shop-category-chips.fm-chips--fade-start {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 44px);
	        mask-image: linear-gradient(to right, transparent, #000 44px);
}

.fm-shop-category-chips.fm-chips--fade-both {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent);
	        mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent);
}

.fm-shop-category-chip {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	scroll-snap-align: start;
	padding: 0.45rem 1rem;
	background: var(--fb-sand);
	border: 1px solid var(--fb-border);
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fb-ink-soft);
	text-decoration: none;
	white-space: nowrap;
	min-height: 44px;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fm-shop-category-chip:hover {
	background: var(--fb-green);
	border-color: var(--fb-green);
	color: #fff;
	text-decoration: none;
}

.fm-shop-category-chip:focus-visible {
	outline: 2px solid var(--fb-green);
	outline-offset: 2px;
}

/* Active category — filled, so the current selection is obvious. */
.fm-shop-category-chip.is-active {
	background: var(--fb-green);
	border-color: var(--fb-green);
	color: #fff;
	font-weight: 600;
}

/* Seamless swap: dim + soften the results while the next set loads. */
.fm-shop__results {
	transition: opacity 0.18s ease;
}

.fm-shop__results.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

/* Filter bar header row — heading + discover pill inline */
.fm-shop__filter-bar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
	gap: 1rem;
	flex-wrap: wrap;
}

/* The 1/2-per-row grid toggle is a mobile affordance only; on desktop the grid
   auto-fills columns, so it stays hidden until the mobile breakpoint. */
.fm-shop__grid-toggle {
	display: none;
}

.fm-shop__filter-bar-header .fm-shop__filter-heading {
	margin: 0;
}

/* Discovery Mode — a bold, full-width clickable card (replaces the old icon
   pill) so shoppers notice it and tap in. Dark-theme blue accent. */
.fm-shop__discover-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	margin: 0 0 1.35rem;
	padding: 1.2rem 1.4rem;
	text-align: left;
	background: linear-gradient(120deg, #1e5ae0 0%, var(--fb-blue, #2461d8) 45%, var(--fb-blue-hover, #1b4fb0) 100%);
	background-size: 220% 100%;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 18px;
	color: var(--fb-on-accent, #fff);
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(36, 97, 216, 0.42);
	-webkit-appearance: none;
	appearance: none;
	animation: fm-discover-sheen 7s ease-in-out infinite, fm-discover-pulse 2.6s ease-in-out infinite;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Diagonal light band that sweeps across to catch the eye. */
.fm-shop__discover-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -60%;
	width: 45%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.30), transparent);
	transform: skewX(-18deg);
	animation: fm-discover-shimmer 3.6s ease-in-out infinite;
	pointer-events: none;
}

.fm-shop__discover-card:hover,
.fm-shop__discover-card:focus-visible {
	transform: translateY(-3px) scale(1.008);
	box-shadow: 0 14px 38px rgba(36, 97, 216, 0.55);
}

.fm-shop__discover-card:focus-visible {
	outline: 2px solid var(--fb-azure);
	outline-offset: 3px;
}

/* Soft light sweep behind the icon for depth. */
.fm-shop__discover-card__glow {
	position: absolute;
	top: 50%;
	left: -6%;
	width: 42%;
	height: 240%;
	transform: translateY(-50%) rotate(18deg);
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.fm-shop__discover-card__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3.15rem;
	height: 3.15rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	animation: fm-discover-icon 2.6s ease-in-out infinite;
}

.fm-shop__discover-card__text {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	flex: 1 1 auto;
	min-width: 0;
}

.fm-shop__discover-card__title {
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.fm-shop__discover-card__desc {
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.9);
}

.fm-shop__discover-card__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	background: #fff;
	color: var(--fb-blue, #2461d8);
	font-size: 0.85rem;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	transition: gap 0.15s ease, transform 0.15s ease;
}

.fm-shop__discover-card__cta svg {
	animation: fm-discover-arrow 1.3s ease-in-out infinite;
}

.fm-shop__discover-card:hover .fm-shop__discover-card__cta,
.fm-shop__discover-card:focus-visible .fm-shop__discover-card__cta {
	gap: 0.6rem;
	transform: scale(1.04);
}

@keyframes fm-discover-sheen {
	0%, 100% { background-position: 0% 0; }
	50% { background-position: 100% 0; }
}

@keyframes fm-discover-pulse {
	0%, 100% { box-shadow: 0 8px 26px rgba(36, 97, 216, 0.40); }
	50% { box-shadow: 0 10px 34px rgba(36, 97, 216, 0.66); }
}

@keyframes fm-discover-shimmer {
	0% { left: -60%; }
	55%, 100% { left: 130%; }
}

@keyframes fm-discover-icon {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-2px) scale(1.07); }
}

@keyframes fm-discover-arrow {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(3px); }
}

/* Respect users who prefer less motion — keep it bold, but hold it still. */
@media (prefers-reduced-motion: reduce) {
	.fm-shop__discover-card,
	.fm-shop__discover-card::before,
	.fm-shop__discover-card__icon,
	.fm-shop__discover-card__cta svg {
		animation: none;
	}
}

@media ( max-width: 560px ) {
	.fm-shop__discover-card {
		padding: 0.95rem 1.05rem;
		gap: 0.75rem;
	}

	.fm-shop__discover-card__desc {
		display: none; /* keep the card compact on small phones */
	}
}

/* Featured section subtitle */
.fm-shop__featured-subtitle {
	font-size: 0.875rem;
	color: var(--fb-green-soft);
	margin: 0.2rem 0 0;
}

/* Brand strip — repositioned below product grid */
.fm-shopfront-brand-strip {
	margin-top: 2rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--fb-border);
}

/* Mobile — chip row */
@media (max-width: 600px) {
	.fm-shop-category-chips {
		gap: 0.375rem;
	}

	.fm-shop-category-chip {
		font-size: 0.8125rem;
		padding: 0.4rem 0.85rem;
		min-height: 40px;
	}

	.fm-shop__filter-bar-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* =====================================================================
   Phase 65C — Brand pill on product card image (replaces stock badge)
   ===================================================================== */

.fm-product-card__brand-pill {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	background: rgba(0, 0, 0, 0.58);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.18rem 0.55rem;
	border-radius: 4px;
	line-height: 1.5;
	max-width: 110px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

/* Interleaved "Featured" grid tile — boosted / admin-fallback promotions woven
   into the shop grid at a fixed cadence. Badge sits bottom-left so it clears the
   brand pill (top-left) and the save button (top-right). */
.fm-product-card--featured {
	box-shadow: 0 0 0 2px var(--fb-blue, #2461d8), 0 6px 18px rgba(0, 0, 0, 0.28);
}

.fm-product-card__featured-badge {
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.28em;
	background: var(--fb-blue, #2461d8);
	color: #fff;
	font-size: 0.66rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	line-height: 1.4;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	z-index: 2;
}

.fm-product-card__featured-badge-mark {
	font-size: 0.85em;
	line-height: 1;
}

/* Subtle out-of-stock notice in card body */
.fm-product-card__stock-notice {
	font-size: 0.775rem;
	color: var(--fb-danger);
	margin: 0 0 0.3rem;
	font-weight: 500;
}

/* =====================================================================
   Shop trust strip (Phase 74E)
   ===================================================================== */

.fm-shop__trust-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
	margin: 1.25rem 0 1.75rem;
	padding: 0;
	list-style: none;
}

.fm-shop__trust-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: var(--fb-radius-md);
	padding: 0.7rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--fb-ink-soft);
}

.fm-shop__trust-item::before {
	content: "";
	flex-shrink: 0;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--fb-brass);
}

@media (max-width: 768px) {
	.fm-shop__trust-strip {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 430px) {
	.fm-shop__trust-strip {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
 * Desktop Discovery gateway — "scan to continue on your phone"
 * Shown instead of the swipe viewer on large screens. Dark theme throughout.
 * ===================================================================== */
.fm-dtdiscover {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	box-sizing: border-box;
}

.fm-dtdiscover[hidden] {
	display: none;
}

.fm-dtdiscover__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 10, 20, 0.82);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.fm-dtdiscover__panel {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 0;
	width: min(980px, 100%);
	max-height: calc(100vh - 64px);
	overflow: hidden;
	background: var(--fb-surface, #182231);
	border: 1px solid var(--fb-border, #28324a);
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
	animation: fm-viewer-enter 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fm-dtdiscover__close {
	position: absolute;
	top: 14px;
	right: 16px;
	z-index: 2;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	line-height: 1;
	color: var(--fb-ink, #e9eef7);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--fb-border, #28324a);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.fm-dtdiscover__close:hover {
	background: rgba(255, 255, 255, 0.14);
	transform: scale(1.05);
}

/* -- Left: story + phone preview ------------------------------------- */
.fm-dtdiscover__intro {
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fm-dtdiscover__eyebrow {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fb-azure, #7cc0ff);
}

.fm-dtdiscover__title {
	margin: 12px 0 0;
	font-family: var(--fb-font-heading, inherit);
	font-size: 1.85rem;
	line-height: 1.15;
	color: var(--fb-ink, #e9eef7);
}

.fm-dtdiscover__lead {
	margin: 14px 0 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--fb-ink-soft, #aab6c8);
}

.fm-dtdiscover__list {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.fm-dtdiscover__list li {
	position: relative;
	padding-left: 26px;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--fb-ink, #e9eef7);
}

.fm-dtdiscover__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--fb-blue, #3b82f6);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Phone frame with a live discovery-card preview inside */
.fm-dtdiscover__phone {
	position: relative;
	width: 190px;
	height: 360px;
	margin: 26px auto 0;
	flex: none;
	border-radius: 32px;
	background: #05070d;
	border: 2px solid var(--fb-border-strong, #3a4866);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 6px #0b1120;
	padding: 8px;
	box-sizing: border-box;
}

.fm-dtdiscover__phone-notch {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	width: 78px;
	height: 16px;
	background: #05070d;
	border-radius: 0 0 12px 12px;
	z-index: 2;
}

.fm-dtdiscover__screen {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 24px;
	overflow: hidden;
	background: var(--fb-sand, #11192a);
}

.fm-dtdiscover__shot {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: var(--fb-sand, #11192a);
}

.fm-dtdiscover__shot::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(5, 7, 13, 0) 45%, rgba(5, 7, 13, 0.85) 100%);
}

.fm-dtdiscover__shot-ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	opacity: 0.5;
}

.fm-dtdiscover__shot-rail {
	position: absolute;
	right: 10px;
	bottom: 76px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fm-dtdiscover__shot-railbtn {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.fm-dtdiscover__shot-info {
	position: absolute;
	left: 12px;
	right: 54px;
	bottom: 14px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fm-dtdiscover__shot-name {
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fm-dtdiscover__shot-brand {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.8);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fm-dtdiscover__shot-price {
	margin-top: 2px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--fb-azure, #7cc0ff);
}

/* -- Right: QR panel ------------------------------------------------- */
.fm-dtdiscover__scan {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 44px 36px;
	text-align: center;
	background: linear-gradient(160deg, #0d1830, #0a1120);
	border-left: 1px solid var(--fb-border, #28324a);
}

.fm-dtdiscover__scan-title {
	margin: 0;
	font-family: var(--fb-font-heading, inherit);
	font-size: 1.2rem;
	color: var(--fb-ink, #e9eef7);
}

.fm-dtdiscover__scan-sub {
	margin: 6px 0 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--fb-ink-soft, #aab6c8);
}

.fm-dtdiscover__qr {
	width: 210px;
	height: 210px;
	padding: 12px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fm-dtdiscover__qr svg {
	display: block;
	width: 100%;
	height: 100%;
}

.fm-dtdiscover__steps {
	margin: 4px 0 0;
	padding: 0 0 0 1.1em;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.82rem;
	color: var(--fb-ink-soft, #aab6c8);
}

.fm-dtdiscover__link {
	margin-top: 4px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--fb-azure, #7cc0ff);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.fm-dtdiscover__link:hover {
	border-bottom-color: currentColor;
}

/* Below the desktop breakpoint the gateway is never opened, but keep it from
 * ever breaking the layout by stacking the two halves if it somehow shows. */
@media (max-width: 1023px) {
	.fm-dtdiscover__panel {
		grid-template-columns: 1fr;
		max-width: 420px;
	}

	.fm-dtdiscover__scan {
		border-left: 0;
		border-top: 1px solid var(--fb-border, #28324a);
	}
}

/* ===================================================================
   Buyer account creation — register form, welcome banner, post-purchase
   account offer, and guest-confirmation summary. customer-shopfront.css
   loads site-wide, so these render correctly on /create-account/ and
   /customer-orders/ where forces-brands-public.css (.fb-btn) is absent.
   =================================================================== */
.forces-marketplace-register {
	max-width: 560px;
	margin: 2rem auto;
	background: var(--fb-surface, #182231);
	border: 1px solid var(--fb-border, #28324a);
	border-radius: var(--fb-radius-lg, 22px);
	padding: 1.75rem;
	box-shadow: var(--fb-shadow-md, 0 12px 30px rgba(0, 0, 0, 0.55));
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-register--compact {
	margin: 1.25rem 0 0;
	box-shadow: none;
	max-width: none;
}
.forces-marketplace-register__title {
	font-family: var(--fb-font-heading, "Montserrat", sans-serif);
	font-size: 1.35rem;
	margin: 0 0 0.5rem;
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-register__lead {
	color: var(--fb-ink-soft, #aab6c8);
	margin: 0 0 1rem;
	font-size: 0.95rem;
}
.forces-marketplace-register__notice {
	background: var(--fb-accent-bg, rgba(124, 192, 255, 0.14));
	border: 1px solid var(--fb-border-strong, #3a4866);
	border-radius: var(--fb-radius-sm, 8px);
	padding: 0.7rem 0.9rem;
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-register__notice a { color: var(--fb-azure, #7cc0ff); }
.forces-marketplace-register__notice--invalid_email,
.forces-marketplace-register__notice--weak_password,
.forces-marketplace-register__notice--register_failed,
.forces-marketplace-register__notice--invalid_nonce,
.forces-marketplace-register__notice--invalid_request {
	border-color: var(--fb-danger, #f87171);
}
.fm-register-form { display: flex; flex-direction: column; gap: 0.85rem; }
.fm-register-form__row { display: flex; gap: 0.85rem; }
.fm-register-form__row .fm-register-form__field { flex: 1 1 0; min-width: 0; }
.fm-register-form__field { display: flex; flex-direction: column; gap: 0.3rem; }
.fm-register-form__field span { font-size: 0.85rem; color: var(--fb-ink-soft, #aab6c8); }
.fm-register-form__field input {
	width: 100%;
	background: var(--fb-sand, #11192a);
	border: 1px solid var(--fb-border, #28324a);
	border-radius: var(--fb-radius-sm, 8px);
	padding: 0.7rem 0.8rem;
	color: var(--fb-ink, #e9eef7);
	font-size: 1rem;
	min-height: var(--fb-tap-min, 44px);
	box-sizing: border-box;
}
.fm-register-form__field input:focus {
	outline: none;
	border-color: var(--fb-blue, #3b82f6);
	box-shadow: var(--fb-focus-ring, 0 0 0 3px rgba(124, 192, 255, 0.45));
}
.forces-marketplace-register .fb-btn,
.fm-register-form__submit,
.forces-marketplace-customer-orders .fb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--fb-blue, #3b82f6);
	color: var(--fb-on-accent, #ffffff);
	border: none;
	border-radius: var(--fb-radius-md, 14px);
	padding: 0.8rem 1.4rem;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	min-height: var(--fb-tap-min, 44px);
	text-decoration: none;
	transition: background 0.15s ease;
}
.forces-marketplace-register .fb-btn:hover,
.fm-register-form__submit:hover,
.forces-marketplace-customer-orders .fb-btn:hover { background: var(--fb-blue-hover, #5a96f8); }
.forces-marketplace-register .fb-btn--ghost,
.forces-marketplace-customer-orders .fb-btn--ghost {
	background: transparent;
	border: 1px solid var(--fb-border-strong, #3a4866);
	color: var(--fb-ink, #e9eef7);
}
.fm-register-form__login { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--fb-ink-soft, #aab6c8); }
.fm-register-form__login a { color: var(--fb-azure, #7cc0ff); }

.forces-marketplace-customer-orders__account-offer {
	margin: 1.5rem 0;
	background: var(--fb-surface, #182231);
	border: 1px solid var(--fb-border, #28324a);
	border-radius: var(--fb-radius-lg, 22px);
	padding: 1.25rem 1.5rem;
}
.forces-marketplace-customer-orders__notice--account-created {
	background: var(--fb-accent-bg, rgba(124, 192, 255, 0.14));
	border: 1px solid var(--fb-border-strong, #3a4866);
	border-radius: var(--fb-radius-sm, 8px);
	padding: 0.85rem 1rem;
	margin: 0 0 1rem;
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-customer-orders__confirmation-items {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
	border-top: 1px solid var(--fb-border, #28324a);
}
.forces-marketplace-customer-orders__confirmation-item {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--fb-border, #28324a);
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-customer-orders__confirmation-total {
	margin: 0.75rem 0 0;
	color: var(--fb-ink, #e9eef7);
	font-size: 1.05rem;
}

@media (max-width: 560px) {
	.fm-register-form__row { flex-direction: column; }
}

/* ===================================================================
   Customer orders / "My Orders" page — cards, status badges, order
   summary, item list, shipping + tracking. (customer-shopfront.css
   loads site-wide, so this styles /customer-orders/ on-theme.)
   =================================================================== */
.forces-marketplace-customer-orders {
	max-width: 820px;
	margin: 1.5rem auto;
	padding: 0 1rem;
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-customer-orders__header { margin-bottom: 1.1rem; }
.forces-marketplace-customer-orders__title {
	font-family: var(--fb-font-heading, "Montserrat", sans-serif);
	font-size: 1.6rem;
	margin: 0;
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-customer-orders__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* --- Order card --- */
.forces-marketplace-customer-orders__card {
	background: var(--fb-surface, #182231);
	border: 1px solid var(--fb-border, #28324a);
	border-radius: var(--fb-radius-lg, 22px);
	padding: 1.25rem 1.4rem;
	box-shadow: var(--fb-shadow-sm, 0 2px 10px rgba(0,0,0,0.45));
}
.forces-marketplace-customer-orders__order-number {
	font-family: var(--fb-font-heading, "Montserrat", sans-serif);
	font-size: 1.05rem;
	margin: 0 0 0.7rem;
	color: var(--fb-ink, #e9eef7);
}

/* --- Status + payment badges --- */
.forces-marketplace-customer-orders__status,
.forces-marketplace-customer-orders__payment-status {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0.5rem 0.5rem 0;
}
.forces-marketplace-customer-orders__status .forces-marketplace-customer-orders__label,
.forces-marketplace-customer-orders__payment-status .forces-marketplace-customer-orders__label {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fb-ink-soft, #aab6c8);
}
.forces-marketplace-customer-orders__status .forces-marketplace-customer-orders__value,
.forces-marketplace-customer-orders__payment-status .forces-marketplace-customer-orders__value {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: capitalize;
	background: var(--fb-khaki, #1d2c49);
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-customer-orders__status--pending .forces-marketplace-customer-orders__value,
.forces-marketplace-customer-orders__payment-status--pending .forces-marketplace-customer-orders__value {
	background: rgba(251, 191, 36, 0.16);
	color: #fbbf24;
}
.forces-marketplace-customer-orders__status--processing .forces-marketplace-customer-orders__value {
	background: rgba(59, 130, 246, 0.18);
	color: var(--fb-azure, #7cc0ff);
}
.forces-marketplace-customer-orders__status--completed .forces-marketplace-customer-orders__value,
.forces-marketplace-customer-orders__status--dispatched .forces-marketplace-customer-orders__value,
.forces-marketplace-customer-orders__payment-status--paid .forces-marketplace-customer-orders__value {
	background: rgba(74, 222, 128, 0.16);
	color: var(--fb-success, #4ade80);
}
.forces-marketplace-customer-orders__status--cancelled .forces-marketplace-customer-orders__value,
.forces-marketplace-customer-orders__payment-status--failed .forces-marketplace-customer-orders__value {
	background: rgba(248, 113, 113, 0.16);
	color: var(--fb-danger, #f87171);
}
.forces-marketplace-customer-orders__payment-confirmed {
	margin: 0.15rem 0 0;
	font-size: 0.85rem;
	color: var(--fb-success, #4ade80);
}
.forces-marketplace-customer-orders__payment-pending-hint {
	margin: 0.5rem 0;
	font-size: 0.88rem;
	color: var(--fb-ink-soft, #aab6c8);
}

/* --- Order summary (totals) --- */
.forces-marketplace-customer-orders__meta {
	margin: 1rem 0 0;
	display: grid;
	gap: 0.35rem;
}
.forces-marketplace-customer-orders__meta-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.9rem;
}
.forces-marketplace-customer-orders__meta-row .forces-marketplace-customer-orders__label {
	color: var(--fb-ink-soft, #aab6c8);
}
.forces-marketplace-customer-orders__meta-row .forces-marketplace-customer-orders__value {
	color: var(--fb-ink, #e9eef7);
	font-variant-numeric: tabular-nums;
}
.forces-marketplace-customer-orders__meta dt,
.forces-marketplace-customer-orders__meta dd { margin: 0; }
.forces-marketplace-customer-orders__meta-row--grand-total {
	margin-top: 0.35rem;
	padding-top: 0.6rem;
	border-top: 1px solid var(--fb-border, #28324a);
	font-size: 1.05rem;
}
.forces-marketplace-customer-orders__meta-row--grand-total .forces-marketplace-customer-orders__label {
	color: var(--fb-ink, #e9eef7);
	font-weight: 600;
}
.forces-marketplace-customer-orders__total {
	font-weight: 700;
	color: var(--fb-ink, #e9eef7) !important;
}

/* --- Pay-now (pending orders) --- */
.forces-marketplace-customer-orders__pay { margin: 0.25rem 0 0; }
.forces-marketplace-customer-orders__pay-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--fb-blue, #3b82f6);
	color: var(--fb-on-accent, #fff);
	border: none;
	border-radius: var(--fb-radius-md, 14px);
	padding: 0.7rem 1.3rem;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	min-height: var(--fb-tap-min, 44px);
	transition: background 0.15s ease;
}
.forces-marketplace-customer-orders__pay-button:hover { background: var(--fb-blue-hover, #5a96f8); }

/* --- Section sub-headings shared by items / shipping / shipments --- */
.forces-marketplace-customer-orders__items-title,
.forces-marketplace-customer-orders__ship-to-title,
.forces-marketplace-customer-orders__shipments-title {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fb-ink-soft, #aab6c8);
	margin: 0 0 0.6rem;
}
.forces-marketplace-customer-orders__items,
.forces-marketplace-customer-orders__ship-to,
.forces-marketplace-customer-orders__shipments {
	margin-top: 1.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--fb-border, #28324a);
}

/* --- Item list --- */
.forces-marketplace-customer-orders__items-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}
.forces-marketplace-customer-orders__item-inner {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}
.forces-marketplace-customer-orders__item-image,
.forces-marketplace-customer-orders__item-image-placeholder {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--fb-sand, #11192a);
}
.forces-marketplace-customer-orders__item-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	color: var(--fb-green-soft, #93a0b4);
}
.forces-marketplace-customer-orders__item-details { min-width: 0; }
.forces-marketplace-customer-orders__item-name {
	margin: 0 0 0.2rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-customer-orders__item-variant,
.forces-marketplace-customer-orders__item-meta {
	margin: 0;
	font-size: 0.8rem;
	color: var(--fb-ink-soft, #aab6c8);
}
.forces-marketplace-customer-orders__item-variant { margin-bottom: 0.12rem; }

/* --- Shipping address --- */
.forces-marketplace-customer-orders__ship-to-address {
	font-style: normal;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--fb-ink, #e9eef7);
}

/* --- Shipments / tracking --- */
.forces-marketplace-customer-orders__multi-parcel-notice {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: var(--fb-ink-soft, #aab6c8);
}
.forces-marketplace-customer-orders__shipments {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.forces-marketplace-customer-orders__shipments-title { margin-bottom: 0; }
.forces-marketplace-customer-orders__shipment {
	background: var(--fb-sand, #11192a);
	border: 1px solid var(--fb-border, #28324a);
	border-left: 3px solid var(--fb-border-strong, #3a4866);
	border-radius: 10px;
	padding: 0.8rem 1rem;
}
.forces-marketplace-customer-orders__shipment p {
	margin: 0 0 0.3rem;
	font-size: 0.88rem;
	color: var(--fb-ink, #e9eef7);
}
.forces-marketplace-customer-orders__shipment p:last-child { margin-bottom: 0; }
.forces-marketplace-customer-orders__shipment strong {
	color: var(--fb-ink-soft, #aab6c8);
	font-weight: 600;
}
.forces-marketplace-customer-orders__shipment--processing { border-left-color: var(--fb-azure, #7cc0ff); }
.forces-marketplace-customer-orders__shipment--dispatched { border-left-color: var(--fb-success, #4ade80); }
.forces-marketplace-customer-orders__tracking-link {
	color: var(--fb-azure, #7cc0ff);
	font-weight: 600;
}

/* --- Generic notices (payment / stripe return) --- */
.forces-marketplace-customer-orders__notice,
.forces-marketplace-customer-orders__stripe-return {
	background: var(--fb-accent-bg, rgba(124, 192, 255, 0.14));
	border: 1px solid var(--fb-border-strong, #3a4866);
	border-radius: var(--fb-radius-sm, 8px);
	padding: 0.85rem 1rem;
	margin: 0 0 1rem;
	color: var(--fb-ink, #e9eef7);
	font-size: 0.92rem;
}
.forces-marketplace-customer-orders__stripe-return p { margin: 0 0 0.35rem; }
.forces-marketplace-customer-orders__stripe-return p:last-child { margin-bottom: 0; }
.forces-marketplace-customer-orders__stripe-return--cancelled {
	background: rgba(248, 113, 113, 0.12);
	border-color: var(--fb-danger, #f87171);
}
.forces-marketplace-customer-orders__stripe-return-hint {
	font-size: 0.85rem;
	color: var(--fb-ink-soft, #aab6c8);
}

/* --- Empty / login-required / unavailable states --- */
.forces-marketplace-customer-orders--empty,
.forces-marketplace-customer-orders--login-required,
.forces-marketplace-customer-orders--unavailable,
.forces-marketplace-customer-orders--guest-cancelled {
	max-width: 560px;
	text-align: center;
	background: var(--fb-surface, #182231);
	border: 1px solid var(--fb-border, #28324a);
	border-radius: var(--fb-radius-lg, 22px);
	padding: 2.25rem 1.75rem;
	box-shadow: var(--fb-shadow-sm, 0 2px 10px rgba(0,0,0,0.45));
}
.forces-marketplace-customer-orders__message {
	color: var(--fb-ink-soft, #aab6c8);
	margin: 0.5rem 0 0;
}
.forces-marketplace-customer-orders--guest-confirmation { max-width: 640px; }

@media (max-width: 560px) {
	.forces-marketplace-customer-orders__card { padding: 1.1rem; }
	.forces-marketplace-customer-orders__title { font-size: 1.35rem; }
}
