/* =========================================================================
   FF Showcase — single product page  (same design language as the shop)
   Override in Customizer › Additional CSS, e.g. .ffpd { --ffpd-ratio: 4 / 5; }
   ========================================================================= */

.ffpd {
	--ffpd-bg: #ffffff;
	--ffpd-surface: #f6f3ef;
	--ffpd-ink: #1b1a19;
	--ffpd-muted: #6f6a64;
	--ffpd-line: #e7e2dc;
	--ffpd-radius: 16px;
	--ffpd-ratio: 1 / 1; /* product photos are square; switch to 4 / 5 for portrait shots */
	--ffpd-sticky-top: 0px;
	--ffpd-ease: cubic-bezier(.2, .7, .2, 1);

	color: var(--ffpd-ink);
	padding-block: clamp(8px, 2vw, 24px) clamp(40px, 6vw, 80px);
	-webkit-font-smoothing: antialiased;
}
.ffpd *, .ffpd *::before, .ffpd *::after { box-sizing: border-box; }
.ffpd ul, .ffpd ol { list-style: none; margin: 0; padding: 0; }
.ffpd a { color: inherit; text-decoration: none; }
.ffpd button { font: inherit; color: inherit; }
.ffpd .ffpd-ico { flex: none; }

/* Theme title bar repeats the name — our layout has its own H1 + breadcrumb */
.ffpd-page .page_cover .page_title { display: none; }

/* RTL: mirror directional icons */
[dir="rtl"] .ffpd-nav-btn .ffpd-ico, [dir="rtl"] .ffpd-lb-btn--prev .ffpd-ico, [dir="rtl"] .ffpd-lb-btn--next .ffpd-ico { transform: scaleX(-1); }

/* ---------- Breadcrumb ---------- */
.ffpd-crumbs { margin-block-end: clamp(14px, 2vw, 22px); font-size: 13px; color: var(--ffpd-muted); }
.ffpd-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ffpd-crumbs a { transition: color .2s; }
.ffpd-crumbs a:hover { color: var(--ffpd-ink); }
.ffpd-crumbs__sep { opacity: .5; }
.ffpd-crumbs li:last-child { color: var(--ffpd-ink); }

/* ---------- Hero: gallery + info ---------- */
.ffpd-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
	gap: clamp(24px, 4.5vw, 64px);
	align-items: start;
}
@media (max-width: 900px) { .ffpd-hero { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Gallery ---------- */
.ffpd-gallery { min-width: 0; }
.ffpd-stage {
	position: relative;
	border-radius: var(--ffpd-radius);
	overflow: hidden;
	background: var(--ffpd-surface);
	isolation: isolate;
}
.ffpd-slides {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}
.ffpd-slides::-webkit-scrollbar { display: none; }
.ffpd-slide {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: var(--ffpd-ratio);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.ffpd-slide__btn {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.ffpd-slide__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
}
.ffpd-slide__cap {
	position: absolute;
	inset-block-end: 14px;
	inset-inline-start: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: rgba(255, 255, 255, .9);
	pointer-events: none;
}
.ffpd-noimg {
	display: grid;
	place-items: center;
	aspect-ratio: var(--ffpd-ratio);
	padding: 24px;
	text-align: center;
	background:
		repeating-linear-gradient(90deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 9px),
		linear-gradient(160deg, #eeebe6, #dcd6ce);
}
.ffpd-noimg span { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(27, 26, 25, .5); }

.ffpd-nav-btn {
	position: absolute;
	inset-block-start: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-block-start: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s, transform .25s var(--ffpd-ease);
}
.ffpd-nav-btn[data-dir="prev"] { inset-inline-start: 14px; }
.ffpd-nav-btn[data-dir="next"] { inset-inline-end: 14px; }
.ffpd-nav-btn:disabled { opacity: 0 !important; pointer-events: none; }
.ffpd-stage:hover .ffpd-nav-btn, .ffpd-nav-btn:focus-visible { opacity: 1; }
.ffpd-nav-btn:active { transform: scale(.94); }
@media (hover: none), (pointer: coarse) { .ffpd-nav-btn { display: none; } }

.ffpd-counter {
	position: absolute;
	inset-block-end: 14px;
	inset-inline-end: 14px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #fff;
	background: rgba(27, 26, 25, .62);
	pointer-events: none;
}
.ffpd-zoom-hint {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	pointer-events: none;
	opacity: .9;
}
@media (hover: none), (pointer: coarse) { .ffpd-zoom-hint { display: none; } }

.ffpd-thumbs {
	display: flex;
	gap: 10px;
	margin-block-start: 12px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px;
}
.ffpd-thumbs::-webkit-scrollbar { display: none; }
.ffpd-thumb {
	flex: 0 0 auto;
	width: 76px;
	height: 76px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ffpd-surface);
	cursor: pointer;
	opacity: .65;
	transition: opacity .2s, border-color .2s;
}
.ffpd-thumb:hover { opacity: 1; }
.ffpd-thumb[aria-current="true"] { opacity: 1; border-color: var(--ffpd-ink); }
.ffpd-thumb__img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }

.ffpd-admin-hint {
	display: flex;
	gap: 10px;
	margin-block-start: 12px;
	padding: 12px 14px;
	border: 1px dashed #cfc7bd;
	border-radius: 12px;
	font-size: 12.5px;
	line-height: 1.9;
	color: var(--ffpd-muted);
	background: #fbfaf8;
}
.ffpd-admin-hint strong { color: var(--ffpd-ink); }
.ffpd-admin-hint a { color: var(--ffpd-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Info column ---------- */
.ffpd-info { min-width: 0; }
@media (min-width: 901px) {
	.ffpd-info__inner { position: sticky; top: calc(var(--ffpd-sticky-top) + 24px); }
	.admin-bar .ffpd-info__inner { top: calc(var(--ffpd-sticky-top) + 56px); }
}
.ffpd-eyebrow {
	display: inline-block;
	margin-block-end: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ffpd-muted);
	transition: color .2s;
}
.ffpd-eyebrow:hover { color: var(--ffpd-ink); }
.ffpd .ffpd-title {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 42px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
}
.ffpd-codes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--ffpd-muted);
}
.ffpd-codes [dir="ltr"] { font-weight: 600; color: var(--ffpd-ink); letter-spacing: .02em; }
.ffpd-dot { opacity: .5; }
.ffpd-price { margin-block-start: 16px; font-size: 22px; font-weight: 700; }
.ffpd-price del { color: var(--ffpd-muted); font-size: .7em; font-weight: 400; }
.ffpd-price ins { text-decoration: none; }

.ffpd-highlights {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 24px 0 0;
}
.ffpd-highlight {
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--ffpd-surface);
}
.ffpd-highlight dt { margin: 0 0 4px; font-size: 12px; color: var(--ffpd-muted); }
.ffpd-highlight dd { margin: 0; font-size: 16px; font-weight: 700; }

.ffpd-short { margin-block-start: 20px; font-size: 14px; line-height: 1.9; color: var(--ffpd-muted); }
.ffpd-buy { margin-block-start: 22px; }

.ffpd-cta { display: grid; gap: 10px; margin-block-start: 24px; }
.ffpd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.ffpd-btn:active { transform: scale(.98); }
.ffpd-btn--primary { background: var(--ffpd-ink); color: #fff !important; border: 1px solid var(--ffpd-ink); }
.ffpd-btn--primary:hover { background: #000; }
.ffpd-btn--ghost { border: 1px solid var(--ffpd-ink); color: var(--ffpd-ink) !important; background: transparent; }
.ffpd-btn--ghost:hover { background: var(--ffpd-ink); color: #fff !important; }
.ffpd-note { margin: 12px 0 0; font-size: 13px; line-height: 1.9; color: var(--ffpd-muted); }
.ffpd-note a { color: var(--ffpd-ink); font-weight: 700; white-space: nowrap; }

.ffpd-share {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-block-start: 22px;
	padding-block-start: 18px;
	border-block-start: 1px solid var(--ffpd-line);
}
.ffpd-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--ffpd-muted);
	cursor: pointer;
	transition: color .2s;
}
.ffpd-share__btn:hover { color: var(--ffpd-ink); }

/* ---------- Sticky section bar ---------- */
.ffpd-subnav {
	position: sticky;
	top: var(--ffpd-sticky-top);
	z-index: 20;
	margin-block: clamp(36px, 5vw, 64px) 0;
	padding-block: 10px;
	background: color-mix(in srgb, var(--ffpd-bg) 90%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-block-end: 1px solid var(--ffpd-line);
}
.admin-bar .ffpd-subnav { top: calc(var(--ffpd-sticky-top) + 32px); }
@media (max-width: 782px) { .admin-bar .ffpd-subnav { top: var(--ffpd-sticky-top); } }
.ffpd-subnav__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ffpd-subnav__list::-webkit-scrollbar { display: none; }
.ffpd-subnav__link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--ffpd-line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color .25s, color .25s, border-color .25s;
}
.ffpd-subnav__link:hover { border-color: var(--ffpd-ink); }
.ffpd-subnav__link[aria-current="true"] { background: var(--ffpd-ink); border-color: var(--ffpd-ink); color: #fff; }

/* ---------- Sections (expanded, not tabbed) ---------- */
.ffpd-subnav + .ffpd-sections .ffpd-section:first-child { border-block-start: 0; }
.ffpd-section {
	scroll-margin-top: calc(var(--ffpd-sticky-top) + 84px);
	padding-block: clamp(28px, 4vw, 48px);
	border-block-start: 1px solid var(--ffpd-line);
}
.ffpd-sections > .ffpd-section:first-child { margin-block-start: clamp(28px, 4vw, 48px); }
.ffpd-subnav + .ffpd-sections > .ffpd-section:first-child { margin-block-start: 0; }
.ffpd .ffpd-section__title {
	margin: 0 0 clamp(16px, 2vw, 24px);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 800;
	line-height: 1.3;
}
.ffpd-section__count { margin-inline-start: 8px; font-size: 14px; font-weight: 500; color: var(--ffpd-muted); }

.ffpd-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(24px, 4vw, 56px);
	margin: 0;
}
@media (max-width: 700px) { .ffpd-specs { grid-template-columns: minmax(0, 1fr); } }
.ffpd-spec {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding-block: 15px;
	border-block-end: 1px solid var(--ffpd-line);
}
.ffpd-spec dt { margin: 0; font-size: 14px; color: var(--ffpd-muted); }
.ffpd-spec dd { margin: 0; font-size: 15px; font-weight: 700; text-align: end; }

.ffpd-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; }
.ffpd-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.ffpd-swatch__img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 12px;
	outline: 1px solid var(--ffpd-line);
	transition: transform .25s var(--ffpd-ease), outline-color .2s;
}
.ffpd-swatch:hover .ffpd-swatch__img { transform: translateY(-2px); outline-color: var(--ffpd-ink); }
.ffpd-swatch__code { font-size: 12px; font-weight: 700; letter-spacing: .03em; }

.ffpd-content { font-size: 15px; line-height: 2; }
.ffpd-content img { max-width: 100%; height: auto; }
.ffpd-care { font-size: 14px; line-height: 2; }
.ffpd-care img { float: none !important; display: inline-block; margin: 0 0 0 10px; vertical-align: middle; }
.ffpd-care p { margin: 0 0 8px; }

/* Reviews (WooCommerce markup) */
.ffpd-section--reviews #reviews .woocommerce-Reviews-title,
.ffpd-section--reviews #reply-title { font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.ffpd-section--reviews #respond input[type="text"],
.ffpd-section--reviews #respond input[type="email"],
.ffpd-section--reviews #respond textarea { border-radius: 12px; }

/* Related products reuse the shop showcase */
.ffpd-related { margin-block: clamp(24px, 4vw, 48px) 0; }
.ffpd-related .ffcs-section { border-block-start: 1px solid var(--ffpd-line); padding-block-start: clamp(28px, 4vw, 48px); }

/* ---------- Lightbox ---------- */
.ffpd-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(14, 13, 12, .96);
	color: #fff;
	overflow: hidden;
}
.ffpd-lightbox::backdrop { background: rgba(14, 13, 12, .96); }
.ffpd-lightbox[open] { display: block; animation: ffpd-fade .25s var(--ffpd-ease); }
@keyframes ffpd-fade { from { opacity: 0; } to { opacity: 1; } }
.ffpd-lightbox__stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; }
.ffpd-lightbox__img {
	max-width: 92vw;
	max-height: 86vh;
	max-height: 86dvh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	cursor: zoom-in;
	user-select: none;
	-webkit-user-drag: none;
	transition: transform .35s var(--ffpd-ease);
}
.ffpd-lightbox.is-zoomed .ffpd-lightbox__img { transform: scale(2.2); cursor: zoom-out; }
.ffpd-lb-btn {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	cursor: pointer;
	transition: background-color .2s;
}
.ffpd-lb-btn:hover { background: rgba(255, 255, 255, .24); }
.ffpd-lb-btn--close { inset-block-start: 18px; inset-inline-end: 18px; }
.ffpd-lb-btn--prev { inset-block-start: 50%; inset-inline-start: 18px; margin-block-start: -24px; }
.ffpd-lb-btn--next { inset-block-start: 50%; inset-inline-end: 18px; margin-block-start: -24px; }
.ffpd-lightbox__count { position: absolute; inset-block-end: 20px; inset-inline: 0; text-align: center; font-size: 13px; font-weight: 700; opacity: .8; }
@media (max-width: 600px) { .ffpd-lb-btn--prev, .ffpd-lb-btn--next { display: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.ffpd { padding-block-end: 96px; } /* room for the theme's fixed bottom bar */
	.ffpd-cta { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Focus & motion ---------- */
.ffpd a:focus-visible, .ffpd button:focus-visible, .ffpd-lightbox button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.ffpd *, .ffpd-lightbox, .ffpd-lightbox * { transition: none !important; animation: none !important; }
}

/* ---------- Elementor widget mode (each block lives in its own Elementor widget) ---------- */
.ffpd.ffpd-el { padding: 0; }
.ffpd-el > :first-child { margin-block-start: 0; }
.ffpd-el .ffpd-section { padding: 0; border: 0; margin: 0; scroll-margin-top: calc(var(--ffpd-sticky-top) + 24px); }
.ffpd-el .ffpd-highlights, .ffpd-el .ffpd-cta { margin-block-start: 0; }
.ffpd-el .ffpd-crumbs { margin-block-end: 0; }
.ffpd-el .ffpd-related { margin: 0; }
.ffpd-el .ffpd-related .ffcs-section { border: 0; padding-block-start: 0; }
.ffpd-el-note {
	padding: 14px 16px;
	border: 1px dashed #cfc7bd;
	border-radius: 12px;
	font-size: 13px;
	color: #6f6a64;
	background: #fbfaf8;
}
@media (max-width: 900px) { .ffpd.ffpd-el { padding-block-end: 0; } }

/* ---------- Theme-proofing (the XTRA theme styles dl/dt/dd/ol globally) ---------- */
.ffpd .ffpd-crumbs__list, .ffpd .ffpd-crumbs__list li { list-style: none !important; }
.ffpd .ffpd-crumbs__list li { display: inline-flex !important; margin: 0 !important; padding: 0 !important; }
.ffpd .ffpd-crumbs__list li::before, .ffpd .ffpd-crumbs__list li::marker { content: none !important; }
.ffpd dl.ffpd-highlights, .ffpd dl.ffpd-specs { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
.ffpd .ffpd-highlights dt, .ffpd .ffpd-highlights dd, .ffpd .ffpd-specs dt, .ffpd .ffpd-specs dd {
	float: none !important; clear: none !important; width: auto !important; padding: 0 !important; border: 0 !important;
}
.ffpd .ffpd-highlights dd, .ffpd .ffpd-specs dd { margin: 0 !important; }
.ffpd .ffpd-highlight dt { margin: 0 0 4px !important; font-weight: 400 !important; }
.ffpd .ffpd-spec dt { margin: 0 !important; font-weight: 400 !important; }
.ffpd ul.ffpd-swatches, .ffpd ul.ffpd-slides, .ffpd ul.ffpd-swatches li, .ffpd ul.ffpd-slides li { list-style: none !important; margin: 0; }
/* The theme leaves an 80px gap above the content of these pages */
.ffpd-page .page_content { margin-top: 24px !important; }

/* Hide template sections whose FF widgets have nothing to show for this product
   (e.g. colour swatches before colour photos are added). Never hides sections with other widgets. */
.ffpd-elementor .elementor-top-section:not(:has(.ffpd-section, .ffcs-section, .ffpd-gallery, .ffpd-crumbs, .ffpd-title, .ffpd-highlights, .ffpd-cta, .ffpd-el-note, .elementor-widget:not([class*="elementor-widget-ffpd"]))) { display: none !important; }
