/* Scoped refinements for The Fine Fit product pages and Elementor homepage. */

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
	opacity: 1 !important;
	filter: none;
	transition: outline-color 180ms ease, opacity 180ms ease;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	outline: 1px solid var(--ko-color-text, #292721);
	outline-offset: 2px;
}

.single-product .summary .ffc-production-summary {
	display: grid;
	gap: 0.2rem;
	margin: 1rem 0 1.25rem;
	padding: 0.85rem 1rem;
	border-inline-start: 2px solid #68704f;
	background: #f1f2eb;
	color: #35392c;
	font-size: 0.86rem;
	line-height: 1.55;
}

.ffc-production-summary__label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.woocommerce-tabs .wc-tabs {
	align-items: stretch;
	gap: 0.35rem 0.75rem;
	border-block-end: 1px solid var(--ko-color-border, #dedbd3);
}

.woocommerce-tabs ul.tabs li {
	border: 0 !important;
	border-block-end: 2px solid transparent !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.woocommerce-tabs ul.tabs li.active {
	border-block-end-color: var(--ko-color-accent, #68704f) !important;
	background: transparent !important;
}

.woocommerce-tabs ul.tabs li a {
	display: flex;
	min-height: 2.75rem;
	align-items: center;
	padding-inline: 0.2rem;
	font-size: 0.8rem;
	font-weight: 500;
}

.woocommerce-tabs ul.tabs li a:focus-visible {
	outline: 2px solid var(--ko-color-accent, #68704f);
	outline-offset: 3px;
}

.woocommerce-Tabs-panel--ffc_product_details {
	width: min(100%, 70rem);
	margin-inline: auto;
}

.ffc-product-details {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3.25rem);
	color: var(--ko-color-text, #292721);
}

.ffc-product-details__group,
.ffc-product-details__story-care,
.ffc-product-details__note,
.ffc-product-story__video {
	min-width: 0;
	margin: 0;
	padding-block: 1.4rem;
	border-block-start: 1px solid var(--ko-color-border, #dedbd3);
}

.ffc-product-details__group {
	display: grid;
	grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
	gap: 1.5rem 3rem;
	align-items: start;
}

.ffc-product-details__group > h3,
.ffc-product-details__story-care > h3,
.ffc-product-details__note > h3 {
	margin: 0;
	font-family: var(--ko-font-display, Georgia, serif);
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	font-weight: 400;
	line-height: 1.2;
}

.ffc-product-details__group dl {
	display: grid;
	gap: 0;
	margin: 0;
}

.ffc-product-details__group dl > div {
	display: grid;
	grid-template-columns: minmax(8.5rem, 0.7fr) minmax(0, 1.3fr);
	gap: 1rem;
	padding-block: 0.72rem;
	border-block-end: 1px solid var(--ko-color-border, #dedbd3);
}

.ffc-product-details__group dt {
	color: var(--ko-color-muted, #69665f);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.075em;
	line-height: 1.5;
	text-transform: uppercase;
}

.ffc-product-details__group dd {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.65;
}

.ffc-product-details__story-care {
	display: grid;
	grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
	gap: 1.5rem 3rem;
}

.ffc-product-details__editorial,
.ffc-product-details__care {
	grid-column: 2;
	max-width: 50rem;
	font-size: 0.95rem;
	line-height: 1.75;
}

.ffc-product-details__editorial h4,
.ffc-product-details__care h4 {
	margin: 1.35rem 0 0.45rem;
	font-family: var(--ko-font-display, Georgia, serif);
	font-size: 1.2rem;
	font-weight: 400;
}

.ffc-product-details__editorial p,
.ffc-product-details__care p,
.ffc-product-details__note p {
	margin: 0 0 0.9rem;
}

.ffc-product-details__editorial ul,
.ffc-product-details__care ul {
	margin: 0 0 1rem;
	padding-inline-start: 1.2rem;
}

.ffc-product-details__note {
	grid-column: 1 / -1;
}

.ffc-product-details__note > *:not(h3) {
	max-width: 52rem;
	margin-inline-start: auto;
}

.ffc-handmade-notice {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
	margin: 0;
	padding: 1.2rem clamp(1rem, 2.2vw, 1.6rem);
	border-inline-start: 2px solid #68704f;
	background: #f0f2e9;
	color: #343a2c;
}

.ffc-handmade-notice__mark {
	color: #68704f;
	font-size: 1.1rem;
	line-height: 1.4;
}

.ffc-handmade-notice h3 {
	margin: 0 0 0.35rem;
	font-family: var(--ko-font-display, Georgia, serif);
	font-size: 1.3rem;
	font-weight: 400;
}

.ffc-handmade-notice p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.65;
}

.single-product .summary #wc-stripe-express-checkout-element {
	margin-block: 0.5rem 0.35rem;
	padding-block-start: 0;
	border-block-start: 0;
}

.single-product .summary #wc-stripe-express-checkout-element > .StripeElement {
	margin-block: 0.35rem;
	padding-block-start: 0;
	border-block-start: 0;
}

@media (min-width: 1025px) {
	body.single-product .site-main--content .product.type-product .summary.entry-summary {
		padding: clamp(1rem, 1.5vw, 1.4rem);
	}
	body.single-product .site-main--content .summary .product_title {
		max-width: 28ch;
		margin-block-end: 0.5rem;
		font-size: clamp(1.9rem, 2.25vw, 2.35rem);
		line-height: 1.1;
		letter-spacing: -0.015em;
	}
	body.single-product .site-main--content .summary .price { margin-block-end: 0.5rem; }
	body.single-product .site-main--content .summary .woocommerce-product-details__short-description {
		margin-block: 0.55rem;
		line-height: 1.45;
	}
	body.single-product .site-main--content .summary .woocommerce-product-details__short-description p { margin-block: 0 0.4rem; }
	body.single-product .site-main--content .summary form.cart { margin-block: 0.75rem; }
	body.single-product .site-main--content .summary .product_meta {
		margin-block-start: 0.7rem;
		padding-block-start: 0.6rem;
	}
}

.woocommerce-Tabs-panel--description > .ffc-handmade-notice {
	margin-block: 0 1.4rem;
}

body.home .elementor-element-db57f84 {
	position: relative;
	isolation: isolate;
	background-size: cover;
}

body.home .elementor-element-db57f84::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgb(22 20 17 / 3%) 24%, rgb(22 20 17 / 16%) 58%, rgb(22 20 17 / 56%) 100%);
	content: "";
	pointer-events: none;
}

body.home .elementor-element-db57f84 > .e-con-inner {
	position: relative;
	z-index: 1;
	width: min(100%, 1500px);
	box-sizing: border-box;
}

body.home .elementor-element-db57f84 .elementor-element-8da1287 .elementor-heading-title {
	max-width: 12ch;
	text-wrap: balance;
}

body.home .elementor-element-6939278 .elementor-button {
	min-height: 3rem;
	align-items: center;
}

body.home .elementor-element-d1f114d > .elementor-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 3rem);
}

body.home .elementor-element-d1f114d > .elementor-container > .elementor-column {
	width: auto;
	min-width: 0;
	border-block-start: 1px solid var(--ko-color-border, #dedbd3);
	padding-block-start: 1.25rem;
}

body.home .elementor-element-4958fc8 .elementor-heading-title,
body.home .elementor-element-2d699cd .elementor-heading-title,
body.home .elementor-element-a825ec0 .elementor-heading-title {
	font-family: var(--ko-font-display, Georgia, serif) !important;
	font-size: clamp(1.35rem, 1.8vw, 1.65rem) !important;
	font-weight: 400 !important;
	line-height: 1.25;
}

body.home .elementor-element-70fd9d1 .elementor-heading-title {
	font-family: var(--ko-font-display, Georgia, serif) !important;
	font-size: clamp(1.9rem, 3vw, 2.8rem) !important;
	font-weight: 400 !important;
	line-height: 1.15;
}

body.home .ko-home-story > .elementor-container { width: 100%; }
body.home .ko-home-story .elementor-heading-title,
body.home .ko-home-story .elementor-widget-text-editor p { max-width: none; }
body.home .elementor-element-ff18e03 .elementor-heading-title,
body.home .elementor-element-1a3eb1b .elementor-heading-title {
	font-size: clamp(1.9rem, 3vw, 2.7rem) !important;
	line-height: 1.18;
}
body.home .ko-featured-category__editorial h2 {
	font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.ffc-category-collection {
	width: min(100%, 78rem);
	margin-inline: auto;
	padding-block: clamp(2.2rem, 4vw, 3.8rem);
	color: var(--ko-color-text, #292721);
}
.ffc-category-collection__intro {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-block-end: 1.25rem;
}
.ffc-category-collection__intro h2 {
	margin: 0 0 0.35rem;
	font-family: var(--ko-font-display, Georgia, serif);
	font-size: clamp(1.55rem, 2.3vw, 2.3rem);
	font-weight: 400;
	line-height: 1.15;
}
.ffc-category-collection__intro p {
	max-width: 48rem;
	margin: 0;
	color: var(--ko-color-muted, #69665f);
	font-size: 0.9rem;
	line-height: 1.5;
}
.ffc-category-collection__cta {
	flex: none;
	padding-block: 0.35rem;
	border-block-end: 1px solid currentColor;
	color: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.ffc-category-collection__cta:focus-visible,
.ffc-category-card__link:focus-visible {
	outline: 2px solid var(--ko-color-accent, #68704f);
	outline-offset: 4px;
}
.ffc-category-collection__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.9rem, 1.8vw, 1.6rem);
}
.ffc-category-card { min-width: 0; }
.ffc-category-card__link { display: block; color: inherit; text-decoration: none; }
.ffc-category-card__media { overflow: hidden; background: #f4f2ed; }
.ffc-category-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	transition: transform 180ms ease;
}
.ffc-category-card__link:hover img { transform: scale(1.025); }
.ffc-category-card h3 {
	margin: 0.65rem 0 0.25rem;
	font-family: var(--ko-font-display, Georgia, serif);
	font-size: clamp(0.98rem, 1.2vw, 1.2rem);
	font-weight: 400;
	line-height: 1.3;
}
.ffc-category-card__price { font-size: 0.82rem; }
.ffc-category-collection__editor-note { padding: 1rem; background: #f1f2eb; }

.ffc-home-editorial {
	width: min(100%, 78rem);
	margin-inline: auto;
	padding: clamp(1.6rem, 3vw, 2.7rem) 1.25rem;
}
.ffc-home-editorial .elementor-heading-title {
	max-width: 24ch;
	font-size: clamp(1.7rem, 2.6vw, 2.6rem) !important;
	font-weight: 400;
	line-height: 1.2;
}
.ffc-home-editorial .elementor-widget-text-editor {
	max-width: 44rem;
	font-size: 0.97rem;
	line-height: 1.7;
}
.ffc-home-editorial .elementor-widget-text-editor p { margin-block: 0 0.9rem; }
.ffc-home-editorial a { text-underline-offset: 0.18em; }

@media (max-width: 900px) {
	.ffc-category-collection__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ffc-category-collection__intro { align-items: start; flex-direction: column; }
	.ffc-category-collection__grid { gap: 1rem 0.8rem; }
	.ffc-category-card h3 { font-size: 0.98rem; }
}
@media (max-width: 350px) {
	.ffc-category-collection__grid { grid-template-columns: minmax(0, 1fr); }
}

body.home .elementor-element-5f37a02 .products,
body.home .elementor-element-ba291d0 .products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2.2vw, 2rem);
	margin: 0 !important;
}

body.home .elementor-element-5f37a02 .products li.product,
body.home .elementor-element-ba291d0 .products li.product {
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	float: none !important;
}

body.home .ko-product-card__media {
	background: #f4f2ed;
}

body.home .ko-product-card .woocommerce-loop-product__title {
	min-height: 0;
	padding: 0.6rem 0 0.25rem;
	font-size: clamp(0.95rem, 1.1vw, 1.12rem);
	line-height: 1.3;
}

body.home .ko-product-card .woocommerce-loop-product__title,
.single-product .related .ko-product-card .woocommerce-loop-product__title {
	display: block !important;
	overflow: visible !important;
	-webkit-box-orient: unset !important;
	-webkit-line-clamp: unset !important;
	text-overflow: clip !important;
	white-space: normal !important;
}

body.home .ko-product-card .price {
	padding: 0 0 0.5rem;
	font-size: 0.82rem;
}

body.home .ko-product-card .woocommerce-LoopProduct-link:focus-visible {
	outline: 2px solid var(--ko-color-accent, #68704f);
	outline-offset: 4px;
}

@media (max-width: 1024px) {
	body.home .elementor-element-5f37a02 .products,
	body.home .elementor-element-ba291d0 .products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.single-product .woocommerce-Tabs-panel--ffc_product_details .ffc-product-details__group,
	.single-product .woocommerce-Tabs-panel--ffc_product_details .ffc-product-details__story-care {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}

	.single-product .woocommerce-Tabs-panel--ffc_product_details .ffc-product-details__editorial,
	.single-product .woocommerce-Tabs-panel--ffc_product_details .ffc-product-details__care {
		grid-column: 1;
	}

	.single-product .woocommerce-Tabs-panel--ffc_product_details .ffc-product-details__group dl > div {
		grid-template-columns: minmax(7.5rem, 0.7fr) minmax(0, 1.3fr);
		gap: 0.75rem;
	}

	body.home .elementor-element-db57f84 {
		min-height: clamp(33rem, calc(100svh - 4rem), 46rem);
		padding: 0 1rem 2.25rem !important;
		background-image: url("https://media.thefinefit.com/2026/11/Sunlit-Rustic-African-Inspired-Living-Room-768x576.png") !important;
		background-position: 56% 34% !important;
		background-size: cover !important;
	}

	body.home .elementor-element-db57f84 .elementor-element-8da1287 .elementor-heading-title {
		max-width: 11ch;
		font-size: clamp(2.05rem, 9vw, 3.1rem) !important;
		line-height: 1.04;
		text-wrap: balance;
		overflow-wrap: anywhere;
	}

	body.home .elementor-element-362262a .elementor-widget-container {
		max-width: 34rem;
		font-size: clamp(0.94rem, 4vw, 1.05rem);
		line-height: 1.55;
	}

	body.home .elementor-element-d1f114d > .elementor-container {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	body.home .elementor-element-d1f114d > .elementor-container > .elementor-column {
		padding-block-start: 1rem;
	}

	body.home .elementor-element-70fd9d1 .elementor-heading-title {
		font-size: clamp(1.85rem, 7vw, 2.6rem) !important;
		line-height: 1.1;
	}
}

@media (max-width: 430px) {
	.woocommerce-tabs .wc-tabs {
		gap: 0.15rem 0.45rem;
	}

	.woocommerce-tabs ul.tabs li a {
		font-size: 0.73rem;
	}

	body.home .elementor-element-db57f84 {
		background-position: 54% 34% !important;
	}

	body.home .elementor-element-5f37a02 .products,
	body.home .elementor-element-ba291d0 .products {
		gap: 1.15rem 0.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
		transition: none;
	}
}
