/*
Theme Name: Nutrienjoy
Theme URI: https://nutrienjoy.com
Author: Nutrienjoy
Author URI: https://nutrienjoy.com
Description: Tema de bloques (FSE) para tiendas de nutrición deportiva y alimentación saludable. Compatible con WooCommerce, editable al 100% desde el Editor del Sitio.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nutrienjoy
Tags: full-site-editing, block-patterns, e-commerce, woocommerce, block-styles, wide-blocks
*/

/* ==========================================================================
   1. BASE
   ========================================================================== */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

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

/* ==========================================================================
   2. BARRA SUPERIOR DE AVISOS
   ========================================================================== */

.ne-topbar {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
}

.ne-topbar p {
	margin: 0;
}

/* ==========================================================================
   3. CABECERA
   ========================================================================== */

.ne-header {
	border-bottom: 1px solid rgba(20, 18, 16, 0.08);
}

.ne-header .wp-block-site-title a {
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.ne-nav a {
	text-decoration: none;
	font-size: 0.95rem;
}

.ne-nav a:hover {
	text-decoration: underline;
}

.ne-header-tools .wp-block-search__button {
	display: none;
}

.ne-header-tools .wp-block-search__input {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	padding: 0.25rem 0;
	min-width: 9rem;
	font-size: 0.9rem;
}

.ne-header-tools .wp-block-search__input:focus {
	outline: none;
	border-bottom-width: 2px;
}

.ne-header-tools .wc-block-mini-cart__button,
.ne-header-tools .wp-block-woocommerce-customer-account a {
	color: var(--wp--preset--color--contrast);
}

/* ==========================================================================
   4. MIGAS DE PAN
   ========================================================================== */

.ne-breadcrumbs,
.woocommerce-breadcrumb {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(20, 18, 16, 0.6);
}

.ne-breadcrumbs a,
.woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

/* ==========================================================================
   5. TITULARES DE SECCIÓN
   ========================================================================== */

.ne-section-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	letter-spacing: -0.01em;
}

/* ==========================================================================
   6. HERO Y BANNERS
   ========================================================================== */

.ne-hero {
	border-radius: 0;
	min-height: 520px;
}

.ne-banner {
	border-radius: 18px;
	overflow: hidden;
	min-height: 320px;
}

.ne-banner .wp-block-cover__inner-container,
.ne-hero .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--content-size);
}

/* ==========================================================================
   7. TARJETAS DE CATEGORÍA (OBJETIVOS)
   ========================================================================== */

.ne-goals .wp-block-cover {
	border-radius: 14px;
	overflow: hidden;
	min-height: 240px;
	transition: transform 0.25s ease;
}

.ne-goals .wp-block-cover:hover {
	transform: translateY(-4px);
}

.ne-goals .wp-block-cover p {
	font-size: 0.95rem;
	font-weight: 600;
}

.ne-category-duo .wp-block-cover {
	border-radius: 16px;
	overflow: hidden;
	min-height: 360px;
}

/* ==========================================================================
   8. PRODUCTOS (WOOCOMMERCE)
   ========================================================================== */

.wc-block-grid__product,
.wc-block-product-template__responsive-wrapper li,
.wp-block-post.product {
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(20, 18, 16, 0.08);
	border-radius: 14px;
	padding: 0.9rem;
	text-align: left;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wc-block-grid__product:hover,
.wp-block-post.product:hover {
	box-shadow: 0 10px 28px rgba(20, 18, 16, 0.1);
	transform: translateY(-3px);
}

.wc-block-grid__product-image img,
.wp-block-post.product .wc-block-components-product-image img {
	border-radius: 10px;
}

.wc-block-grid__product-title,
.wp-block-post.product .wp-block-post-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.78rem;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
	margin: 0.75rem 0 0.4rem;
}

.wc-block-grid__product-title a,
.wp-block-post.product .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.wc-block-grid__product-price,
.wp-block-post.product .wc-block-components-product-price {
	font-weight: 700;
	font-size: 0.95rem;
}

.wc-block-grid__product-onsale,
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--sale);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.25rem 0.6rem;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wp-block-post.product .wp-block-button__link {
	width: 100%;
	border-radius: 999px;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.7rem 1rem;
}

/* ==========================================================================
   9. FICHA DE PRODUCTO
   ========================================================================== */

.ne-product-gallery img {
	border-radius: 16px;
}

.ne-product-summary .wp-block-post-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.ne-product-summary .wc-block-components-product-price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--sale);
}

.ne-product-summary .wc-block-components-product-rating {
	font-size: 0.85rem;
}

.ne-product-summary form.cart button,
.ne-product-summary .single_add_to_cart_button {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 999px;
	padding: 0.95rem 2.2rem;
	font-weight: 600;
	cursor: pointer;
}

.ne-product-summary form.cart .quantity input {
	border: 1px solid rgba(20, 18, 16, 0.2);
	border-radius: 999px;
	padding: 0.7rem 0.5rem;
	background: var(--wp--preset--color--base);
}

.ne-product-note {
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(20, 18, 16, 0.1);
	border-radius: 12px;
	padding: 0.9rem 1.1rem;
	font-size: 0.85rem;
}

/* ==========================================================================
   10. CATÁLOGO
   ========================================================================== */

.ne-catalog-header {
	border-bottom: 1px solid rgba(20, 18, 16, 0.1);
}

.wc-block-product-template {
	gap: 1.5rem;
}

/* ==========================================================================
   11. BLOG
   ========================================================================== */

.ne-post-card .wp-block-post-featured-image img {
	border-radius: 12px;
}

.ne-post-card .wp-block-post-title {
	font-size: 0.82rem;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
}

.ne-post-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.ne-post-card .wp-block-post-excerpt__excerpt {
	font-size: 0.82rem;
	line-height: 1.5;
	color: rgba(20, 18, 16, 0.75);
}

.ne-post-card .wp-block-post-excerpt__more-link,
.ne-post-card .wp-block-read-more {
	font-size: 0.82rem;
	color: var(--wp--preset--color--sale);
	text-decoration: underline;
}

.ne-archive-title {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.wp-block-query-pagination .page-numbers {
	border: 1px solid rgba(20, 18, 16, 0.2);
	border-radius: 8px;
	padding: 0.35rem 0.75rem;
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ==========================================================================
   12. ENTRADA INDIVIDUAL
   ========================================================================== */

.ne-entry-content p {
	max-width: 46rem;
}

.ne-entry-meta {
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(20, 18, 16, 0.6);
}

/* ==========================================================================
   13. NEWSLETTER
   ========================================================================== */

.ne-newsletter {
	border-radius: 16px;
}

.ne-newsletter .wp-block-heading {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
}

/* ==========================================================================
   14. PIE DE PÁGINA
   ========================================================================== */

.ne-footer a {
	text-decoration: none;
	opacity: 0.85;
}

.ne-footer a:hover {
	opacity: 1;
	text-decoration: underline;
}

.ne-footer-heading {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
}

.ne-footer .wp-block-navigation {
	gap: 0.5rem;
}

.ne-footer-legal {
	font-size: 0.75rem;
	opacity: 0.7;
}

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

@media (max-width: 781px) {
	.ne-hero {
		min-height: 420px;
	}

	.ne-header-tools .wp-block-search__input {
		min-width: 6rem;
	}

	.ne-banner {
		min-height: 260px;
	}
}
