/*
 * FairPlay shop CSS — native (no Bootstrap, no framework).
 *
 * Scoped under `.fp-shop-content` so this never bleeds into the rest of
 * the Elementor site. Class names use the `fp-` prefix for shop UI and
 * keep WooCommerce-required selectors (`.wc-tabs`, `.wc-tab`, `.products`,
 * `.woocommerce-breadcrumb`, etc.) untouched so core/Woo behaviour works.
 */

/* -------------------------------------------------------------------------
 * Container + main/sidebar layout
 * ------------------------------------------------------------------------- */
.fp-shop-container {
	width: 100%;
	max-width: var(--fp-container-max);
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
}

.fp-shop-row {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.fp-shop-row__main {
	flex: 1 1 auto;
	min-width: 0;
}

.fp-shop-row__sidebar {
	flex: 0 0 auto;
	width: 100%;
}

@media (min-width: 992px) {
	.fp-shop-row {
		flex-direction: row;
		align-items: flex-start;
	}

	.fp-shop-row--sidebar-right .fp-shop-row__main {
		order: 1;
	}

	.fp-shop-row--sidebar-right .fp-shop-row__sidebar {
		order: 2;
		width: 25%;
		max-width: 320px;
	}
}

/* Hydration fade (driven by JS removing the SSR class on first paint;
 * .is-navigating is added by the filter form on submit). */
.fp-shop-stage {
	transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-shop-stage.is-hydrating {
	opacity: 0;
	pointer-events: none;
	transition: none;
}

.fp-shop-stage.is-navigating {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
	.fp-shop-stage,
	.fp-shop-stage.is-navigating {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
 * Cards (generic panel surface)
 * ------------------------------------------------------------------------- */
.fp-card {
	background-color: var(--fp-card-bg);
	border-radius: var(--fp-radius);
	box-shadow: var(--fp-shadow-sm);
	overflow: hidden;
}

.fp-card__header {
	padding: 0.75rem 1rem;
	background-color: var(--fp-card-bg-soft);
	border-bottom: 1px solid var(--fp-border-subtle);
}

.fp-card__body {
	padding: 1rem;
}

.fp-card__footer {
	padding: 0;
	background-color: var(--fp-card-bg);
}

.fp-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--fp-text);
}

@media (min-width: 992px) {
	.fp-card__body--lg {
		padding: 2rem;
	}
}



/* -------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */
.fp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--fp-text);
	background-color: var(--fp-card-bg);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
}

.fp-btn:hover,
.fp-btn:focus-visible {
	background-color: var(--fp-card-bg-soft);
}

.fp-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 0.2rem rgba(var(--fp-secondary-rgb), 0.35);
}

.fp-btn--sm {
	min-height: 2.1rem;
	padding: 0.35rem 0.75rem;
	font-size: 0.875rem;
}

.fp-btn--block {
	width: 100%;
}

.fp-btn--primary {
	color: #fff;
	background-color: var(--fp-primary);
	border-color: var(--fp-primary);
}

.fp-btn--primary:hover,
.fp-btn--primary:focus-visible {
	color: #fff;
	background-color: var(--fp-primary-hover);
	border-color: var(--fp-primary-hover);
}

.fp-btn--outline {
	color: var(--fp-text);
	background-color: transparent;
	border-color: var(--fp-border);
}

.fp-btn--outline:hover,
.fp-btn--outline:focus-visible {
	background-color: var(--fp-card-bg);
}

.fp-btn--close {
	width: 2.2rem;
	height: 2.2rem;
	min-height: 0;
	padding: 0;
	border-radius: 50%;
	background-color: var(--fp-secondary);
	border-color: var(--fp-secondary);
}

.fp-btn--close:hover,
.fp-btn--close:focus-visible {
	background-color: var(--fp-secondary-hover);
	border-color: var(--fp-secondary-hover);
}

.fp-btn--close svg {
	width: 0.9rem;
	height: 0.9rem;
	fill: currentColor;
}

/* -------------------------------------------------------------------------
 * Form rows — checkboxes/radios (replaces Bootstrap .form-check)
 * ------------------------------------------------------------------------- */
.fp-check {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.2rem 0;
	font-size: 0.9rem;
}

.fp-check--indent {
	padding-left: 0.85rem;
	border-left: 2px solid var(--fp-border-subtle);
	margin-left: 0.25rem;
}

.fp-check__input {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--fp-primary);
	cursor: pointer;
}

.fp-check__label {
	flex: 1 1 auto;
	cursor: pointer;
	color: var(--fp-text);
}

/* -------------------------------------------------------------------------
 * Breadcrumb
 * ------------------------------------------------------------------------- */
.fp-breadcrumb-container {
	background-color: var(--fp-accent);
	padding: 2px;
	margin-bottom: 1.5rem;
}

.fp-breadcrumb {
	background-color: var(--fp-card-bg-soft);
	padding: 0.5rem 0.75rem;
	overflow-x: auto;
	white-space: nowrap;
}

.fp-breadcrumb__list {
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	font-size: 0.85rem;
}

.fp-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	color: var(--fp-text);
}

.fp-breadcrumb__item + .fp-breadcrumb__item::before {
	content: "/";
	margin-right: 0.4rem;
	color: rgba(var(--fp-text-rgb), 0.35);
}

.fp-breadcrumb__item--current {
	color: rgba(var(--fp-text-rgb), 0.65);
}

.fp-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.fp-breadcrumb a:hover,
.fp-breadcrumb a:focus-visible {
	text-decoration: underline;
}

.fp-icon {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: -0.125em;
	fill: currentColor;
}

.fp-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* -------------------------------------------------------------------------
 * Top of catalog: result count + orderby in a single row
 * (Replaces the row/col Bootstrap wrappers from bootscore parent.)
 * ------------------------------------------------------------------------- */
.fp-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.fp-shop-toolbar__result,
.fp-shop-toolbar__orderby {
	flex: 0 0 auto;
	width: fit-content;
	max-width: 100%;
	background-color: var(--fp-accent);
	padding: 2px;
}

.fp-shop-toolbar__orderby {
	margin-left: auto;
}

.fp-shop-toolbar__box {
	width: fit-content;
	max-width: 100%;
	background-color: var(--fp-card-bg-soft);
	padding-right: 8px;
	padding-left: 8px;
}

.fp-shop-toolbar .woocommerce-result-count {
	display: block;
	margin: 0;
	padding: 0.5rem 0.75rem;
	background-color: transparent;
	color: var(--fp-text);
	font-size: 0.9rem;
}

.fp-shop-toolbar .woocommerce-ordering {
	margin: 0;
	width: fit-content;
	background-color: transparent;
}

.fp-shop-toolbar .woocommerce-ordering select.orderby {
	width: auto;
	min-width: 12rem;
	padding: 0.5rem 0.75rem;
	border: none;
	background-color: transparent;
	color: var(--fp-text);
	font-size: 0.9rem;
	font-family: inherit;
	cursor: pointer;
}

.fp-shop-toolbar .woocommerce-ordering select.orderby:focus {
	outline: 2px solid var(--fp-secondary);
	outline-offset: -2px;
}

/* -------------------------------------------------------------------------
 * Product grid — 4 equal columns on desktop, 4px gap, 2px outer padding.
 * Cards fill each track (max width per column). Overrides WooCommerce floats.
 * ------------------------------------------------------------------------- */
.fp-shop-content .woocommerce ul.products,
.fp-shop-content ul.products.fp-shop-grid {
	list-style: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px;
	margin: 0 0 1.5rem;
	padding: 2px;
	box-sizing: border-box;
	width: 100%;
	background-color: var(--fp-accent);
	clear: both;
}

.fp-shop-content .woocommerce ul.products::before,
.fp-shop-content .woocommerce ul.products::after,
.fp-shop-content ul.products.fp-shop-grid::before,
.fp-shop-content ul.products.fp-shop-grid::after {
	display: none;
	content: none;
}

.fp-shop-content .woocommerce ul.products > li.product,
.fp-shop-content .woocommerce ul.products > li.fp-shop-card-container,
.fp-shop-content ul.products.fp-shop-grid > li.product,
.fp-shop-content ul.products.fp-shop-grid > li.fp-shop-card-container {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0;
	float: none !important;
	clear: none !important;
	list-style: none;
}

@media (min-width: 576px) {
	.fp-shop-content .woocommerce ul.products,
	.fp-shop-content ul.products.fp-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.fp-shop-content .woocommerce ul.products,
	.fp-shop-content ul.products.fp-shop-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* -------------------------------------------------------------------------
 * Product loop card
 * ------------------------------------------------------------------------- */
.fp-shop-card-container {
	background-color: var(--fp-accent);
	padding: 2px;
	list-style: none;
	margin: 0;
	width: 100%;
	min-width: 0;
}

.fp-shop-card {
	display: flex;
	flex-direction: column;
	background-color: var(--fp-card-bg);
	color: var(--fp-text);
	text-align: center;
	height: 100%;
	box-shadow: var(--fp-shadow-sm);
	position: relative;
}

.fp-shop-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1rem 0.75rem;
	flex: 1 1 auto;
}

.fp-shop-card__body a {
	color: inherit;
	text-decoration: none;
}

.fp-shop-card__body .woocommerce-loop-product__title,
.fp-shop-card__body h2,
.fp-shop-card__body h3 {
	width: 100%;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	padding: 0 0.35rem;
	color: var(--fp-text);
	text-align: center;
}

.fp-shop-card a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
	display: block;
	text-align: center;
}

.fp-shop-card__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

/* Library status favicon — visibility from WooCommerce product_cat-* on the <li>. */
.fp-shop-card-container {
	--fp-library-status-tooltip: none;
}

.fp-shop-card-container.product_cat-in-our-library {
	--fp-library-status-tooltip: "Available to play in-store";
}

.fp-shop-card-container.product_cat-wishlist:not(.product_cat-in-our-library) {
	--fp-library-status-tooltip: "This game is on our wishlist";
}

.fp-shop-card__library-status {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 5;
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	cursor: default;
	-webkit-tap-highlight-color: transparent;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fp-shop-card__library-status__icon {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 1px 2px rgba(var(--fp-text-rgb), 0.25));
}

.fp-shop-card-container.product_cat-in-our-library .fp-shop-card__library-status,
.fp-shop-card-container.product_cat-wishlist:not(.product_cat-in-our-library) .fp-shop-card__library-status {
	margin-right: 3px;
}

.fp-shop-card-container.product_cat-in-our-library .fp-shop-card__library-status {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.fp-shop-card-container.product_cat-wishlist:not(.product_cat-in-our-library) .fp-shop-card__library-status {
	opacity: 0.15;
	visibility: visible;
	pointer-events: auto;
}

.fp-shop-card-container.product_cat-wishlist:not(.product_cat-in-our-library) .fp-shop-card__library-status:hover {
	opacity: 1;
}

.fp-shop-card__library-status:hover::after {
	content: var(--fp-library-status-tooltip);
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 0.35rem;
	padding: 0.35rem 0.5rem;
	max-width: 11rem;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: right;
	color: var(--fp-card-bg);
	background: var(--fp-text);
	border-radius: var(--fp-radius-sm);
	white-space: normal;
	pointer-events: none;
	z-index: 4;
}

.fp-shop-card__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
	display: block;
	margin: 0;
}

.fp-shop-card__body .price {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--fp-primary);
	margin: 0.25rem 0;
	text-align: center;
}

.fp-shop-card__body .button,
.fp-shop-card__body .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.2rem;
	margin-top: auto;
	padding: 0.4rem 0.9rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #fff;
	background-color: var(--fp-primary);
	border: 1px solid var(--fp-primary);
	border-radius: var(--fp-radius-sm);
	text-decoration: none;
	cursor: pointer;
}

.fp-shop-card__body .button:hover,
.fp-shop-card__body .added_to_cart:hover {
	background-color: var(--fp-primary-hover);
	border-color: var(--fp-primary-hover);
}

/* Spec strip footer */
.fp-shop-card__footer {
	background-color: var(--fp-card-bg);
	border-top: none;
}

.fp-shop-card-specs {
	--fp-spec-divider: rgba(0, 0, 0, 0.12);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	align-items: stretch;
	min-height: 3.25rem;
}

.fp-shop-card-spec {
	aspect-ratio: 1 / 1;
	min-height: 3.25rem;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0.15rem;
	border-right: 1px solid var(--fp-spec-divider);
	background-color: var(--fp-card-bg);
	text-align: center;
	min-width: 0;
}

.fp-shop-card-spec:last-child {
	border-right: none;
}

.fp-shop-card-spec::before {
	content: attr(data-symbol);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(1.75rem, 42%, 2.75rem);
	line-height: 1;
	opacity: 0.06;
	pointer-events: none;
}

.fp-shop-card-spec--length::before {
	top: -0.35rem;
	font-size: clamp(2rem, 48%, 3.25rem);
}

.fp-shop-card-spec--complexity::before {
	top: -0.55rem;
	font-size: clamp(1.85rem, 44%, 3rem);
}

.fp-shop-card-spec__value {
	position: relative;
	z-index: 1;
	font-size: clamp(0.7rem, 2.8vw, 0.9rem);
	font-weight: 700;
	line-height: 1.15;
}

@media (min-width: 992px) {
	.fp-shop-card-spec__value {
		font-size: 0.85rem;
	}

	.fp-shop-card-spec__duration-unit {
		font-size: 0.7rem;
	}
}

.fp-shop-card-spec__value--duration {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.1em;
	line-height: 1.15;
}

.fp-shop-card-spec__duration-unit {
	font-size: inherit;
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Sidebar (shop + product) — desktop inline, mobile off-canvas drawer
 * ------------------------------------------------------------------------- */
.fp-offcanvas-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	margin-bottom: 1.5rem;
	padding: 0.6rem 0.85rem;
	background-color: var(--fp-card-bg);
	color: var(--fp-text);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
	font-weight: 500;
	cursor: pointer;
}

.fp-offcanvas-toggle:hover,
.fp-offcanvas-toggle:focus-visible {
	background-color: var(--fp-card-bg-soft);
}

.fp-offcanvas-toggle-wrap {
	background-color: var(--fp-accent);
	padding: 2px;
}

@media (min-width: 992px) {
	.fp-offcanvas-toggle-wrap {
		display: none;
	}
}

/* The drawer body. On desktop it's inline. On mobile it slides in from the side. */
.fp-offcanvas {
	display: flex;
	flex-direction: column;
	background-color: var(--fp-card-bg-soft);
}

@media (max-width: 991.98px) {
	.fp-offcanvas {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(85vw, 22rem);
		z-index: 1050;
		background-color: var(--fp-accent);
		color: var(--fp-surface);
		transform: translateX(100%);
		transition: transform 0.25s ease;
		box-shadow: -0.5rem 0 1.5rem rgba(0, 0, 0, 0.35);
		overflow-y: auto;
	}

	.fp-offcanvas.is-open {
		transform: translateX(0);
	}
}

.fp-offcanvas__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background-color: var(--fp-accent);
	color: var(--fp-surface);
}

.fp-offcanvas__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--fp-secondary);
}

@media (min-width: 992px) {
	.fp-offcanvas__header {
		display: none;
	}
}

.fp-offcanvas__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem 1rem;
}

@media (min-width: 992px) {
	.fp-offcanvas__body {
		padding: 0;
		background-color: transparent;
		color: var(--fp-text);
	}
}

/* Mobile drawer backdrop */
.fp-offcanvas-backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 1040;
}

.fp-offcanvas-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

/* Prevent body scroll while the drawer is open (added by JS). */
body.fp-offcanvas-lock {
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * Shop filter panel — desktop cards, floating apply, etc.
 * ------------------------------------------------------------------------- */
.fp-shop-filters {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fp-shop-filters-form {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--fp-accent);
	padding: 1px 0;
}

.fp-shop-filters-group {
	margin: 1px 2px;
	background-color: var(--fp-card-bg);
}

.fp-shop-filters-group__header {
	padding: 0.6rem 0.85rem;
	background-color: var(--fp-card-bg-soft);
	border-bottom: 1px solid var(--fp-border-subtle);
}

.fp-shop-filters-group__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--fp-text);
}

.fp-shop-filters-group__body {
	padding: 0.65rem 0.85rem 0.85rem;
}

.fp-shop-filters__terms {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.fp-shop-filters-sticky-apply {
	display: none;
}

@media (min-width: 992px) {
	.fp-shop-filters-sticky-apply {
		display: block;
		position: absolute;
		top: 0.75rem;
		left: 0.5rem;
		right: 0.5rem;
		z-index: 40;
		padding: 0.5rem;
		background-color: var(--fp-card-bg);
		border: 1px solid var(--fp-border);
		box-shadow: var(--fp-shadow-md);
		opacity: 1;
		visibility: visible;
		transition: opacity 0.2s ease, visibility 0.2s ease;
		will-change: top;
	}

	.fp-shop-filters-sticky-apply.is-hidden {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

.fp-stack {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fp-stack--sm {
	gap: 0.35rem;
}

/* On mobile the drawer is dark, so cards/headers/buttons need contrast tweaks. */
@media (max-width: 991.98px) {
	.fp-offcanvas .fp-shop-filters-form {
		background-color: transparent;
		padding: 0;
	}

	.fp-offcanvas .fp-shop-filters-group {
		background-color: var(--fp-card-bg);
		margin: 0 0 0.5rem;
		border-radius: var(--fp-radius-sm);
		overflow: hidden;
	}

	.fp-offcanvas .fp-btn--outline {
		color: var(--fp-surface);
		border-color: rgba(255, 255, 255, 0.35);
	}
}

/* -------------------------------------------------------------------------
 * Attributes accordion — native <details>/<summary>
 * ------------------------------------------------------------------------- */
.fp-shop-attrs__item + .fp-shop-attrs__item {
	border-top: 1px solid var(--fp-border-subtle);
	margin-top: 0.5rem;
	padding-top: 0.25rem;
}

.fp-shop-attrs__item summary {
	list-style: none;
	cursor: pointer;
	padding: 0.4rem 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--fp-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.fp-shop-attrs__item summary::-webkit-details-marker {
	display: none;
}

.fp-shop-attrs__item summary::after {
	content: "";
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.18s ease;
}

.fp-shop-attrs__item[open] summary::after {
	transform: rotate(225deg);
}

.fp-shop-attrs__item summary:focus-visible {
	outline: 2px solid var(--fp-secondary);
	outline-offset: 2px;
}

.fp-shop-attrs__body {
	padding: 0.1rem 0 0.6rem;
}

/* -------------------------------------------------------------------------
 * Product CRM intent buttons
 * ------------------------------------------------------------------------- */
.fp-product-crm {
	--fp-crm-count-bg: color-mix(in srgb, #dc3545 58%, white 42%);
	overflow: visible;
}

@supports not (background: color-mix(in srgb, red, white)) {
	.fp-product-crm {
		--fp-crm-count-bg: #c96f7a;
	}
}

.fp-product-crm__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.85rem 0.75rem 1rem;
	overflow: visible;
}

.fp-crm-action {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	width: 100%;
	padding: 0.5rem 0.85rem;
	font-weight: 500;
	font-family: inherit;
	color: var(--fp-text);
	background-color: #fff;
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
	text-align: left;
	cursor: pointer;
	position: relative;
	overflow: visible;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fp-crm-action:hover:not(:disabled) {
	background-color: var(--fp-card-bg-soft);
	border-color: var(--fp-muted);
	color: var(--fp-text);
}

.fp-crm-action:focus-visible {
	outline: none;
	box-shadow: 0 0 0 0.2rem rgba(var(--fp-primary-rgb), 0.35);
}

.fp-crm-action[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.fp-crm-action__row {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding-right: 0.25rem;
}

.fp-crm-action__label {
	min-width: 0;
}

.fp-crm-action__thumb {
	display: none;
	flex-shrink: 0;
	width: 1.05rem;
	height: 1.05rem;
}

.fp-crm-action.is-active .fp-crm-action__thumb {
	display: inline-block;
}

.fp-crm-action.is-active {
	color: #fff !important;
	background-color: var(--fp-primary) !important;
	border-color: var(--fp-primary) !important;
}

.fp-crm-action.is-active:hover:not(:disabled) {
	background-color: var(--fp-primary-hover) !important;
	border-color: var(--fp-primary-hover) !important;
}

.fp-crm-action__count {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(42%, -42%);
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 0.45rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff !important;
	background-color: var(--fp-crm-count-bg) !important;
	border: 3px solid var(--fp-card-bg);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

/* -------------------------------------------------------------------------
 * Single product top card + tabs + related
 * ------------------------------------------------------------------------- */
.fp-product-top-card {
	background-color: var(--fp-card-bg);
	box-shadow: var(--fp-shadow-sm);
	margin-bottom: 1.5rem;
}

.fp-product-top-card__body {
	padding: 1.25rem;
}

@media (min-width: 992px) {
	.fp-product-top-card__body {
		padding: 2rem;
	}
}

.fp-product-top-card__body::after {
	content: "";
	display: table;
	clear: both;
}

.fp-product-tabs-card-stack {
	margin-bottom: 1.5rem;
}

.fp-product-tabs-card {
	background-color: var(--fp-card-bg);
	box-shadow: var(--fp-shadow-sm);
	margin-bottom: 0;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* Empty cap — clips both bottom corners; sits flush under the white tab panel */
.fp-product-tabs-card-cut {
	display: block;
	height: var(--fp-cut-lg);
	min-height: var(--fp-cut-lg);
	margin: 0;
	padding: 0;
	background-color: var(--fp-card-bg);
}

.fp-product-tabs-card__body {
	padding: 1.25rem;
}

@media (min-width: 992px) {
	.fp-product-tabs-card__body {
		padding: 2rem;
	}
}

.fp-wc-tabs-wrapper {
	margin-bottom: 1.5rem;
}

.fp-wc-tabs-scroll {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
}

.fp-wc-tabs-scroll::-webkit-scrollbar {
	display: none;
}

ul.wc-tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex: 1 1 auto;
	gap: 0;
	flex-wrap: nowrap;
}

ul.wc-tabs li {
	margin: 0 2px 0 0;
	background-color: var(--fp-accent);
	padding: 0;
}

ul.wc-tabs li a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--fp-secondary);
	background-color: var(--fp-accent);
	text-decoration: none;
	white-space: nowrap;
	border: none;
}

ul.wc-tabs li a:hover,
ul.wc-tabs li a:focus-visible {
	background-color: var(--fp-secondary);
	color: var(--fp-accent);
	outline: none;
}

ul.wc-tabs li.active a {
	color: var(--fp-text);
	background-color: var(--fp-card-bg);
}

/* Tab panel headings (we filter them empty in functions.php; this is a fallback). */
.woocommerce-Tabs-panel h2:first-child {
	margin-top: 0;
}

/* -------------------------------------------------------------------------
 * Pennant-bunting pagination (ported from bootscore-child SCSS to plain CSS)
 * ------------------------------------------------------------------------- */
/* Digits only — small files for page numbers on bunting flags. */
@font-face {
	font-family: "Gagalin";
	src: url("../fonts/gagalin-numeric.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0030-0039;
}

.fp-bunting--pagination {
	margin: 2rem auto 2.5rem;
}

.fp-bunting__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	padding: 0;
	margin: 0 auto;
	position: relative;
	z-index: 0;
	width: fit-content;
	max-width: 100%;
	align-items: flex-start;
	overflow: visible;
}

.fp-bunting__list::before {
	content: "";
	position: absolute;
	left: calc(-1 * (var(--fp-bunting-flag-width) / 2));
	right: calc(-1 * (var(--fp-bunting-flag-width) / 2));
	top: 0;
	height: 2px;
	background: repeating-linear-gradient(
		90deg,
		var(--fp-secondary) 0 3px,
		color-mix(in srgb, var(--fp-secondary) 72%, var(--fp-text) 28%) 3px 5px
	);
	border-radius: 1px;
	z-index: 0;
}

@supports not (background: color-mix(in srgb, red, white)) {
	.fp-bunting__list::before {
		background: repeating-linear-gradient(90deg, var(--fp-secondary) 0 3px, #8a6920 3px 5px);
	}
}

.fp-bunting__item {
	margin-left: 0;
	border: none;
	background: transparent;
	list-style: none;
}

.fp-bunting__item--skip-gap {
	margin-inline-start: 0.75rem;
}

.fp-bunting__list .fp-bunting__item[data-bunting-rank] {
	display: none !important;
}

.fp-bunting__list .fp-bunting__item[data-bunting-rank="1"],
.fp-bunting__list .fp-bunting__item[data-bunting-rank="2"],
.fp-bunting__list .fp-bunting__item[data-bunting-rank="3"],
.fp-bunting__list .fp-bunting__item[data-bunting-rank="4"],
.fp-bunting__list .fp-bunting__item[data-bunting-rank="5"],
.fp-bunting__list .fp-bunting__item[data-bunting-rank="6"] {
	display: flex !important;
}

@media (min-width: 576px) {
	.fp-bunting__list .fp-bunting__item[data-bunting-rank="7"],
	.fp-bunting__list .fp-bunting__item[data-bunting-rank="8"] {
		display: flex !important;
	}
}

@media (min-width: 768px) {
	.fp-bunting__list .fp-bunting__item[data-bunting-rank="9"],
	.fp-bunting__list .fp-bunting__item[data-bunting-rank="10"] {
		display: flex !important;
	}
}

@media (min-width: 992px) {
	.fp-bunting__list .fp-bunting__item[data-bunting-rank="11"],
	.fp-bunting__list .fp-bunting__item[data-bunting-rank="12"],
	.fp-bunting__list .fp-bunting__item[data-bunting-rank="13"] {
		display: flex !important;
	}
}

.fp-bunting__link.prev,
.fp-bunting__link.next {
	width: 2.7rem;
	min-width: 2.7rem;
	max-width: 2.7rem;
	font-size: 1.6rem;
	padding: 0.1rem 0.1rem 0;
}

.fp-bunting__link {
	position: relative;
	z-index: 1;
	width: 2.4rem;
	min-width: 2.4rem;
	max-width: 2.4rem;
	height: 2.5rem;
	margin-top: 0;
	padding: 0.3rem 0.1rem 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	border: none;
	border-radius: 0;
	line-height: 1.25;
	font-size: 1.4rem;
	font-family: "Gagalin", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: var(--fp-secondary);
	background-color: var(--fp-surface);
	box-shadow: 0 2px 3px rgba(var(--fp-text-rgb), 0.1);
	clip-path: polygon(
	    0 0,
	    100% 0,
	    100% 80%,
	    50% 100%,
	    0 80%
	  );
	transform-origin: top center;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.fp-bunting__link:hover,
.fp-bunting__link:focus-visible {
	color: var(--fp-card-bg);
	background-color: var(--fp-secondary);
	transform: scaleY(1.1);
	outline: none;
}

.fp-bunting__link.active,
.fp-bunting__item.is-active .fp-bunting__link {
	z-index: 2;
	color: var(--fp-card-bg);
	background-color: var(--fp-primary);
	height: 2.5rem;
	box-shadow: 0 3px 5px rgba(var(--fp-text-rgb), 0.2);
}

.fp-bunting__item.is-disabled .fp-bunting__link {
	opacity: 0.45;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.fp-bunting__link {
		transition-duration: 0.01ms;
	}

	.fp-bunting__link:hover,
	.fp-bunting__link:focus-visible {
		transform: none;
	}
}
