/* =========================================================
   EA Beauty — tema WooCommerce
   Ver design-system/ea-beauty/MASTER.md
   ========================================================= */

:root {
	--ea-black: #0B0B0B;
	--ea-white: #FFFFFF;
	--ea-ivory: #F7F5F0;
	--ea-sand: #EFE9DE;
	--ea-line: #E3DED5;
	--ea-muted: #5E5A54;
	--ea-gold: #9A6B1F;
	--ea-gold-light: #E7C77E;
	--ea-gold-grad: linear-gradient(135deg, #8F621D, #C9973E 38%, #F1D58C 70%, #B9873A);
	--ea-sale: #A3261B;
	--ea-ok: #2E6B3F;

	--ea-font: "Jost", "Helvetica Neue", Arial, sans-serif;
	--ea-gutter: 16px;
	--ea-max: 1440px;
	--ea-header-h: 64px;
	--ea-ease: cubic-bezier(.2, .7, .2, 1);
	--ea-fast: 180ms;
	--ea-z-header: 40;
	--ea-z-drawer: 100;
}
@media (min-width: 768px) { :root { --ea-gutter: 24px; --ea-header-h: 84px; } }
@media (min-width: 1024px) { :root { --ea-gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ea-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ea-black);
	background: var(--ea-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ea-gold); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ea-gold); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ea-skip {
	position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 12px 16px;
	background: var(--ea-black); color: var(--ea-white); text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
}
.ea-skip:focus { top: 8px; color: var(--ea-white); }
.ea-container { width: 100%; max-width: var(--ea-max); margin-inline: auto; padding-inline: var(--ea-gutter); }

/* ---------- Tipografía ---------- */
.ea-eyebrow {
	margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.ea-eyebrow--gold { color: var(--ea-gold); }
.ea-h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.ea-section__lead { color: var(--ea-muted); max-width: 60ch; margin: 8px 0 0; }
.ea-link {
	display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
	text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; padding-block: 6px;
}
.ea-prose { max-width: 75ch; }
.ea-prose h2, .ea-prose h3 { margin: 1.6em 0 .6em; letter-spacing: .06em; }
.ea-prose a { text-decoration: underline; text-underline-offset: 3px; }
.ea-prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }

/* ---------- Botones ---------- */
.ea-btn, .button, .woocommerce .button, .woocommerce button.button, .woocommerce a.button, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 28px; border: 1px solid var(--ea-black); border-radius: 0;
	background: var(--ea-black); color: var(--ea-white);
	font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
	transition: background var(--ea-fast) var(--ea-ease), border-color var(--ea-fast) var(--ea-ease), color var(--ea-fast);
	cursor: pointer; text-align: center;
}
.ea-btn:hover, .button:hover, .woocommerce .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wp-element-button:hover {
	background: var(--ea-gold); border-color: var(--ea-gold); color: var(--ea-white);
}
.ea-btn--outline { background: var(--ea-white); color: var(--ea-black); }
.ea-btn--outline:hover { background: var(--ea-black); border-color: var(--ea-black); color: var(--ea-white); }
.ea-btn--block { width: 100%; }
.ea-btn.loading, .button.loading { opacity: .6; pointer-events: none; }
.ea-btn.added::after, .button.added::after { content: " ✓"; }
.added_to_cart { display: none !important; }
.ea-iconbtn {
	display: inline-grid; place-items: center; position: relative;
	width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ea-black);
}
.ea-iconbtn:hover { color: var(--ea-gold); }
.ea-iconbtn--ring { border: 1px solid var(--ea-line); background: var(--ea-white); }
.ea-iconbtn--ring:hover { border-color: var(--ea-black); color: var(--ea-black); }
.ea-iconbtn[disabled] { opacity: .35; cursor: default; }

/* ---------- Barra de anuncios ---------- */
.ea-announce { background: var(--ea-black); color: var(--ea-white); text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.ea-announce ul { display: grid; list-style: none; margin-block: 0; }
.ea-announce li { display: flex; align-items: center; justify-content: center; min-height: 36px; padding-block: 8px; }
.ea-announce a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color var(--ea-fast) var(--ea-ease), text-decoration-color var(--ea-fast) var(--ea-ease); }
.ea-announce a:hover { color: var(--ea-gold-light); text-decoration-color: currentColor; }

/* Mensajes que rotan en la misma celda (anuncios y, en celular, beneficios): altura estable, sin saltos */
.ea-rotate__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 400ms var(--ea-ease), transform 400ms var(--ea-ease), visibility 0s linear 400ms; }
.ea-rotate__item.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 400ms var(--ea-ease), transform 400ms var(--ea-ease), visibility 0s; }
@media (max-width: 767px) {
	.ea-announce { font-size: 10.5px; letter-spacing: .06em; }
	.ea-header__logo { width: 168px; }
	.ea-header__menu { margin-left: -10px; }
	.ea-header__right { gap: 0; }
	.ea-header__cart { margin-right: -10px; }
}
.ea-main > .ea-breadcrumb { margin-top: 4px; }

/* ---------- Cabecera ---------- */
.ea-header { position: sticky; top: 0; z-index: var(--ea-z-header); background: var(--ea-white); border-bottom: 1px solid var(--ea-line); }
.admin-bar .ea-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .ea-header { top: 32px; } }
.ea-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--ea-header-h); }
.ea-header__right { display: flex; justify-content: flex-end; gap: 4px; }
.ea-header__logo { display: block; width: clamp(176px, 26vw, 285px); }
.ea-header__logo svg { width: 100%; height: auto; }
.ea-cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--ea-black); color: var(--ea-white); font-size: 11px; font-weight: 500; line-height: 18px; text-align: center;
}
.ea-cart-count[data-count="0"] { display: none; }
.ea-header__search { padding-block: 12px; }
.ea-header .ea-search { display: flex; align-items: stretch; border: 1px solid var(--ea-line); background: var(--ea-white); transition: border-color var(--ea-fast) var(--ea-ease); }
.ea-header .ea-search:focus-within { border-color: var(--ea-black); }
.ea-header .ea-search input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 0; background: transparent; font-size: 16px; }
.ea-header .ea-search input[type="search"]:focus { outline: none; }
.ea-header .ea-search input[type="search"]::placeholder { color: var(--ea-muted); }
.ea-header .ea-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ea-search__btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; padding: 0; border: 0; background: transparent; color: var(--ea-black); cursor: pointer; transition: color var(--ea-fast) var(--ea-ease); }
.ea-search__btn:hover { color: var(--ea-gold); }
.ea-search { position: relative; display: flex; align-items: center; }
.ea-search > .ea-icon { position: absolute; left: 14px; color: var(--ea-muted); pointer-events: none; }
.ea-search input[type="search"] {
	width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1px solid var(--ea-line); border-radius: 0; background: var(--ea-ivory);
	font-size: 16px;
}
.ea-search input[type="search"]:focus { outline: none; border-color: var(--ea-black); background: var(--ea-white); }
.ea-nav__link--sale { color: var(--ea-sale); }
@media (min-width: 1024px) {
	.ea-header__menu { display: none; }
	.ea-header__search { border-top: 1px solid var(--ea-line); }
}

/* Navegación + mega-menú */
.ea-nav { display: none; }
@media (min-width: 1024px) {
	.ea-nav { display: block; border-top: 1px solid var(--ea-line); }
	.ea-nav__list { display: flex; justify-content: center; gap: clamp(16px, 2.5vw, 40px); }
	.ea-nav__link { display: block; padding: 14px 0; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid transparent; }
	.ea-nav__item:hover > .ea-nav__link, .ea-nav__item:focus-within > .ea-nav__link { border-bottom-color: var(--ea-black); color: var(--ea-black); }
	.ea-nav__link--sale { color: var(--ea-sale); }
	.ea-mega {
		position: absolute; left: 0; right: 0; top: 100%; background: var(--ea-white); border-top: 1px solid var(--ea-line); border-bottom: 1px solid var(--ea-line);
		opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--ea-fast), transform var(--ea-fast), visibility 0s linear var(--ea-fast);
	}
	.ea-nav__item.has-mega:hover .ea-mega, .ea-nav__item.has-mega:focus-within .ea-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.ea-mega__inner { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding-block: 32px 40px; }
	.ea-mega__col ul { columns: 2; column-gap: 48px; }
	.ea-mega__col li { padding: 6px 0; break-inside: avoid; }
	.ea-mega__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
	.ea-mega__feature img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--ea-ivory); margin-bottom: 8px; }
}

/* Franja de beneficios */
.ea-usp { border-bottom: 1px solid var(--ea-line); }
.ea-usp ul { display: grid; list-style: none; margin-block: 0; padding-block: 12px; }
.ea-usp li { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; line-height: 1.35; }
.ea-usp strong { display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.ea-usp strong + span { display: block; color: var(--ea-muted); }
.ea-usp .ea-icon { flex-shrink: 0; color: var(--ea-gold); }
@media (min-width: 768px) {
	.ea-usp ul { display: flex; justify-content: space-between; gap: 24px; }
	.ea-usp .ea-rotate__item { flex: 1; opacity: 1; visibility: visible; transform: none; }
}

/* ---------- Drawers (menú, bolsa, filtros) ---------- */
.ea-drawer {
	position: fixed; top: 0; bottom: 0; z-index: var(--ea-z-drawer); width: min(420px, 92vw); display: flex; flex-direction: column;
	background: var(--ea-white); transition: transform 260ms var(--ea-ease);
}
.ea-drawer[hidden] { display: flex; visibility: hidden; }
.ea-drawer--left { left: 0; transform: translateX(-100%); }
.ea-drawer--right { right: 0; transform: translateX(100%); }
.ea-drawer.is-open { transform: none; visibility: visible; }
.ea-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--ea-line); }
.ea-drawer__head .ea-eyebrow { margin: 0; }
.ea-drawer__body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.ea-scrim { position: fixed; inset: 0; z-index: calc(var(--ea-z-drawer) - 1); background: rgba(11, 11, 11, .45); opacity: 0; transition: opacity 200ms; }
.ea-scrim.is-open { opacity: 1; }
body.ea-lock { overflow: hidden; }

.ea-mnav > li { border-bottom: 1px solid var(--ea-line); }
.ea-mnav a, .ea-mnav summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; list-style: none; }
.ea-mnav summary::-webkit-details-marker { display: none; }
.ea-mnav details[open] summary .ea-icon { transform: rotate(180deg); }
.ea-mnav details ul { padding: 0 0 12px 12px; }
.ea-mnav details ul a { min-height: 40px; text-transform: none; letter-spacing: 0; font-size: 15px; }

/* Mini-carrito */
.ea-minicart .woocommerce-mini-cart { display: grid; gap: 16px; }
.ea-minicart .woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 4px 14px; padding-right: 28px; font-size: 14px; }
.ea-minicart .woocommerce-mini-cart-item img { grid-row: span 2; width: 80px; height: 80px; object-fit: cover; background: var(--ea-ivory); }
.ea-minicart .woocommerce-mini-cart-item a:not(.remove) { display: contents; font-weight: 500; }
.ea-minicart .woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--ea-muted); }
.ea-minicart .remove { position: absolute; top: 0; right: 0; width: 24px; height: 24px; display: grid; place-items: center; font-size: 20px; color: var(--ea-muted); }
.ea-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 24px 0 16px; padding-top: 16px; border-top: 1px solid var(--ea-line); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.ea-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.ea-minicart .woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--ea-white); color: var(--ea-black); }
.ea-minicart .woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: var(--ea-black); color: var(--ea-white); }
.ea-minicart .woocommerce-mini-cart__empty-message { text-align: center; color: var(--ea-muted); padding: 40px 0; }
.ea-freeship { margin-bottom: 20px; font-size: 14px; }
.ea-freeship p { margin-bottom: 8px; }
.ea-freeship__bar { height: 4px; background: var(--ea-line); }
.ea-freeship__bar span { display: block; height: 100%; background: var(--ea-gold-grad); }

/* ---------- Secciones ---------- */
.ea-section { padding-block: clamp(40px, 6vw, 72px); }
.ea-section--ivory { background: var(--ea-ivory); }
.ea-section__head { margin-bottom: 28px; text-align: center; }
.ea-section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left; }
.ea-section__head .ea-section__lead { margin-inline: auto; }

/* Hero */
.ea-hero { position: relative; }
.ea-hero__track { display: grid; }
.ea-hero__slide { grid-area: 1 / 1; display: grid; opacity: 0; visibility: hidden; transition: opacity 500ms var(--ea-ease), visibility 0s linear 500ms; }
.ea-hero__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.ea-hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ea-sand); }
.ea-hero__card { padding: 24px var(--ea-gutter) 8px; }
.ea-hero__title { font-size: clamp(28px, 4vw, 52px); font-weight: 300; line-height: 1.1; margin-bottom: 12px; max-width: 18ch; }
.ea-hero__text { color: var(--ea-muted); max-width: 46ch; }
.ea-hero__controls { display: flex; align-items: center; justify-content: center; gap: 16px; padding-block: 12px 0; }
.ea-hero__dots { display: flex; gap: 6px; }
.ea-hero__dot { width: 32px; height: 44px; border: 0; padding: 0; background: transparent; position: relative; }
.ea-hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ea-line); }
.ea-hero__dot[aria-selected="true"]::before { background: var(--ea-black); }
@media (min-width: 768px) {
	.ea-hero__img { aspect-ratio: 1920 / 820; }
	.ea-hero__slide { position: relative; }
	.ea-hero__card {
		position: absolute; left: var(--ea-gutter); bottom: 48px; width: min(480px, 46%);
		background: var(--ea-white); padding: 36px 40px;
	}
	.ea-hero__controls { position: absolute; right: 0; bottom: 48px; justify-content: flex-end; width: auto; }
}
@media (min-width: 1440px) { .ea-hero__card { left: calc((100vw - var(--ea-max)) / 2 + var(--ea-gutter)); } }

/* Tarjetas editoriales */
.ea-promos { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ea-promos::-webkit-scrollbar { display: none; }
.ea-promo { scroll-snap-align: start; }
.ea-promo__media { display: block; overflow: hidden; margin-bottom: 16px; background: var(--ea-ivory); }
.ea-promo__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 400ms var(--ea-ease); }
.ea-promo:hover .ea-promo__media img { transform: scale(1.03); }
.ea-promo__title { font-size: 22px; font-weight: 400; margin-bottom: 8px; }
.ea-promo__text { color: var(--ea-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
@media (min-width: 768px) { .ea-promos { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; overflow: visible; } }

/* Carrusel de productos */
.ea-rail__nav { display: flex; align-items: center; gap: 8px; }
.ea-rail__nav .ea-link { margin-right: 8px; white-space: nowrap; }
.ea-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.ea-rail__track::-webkit-scrollbar { display: none; }
.ea-rail__track > li { scroll-snap-align: start; }
@media (max-width: 767px) { .ea-rail__nav .ea-iconbtn { display: none; } }
@media (min-width: 768px) { .ea-rail__track { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; } }
@media (min-width: 1024px) { .ea-rail__track { grid-auto-columns: calc((100% - 72px) / 4); } }

/* ---------- Tarjeta de producto ---------- */
.ea-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.ea-card__media { display: block; overflow: hidden; background: var(--ea-ivory); margin-bottom: 14px; }
.ea-card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 400ms var(--ea-ease); }
.ea-card:hover .ea-card__media img { transform: scale(1.03); }
.ea-badge {
	display: inline-block; padding: 4px 8px; background: var(--ea-white); border: 1px solid var(--ea-black);
	font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
}
.ea-card__badge { position: absolute; top: 10px; left: 10px; }
.ea-card.sale .ea-card__badge { border-color: var(--ea-sale); color: var(--ea-sale); }
.ea-card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ea-card__brand { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ea-card__title { font-size: 15px; font-weight: 400; line-height: 1.4; }
.ea-card__title a::after { content: ""; position: absolute; inset: 0 0 64px 0; } /* toda la tarjeta clicable */
.ea-card__rating { margin: 2px 0 0; }
.ea-card__price { margin: 4px 0 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ea-card__price del { color: var(--ea-muted); font-weight: 400; margin-right: 6px; }
.ea-card__price ins { text-decoration: none; color: var(--ea-sale); }
.ea-card__cta { position: relative; z-index: 1; margin-top: 12px; }
.ea-card__cta .button { min-height: 44px; padding: 0 12px; font-size: 12px; }
@media (hover: hover) and (min-width: 1024px) {
	.ea-card__cta { opacity: 0; transform: translateY(6px); transition: opacity var(--ea-fast), transform var(--ea-fast); }
	.ea-card:hover .ea-card__cta, .ea-card:focus-within .ea-card__cta { opacity: 1; transform: none; }
}

/* Estrellas */
.ea-stars { position: relative; display: inline-block; font-size: 13px; letter-spacing: 2px; line-height: 1; vertical-align: middle; }
.ea-stars__bg { color: var(--ea-line); }
.ea-stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--ea-black); }
.ea-stars__count { margin-left: 6px; font-size: 12px; color: var(--ea-muted); vertical-align: middle; }

/* Categorías */
.ea-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ea-cat { position: relative; display: block; overflow: hidden; background: var(--ea-white); }
.ea-cat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 400ms var(--ea-ease); }
.ea-cat:hover img { transform: scale(1.03); }
.ea-cat__name {
	position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px; background: var(--ea-white); text-align: center;
	font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
@media (min-width: 1024px) { .ea-cats { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* Marcas */
.ea-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ea-line); border: 1px solid var(--ea-line); }
.ea-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 16px; background: var(--ea-white); text-align: center; font-size: 17px; letter-spacing: .16em; text-transform: uppercase; transition: background var(--ea-fast); }
.ea-brand:hover { background: var(--ea-ivory); color: var(--ea-black); }
.ea-brand__count { font-size: 12px; letter-spacing: .08em; text-transform: none; color: var(--ea-muted); }
@media (min-width: 768px) { .ea-brands { grid-template-columns: repeat(4, 1fr); } }

/* Reseñas */
.ea-reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ea-reviews::-webkit-scrollbar { display: none; }
.ea-review { scroll-snap-align: start; background: var(--ea-white); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.ea-review blockquote { margin: 0; font-size: 18px; font-weight: 300; line-height: 1.5; flex: 1; }
.ea-review blockquote p { margin: 0; }
.ea-review__author { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ea-review__product { font-size: 14px; color: var(--ea-gold); }
@media (min-width: 768px) { .ea-reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* Newsletter */
.ea-newsletter { background: var(--ea-sand); padding-block: 48px; }
.ea-newsletter__inner { display: grid; gap: 24px; align-items: end; }
.ea-newsletter__form label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.ea-newsletter__row { display: flex; }
.ea-newsletter__row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--ea-black); border-right: 0; border-radius: 0; background: var(--ea-white); font-size: 16px; }
.ea-newsletter__msg { min-height: 1.5em; margin: 8px 0 0; font-size: 14px; }
.ea-newsletter__msg.is-ok { color: var(--ea-ok); }
.ea-newsletter__msg.is-error { color: var(--ea-sale); }
@media (min-width: 1024px) { .ea-newsletter__inner { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Pie */
.ea-footer { background: var(--ea-black); color: #E9E5DE; font-size: 15px; }
.ea-footer :focus-visible { outline-color: var(--ea-gold-light); }
.ea-footer a { transition: color var(--ea-fast) var(--ea-ease); }
.ea-footer a:hover { color: var(--ea-gold-light); }
.ea-footer__grid { display: grid; gap: 48px; padding-block: 64px 48px; }
.ea-footer__brand { display: grid; gap: 20px; align-content: start; }
.ea-footer__logo { display: block; width: 253px; line-height: 0; }
.ea-footer__logo svg { width: 100%; height: auto; }
.ea-footer__tagline { margin: 0; color: #C9C3B8; }
.ea-footer__qr { display: flex; align-items: center; gap: 20px; max-width: 420px; }
.ea-footer__qrimg { flex-shrink: 0; display: block; padding: 8px; background: var(--ea-white); line-height: 0; transition: transform var(--ea-fast) var(--ea-ease); }
.ea-footer__qrimg:hover { transform: scale(1.04); }
.ea-footer__qrimg img { width: 104px; height: 104px; }
.ea-footer__qr .ea-footer__title { margin-bottom: 4px; }
.ea-footer__small { margin: 0; color: #C9C3B8; font-size: 14px; }
.ea-footer__title { color: var(--ea-gold-light); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.ea-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.ea-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.ea-footer__cols a { display: inline-flex; align-items: center; min-height: 36px; overflow-wrap: anywhere; }
.ea-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ea-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ea-gold-grad); color: var(--ea-black); transition: transform var(--ea-fast) var(--ea-ease), filter var(--ea-fast) var(--ea-ease); }
.ea-social a:hover { color: var(--ea-black); transform: translateY(-2px); filter: brightness(1.1); }
.ea-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid #2A2824; font-size: 13px; color: #C9C3B8; }
.ea-footer__bottom p { margin: 0; }
.ea-footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ea-footer__pay span { padding: 4px 10px; border: 1px solid #4A4640; color: #E9E5DE; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
@media (min-width: 768px) { .ea-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.ea-footer__grid { grid-template-columns: minmax(320px, 5fr) 7fr; gap: 64px; }
}
@media (prefers-reduced-motion: reduce) { .ea-footer__qrimg:hover, .ea-social a:hover { transform: none; } }

/* ---------- Catálogo ---------- */
.ea-main { padding-block: 24px 64px; min-height: 50vh; }
.ea-breadcrumb { font-size: 12px; letter-spacing: .08em; color: var(--ea-muted); margin-bottom: 16px; }
.ea-breadcrumb a:hover { text-decoration: underline; }
.ea-crumb-sep { margin: 0 8px; }
.ea-archive__head { text-align: center; margin-bottom: 24px; }
.ea-archive__head .ea-breadcrumb { text-align: left; }
.ea-archive__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.term-description, .page-description { color: var(--ea-muted); max-width: 70ch; margin: 0 auto 16px; }
.ea-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; justify-content: flex-start; }
@media (min-width: 768px) { .ea-chips { flex-wrap: wrap; justify-content: center; } }
.ea-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ea-line); font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.ea-chip:hover, .ea-chip[aria-current] { border-color: var(--ea-black); color: var(--ea-black); background: var(--ea-ivory); }

.ea-archive { display: block; }
.ea-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; margin-bottom: 24px; border-block: 1px solid var(--ea-line); }
.ea-toolbar__count { margin: 0; font-size: 13px; color: var(--ea-muted); }
.ea-toolbar__filters { min-height: 44px; padding: 0 16px; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--ea-line); border-radius: 0; background: var(--ea-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%230B0B0B' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 14px; }
@media (max-width: 767px) { .ea-toolbar__count { display: none; } }

.ea-filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: var(--ea-z-drawer); width: min(380px, 92vw); background: var(--ea-white); transform: translateX(-100%); visibility: hidden; transition: transform 260ms var(--ea-ease), visibility 0s linear 260ms; display: flex; flex-direction: column; }
.ea-filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.ea-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--ea-line); }
.ea-filters__head .ea-eyebrow { margin: 0; }
.ea-filters__form { padding: 20px; overflow-y: auto; flex: 1; }
.ea-filter { border: 0; margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid var(--ea-line); }
.ea-filter legend { padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ea-filter__links a { display: block; padding: 8px 0; }
.ea-filter__links a[aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ea-filter__price { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ea-filter__price span { display: block; font-size: 12px; color: var(--ea-muted); margin-bottom: 4px; }
.ea-filter__price input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--ea-line); border-radius: 0; font-size: 16px; }
.ea-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.ea-check input { width: 18px; height: 18px; accent-color: var(--ea-black); }
.ea-filters__actions { display: grid; gap: 8px; justify-items: center; }
@media (min-width: 1024px) {
	.ea-archive { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
	.ea-filters { position: sticky; top: calc(var(--ea-header-h) + 70px); transform: none; visibility: visible; width: auto; z-index: 1; display: block; }
	.ea-filters__head { display: none; }
	.ea-filters__form { padding: 0; }
	.ea-toolbar__filters { display: none; }
}

.ea-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
@media (min-width: 768px) { .ea-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 1280px) { .ea-grid.columns-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1440px) { .ea-grid.columns-4 { grid-template-columns: repeat(4, 1fr); } }
.ea-empty { text-align: center; padding: 64px 0; display: grid; gap: 20px; justify-items: center; }

.woocommerce-pagination { margin-top: 48px; }
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 4px; }
.woocommerce-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid transparent; font-size: 14px; }
.woocommerce-pagination .page-numbers.current { border-color: var(--ea-black); }
.woocommerce-pagination a.page-numbers:hover { border-color: var(--ea-line); }

/* ---------- Ficha de producto ---------- */
.single-product div.product { display: grid; gap: 32px; }
@media (min-width: 1024px) { .single-product div.product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; } }
.woocommerce-product-gallery { position: relative; background: var(--ea-ivory); }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery img { width: 100%; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ea-white); font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230B0B0B' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center / contain; }
.flex-control-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.flex-control-thumbs li { width: 80px; cursor: pointer; }
.flex-control-thumbs img { opacity: .6; }
.flex-control-thumbs img.flex-active { opacity: 1; outline: 1px solid var(--ea-black); }
.single-product .summary { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (min-width: 1024px) { .single-product .summary { position: sticky; top: calc(var(--ea-header-h) + 70px); align-self: start; } }
.ea-pdp__brand { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }
.ea-pdp__title { font-size: clamp(26px, 3vw, 36px); font-weight: 300; line-height: 1.2; }
.ea-pdp__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.ea-pdp__rating span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.single-product .summary .price { margin: 4px 0; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.single-product .summary .price del { color: var(--ea-muted); font-weight: 400; font-size: 18px; margin-right: 8px; }
.single-product .summary .price ins { text-decoration: none; color: var(--ea-sale); }
.woocommerce-product-details__short-description { color: var(--ea-muted); }
.woocommerce-product-details__short-description p { margin: 0; }
.single-product form.cart { display: flex; gap: 12px; width: 100%; margin: 8px 0; }
.single-product form.cart .button { flex: 1; min-height: 52px; }
.quantity { display: flex; }
.quantity .qty { width: 72px; height: 52px; border: 1px solid var(--ea-line); border-radius: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; }
.stock { font-size: 13px; color: var(--ea-ok); margin: 0; }
.stock.out-of-stock { color: var(--ea-sale); }
.ea-pdp__perks { width: 100%; display: grid; gap: 12px; padding: 20px 0; border-block: 1px solid var(--ea-line); font-size: 14px; }
.ea-pdp__perks li { display: flex; align-items: center; gap: 12px; }
.ea-pdp__perks .ea-icon { color: var(--ea-gold); flex: 0 0 auto; }

/* Pestañas como acordeón vertical */
.woocommerce-tabs { grid-column: 1 / -1; border-top: 1px solid var(--ea-line); }
.woocommerce-tabs ul.tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ea-line); }
.woocommerce-tabs ul.tabs li a { display: block; padding: 18px 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--ea-black); }
.woocommerce-Tabs-panel { padding: 24px 0; max-width: 75ch; }
.woocommerce-Tabs-panel h2:first-child { display: none; }
.woocommerce-Tabs-panel h3 { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 20px 0 8px; }
.woocommerce-Tabs-panel ul { list-style: disc; padding-left: 1.2em; }
#reviews .commentlist { display: grid; gap: 16px; }
#reviews .comment_container { display: flex; gap: 16px; padding: 20px; background: var(--ea-ivory); }
#reviews .avatar { display: none; }
#reviews .star-rating { font-size: 0; }
#reviews .woocommerce-review__author { font-weight: 600; }
#review_form input[type="text"], #review_form input[type="email"], #review_form textarea { width: 100%; padding: 12px; border: 1px solid var(--ea-line); border-radius: 0; font-size: 16px; }
.comment-form-rating .stars a { font-size: 0; display: inline-block; width: 24px; height: 24px; }
.comment-form-rating .stars a::before { content: "★"; font-size: 22px; color: var(--ea-line); }
.comment-form-rating .stars:hover a::before, .comment-form-rating .stars.selected a::before { color: var(--ea-black); }
.comment-form-rating .stars a:hover ~ a::before, .comment-form-rating .stars.selected a.active ~ a::before { color: var(--ea-line); }
.related.products, .upsells.products { grid-column: 1 / -1; padding-top: 32px; }
.related.products > h2, .upsells.products > h2 { font-size: 22px; letter-spacing: .12em; text-transform: uppercase; text-align: center; margin-bottom: 28px; }

/* ---------- Páginas WC (carrito / checkout / cuenta con bloques) ---------- */
.ea-page__head { text-align: center; margin: 16px 0 32px; }
.ea-page--wc .ea-prose { max-width: none; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	border: 1px solid var(--ea-line) !important; border-radius: 0 !important; background: var(--ea-ivory) !important; padding: 14px 18px !important; margin-bottom: 20px; list-style: none;
}
.woocommerce-error { border-color: var(--ea-sale) !important; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	border-radius: 0 !important; background: var(--ea-black) !important; color: var(--ea-white) !important; text-transform: uppercase; letter-spacing: .14em; font-weight: 500 !important; min-height: 52px;
}
.wc-block-components-button:not(.is-link):hover { background: var(--ea-gold) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input, .wc-block-components-form .wc-block-components-text-input input, .wc-blocks-components-select__select {
	border-radius: 0 !important; border-color: var(--ea-line) !important;
}
.wc-block-components-title, .wc-block-cart__totals-title { letter-spacing: .12em !important; text-transform: uppercase; font-weight: 500 !important; }
.wc-block-components-product-name { font-weight: 500; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border: 1px solid var(--ea-line); font-size: 13px; letter-spacing: .08em; }
.woocommerce-MyAccount-navigation .is-active a { border-color: var(--ea-black); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--ea-line); border-radius: 0; font-size: 16px; }
.woocommerce form .form-row label { display: block; font-size: 13px; margin-bottom: 4px; }
.woocommerce form .form-row { margin-bottom: 16px; }
.u-columns.col2-set { display: grid; gap: 40px; }
@media (min-width: 768px) { .u-columns.col2-set { grid-template-columns: 1fr 1fr; } }

/* 404 */
.ea-404 { text-align: center; display: grid; gap: 16px; justify-items: center; padding-block: 80px; }
.ea-search--boxed { width: min(520px, 100%); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
