/* Ebmer: estilos propios sobre la base de Gutenify Store Base. */
:root {
	--ebmer-ease: cubic-bezier(.2,.7,.2,1);
}
body { -webkit-font-smoothing: antialiased; }

/* Cabecera */
.ebmer-header .wp-block-site-logo img { max-height: 44px; width: auto; }
.ebmer-header .mobile-right-area .wp-block-search { max-width: 200px; }
.ebmer-header .wp-block-search__inside-wrapper { border: 1px solid var(--wp--preset--color--border-box); border-radius: 999px; padding: 2px 4px; background: var(--wp--preset--color--background-secondary); }
.ebmer-header .wp-block-search__input { border: 0; background: transparent; font-size: .8rem; padding: 6px 10px; min-width: 0; }
.ebmer-header .wp-block-search__input:focus { outline: none; }
.ebmer-header .wp-block-search__button { padding: 6px 8px; background: transparent; color: var(--wp--preset--color--foreground); border: 0; min-width: 0; }
.ebmer-header .wp-block-search__button svg { width: 18px; height: 18px; }
.ebmer-header .wc-block-mini-cart__button { color: var(--wp--preset--color--foreground); }
.ebmer-header .wc-block-mini-cart__badge { background: var(--wp--preset--color--primary); color: #fff; }
.ebmer-header .wp-block-navigation-item, .ebmer-header .wp-block-navigation-item__content { white-space: nowrap; flex-shrink: 0; }
.ebmer-header .wp-block-column[style*="flex-basis:200px"], .ebmer-header .wp-block-column[style*="flex-basis:260px"] { flex-shrink: 0; }
@media (max-width: 1180px) { .ebmer-header .wp-block-navigation .wp-block-navigation-item__content { font-size: .72rem !important; } }
/* Entre 600 y 1099px el menú pasa a hamburguesa (el bloque solo lo hace por debajo de 600px). */
@media (min-width: 600px) and (max-width: 1099px) {
	.ebmer-topbar-right { display: none; }
	.ebmer-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.ebmer-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ebmer-header .mobile-nav-area { justify-content: flex-end; }
}
.ebmer-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); }
.ebmer-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3rem; }
@media (max-width: 781px) {
	.ebmer-header .mobile-right-area .wp-block-search { display: none; }
	.ebmer-topbar-right { display: none; }
	.ebmer-header .wp-block-columns { gap: .5rem; }
	.ebmer-header .wp-block-column[style*="flex-basis:200px"] { flex-basis: 130px !important; }
	.ebmer-header .wp-block-column[style*="flex-basis:260px"] { flex-basis: 90px !important; }
	.ebmer-header .mobile-nav-area { justify-content: flex-end; }
}
@media (max-width: 600px) {
	.ebmer-topbar-left { width: 100%; text-align: center; font-size: .7rem; }
}

/* Botones enlace (subrayado) */
.ebmer-link-btn .wp-block-button__link {
	border: 0 !important; border-bottom: 1px solid currentColor !important; border-radius: 0 !important;
	padding: 0 0 4px !important; background: transparent !important; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
	transition: color .2s var(--ebmer-ease), border-color .2s var(--ebmer-ease);
}
.ebmer-link-btn .wp-block-button__link:hover { color: var(--wp--preset--color--primary) !important; }
.ebmer-link-btn-light .wp-block-button__link:hover { color: #fff !important; opacity: .8; }

/* Hero */
.ebmer-hero .wp-block-cover__inner-container { width: 100%; }
@media (max-width: 600px) {
	.ebmer-hero { min-height: 72vh !important; }
	.ebmer-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
}

/* Tarjetas de categoría, tiles y zoom */
.image-zoom-hover { overflow: hidden; }
.image-zoom-hover img { transition: transform .8s var(--ebmer-ease); }
.image-zoom-hover:hover img { transform: scale(1.04); }
.ebmer-feature-tile { min-height: min(520px, 70vw) !important; }
.ebmer-cat-card h3 a { text-decoration: none; }
.ebmer-cat-card h3 a:hover { color: var(--wp--preset--color--primary); }

/* Listados de productos */
.ebmer-products .wc-block-components-product-image img, .ebmer-products .wp-block-woocommerce-product-image img { background: var(--wp--preset--color--section-background); }
.ebmer-products .wp-block-post-title a { text-decoration: none; }
.ebmer-products .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.ebmer-products .wp-block-button__link, .ebmer-products .wc-block-components-product-button .wp-block-button__link { width: 100%; }
.ebmer-iva { font-size: .75em; font-weight: 400; color: var(--wp--preset--color--body-text); }
.wc-block-components-product-price ins { text-decoration: none; }
.wc-block-components-product-price del { opacity: .55; }

/* Secciones historia */
@media (min-width: 782px) {
	.ebmer-story-reverse > .wp-block-column:first-child { order: 2; }
}
.ebmer-checklist { list-style: none; padding-left: 0; }
.ebmer-checklist li { position: relative; padding-left: 1.6em; margin-bottom: .45em; }
.ebmer-checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9em; height: .9em; border-radius: 50%; background: var(--wp--preset--color--primary); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.5 11.5 3 8l1.4-1.4 2.1 2.1 5.1-5.1L13 5z'/></svg>") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.5 11.5 3 8l1.4-1.4 2.1 2.1 5.1-5.1L13 5z'/></svg>") center/contain no-repeat; }

/* Opiniones */
.ebmer-review { border-radius: 2px; }
.ebmer-stars { letter-spacing: .1em; }

/* Blog cards */
.ebmer-posts .wp-block-post-featured-image img { aspect-ratio: 4/3; object-fit: cover; }
.ebmer-posts .wp-block-post-title a { text-decoration: none; }
.ebmer-posts .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.ebmer-posts .wp-block-post-terms a { text-decoration: none; }

/* Galería de comunidad */
.ebmer-insta figure { margin: 0; }

/* Footer newsletter y formularios */
.ebmer-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ebmer-newsletter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.ebmer-newsletter input[type="email"] { flex: 1 1 220px; border: 1px solid var(--wp--preset--color--border-box); background: var(--wp--preset--color--background); padding: .8rem 1rem; font-size: .95rem; }
.ebmer-newsletter button { flex: 0 0 auto; cursor: pointer; border: 0; }
.ebmer-newsletter__legal { flex-basis: 100%; font-size: .75rem; color: var(--wp--preset--color--body-text); margin: 0; }
.ebmer-form { display: grid; gap: 1rem; }
.ebmer-form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ebmer-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; }
.ebmer-form input:not([type="checkbox"]), .ebmer-form select, .ebmer-form textarea { border: 1px solid var(--wp--preset--color--border-box); background: var(--wp--preset--color--background); padding: .75rem .9rem; font: inherit; font-weight: 400; width: 100%; }
.ebmer-form textarea { resize: vertical; }
.ebmer-form__check { display: flex !important; gap: .5rem; align-items: flex-start; font-weight: 400 !important; }
.ebmer-form button { justify-self: start; cursor: pointer; border: 0; }
.ebmer-notice { padding: .9rem 1.1rem; margin-bottom: 1rem; border-left: 3px solid var(--wp--preset--color--secondary); background: var(--wp--preset--color--background); font-size: .9rem; }
.ebmer-notice--error { border-left-color: var(--wp--preset--color--primary); }

/* Tablas, FAQ, legal, mapa */
.ebmer-table table { font-size: .9rem; border-collapse: collapse; }
.ebmer-table th { background: var(--wp--preset--color--section-background); text-align: left; font-weight: 600; }
.ebmer-table td, .ebmer-table th { border: 1px solid var(--wp--preset--color--border-box); padding: .6rem .8rem; }
.ebmer-faq { border-bottom: 1px solid var(--wp--preset--color--border-box); padding: .9rem 0; }
.ebmer-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ebmer-faq summary::-webkit-details-marker { display: none; }
.ebmer-faq summary::after { content: "+"; color: var(--wp--preset--color--primary); font-size: 1.3em; line-height: 1; }
.ebmer-faq[open] summary::after { content: "–"; }
.ebmer-faq p { margin-top: .6rem; }
.ebmer-legal h2 { margin-top: 1.5rem; }
.ebmer-milestone { padding-bottom: 1rem; }
.ebmer-map iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(.7); }

/* Aviso de cookies */
.ebmer-cookies { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 9999; max-width: 560px; margin-inline: auto; background: var(--wp--preset--color--foreground); color: var(--wp--preset--color--background); padding: 1.1rem 1.3rem; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.25); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; }
.ebmer-cookies[hidden] { display: none; }
.ebmer-cookies p { margin: 0; flex: 1 1 280px; }
.ebmer-cookies a { color: inherit; text-decoration: underline; }
.ebmer-cookies__actions { display: flex; gap: .5rem; }
.ebmer-cookies__btn { cursor: pointer; border: 0; padding: .6rem 1.1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ebmer-cookies__btn--ghost { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.4); }

/* WooCommerce: ficha, carrito, cuenta */
.wc-block-components-notice-banner { border-radius: 2px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--wp--preset--color--border-box); }
.woocommerce-MyAccount-navigation a { display: block; padding: .7rem 0; text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { color: var(--wp--preset--color--primary); font-weight: 600; }
.wp-block-woocommerce-product-details .wc-tab, .woocommerce-Tabs-panel { max-width: 60ch; }
table.variations td.label { padding-right: 1rem; font-weight: 600; }
table.variations select { border: 1px solid var(--wp--preset--color--border-box); padding: .5rem .8rem; }
