/* ==========================================================================
   fn-home.css (v2)
   Ruta: wp-content/themes/biona/fn-home.css
   ========================================================================== */

:root {
	--fn-color-bg: #ffffff;
	--fn-color-bg-alt: #f6f6f4;
	--fn-color-text: #1a1a1a;
	--fn-color-text-muted: #6b6b6b;
	--fn-color-primary: #111111;
	--fn-color-accent: #d8323d;
	--fn-radius: 10px;
	--fn-gap: 1.25rem;
	--fn-container-width: 1200px;
}

.fn-home {
	color: var(--fn-color-text);
}

.fn-container {
	max-width: var(--fn-container-width);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.fn-container--narrow {
	max-width: 760px;
	text-align: center;
}

/* ---------- HERO ---------- */
.fn-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 60vh;
	overflow: hidden;
	background: var(--fn-color-bg-alt);
}

.fn-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.fn-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fn-hero__content {
	position: relative;
	z-index: 1;
	max-width: 560px;
	margin: 0 auto 0 5%;
	padding: 2rem;
	background: rgba(255, 255, 255, 0.88);
	border-radius: var(--fn-radius);
}

.fn-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	text-transform: lowercase;
}

.fn-hero__text {
	margin: 0 0 1.5rem;
	color: var(--fn-color-text-muted);
	line-height: 1.6;
}

/* ---------- SECTION LAYOUT ---------- */
.fn-section {
	padding: 3rem 0;
}

.fn-section--alt {
	background: var(--fn-color-bg-alt);
}

.fn-section__title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: center;
}

/* ---------- INTRO TEXT ---------- */
.fn-section--intro p {
	line-height: 1.7;
	color: var(--fn-color-text-muted);
}

/* ---------- HOME PRODUCT SECTIONS
   Generadas por fn_cached_home_new_products(),
   fn_cached_home_sale_products() y fn_cached_home_best_sellers()
   con wc_get_template_part('content','product') => ul.products li.product
   ---------------------------------------------------------------- */

.fn-home-products-wrap .home-products {
	width: 100%;
}

.fn-home-products-wrap .home-products h2 {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: center;
}

.fn-home-products-wrap .home-products .products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--fn-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.fn-home-products-wrap .home-products .products li.product {
	background: var(--fn-color-bg);
	border: 1px solid #ececec;
	border-radius: var(--fn-radius);
	padding: 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
}

.fn-home-products-wrap .home-products .products li.product img {
	border-radius: calc(var(--fn-radius) - 4px);
	height: auto;
}

.fn-home-products-wrap .home-products .products li.product .price {
	font-weight: 600;
	margin: 0.4rem 0 0.75rem;
}

.fn-home-products-wrap .home-products .products li.product .price del {
	color: var(--fn-color-text-muted);
	font-weight: 400;
	margin-right: 0.4rem;
}

.fn-home-products-wrap .home-products .products li.product .price ins {
	text-decoration: none;
	color: var(--fn-color-accent);
}

.fn-home-products-wrap .home-products .products li.product .button,
.fn-home-products-wrap .home-products .products li.product a.add_to_cart_button,
.fn-home-products-wrap .home-products .products li.product a.button {
	margin-top: auto;
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: var(--fn-radius);
	background: var(--fn-color-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.8rem;
}

.fn-home-products-wrap .home-products .onsale {
	background: var(--fn-color-accent);
	color: #fff;
	border-radius: 999px;
	font-size: 0.7rem;
	text-transform: uppercase;
	font-weight: 600;
}

/* ---------- BUTTONS ---------- */
.fn-btn {
	display: inline-block;
	padding: 0.65rem 1.5rem;
	border-radius: var(--fn-radius);
	background: var(--fn-color-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: opacity 0.15s ease;
}

.fn-btn:hover {
	opacity: 0.85;
}

.fn-btn--primary {
	background: var(--fn-color-accent);
}

/* ---------- TRUST STRIP ---------- */
.fn-trust {
	padding: 2rem 0;
	border-top: 1px solid #ececec;
}

.fn-trust__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--fn-gap);
	text-align: center;
}

.fn-trust__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.fn-trust__title {
	font-weight: 600;
}

.fn-trust__text {
	font-size: 0.85rem;
	color: var(--fn-color-text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
	.fn-home-products-wrap .home-products .products {
		grid-template-columns: repeat(3, 1fr);
	}

	.fn-trust__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.fn-hero {
		min-height: 50vh;
	}

	.fn-hero__content {
		margin: 0 1rem;
		padding: 1.5rem;
	}

	.fn-home-products-wrap .home-products .products {
		grid-template-columns: repeat(2, 1fr);
	}

	.fn-section {
		padding: 2rem 0;
	}
}
