/* ============================================================
   Ecoclick Store Theme 2.0 — estilos del frontend
   Estructura espejo de un ecommerce ferretero de alta densidad.
   Breakpoints: 749px / 989px / 1200px (como la referencia).
   ============================================================ */

:root {
	--eco-base: #ffffff;
	--eco-surface: #f5f6f8;
	--eco-border: #e4e6ea;
	--eco-text: #1a1d23;
	--eco-muted: #5f6672;
	--eco-primary: #1e3560;
	--eco-primary-dark: #152747;
	--eco-accent: #58a832;
	--eco-wa: #25d366;
	--eco-radius: 8px;
	--eco-header-h: 72px;
}

html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[role="tab"]:focus-visible {
	outline: 2px solid var(--eco-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ------------------------------------------------------------ Top bar */
.eco-topbar {
	border-bottom: 1px solid var(--eco-border);
	padding: 6px 20px;
}
.eco-topbar__row { width: 100%; }
.eco-topbar__msg, .eco-topbar__link { margin: 0; color: var(--eco-muted); }
.eco-topbar__link a { color: var(--eco-primary); text-decoration: none; font-weight: 600; }
.eco-topbar__link a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Header */
.eco-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--eco-base);
	border-bottom: 1px solid var(--eco-border);
}
.eco-header__bar { padding: 0 20px; }
.eco-header__row {
	width: 100%;
	min-height: var(--eco-header-h);
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: nowrap;
}
.eco-header__logo { margin: 0; flex: 0 0 auto; }
.eco-header__logo img { display: block; width: 168px; height: auto; }

.eco-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 1px solid transparent;
	color: var(--eco-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	padding: 8px 10px;
	border-radius: 6px;
	flex: 0 0 auto;
}
.eco-menu-toggle:hover { background: var(--eco-surface); }
.eco-menu-toggle[aria-expanded="true"] { background: var(--eco-text); color: #fff; }

/* Buscador prominente central */
.eco-search { flex: 1 1 auto; margin: 0; max-width: 820px; }
.eco-search .wp-block-search__inside-wrapper {
	border: 1px solid #c9cdd4;
	border-radius: 999px;
	padding: 3px 6px 3px 18px;
	background: var(--eco-base);
}
.eco-search .wp-block-search__input {
	border: none;
	outline: none;
	font-size: 15px;
	padding: 8px 4px;
	background: transparent;
}
.eco-search .wp-block-search__button {
	background: var(--eco-primary);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 8px 14px;
	cursor: pointer;
}
.eco-search .wp-block-search__button:hover { background: var(--eco-primary-dark); }

.eco-header__actions {
	display: flex;
	gap: 18px;
	align-items: center;
	flex: 0 0 auto;
}
.eco-header__action {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: var(--eco-text);
	text-decoration: none;
	font-size: 11px;
	line-height: 1;
}
.eco-header__action:hover { color: var(--eco-primary); }

/* ------------------------------------------------------------ Mega menú */
.eco-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--eco-base);
	border-bottom: 1px solid var(--eco-border);
	box-shadow: 0 18px 30px -18px rgba(20, 25, 40, 0.35);
	z-index: 55;
}
.eco-mega[hidden] { display: none; }
.eco-mega__inner { padding: 28px 20px 34px; }
.eco-mega__cols { gap: 24px; }
.eco-mega__title {
	font-size: 15px;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--eco-border);
}
.eco-mega__title a { text-decoration: none; color: var(--eco-text); }
.eco-mega__title a:hover { color: var(--eco-primary); }
.eco-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.eco-mega__list li { margin: 0 0 8px; }
.eco-mega__list a {
	text-decoration: none;
	color: var(--eco-muted);
	font-size: 13.5px;
}
.eco-mega__list a:hover { color: var(--eco-primary); text-decoration: underline; }

/* ------------------------------------------------------------ Secciones */
.eco-main { padding-bottom: 0; }
.eco-section { padding: 26px 20px 30px; }
.eco-section__title {
	text-align: center;
	margin: 6px 0 22px;
	font-weight: 700;
}

/* ------------------------------------------------------------ Carrusel */
.eco-carousel {
	position: relative;
	overflow: hidden;
	background: var(--eco-primary-dark);
}
.eco-carousel__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.eco-carousel__track::-webkit-scrollbar { display: none; }
.eco-carousel__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.eco-carousel__media { display: block; }
.eco-carousel__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
@media (min-width: 768px) {
	.eco-carousel__media img { aspect-ratio: 8 / 3; }
}
@media (min-width: 1400px) {
	.eco-carousel__media img { aspect-ratio: auto; max-height: 640px; }
}
.eco-carousel__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
	padding: 24px min(6vw, 88px);
	max-width: min(560px, 78%);
	color: #fff;
}
.eco-carousel__title { color: #fff; margin: 0; }
.eco-carousel__text { color: rgba(255, 255, 255, 0.88); margin: 0; font-size: 15px; }
.eco-eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--eco-accent);
}
@media (max-width: 767px) {
	.eco-carousel__overlay {
		justify-content: flex-end;
		max-width: 100%;
		padding: 20px;
		background: linear-gradient(180deg, rgba(11, 18, 34, 0) 40%, rgba(11, 18, 34, 0.72) 100%);
	}
}

.eco-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.92);
	color: var(--eco-text);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	z-index: 5;
	box-shadow: 0 2px 10px rgba(10, 15, 30, 0.25);
}
.eco-carousel__nav:hover { background: #fff; }
.eco-carousel__nav--prev { left: 16px; }
.eco-carousel__nav--next { right: 16px; }
.eco-carousel__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}
.eco-carousel__dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	padding: 0;
}
.eco-carousel__dot[aria-current="true"] { background: #fff; width: 22px; }
@media (max-width: 767px) {
	.eco-carousel__nav { display: none; }
}

/* ------------------------------------------------------------ Círculos */
.eco-circles {
	display: flex;
	justify-content: center;
	gap: clamp(14px, 2.4vw, 34px);
	flex-wrap: nowrap;
	overflow-x: auto;
	padding: 4px 2px 10px;
	scroll-snap-type: x proximity;
}
.eco-circles > * {
	margin-block-start: 0 !important;
}
.eco-circles::-webkit-scrollbar { display: none; }
.eco-circles { scrollbar-width: none; }
.eco-circle {
	flex: 0 0 auto;
	width: clamp(104px, 11vw, 158px);
	scroll-snap-align: center;
}
.eco-circle__img { margin: 0 0 10px; }
.eco-circle__img img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 999px;
	background: var(--eco-surface);
	transition: transform 0.25s ease;
}
.eco-circle:hover .eco-circle__img img { transform: scale(1.05); }
.eco-circle__label { margin: 0; font-size: 14px; }
.eco-circle__label a { text-decoration: none; color: var(--eco-text); }
.eco-circle__label a:hover { color: var(--eco-primary); }

/* ------------------------------------------------------------ Cards temporada */
.eco-temporada__grid { gap: 20px; }
.eco-promo-card { margin: 0; border-radius: var(--eco-radius); overflow: hidden; }
.eco-promo-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--eco-radius);
	transition: transform 0.25s ease;
}
.eco-promo-card a:hover img { transform: scale(1.03); }
.eco-promo-card--cover {
	aspect-ratio: 4 / 5;
	border-radius: var(--eco-radius);
	display: flex;
	align-items: flex-start;
}
.eco-promo-card--cover .wp-block-cover__inner-container {
	padding: 26px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	justify-content: flex-start;
}
.eco-promo-card__title {
	color: #fff;
	margin: 0;
	font-size: clamp(26px, 2.6vw, 38px);
	font-weight: 800;
	font-stretch: condensed;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}
.eco-promo-card__link { margin: 0; }
.eco-promo-card__link a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--eco-accent); }
.eco-promo-card__link a:hover { color: var(--eco-accent); }

/* ------------------------------------------------------------ Tabs */
.eco-tabs__nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 22px;
}
.eco-tabs__tab {
	border: 1px solid #c9cdd4;
	background: var(--eco-base);
	color: var(--eco-text);
	font: inherit;
	font-weight: 600;
	font-size: 13.5px;
	padding: 8px 18px;
	border-radius: 999px;
	cursor: pointer;
}
.eco-tabs__tab:hover { border-color: var(--eco-primary); color: var(--eco-primary); }
.eco-tabs__tab[aria-selected="true"] {
	background: var(--eco-primary);
	border-color: var(--eco-primary);
	color: #fff;
}
.eco-tabs__panel[hidden] { display: none; }

/* ------------------------------------------------------------ Tarjetas producto Woo */
.eco-destacados .woocommerce ul.products,
.woocommerce ul.products {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding: 4px 2px 12px;
	margin: 0;
	list-style: none;
}
.eco-destacados .woocommerce ul.products::before,
.eco-destacados .woocommerce ul.products::after { display: none; }
.woocommerce ul.products { scrollbar-width: thin; }
.eco-temporada__grid { scrollbar-width: none; }
.eco-temporada__grid::-webkit-scrollbar { display: none; }
.woocommerce ul.products li.product {
	flex: 0 0 clamp(200px, 19%, 252px);
	scroll-snap-align: start;
	margin: 0;
	padding: 12px 12px 16px;
	border: 1px solid var(--eco-border);
	border-radius: var(--eco-radius);
	background: var(--eco-base);
	display: flex;
	flex-direction: column;
	text-align: left;
	transition: box-shadow 0.2s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 10px 24px -14px rgba(20, 25, 40, 0.4); }
.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background: #fff;
	border-radius: 6px;
	margin: 0 0 10px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	padding: 0;
	margin: 0 0 6px;
	min-height: 2.7em;
}
.woocommerce ul.products li.product .price {
	font-size: 22px;
	font-weight: 800;
	color: var(--eco-primary);
	letter-spacing: -0.01em;
	margin: 0 0 6px;
}
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
	font-size: 0.72em;
	font-weight: 700;
	vertical-align: 0.12em;
	margin-right: 1px;
}
@media (max-width: 749px) {
	.woocommerce ul.products li.product .price { font-size: 19px; }
}
.woocommerce ul.products li.product .price del {
	font-size: 13px;
	font-weight: 400;
	color: var(--eco-muted);
	margin-right: 6px;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.eco-card__sku {
	display: block;
	font-size: 12px;
	color: var(--eco-muted);
	margin: 2px 0 10px;
}
.eco-card__pickup {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--eco-accent);
	font-weight: 600;
	margin: 0 0 10px;
}
.eco-card__cta {
	margin-top: auto;
	display: block;
	text-align: center;
	background: var(--eco-primary);
	color: #fff !important;
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none;
	padding: 10px 12px;
	border-radius: 6px;
}
.eco-card__cta:hover { background: var(--eco-primary-dark); }
.woocommerce ul.products li.product .onsale {
	position: absolute;
	background: var(--eco-accent);
	color: #fff;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 700;
}
.woocommerce ul.products li.product { position: relative; }

/* ------------------------------------------------------------ Banners */
.eco-banner {
	position: relative;
	border-radius: var(--eco-radius);
	overflow: hidden;
	background: var(--eco-primary-dark);
}
.eco-banner__media { display: block; }
.eco-banner__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
@media (min-width: 768px) {
	.eco-banner__media img { aspect-ratio: 8 / 3; }
	.eco-banner--wide .eco-banner__media img { aspect-ratio: 16 / 5; }
}
.eco-banner__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 8px;
	padding: 22px min(4.5vw, 64px);
	max-width: min(520px, 82%);
	color: #fff;
}
.eco-banner__title { color: #fff; margin: 0; }
.eco-banner__text { color: rgba(255, 255, 255, 0.88); margin: 0; font-size: 14px; }
.eco-banners__row { gap: 20px; margin-top: 20px; }
@media (max-width: 767px) {
	.eco-banner__overlay {
		justify-content: flex-end;
		max-width: 100%;
		background: linear-gradient(180deg, rgba(11, 18, 34, 0) 40%, rgba(11, 18, 34, 0.72) 100%);
	}
}

/* ---------------------------------------- Secciones de instalaciones */
.eco-split__cols { gap: clamp(24px, 4vw, 56px); }
.eco-split__media { display: block; }
.eco-split__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--eco-radius);
	object-fit: cover;
}
@media (min-width: 768px) {
	.eco-split__media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
	.eco-split__media img { aspect-ratio: 4 / 5; }
}
.eco-eyebrow--dark { color: var(--eco-primary); }
.eco-split__title { margin: 4px 0 12px; }
.eco-split__text { color: var(--eco-muted); margin: 0 0 14px; max-width: 52ch; }
.eco-checklist {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 18px;
}
.eco-checklist li {
	position: relative;
	padding-left: 24px;
	font-size: 14px;
	font-weight: 600;
}
.eco-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 15px;
	height: 15px;
	border-radius: 999px;
	background: var(--eco-accent);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
}
.eco-infolist { margin: 0 0 18px; }
.eco-infolist__item {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--eco-muted);
}
.eco-infolist__item strong {
	display: block;
	color: var(--eco-text);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.eco-infolist__item a { color: var(--eco-primary); text-decoration: none; }
.eco-infolist__item a:hover { text-decoration: underline; }

@media (max-width: 781px) {
	.wp-block-columns.eco-split__cols { display: flex !important; flex-wrap: nowrap !important; flex-direction: column !important; }
	.wp-block-columns.eco-split__cols--reverse { flex-direction: column-reverse !important; }
	.eco-split__cols > .wp-block-column { flex-basis: auto !important; width: 100% !important; }
	.eco-split .wp-block-buttons { width: 100%; }
	.eco-split .wp-block-button { flex: 1 1 auto; }
	.eco-split .wp-block-button__link { width: 100%; text-align: center; }
}

/* ------------------------------------------------------------ Beneficios */
.eco-benefits-wrap { padding-top: 30px; padding-bottom: 30px; }
.eco-benefits { gap: 18px; }
.eco-benefit {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 10px 6px;
}
.eco-benefit__icon { color: var(--eco-primary); display: inline-grid; place-items: center; }
.eco-benefit__title { margin: 0; font-size: 15px; font-weight: 700; }
.eco-benefit__text { margin: 0; color: var(--eco-muted); }

/* ------------------------------------------------------------ Marcas */
.eco-brands { padding-bottom: 18px; }
.eco-brands__row { gap: 44px; align-items: center; opacity: 0.9; }
.eco-brands__logo { margin: 0; }
.eco-brands__logo img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------ CTA final */
.eco-cta { padding: 44px 20px 50px; margin-top: 18px; }
.eco-cta__title { color: #fff; margin: 0 0 10px; }
.eco-cta__text { color: rgba(255, 255, 255, 0.85); margin: 0 auto 20px; max-width: 640px; }

/* ------------------------------------------------------------ Botones */
.wp-block-button__link { transition: background-color 0.2s ease, color 0.2s ease; }
.is-style-eco-light .wp-block-button__link {
	background: #fff;
	color: var(--eco-primary);
}
.is-style-eco-light .wp-block-button__link:hover {
	background: var(--eco-surface);
	color: var(--eco-primary-dark);
}
.is-style-eco-whatsapp .wp-block-button__link {
	background: var(--eco-wa);
	color: #0b3d1f;
	font-weight: 700;
}
.is-style-eco-whatsapp .wp-block-button__link:hover { background: #1fba58; color: #0b3d1f; }
.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid var(--eco-primary);
	color: var(--eco-primary);
}
.is-style-outline .wp-block-button__link:hover { background: var(--eco-primary); color: #fff; }

/* ------------------------------------------------------------ Strip + Footer */
.eco-strip { padding: 8px 20px; margin-top: 26px; }
.eco-strip__text { margin: 0; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.eco-footer { padding: 40px 20px 18px; }
.eco-footer__cols { gap: 30px; }
.eco-footer__logo { margin: 0 0 12px; }
.eco-footer__about { color: var(--eco-muted); max-width: 340px; }
.eco-footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 12px; }
.eco-footer__list { list-style: none; margin: 0; padding: 0; }
.eco-footer__list li { margin: 0 0 8px; }
.eco-footer__list a { text-decoration: none; color: var(--eco-muted); font-size: 13.5px; }
.eco-footer__list a:hover { color: var(--eco-primary); text-decoration: underline; }
.eco-footer__contact { color: var(--eco-muted); margin: 0 0 10px; }
.eco-footer__contact a { color: var(--eco-primary); text-decoration: none; }
.eco-footer__legal {
	border-top: 1px solid var(--eco-border);
	margin-top: 26px;
	padding-top: 16px;
	color: var(--eco-muted);
}
.eco-footer__legal p { margin: 0; }

/* WhatsApp flotante */
.eco-wa-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 70;
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	background: var(--eco-wa);
	color: #fff;
	border-radius: 999px;
	box-shadow: 0 8px 22px -6px rgba(12, 90, 44, 0.55);
}
.eco-wa-float:hover { transform: scale(1.06); }

/* ------------------------------------------------------------ Páginas internas */
.eco-archive, .eco-page { padding: 30px 20px 50px; min-height: 40vh; }
.eco-archive__title, .eco-page__title { margin: 0 0 24px; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 989px) {
	.eco-header__row { gap: 12px; }
	.eco-header__logo img { width: 132px; }
	.eco-header__action-label { display: none; }
	.eco-mega__cols { flex-wrap: wrap !important; }
	.eco-mega__cols > .wp-block-column { flex-basis: 45% !important; }
}

@media (max-width: 749px) {
	:root { --eco-header-h: 58px; }
	.eco-topbar__row { justify-content: center; }
	.eco-topbar__link { display: none; }
	.eco-header__row { flex-wrap: wrap; padding: 8px 0; }
	.eco-menu-toggle__label { display: none; }
	.eco-header__logo { order: 2; margin-right: auto; }
	.eco-header__logo img { width: 118px; }
	.eco-menu-toggle { order: 1; }
	.eco-header__actions { order: 3; gap: 12px; }
	.eco-search { order: 4; flex-basis: 100%; max-width: none; margin-bottom: 8px; }

	/* Mega menú como panel móvil */
	.eco-mega {
		position: fixed;
		top: 0;
		bottom: 0;
		overflow-y: auto;
		max-width: 420px;
		box-shadow: 30px 0 60px -30px rgba(10, 15, 30, 0.5);
	}
	.eco-mega__cols > .wp-block-column { flex-basis: 100% !important; }

	.eco-temporada__grid { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x proximity; gap: 12px; padding-bottom: 10px; }
	.eco-temporada__grid > .wp-block-column { flex: 0 0 72% !important; scroll-snap-align: start; }

	.eco-banners__row { gap: 14px; }

	.eco-benefits { flex-wrap: wrap !important; }
	.eco-benefits > .wp-block-column { flex-basis: 46% !important; }

	.woocommerce ul.products li.product { flex-basis: 74%; }

	.eco-footer__cols { flex-wrap: wrap !important; }
	.eco-footer__cols > .wp-block-column { flex-basis: 100% !important; }
	.eco-footer__legal { flex-direction: column; gap: 4px; align-items: flex-start; }
}

@media (min-width: 750px) and (max-width: 1199px) {
	.woocommerce ul.products li.product { flex-basis: clamp(200px, 30%, 260px); }
	.eco-benefits { flex-wrap: wrap !important; }
	.eco-benefits > .wp-block-column { flex-basis: 46% !important; }
}

/* Cuerpo bloqueado cuando el menú móvil está abierto */
body.eco-no-scroll { overflow: hidden; }

/* ============================================================
   Catálogo: descripción en tarjeta y barra de filtros
   ============================================================ */

/* Descripción corta de la tarjeta: 2 líneas reales, recorte visual. */
.eco-card__desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--eco-muted);
	min-height: 2.9em;
	margin: 2px 0 8px;
	text-align: center;
	overflow-wrap: anywhere;
}

/* Estructura de dos columnas del catálogo. */
.eco-catalog { display: block; }
.eco-catalog__main { min-width: 0; }

@media (min-width: 990px) {
	.eco-catalog {
		display: grid;
		grid-template-columns: 248px minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}
	/* WooCommerce inyecta elementos sueltos (avisos de tienda) dentro del
	   contenedor: que ocupen el ancho completo y no desplacen las columnas. */
	.eco-catalog > * { grid-column: 1 / -1; }
	.eco-catalog > .eco-filters { grid-column: 1; }
	.eco-catalog > .eco-catalog__main { grid-column: 2; }
}

/* Botón «Filtrar» (solo móvil/tablet). */
.eco-filters-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--eco-text);
	background: var(--eco-base);
	border: 1px solid var(--eco-border);
	border-radius: var(--eco-radius);
	cursor: pointer;
}
.eco-filters-toggle:hover { background: var(--eco-surface); }
.eco-filters-toggle__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--eco-accent);
}

.eco-filters {
	background: var(--eco-base);
	border: 1px solid var(--eco-border);
	border-radius: var(--eco-radius);
	padding: 16px 18px;
	margin: 0 0 20px;
}

@media (max-width: 989px) {
	.eco-filters { display: none; }
	.eco-filters.is-open { display: block; }
}
@media (min-width: 990px) {
	.eco-filters-toggle { display: none; }
	.eco-filters { position: sticky; top: calc(var(--eco-header-h) + 12px); margin: 0; }
}

.eco-filters__clear {
	display: inline-block;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--eco-primary);
}
.eco-filters__group { margin: 0 0 18px; }
.eco-filters__group:last-of-type { margin-bottom: 12px; }
.eco-filters__title {
	margin: 0 0 8px;
	padding: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--eco-text);
	border-bottom: 1px solid var(--eco-border);
}
.eco-filters__list { list-style: none; margin: 0; padding: 0; }
.eco-filters__list--d1 { margin: 2px 0 6px 12px; }
.eco-filters__cat {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 0;
	font-size: 13.5px;
	color: var(--eco-muted);
	text-decoration: none;
}
.eco-filters__list--d0 > li > .eco-filters__cat { font-weight: 600; color: var(--eco-text); }
.eco-filters__cat:hover { color: var(--eco-primary); text-decoration: underline; }
.eco-filters__cat.is-active { color: var(--eco-primary); font-weight: 700; }
.eco-filters__count { color: var(--eco-muted); font-size: 12px; font-weight: 400; }

.eco-filters__check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	font-size: 13.5px;
	color: var(--eco-text);
	cursor: pointer;
}
.eco-filters__range { display: flex; align-items: center; gap: 8px; }
.eco-filters__range input {
	width: 100%;
	min-width: 0;
	padding: 8px 10px;
	font: inherit;
	font-size: 13.5px;
	color: var(--eco-text);
	background: var(--eco-base);
	border: 1px solid var(--eco-border);
	border-radius: 6px;
}
.eco-filters__apply {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: #fff;
	background: var(--eco-primary);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.eco-filters__apply:hover { background: var(--eco-primary-dark); }

/* ============================================================
   Precio destacado y carrito directo en la tarjeta
   ============================================================ */

/* Jerarquía del precio en las tarjetas de listado (bloques de WooCommerce). */
li.wc-block-product .wp-block-woocommerce-product-price {
	margin-bottom: 12px !important;
}
li.wc-block-product .wc-block-components-product-price {
	display: block;
	line-height: 1.15;
}
li.wc-block-product .wc-block-components-product-price .woocommerce-Price-amount {
	font-size: 22px;
	font-weight: 800;
	color: var(--eco-primary);
	letter-spacing: -0.01em;
}
li.wc-block-product .wc-block-components-product-price .woocommerce-Price-currencySymbol {
	font-size: 0.72em;
	font-weight: 700;
	vertical-align: 0.12em;
	margin-right: 1px;
}
/* Precio rebajado: el anterior se atenúa, el vigente manda. */
li.wc-block-product .wc-block-components-product-price del,
li.wc-block-product .wc-block-components-product-price del .woocommerce-Price-amount {
	font-size: 14px;
	font-weight: 400;
	color: var(--eco-muted);
	margin-right: 6px;
}
li.wc-block-product .wc-block-components-product-price ins { text-decoration: none; }

@media (max-width: 749px) {
	li.wc-block-product .wc-block-components-product-price .woocommerce-Price-amount { font-size: 19px; }
}

/* Cuando el JS toma el control, se oculta el botón nativo de WooCommerce. */
.wp-block-woocommerce-product-button.eco-cart-ready .wc-block-components-product-button__button { display: none !important; }

.eco-cart { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.eco-cart.is-busy { opacity: 0.55; pointer-events: none; }

.eco-cart__add {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: #fff;
	background: var(--eco-accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.eco-cart__add:hover { background: #4a9029; }

.eco-cart__step {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: var(--eco-primary);
	background: var(--eco-base);
	border: 1px solid var(--eco-border);
	border-radius: 6px;
	cursor: pointer;
}
.eco-cart__step:hover { background: var(--eco-surface); border-color: var(--eco-primary); }
.eco-cart__count {
	min-width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--eco-text);
	background: var(--eco-surface);
	border-radius: 6px;
}
.eco-cart__remove {
	flex: 1 0 100%;
	margin-top: 2px;
	padding: 4px;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	color: var(--eco-muted);
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
}
.eco-cart__remove:hover { color: #b3261e; }
.eco-cart__error { flex: 1 0 100%; font-size: 11.5px; color: #b3261e; line-height: 1.3; }

/* Contador del carrito en la cabecera. */
.eco-header__action { position: relative; }
.eco-cart-badge {
	position: absolute;
	top: -2px;
	right: 6px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--eco-accent);
	border-radius: 9px;
}
.eco-cart-badge[hidden] { display: none; }

.eco-sr {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Anclaje del control de carrito: ocupa el ancho de la tarjeta en ambos loops. */
.eco-cart-slot { width: 100%; }
.woocommerce ul.products li.product .eco-cart-slot { margin-top: auto; }
.woocommerce ul.products li.product .eco-cart { margin: 0 0 8px; }
