/* =====================================================================
   FORMENTOR – estilos del tema (mobile first; escritorio desde 900px)
   ===================================================================== */

:root {
	--fm-sand: #F4F1EA;
	--fm-sand-2: #ECE8DE;
	--fm-sand-3: #E4E0D5;
	--fm-line: #DAD5C9;
	--fm-ink: #1A1D1A;
	--fm-text: #3E423C;
	--fm-muted: #5B5F58;
	--fm-green: #2E4636;
	--fm-green-dark: #1F3326;
	--fm-green-soft: #EEF2EC;
	--fm-white: #FFFFFF;
	--fm-display: 'Oswald', 'Arial Narrow', sans-serif;
	--fm-body: 'Work Sans', system-ui, -apple-system, sans-serif;
	--fm-radius: 6px;
	--fm-gutter: 16px;
	--fm-max: 1240px;
}

/* ---------- Base (pisa los colores de Hello Elementor) ---------- */
body.fm {
	margin: 0;
	background: var(--fm-sand);
	color: var(--fm-ink);
	font-family: var(--fm-body);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body.fm *, body.fm *::before, body.fm *::after { box-sizing: border-box; }
body.fm a { color: var(--fm-green); }
body.fm a:hover { color: var(--fm-green-dark); }
body.fm img { max-width: 100%; height: auto; }
body.fm h1, body.fm h2, body.fm h3 { color: var(--fm-ink); }
body.fm button, body.fm [type=button], body.fm [type=submit] {
	font-family: inherit;
	border-color: var(--fm-ink);
	color: var(--fm-ink);
}
body.fm button:hover, body.fm button:focus, body.fm [type=button]:hover, body.fm [type=submit]:hover {
	background-color: transparent;
	color: var(--fm-ink);
}
body.fm :focus-visible { outline: 2px solid var(--fm-green); outline-offset: 2px; }
body.fm-lock { overflow: hidden; }
.fm-green { color: var(--fm-green) !important; }
.screen-reader-text:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.fm-site { min-height: 50vh; padding-bottom: 72px; }
body.fm-flow .fm-site { padding-bottom: 32px; }
.fm-wrap { max-width: var(--fm-max); margin: 0 auto; padding: 0 var(--fm-gutter); }
.fm-section { padding-top: 40px; }

.fm-h1 { margin: 0; font-family: var(--fm-display); font-weight: 600; font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.fm-h2 { margin: 0 0 14px; font-family: var(--fm-display); font-weight: 600; font-size: 25px; line-height: 1.1; text-transform: uppercase; }
.fm-h2--tight { margin-bottom: 2px; }
.fm-h3 { margin: 0 0 10px; font-family: var(--fm-display); font-weight: 500; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.fm-kicker { display: inline-block; font-family: var(--fm-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fm-green); }
.fm-crumbs { margin: 14px 0 6px; font-size: 12px; color: var(--fm-muted); }
body.fm .fm-crumbs a { color: var(--fm-muted); }

/* ---------- Botones ---------- */
body.fm .fm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px;
	border: 1px solid var(--fm-green); border-radius: 4px;
	background: var(--fm-green); color: var(--fm-white);
	font-family: var(--fm-display); font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
body.fm .fm-btn:hover, body.fm .fm-btn:focus { background: var(--fm-green-dark); border-color: var(--fm-green-dark); color: var(--fm-white); }
body.fm .fm-btn--lg { min-height: 54px; font-size: 16px; }
body.fm .fm-btn--sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
body.fm .fm-btn--xs { min-height: 40px; padding: 0 14px; font-size: 13px; }
body.fm .fm-btn--block { display: flex; width: 100%; margin-top: 12px; }
body.fm .fm-btn--outline { background: transparent; color: var(--fm-ink); border-color: var(--fm-ink); }
body.fm .fm-btn--outline:hover { background: var(--fm-ink); color: var(--fm-white); }
body.fm .fm-btn--ghost { background: var(--fm-white); color: var(--fm-green); border-color: var(--fm-green); }
body.fm .fm-btn--ghost:hover, body.fm .fm-btn--ghost.is-done { background: var(--fm-green); color: var(--fm-white); }
body.fm .fm-btn--light { background: var(--fm-sand); color: var(--fm-ink); border-color: var(--fm-sand); }
body.fm .fm-btn--light:hover { background: var(--fm-white); color: var(--fm-ink); }
body.fm .fm-btn--wsp { color: var(--fm-green); border-color: var(--fm-green); font-family: var(--fm-body); font-size: 15px; letter-spacing: 0; text-transform: none; }
body.fm .fm-btn--wsp:hover { background: var(--fm-green); color: var(--fm-white); }
body.fm .fm-btn.is-loading, body.fm .ajax_add_to_cart.loading { opacity: .6; pointer-events: none; }
body.fm .added_to_cart { display: none !important; }
body.fm .fm-link { background: none; border: 0; padding: 10px 0; color: var(--fm-green); text-decoration: underline; font-size: 14px; cursor: pointer; }

body.fm .fm-iconbtn {
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--fm-ink); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; position: relative;
}
body.fm .fm-iconbtn:hover { background: var(--fm-sand-2); color: var(--fm-ink); }
body.fm .fm-iconbtn--sm { width: 34px; height: 34px; color: var(--fm-muted); }

/* ---------- Topbar + header ---------- */
.fm-topbar { background: var(--fm-green-dark); color: var(--fm-sand); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 9px 16px; text-align: center; }
.fm-header { background: var(--fm-white); border-bottom: 1px solid var(--fm-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .fm-header { top: 46px; }
.fm-header__inner { max-width: var(--fm-max); margin: 0 auto; padding: 6px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fm-logo { display: block; line-height: 0; }
.fm-logo img { height: 30px; width: auto; }
.fm-nav { display: none; }
.fm-header__actions { display: flex; justify-content: flex-end; }
.fm-cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--fm-green); color: var(--fm-white); font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.fm-cart-count.is-empty { display: none; }
.fm-header--flow .fm-header__inner { padding: 10px 16px; }
.fm-header--flow .fm-logo img { height: 26px; }
.fm-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fm-green); text-transform: uppercase; letter-spacing: .08em; }

/* Menú móvil */
.fm-menu { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.fm-menu.is-open { visibility: visible; }
.fm-menu__overlay { position: absolute; inset: 0; background: rgba(20, 28, 22, .55); opacity: 0; transition: opacity .25s; }
.fm-menu.is-open .fm-menu__overlay { opacity: 1; }
.fm-menu__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--fm-sand); padding: 8px 20px 24px; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column; }
.fm-menu.is-open .fm-menu__panel { transform: none; }
.fm-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 12px; border-bottom: 1px solid var(--fm-line); margin-bottom: 8px; }
.fm-menu__head img { height: 26px; width: auto; }
body.fm .fm-menu__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--fm-line); font-family: var(--fm-display); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--fm-ink); text-decoration: none; }
.fm-menu__sub { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; font-size: 14px; }
body.fm .fm-menu__sub a { color: var(--fm-text); text-decoration: none; }

/* ---------- Tarjetas y grillas ---------- */
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
.fm-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fm-card__img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--fm-radius); overflow: hidden; margin-bottom: 6px; }
.fm-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.fm-card__img:hover img { transform: scale(1.03); }
.fm-badge { position: absolute; top: 8px; left: 8px; background: var(--fm-green); color: var(--fm-white); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.fm-badge--muted { background: var(--fm-ink); }
.fm-card__name { margin: 0; font-family: var(--fm-display); font-weight: 500; font-size: 15px; line-height: 1.15; text-transform: uppercase; }
body.fm .fm-card__name a { color: var(--fm-ink); text-decoration: none; }
.fm-card__price { margin: 0; font-size: 16px; }
.fm-card__price del { color: var(--fm-muted); font-size: 13px; margin-right: 4px; }
.fm-card__line { margin: 0; font-size: 12px; line-height: 1.35; color: var(--fm-text); }
.fm-card .fm-btn { margin-top: 6px; }

.fm-scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--fm-gutter)); padding: 0 var(--fm-gutter) 6px; scrollbar-width: none; }
.fm-scroller::-webkit-scrollbar { display: none; }
.fm-scroller .fm-card { flex: 0 0 156px; scroll-snap-align: start; }

/* ---------- Inicio ---------- */
.fm-hero { position: relative; background: var(--fm-green); }
.fm-hero__track, .fm-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fm-hero__track::-webkit-scrollbar, .fm-gallery__track::-webkit-scrollbar { display: none; }
.fm-hero__slide { position: relative; flex: 0 0 100%; height: min(130vw, 560px); scroll-snap-align: start; }
.fm-hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-hero__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 28, 22, .8) 0%, rgba(20, 28, 22, .1) 55%, rgba(20, 28, 22, 0) 100%); }
.fm-hero__text { position: absolute; left: 20px; right: 20px; bottom: 56px; z-index: 1; color: var(--fm-sand); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fm-hero__text .fm-kicker { color: var(--fm-sand); }
.fm-hero__text h2 { margin: 0; color: var(--fm-sand) !important; font-family: var(--fm-display); font-weight: 600; font-size: 40px; line-height: 1; text-transform: uppercase; }
.fm-hero__dots { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 8px; z-index: 2; }
body.fm .fm-hero__dots button, body.fm .fm-gallery__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: rgba(244, 241, 234, .5); cursor: pointer; transition: width .2s; }
body.fm .fm-hero__dots button.is-active, body.fm .fm-gallery__dots button.is-active { width: 26px; background: var(--fm-sand); }

.fm-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.fm .fm-cat { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--fm-radius); overflow: hidden; background: var(--fm-green); text-decoration: none; }
.fm-cat:nth-child(2) { background: #24345F; }
.fm-cat:nth-child(3) { background: #6B1F2A; }
.fm-cat:nth-child(4) { background: #1D1D1B; }
.fm-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 28, 22, .7), rgba(20, 28, 22, 0) 60%); }
.fm-cat span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: var(--fm-sand); font-family: var(--fm-display); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }

.fm-colors { display: flex; justify-content: space-between; gap: 8px; }
body.fm .fm-colors a { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 56px; color: var(--fm-ink); text-decoration: none; font-size: 13px; }
.fm-colors span { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 3px var(--fm-sand), 0 0 0 4px var(--fm-line); }
.fm-section .fm-btn--block { margin-top: 22px; }

.fm-benefits { display: flex; margin-top: 40px; background: var(--fm-white); border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
.fm-benefits > div { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; text-align: center; font-size: 12px; line-height: 1.3; color: var(--fm-green); }
.fm-benefits > div + div { border-left: 1px solid var(--fm-sand-2); }
.fm-benefits span { color: var(--fm-ink); }

.fm-brand { position: relative; height: 440px; overflow: hidden; }
.fm-brand img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-brand::after { content: ''; position: absolute; inset: 0; background: rgba(20, 28, 22, .45); }
.fm-brand__text { position: absolute; left: 20px; right: 20px; bottom: 28px; z-index: 1; color: var(--fm-sand); max-width: 560px; }
.fm-brand__text h2 { margin: 0 0 10px; color: var(--fm-sand) !important; font-family: var(--fm-display); font-weight: 600; font-size: 32px; line-height: 1.05; text-transform: uppercase; }
.fm-brand__text p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.fm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-pills span { border: 1px solid rgba(244, 241, 234, .7); border-radius: 20px; padding: 6px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.fm-insta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.fm-insta img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 3px; }

/* ---------- Catálogo ---------- */
.fm-archive .fm-h1 { margin-bottom: 4px; }
.fm-pillnav { display: flex; gap: 8px; overflow-x: auto; margin: 12px calc(-1 * var(--fm-gutter)) 0; padding: 2px var(--fm-gutter); scrollbar-width: none; }
.fm-pillnav::-webkit-scrollbar { display: none; }
body.fm .fm-pillnav a { flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--fm-line); border-radius: 20px; background: var(--fm-white); color: var(--fm-ink); font-family: var(--fm-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
body.fm .fm-pillnav a.is-active { background: var(--fm-green); border-color: var(--fm-green); color: var(--fm-white); }
.fm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px calc(-1 * var(--fm-gutter)) 18px; padding: 10px var(--fm-gutter); background: var(--fm-white); border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); font-size: 14px; color: var(--fm-text); }
.fm-toolbar .woocommerce-ordering { margin: 0; float: none; }
.fm-toolbar select { height: 40px; border: 1px solid var(--fm-line); border-radius: 4px; background: var(--fm-white); font-family: var(--fm-body); font-size: 13px; padding: 0 8px; color: var(--fm-ink); }
.fm-empty { padding: 24px 0; color: var(--fm-text); }
body.fm .woocommerce-pagination { margin-top: 28px; text-align: center; }
body.fm .woocommerce-pagination ul.page-numbers { border: 0; display: inline-flex; gap: 6px; }
body.fm .woocommerce-pagination ul.page-numbers li { border: 0; }
body.fm .woocommerce-pagination ul.page-numbers li a, body.fm .woocommerce-pagination ul.page-numbers li span { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--fm-white); color: var(--fm-ink); }
body.fm .woocommerce-pagination ul.page-numbers li span.current { background: var(--fm-green); color: var(--fm-white); }

/* ---------- Ficha de producto ---------- */
.fm-gallery { position: relative; background: var(--fm-sand-3); }
.fm-gallery__slide { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.fm-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-gallery__tag { position: absolute; top: 12px; left: 12px; background: var(--fm-sand); font-family: var(--fm-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px; }
body.fm .fm-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(244, 241, 234, .9); color: var(--fm-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fm-gallery__nav--prev { left: 8px; }
.fm-gallery__nav--next { right: 8px; }
.fm-gallery__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.fm-gallery__thumbs { display: none; }

.fm-info { padding: 18px var(--fm-gutter) 0; display: flex; flex-direction: column; gap: 16px; }
.fm-info__title { margin: -8px 0 0; font-family: var(--fm-display); font-weight: 600; font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.fm-info__price p { margin: 0; font-size: 15px; color: var(--fm-text); }
.fm-info__price .fm-info__amount { font-family: var(--fm-display); font-size: 30px; font-weight: 500; color: var(--fm-ink); margin-bottom: 4px; }
.fm-info__amount del { font-size: 18px; color: var(--fm-muted); margin-right: 6px; }
.fm-strip { display: flex; margin: 0; border: 1px solid var(--fm-line); border-radius: var(--fm-radius); background: var(--fm-white); }
.fm-strip > div { flex: 1 1 0; padding: 10px 12px; min-width: 0; }
.fm-strip > div + div { border-left: 1px solid var(--fm-line); }
.fm-strip dt { font-size: 11px; color: var(--fm-muted); text-transform: uppercase; letter-spacing: .08em; }
.fm-strip dd { margin: 0; font-size: 14px; font-weight: 600; }
.fm-stock { margin: 0; font-size: 14px; font-weight: 600; color: #8A4B12; }
.fm-stock--out { color: var(--fm-ink); }
.fm-buy { display: flex; gap: 8px; margin: 0; }
.fm-buy .fm-btn { flex: 1 1 auto; }
.fm-qty { display: flex; align-items: center; border: 1px solid var(--fm-ink); border-radius: 4px; background: var(--fm-white); height: 54px; }
body.fm .fm-qty button { width: 42px; height: 100%; padding: 0; border: 0; background: transparent; font-size: 20px; color: var(--fm-ink); cursor: pointer; }
body.fm .fm-qty button:disabled { opacity: .35; cursor: default; }
.fm-qty input { width: 34px; height: 100%; border: 0; padding: 0; text-align: center; font-weight: 600; font-size: 15px; background: transparent; -moz-appearance: textfield; }
.fm-qty input::-webkit-outer-spin-button, .fm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fm-qty--sm { height: 38px; border-color: var(--fm-line); }
body.fm .fm-qty--sm button { width: 36px; font-size: 18px; }
.fm-qty--sm span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.fm-info .fm-btn--wsp { margin-top: -6px; }
.fm-trust { border-top: 1px solid var(--fm-line); }
.fm-trust > div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fm-line); color: var(--fm-green); }
.fm-trust p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fm-text); }
.fm-trust strong { color: var(--fm-ink); }

.fm-uses { margin-top: 40px; background: var(--fm-green); color: var(--fm-sand); border-radius: var(--fm-radius); padding: 20px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-family: var(--fm-display); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.fm-story { display: flex; flex-direction: column; gap: 18px; }
.fm-story__img { height: 440px; border-radius: var(--fm-radius); overflow: hidden; }
.fm-story__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-story__text p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--fm-text); }
.fm-story .fm-h2 { margin-top: 6px; font-size: 30px; }
.fm-desc { font-size: 15px; line-height: 1.6; color: var(--fm-text); }
.fm-desc ul { padding-left: 18px; }
.fm-twocol { display: flex; flex-direction: column; gap: 40px; }
.fm-specs { margin: 0; background: var(--fm-white); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); }
.fm-specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; }
.fm-specs > div + div { border-top: 1px solid var(--fm-sand-2); }
.fm-specs dt { color: var(--fm-muted); }
.fm-specs dd { margin: 0; font-weight: 600; text-align: right; }
.fm-faq { border-top: 1px solid var(--fm-line); }
.fm-faq details { border-bottom: 1px solid var(--fm-line); }
.fm-faq summary { min-height: 52px; padding: 12px 30px 12px 0; display: flex; align-items: center; font-weight: 500; font-size: 15px; cursor: pointer; list-style: none; position: relative; }
.fm-faq summary::-webkit-details-marker { display: none; }
.fm-faq summary::after { content: '+'; position: absolute; right: 4px; font-size: 22px; color: var(--fm-green); }
.fm-faq details[open] summary::after { content: '−'; }
.fm-faq p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--fm-text); }

.fm-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 76px; padding: 0 16px; background: var(--fm-white); border-top: 1px solid var(--fm-line); display: flex; align-items: center; gap: 12px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
.fm-buybar__price { display: flex; flex-direction: column; line-height: 1.2; }
.fm-buybar__price strong { font-family: var(--fm-display); font-size: 20px; font-weight: 500; }
.fm-buybar__price span { font-size: 12px; color: var(--fm-text); }
body.fm .fm-buybar .fm-btn { flex: 1 1 auto; min-height: 50px; }
body.fm-has-buybar .fm-site { padding-bottom: 96px; }

/* ---------- Barra de envío gratis + WhatsApp ---------- */
.fm-shipbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--fm-white); border-top: 1px solid var(--fm-line); padding: 9px 16px; }
.fm-progress__txt { margin: 0 0 7px; font-size: 13px; text-align: center; }
.fm-progress__bar { height: 6px; border-radius: 3px; background: var(--fm-sand-3); overflow: hidden; }
.fm-progress__bar span { display: block; height: 100%; background: var(--fm-green); transition: width .3s; }
body.fm .fm-wsp { position: fixed; right: 16px; bottom: 74px; z-index: 45; width: 54px; height: 54px; border-radius: 50%; background: var(--fm-green); color: var(--fm-white); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
body.fm .fm-wsp:hover { color: var(--fm-white); background: var(--fm-green-dark); }

/* ---------- Carrito lateral ---------- */
.fm-drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.fm-drawer.is-open { visibility: visible; }
.fm-drawer__overlay { position: absolute; inset: 0; background: rgba(20, 28, 22, .55); opacity: 0; transition: opacity .25s; }
.fm-drawer.is-open .fm-drawer__overlay { opacity: 1; }
.fm-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: var(--fm-sand); box-shadow: -8px 0 24px rgba(0, 0, 0, .2); transform: translateX(100%); transition: transform .28s ease; }
.fm-drawer.is-open .fm-drawer__panel { transform: none; }
.fm-drawer__panel.is-loading { pointer-events: none; }
.fm-drawer__panel.is-loading .fm-drawer-body { opacity: .6; }
.fm-drawer-body { height: 100%; display: flex; flex-direction: column; }
.fm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 18px; background: var(--fm-white); border-bottom: 1px solid var(--fm-line); }
.fm-drawer__head h2 { margin: 0; font-family: var(--fm-display); font-weight: 600; font-size: 22px; text-transform: uppercase; }
.fm-drawer__progress { padding: 12px 18px; background: var(--fm-white); border-bottom: 1px solid var(--fm-line); }
.fm-drawer__progress .fm-progress__txt { text-align: left; }
.fm-drawer__empty { padding: 32px 18px; text-align: center; }
.fm-drawer__scroll { flex: 1 1 auto; overflow-y: auto; padding: 0 18px 16px; }
.fm-items { list-style: none; margin: 0; padding: 0; }
.fm-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--fm-line); }
.fm-item__img { flex: 0 0 76px; height: 95px; border-radius: 4px; overflow: hidden; background: var(--fm-sand-3); }
.fm-item__img img { width: 100%; height: 100%; object-fit: cover; }
.fm-item__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.fm-item__top, .fm-item__bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fm-item__top { align-items: flex-start; }
body.fm .fm-item__name { font-family: var(--fm-display); font-size: 15px; text-transform: uppercase; line-height: 1.15; color: var(--fm-ink); text-decoration: none; }
.fm-sugs { padding-top: 18px; }
.fm-sugs h3 { margin: 0 0 10px; font-family: var(--fm-display); font-weight: 500; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.fm-sug { display: flex; align-items: center; gap: 12px; background: var(--fm-white); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 8px; margin-bottom: 10px; }
.fm-sug__img { flex: 0 0 52px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--fm-sand-3); }
.fm-sug__img img { width: 100%; height: 100%; object-fit: cover; }
.fm-sug__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--fm-text); }
body.fm .fm-sug__info a { font-family: var(--fm-display); font-size: 14px; text-transform: uppercase; color: var(--fm-ink); text-decoration: none; }
.fm-drawer__foot { background: var(--fm-white); border-top: 1px solid var(--fm-line); padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.fm-drawer__foot .fm-btn { margin-top: 8px; }
.fm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--fm-text); }
.fm-row strong { color: var(--fm-ink); }
.fm-row--big { font-size: 15px; color: var(--fm-ink); }
.fm-row--big strong { font-family: var(--fm-display); font-size: 24px; font-weight: 500; }

/* ---------- Checkout ---------- */
body.fm-flow .site-main, body.fm-flow .page-content { max-width: 640px; margin: 0 auto; padding: 0; }
body.fm-flow .woocommerce { padding: 0 var(--fm-gutter); }
.fm-summary { margin: 0 calc(-1 * var(--fm-gutter)) 20px; background: var(--fm-white); border-bottom: 1px solid var(--fm-line); }
body.fm .fm-summary__toggle { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 14px; color: var(--fm-green); }
body.fm .fm-summary__toggle:hover { background: transparent; color: var(--fm-green); }
.fm-summary__toggle strong { font-size: 17px; color: var(--fm-ink); }
.fm-summary__body { padding: 0 16px 12px; }
.fm-summary__item { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.fm-summary__item img { width: 52px; height: 65px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.fm-summary__item span { flex: 1 1 auto; }

.fm-checkout .fm-step { margin-bottom: 28px; }
.fm-step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--fm-display); font-weight: 600; font-size: 20px; text-transform: uppercase; }
.fm-step__title span { width: 26px; height: 26px; border-radius: 50%; background: var(--fm-green); color: var(--fm-white); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
body.fm .woocommerce form .form-row { padding: 0; margin: 0 0 12px; }
body.fm .woocommerce form .form-row label { font-size: 13px; margin-bottom: 5px; line-height: 1.3; color: var(--fm-ink); }
body.fm .woocommerce form .form-row .required { color: var(--fm-green); text-decoration: none; }
body.fm .woocommerce form .form-row-first, body.fm .woocommerce form .form-row-last { width: calc(50% - 5px); }
body.fm .woocommerce form .form-row input.input-text, body.fm .woocommerce form .form-row select, body.fm .woocommerce form .form-row textarea,
body.fm .select2-container--default .select2-selection--single {
	min-height: 48px; border: 1px solid #C9C3B5; border-radius: 4px; background: var(--fm-white); padding: 0 12px; font-size: 16px; font-family: var(--fm-body); color: var(--fm-ink);
}
body.fm .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 0; }
body.fm .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
body.fm .woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #A3262A; }
#billing_country_field { display: none; }

/* Tabla de totales: escondemos los productos (están en el resumen de arriba) */
body.fm .woocommerce-checkout-review-order-table { background: var(--fm-white); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); border-collapse: separate; margin: 0 0 24px; }
body.fm .woocommerce-checkout-review-order-table thead, body.fm .woocommerce-checkout-review-order-table tbody { display: none; }
body.fm .woocommerce-checkout-review-order-table th, body.fm .woocommerce-checkout-review-order-table td { padding: 10px 14px; border: 0; border-top: 1px solid var(--fm-sand-2); font-size: 14px; background: transparent; }
body.fm .woocommerce-checkout-review-order-table tfoot tr:first-child th, body.fm .woocommerce-checkout-review-order-table tfoot tr:first-child td { border-top: 0; }
body.fm .woocommerce-checkout-review-order-table td { text-align: right; }
body.fm .woocommerce-checkout-review-order-table .woocommerce-shipping-totals th { display: none; }
body.fm .woocommerce-checkout-review-order-table .woocommerce-shipping-totals td { text-align: left; padding: 0; }
body.fm #shipping_method { margin: 0; padding: 0; list-style: none; }
body.fm #shipping_method li { position: relative; margin: 0; padding: 0; border-bottom: 1px solid var(--fm-sand-2); }
body.fm #shipping_method li input { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); margin: 0; width: 20px; height: 20px; accent-color: var(--fm-green); }
body.fm #shipping_method li label { display: flex; justify-content: space-between; gap: 10px; min-height: 52px; align-items: center; padding: 10px 14px 10px 46px; margin: 0; font-size: 14px; cursor: pointer; }
body.fm #shipping_method li input:checked + label { background: var(--fm-green-soft); font-weight: 600; }
body.fm .woocommerce-checkout-review-order-table .order-total th, body.fm .woocommerce-checkout-review-order-table .order-total td { font-size: 16px; padding-top: 14px; padding-bottom: 14px; }
body.fm .woocommerce-checkout-review-order-table .order-total .amount { font-family: var(--fm-display); font-size: 24px; font-weight: 500; }
body.fm .woocommerce-checkout-review-order-table .fee td { color: var(--fm-green); font-weight: 600; }

body.fm #payment { background: transparent; border-radius: 0; }
body.fm #payment ul.payment_methods { padding: 0; border: 1px solid var(--fm-line); border-radius: var(--fm-radius); background: var(--fm-white); overflow: hidden; }
body.fm #payment ul.payment_methods li { padding: 14px; border-bottom: 1px solid var(--fm-sand-2); line-height: 1.4; }
body.fm #payment ul.payment_methods li:last-child { border-bottom: 0; }
body.fm #payment ul.payment_methods li input { width: 20px; height: 20px; margin: 0 10px 0 0; vertical-align: middle; accent-color: var(--fm-green); }
body.fm #payment ul.payment_methods li label { font-weight: 600; font-size: 15px; cursor: pointer; }
body.fm #payment div.payment_box { background: var(--fm-green-soft); color: var(--fm-text); font-size: 13px; margin: 10px 0 0; border-radius: 4px; }
body.fm #payment div.payment_box::before { display: none; }
body.fm #payment div.form-row.place-order { padding: 16px 0 0; }
body.fm #place_order, body.fm .woocommerce #payment #place_order {
	width: 100%; min-height: 56px; float: none; border: 0; border-radius: 4px; background: var(--fm-green); color: var(--fm-white);
	font-family: var(--fm-display); font-size: 17px; letter-spacing: .12em; text-transform: uppercase;
}
body.fm #place_order:hover { background: var(--fm-green-dark); color: var(--fm-white); }
body.fm .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--fm-text); }
body.fm .woocommerce-form-coupon-toggle .woocommerce-info { background: var(--fm-white); border-top-color: var(--fm-green); font-size: 14px; }
body.fm .woocommerce-form-coupon-toggle .woocommerce-info::before { color: var(--fm-green); }
body.fm .woocommerce-error, body.fm .woocommerce-message, body.fm .woocommerce-info { border-top-color: var(--fm-green); background: var(--fm-white); }
body.fm .woocommerce-message::before { color: var(--fm-green); }

/* ---------- Gracias ---------- */
.fm-thanks { display: flex; flex-direction: column; gap: 22px; padding-top: 24px; }
.fm-thanks__head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.fm-thanks__head p { margin: 0; color: var(--fm-text); }
.fm-thanks__check { width: 60px; height: 60px; border-radius: 50%; background: var(--fm-green); color: var(--fm-white); display: flex; align-items: center; justify-content: center; }
.fm-thanks__num { font-size: 13px; color: var(--fm-muted); }
.fm-thanks__num strong { color: var(--fm-ink); }
.fm-bank { background: var(--fm-white); border: 2px solid var(--fm-green); border-radius: 8px; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.fm-bank__total { display: flex; justify-content: space-between; align-items: baseline; }
.fm-bank__total span { font-family: var(--fm-display); font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.fm-bank__total strong { font-family: var(--fm-display); font-size: 28px; font-weight: 500; color: var(--fm-green); }
.fm-bank__row { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--fm-sand-2); padding-top: 12px; }
.fm-bank__row > div { flex: 1 1 auto; display: flex; flex-direction: column; }
.fm-bank__row span { font-size: 12px; color: var(--fm-muted); text-transform: uppercase; letter-spacing: .08em; }
.fm-bank__row strong { font-size: 17px; word-break: break-all; }
.fm-bank__row .fm-btn { min-width: 96px; }
.fm-bank__meta { margin: 0; border-top: 1px solid var(--fm-sand-2); padding-top: 12px; font-size: 14px; line-height: 1.6; color: var(--fm-text); }
.fm-bank__meta strong { color: var(--fm-ink); }
.fm-bank .fm-btn--block { margin-top: 0; }
.fm-bank__note { margin: -6px 0 0; font-size: 12px; color: var(--fm-muted); text-align: center; }
.fm-next ol { margin: 0; padding: 0; list-style: none; counter-reset: fm; display: flex; flex-direction: column; gap: 12px; }
.fm-next li { counter-increment: fm; display: flex; gap: 12px; font-size: 14px; line-height: 1.5; }
.fm-next li::before { content: counter(fm); flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--fm-green); color: var(--fm-green); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.fm-box { background: var(--fm-white); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.fm-box .fm-row { font-size: 14px; border-top: 1px solid var(--fm-sand-2); padding-top: 10px; }

/* ---------- Footer ---------- */
.fm-footer { background: var(--fm-green-dark); color: #C9D2C7; font-size: 14px; }
.fm-footer__inner { max-width: var(--fm-max); margin: 0 auto; padding: 36px var(--fm-gutter) 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.fm-footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.fm-footer__name { font-family: var(--fm-display); font-size: 28px; letter-spacing: .06em; font-weight: 600; color: var(--fm-sand); }
.fm-footer__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fm-footer__col h2 { margin: 0 0 2px; font-family: var(--fm-display); font-weight: 500; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--fm-sand) !important; }
body.fm .fm-footer a { color: #C9D2C7; text-decoration: none; word-break: break-word; }
body.fm .fm-footer a:hover { color: var(--fm-sand); }
body.fm .fm-footer__brand a { color: var(--fm-sand); text-decoration: underline; }
.fm-footer__bottom { max-width: var(--fm-max); margin: 0 auto; padding: 14px var(--fm-gutter) 18px; border-top: 1px solid #36503F; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
.fm-footer--flow { padding: 20px var(--fm-gutter); text-align: center; font-size: 13px; }
.fm-footer--flow p { margin: 4px 0; }
body.fm .fm-footer--flow a { color: var(--fm-sand); text-decoration: underline; }
.fm-footer { margin-bottom: 0; }

/* Páginas comunes (carrito, legales) */
body.fm .site-main.post-type-page, body.fm .page-header, body.fm .page-content { max-width: var(--fm-max); margin-left: auto; margin-right: auto; padding-left: var(--fm-gutter); padding-right: var(--fm-gutter); }
body.fm .page-header .entry-title { font-family: var(--fm-display); font-weight: 600; text-transform: uppercase; font-size: 32px; margin: 24px 0 12px; }

/* =====================================================================
   ESCRITORIO
   ===================================================================== */
@media (min-width: 900px) {
	:root { --fm-gutter: 24px; }
	.admin-bar .fm-header { top: 32px; }
	.fm-header__inner { padding: 10px 24px; }
	.fm-header__menu { display: none !important; }
	.fm-nav { display: flex; flex: 1 1 0; gap: 22px; flex-wrap: wrap; }
	body.fm .fm-nav a { color: var(--fm-ink); text-decoration: none; font-family: var(--fm-display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
	body.fm .fm-nav a:hover { color: var(--fm-green); }
	.fm-logo img { height: 40px; }
	.fm-header__actions { flex: 1 1 0; }
	.fm-section { padding-top: 64px; }
	.fm-h1 { font-size: 44px; }
	.fm-h2 { font-size: 30px; margin-bottom: 22px; }

	.fm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }
	.fm-card__name { font-size: 18px; }
	.fm-card__line { font-size: 13px; }
	.fm-scroller { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
	.fm-scroller .fm-card { flex: none; }

	.fm-hero__slide { height: min(70vh, 640px); }
	.fm-hero__text { left: max(24px, calc((100vw - var(--fm-max)) / 2 + 24px)); bottom: 80px; max-width: 560px; }
	.fm-hero__text h2 { font-size: 64px; }
	.fm-hero__dots { left: max(24px, calc((100vw - var(--fm-max)) / 2 + 24px)); bottom: 36px; }
	.fm-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
	.fm-cat span { font-size: 22px; left: 18px; bottom: 16px; }
	.fm-colors { justify-content: flex-start; gap: 36px; }
	.fm-colors span { width: 64px; height: 64px; }
	.fm-section .fm-btn--block { width: auto; display: inline-flex; padding: 0 40px; }
	.fm-benefits { margin-top: 64px; }
	.fm-benefits > div { flex-direction: row; justify-content: center; gap: 12px; font-size: 14px; padding: 22px 12px; }
	.fm-brand { height: 560px; }
	.fm-brand__text { left: max(24px, calc((100vw - var(--fm-max)) / 2 + 24px)); bottom: 56px; }
	.fm-brand__text h2 { font-size: 48px; }
	.fm-insta { grid-template-columns: repeat(6, minmax(0, 1fr)); }

	.fm-pillnav { margin: 18px 0 0; padding: 2px 0; flex-wrap: wrap; }
	.fm-toolbar { margin: 18px 0 28px; border: 1px solid var(--fm-line); border-radius: var(--fm-radius); }

	.fm-pdp { max-width: var(--fm-max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
	.fm-gallery { background: transparent; }
	.fm-gallery__track { border-radius: var(--fm-radius); background: var(--fm-sand-3); }
	.fm-gallery__dots { display: none; }
	.fm-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
	body.fm .fm-gallery__thumbs button { width: 84px; height: 105px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--fm-sand-3); cursor: pointer; }
	body.fm .fm-gallery__thumbs button.is-active { border-color: var(--fm-ink); }
	.fm-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
	.fm-gallery__nav { top: calc(50% - 60px) !important; }
	.fm-info { padding: 4px 0 0; position: sticky; top: 90px; gap: 20px; }
	.fm-info__title { font-size: 44px; }
	.fm-info__price .fm-info__amount { font-size: 34px; }
	.fm-buybar { display: none; }
	body.fm-has-buybar .fm-site { padding-bottom: 72px; }
	.fm-uses { margin-top: 64px; display: flex; justify-content: space-around; padding: 28px 24px; font-size: 20px; }
	.fm-story { flex-direction: row; align-items: center; gap: 48px; }
	.fm-story__img, .fm-story__text { flex: 1 1 0; }
	.fm-story__img { height: 600px; }
	.fm-story .fm-h2 { font-size: 40px; }
	.fm-twocol { flex-direction: row; gap: 48px; }
	.fm-twocol > section { flex: 1 1 0; }

	.fm-drawer__panel { width: 420px; }
	body.fm-flow .fm-summary { margin-left: 0; margin-right: 0; border: 1px solid var(--fm-line); border-radius: var(--fm-radius); margin-top: 24px; }

	.fm-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-top: 56px; }
	.fm-footer__brand { grid-column: auto; }
	body.fm .fm-wsp { bottom: 80px; right: 24px; }
}
