/*
Theme Name: Experiencia Coclear
Theme URI: https://experienciacoclear.com
Author: Experiencia Coclear
Description: Tema a medida para Experiencia Coclear — tienda WooCommerce de accesorios hechos a mano para implantes cocleares, con blog familiar. Diseño cálido, limpio e intuitivo con el oro de marca. Tipografías Poppins + Mulish.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 9.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: experiencia-coclear
Tags: e-commerce, woocommerce, custom-colors, blog, two-columns, sticky-header
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
	--ec-gold:        #FFCB00;
	--ec-gold-hover:  #F5C200;
	--ec-gold-dark:   #B8860B;
	--ec-on-gold:     #3A3000;
	--ec-charcoal:    #2A2A2A;
	--ec-text:        #5C5C5C;
	--ec-muted:       #7A7A7A;
	--ec-muted-2:     #9A9A9A;
	--ec-border:      #ECECEC;
	--ec-border-2:    #EEEEEE;
	--ec-border-3:    #F1F1F1;
	--ec-bg-light:    #F7F7F8;
	--ec-cream:       #FFFAE6;
	--ec-cream-2:     #FFF7D6;
	--ec-cream-border:#FFE89A;
	--ec-green:       #4CAF7D;
	--ec-red:         #D9534F;

	--ec-container:   1200px;
	--ec-pad:         24px;

	--ec-r-btn:       13px;
	--ec-r-card:      20px;
	--ec-r-input:     12px;
	--ec-r-pill:      999px;

	--ec-shadow-card: 0 16px 36px rgba(0,0,0,.09);
	--ec-shadow-cta:  0 8px 20px rgba(255,203,0,.32);
	--ec-shadow-head: 0 1px 12px rgba(0,0,0,.04);

	--ec-font-head:   'Poppins', system-ui, -apple-system, sans-serif;
	--ec-font-body:   'Mulish', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ec-font-body);
	color: var(--ec-charcoal);
	background: #fff;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ec-gold-dark); }
::selection { background: var(--ec-gold); color: var(--ec-charcoal); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ec-font-head); color: var(--ec-charcoal); }
.ec-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.ec-container { max-width: var(--ec-container); margin: 0 auto; padding-left: var(--ec-pad); padding-right: var(--ec-pad); }
.ec-eyebrow {
	font-family: var(--ec-font-head); font-weight: 700; font-size: 13px;
	letter-spacing: 2px; color: var(--ec-gold-dark); text-transform: uppercase;
}
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.ec-skip-link { position: absolute; left: -9999px; }
.ec-skip-link:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 10px 16px; border-radius: 8px; }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.ec-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-family: var(--ec-font-head); font-weight: 700; font-size: 15px;
	border: none; border-radius: var(--ec-r-btn); cursor: pointer;
	text-decoration: none; line-height: 1; padding: 14px 24px;
	transition: background .2s, box-shadow .2s, transform .2s, border-color .2s;
}
.ec-btn--gold     { background: var(--ec-gold); color: var(--ec-on-gold); box-shadow: var(--ec-shadow-cta); }
.ec-btn--gold:hover { background: var(--ec-gold-hover); transform: translateY(-1px); color: var(--ec-on-gold); }
.ec-btn--dark     { background: var(--ec-charcoal); color: #fff; }
.ec-btn--dark:hover { background: #1f1f1f; color: #fff; }
.ec-btn--ghost    { background: #fff; color: var(--ec-charcoal); border: 2px solid var(--ec-border); padding: 12px 22px; }
.ec-btn--ghost:hover { border-color: var(--ec-gold); color: var(--ec-charcoal); }
.ec-btn--lg       { font-size: 16px; padding: 16px 28px; border-radius: 14px; }
.ec-btn--block    { width: 100%; }

/* ==========================================================================
   4. TOP BAR + HEADER
   ========================================================================== */
.ec-topbar { background: var(--ec-gold); color: var(--ec-on-gold); font-size: 13px; font-weight: 600; }
.ec-topbar .ec-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.ec-topbar__left, .ec-topbar__right { display: flex; align-items: center; gap: 18px; }
.ec-topbar a, .ec-topbar span.ec-topbar__loc { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.ec-topbar__sep { width: 1px; height: 16px; background: rgba(58,48,0,.3); }

.ec-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--ec-border); box-shadow: var(--ec-shadow-head); }
.ec-header__bar { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }

.ec-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.ec-logo img { max-height: 48px; width: auto; }
.ec-logo__mark { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; }
.ec-logo__text { display: flex; flex-direction: column; line-height: 1; }
.ec-logo__pre { font-family: var(--ec-font-head); font-weight: 500; font-size: 13px; letter-spacing: 3px; color: var(--ec-muted-2); }
.ec-logo__name { font-family: var(--ec-font-head); font-weight: 800; font-size: 24px; letter-spacing: 1px; color: #3a3a3a; }

.ec-search { flex: 1; max-width: 560px; margin: 0 auto; }
.ec-search__form { display: flex; align-items: center; border: 2px solid var(--ec-border); border-radius: var(--ec-r-pill); overflow: hidden; }
.ec-search__cat { border: none; background: var(--ec-bg-light); font-family: var(--ec-font-body); font-size: 14px; font-weight: 600; color: var(--ec-text); padding: 0 14px; height: 46px; outline: none; cursor: pointer; border-right: 1px solid var(--ec-border); max-width: 180px; }
.ec-search__input { flex: 1; border: none; outline: none; padding: 0 16px; height: 46px; font-family: var(--ec-font-body); font-size: 14px; color: var(--ec-charcoal); background: #fff; min-width: 60px; }
.ec-search__btn { border: none; background: var(--ec-gold); width: 52px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ec-on-gold); }
.ec-search__btn:hover { background: var(--ec-gold-hover); }

.ec-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ec-iconbtn { position: relative; text-decoration: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #3a3a3a; }
.ec-iconbtn:hover { background: var(--ec-bg-light); }
.ec-iconbtn__badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; background: var(--ec-gold); color: var(--ec-on-gold); border-radius: var(--ec-r-pill); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--ec-font-head); }

.ec-cartbtn { position: relative; display: flex; align-items: center; gap: 10px; text-decoration: none; background: #3a3a3a; color: #fff; padding: 0 18px 0 16px; height: 46px; border-radius: 12px; font-family: var(--ec-font-body); font-weight: 700; font-size: 14px; }
.ec-cartbtn:hover { background: var(--ec-charcoal); color: #fff; }
.ec-cartbtn__icon { position: relative; display: flex; }
.ec-cartbtn__badge { position: absolute; top: -9px; right: -10px; min-width: 19px; height: 19px; padding: 0 4px; background: var(--ec-gold); color: var(--ec-on-gold); border-radius: var(--ec-r-pill); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--ec-font-head); }
.ec-cartbtn__meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.ec-cartbtn__label { font-size: 11px; font-weight: 500; color: #c9c9c9; }
.ec-cartbtn__total { white-space: nowrap; }

/* NAV */
.ec-nav { border-top: 1px solid var(--ec-border-3); }
.ec-nav .ec-container { display: flex; align-items: center; gap: 4px; padding-top: 0; padding-bottom: 0; }
.ec-nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; font-family: var(--ec-font-head); font-weight: 600; font-size: 14px; flex: 1; flex-wrap: wrap; }
.ec-nav__menu a { padding: 14px 16px; text-decoration: none; border-bottom: 3px solid transparent; color: var(--ec-text); display: inline-block; }
.ec-nav__menu a:hover { color: var(--ec-charcoal); }
.ec-nav__menu .current-menu-item > a,
.ec-nav__menu .current_page_item > a,
.ec-nav__menu .current-menu-ancestor > a { color: var(--ec-charcoal); border-bottom-color: var(--ec-gold); }
.ec-nav__outlet { display: flex; align-items: center; gap: 7px; padding: 14px 16px; color: var(--ec-gold-dark); text-decoration: none; font-family: var(--ec-font-head); font-weight: 600; font-size: 14px; flex-shrink: 0; }
.ec-nav__outlet:hover { color: var(--ec-on-gold); }

.ec-nav-toggle { display: none; }

/* ==========================================================================
   5. CARDS (productos / categorías / blog)
   ========================================================================== */
.ec-card {
	border: 1px solid var(--ec-border-2); border-radius: var(--ec-r-card); overflow: hidden;
	background: #fff; display: flex; flex-direction: column;
	transition: box-shadow .2s, transform .2s; text-decoration: none;
}
.ec-card:hover { box-shadow: var(--ec-shadow-card); transform: translateY(-3px); }
.ec-card__media { position: relative; background: var(--ec-bg-light); display: block; text-decoration: none; line-height: 0; }
.ec-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ec-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.ec-card__eyebrow { font-size: 12px; font-weight: 700; color: var(--ec-gold-dark); text-transform: uppercase; letter-spacing: .5px; }
.ec-card__title { font-family: var(--ec-font-head); font-weight: 600; font-size: 16px; line-height: 1.3; margin: 5px 0 4px; color: var(--ec-charcoal); }
.ec-card__sub { font-size: 13px; color: var(--ec-muted-2); margin: 0 0 14px; }
.ec-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ec-card__price { font-family: var(--ec-font-head); font-weight: 800; font-size: 20px; color: var(--ec-charcoal); }
.ec-card__price del { color: var(--ec-muted-2); font-weight: 600; font-size: 15px; margin-right: 6px; }
.ec-card__price ins { text-decoration: none; }

.ec-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: #fff; color: var(--ec-gold-dark); font-family: var(--ec-font-head); font-weight: 700; font-size: 11px; letter-spacing: .5px; padding: 5px 11px; border-radius: var(--ec-r-pill); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ec-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ec-muted-2); }
.ec-fav:hover { color: var(--ec-gold); }

/* Botón "Lista de deseos" de YITH dentro de la tarjeta → botón flotante redondo (como .ec-fav) */
.ec-card__media .yith-wcwl-add-to-wishlist {
	position: absolute; top: 10px; right: 10px; left: auto; bottom: auto; z-index: 3;
	margin: 0; padding: 0; line-height: 1; width: auto;
}
.ec-card__media .yith-wcwl-add-to-wishlist > div,
.ec-card__media .yith-wcwl-add-to-wishlist .yith-wcwl-add-button,
.ec-card__media .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse,
.ec-card__media .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse {
	margin: 0; padding: 0; display: block;
}
.ec-card__media .yith-wcwl-add-to-wishlist a {
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: #fff; color: var(--ec-muted-2);
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
	font-size: 0 !important; /* oculta el texto "Añadir a la lista de deseos" */
	text-decoration: none; line-height: 0;
}
.ec-card__media .yith-wcwl-add-to-wishlist a:hover { color: var(--ec-gold); }
/* Garantiza visibilidad aunque YITH añada la clase .button (que el tema oculta en el loop) */
.woocommerce ul.products li.product .ec-card__media .yith-wcwl-add-to-wishlist,
.woocommerce ul.products li.product .ec-card__media .yith-wcwl-add-to-wishlist a { display: flex; }
.ec-card__media .yith-wcwl-add-to-wishlist a i,
.ec-card__media .yith-wcwl-add-to-wishlist a .yith-wcwl-icon,
.ec-card__media .yith-wcwl-add-to-wishlist a::before {
	font-size: 16px !important; line-height: 1; margin: 0;
}
.ec-card__media .yith-wcwl-add-to-wishlist a svg,
.ec-card__media .yith-wcwl-add-to-wishlist a img { width: 17px; height: 17px; }
/* Mensajes y "ver lista" que YITH inyecta: fuera de la tarjeta para no tapar la imagen */
.ec-card__media .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddresponse,
.ec-card__media .yith-wcwl-add-to-wishlist .ajax-loading,
.ec-card__media .yith-wcwl-add-to-wishlist .count { display: none !important; }

.ec-addbtn { display: flex; align-items: center; gap: 6px; background: var(--ec-gold); color: var(--ec-on-gold); border: none; font-family: var(--ec-font-head); font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: background .2s; line-height: 1; }
.ec-addbtn:hover { background: var(--ec-gold-hover); color: var(--ec-on-gold); }
.ec-addbtn.loading, .ec-addbtn.added { opacity: .85; }

/* Grids reutilizables */
.ec-grid { display: grid; gap: 22px; }
.ec-grid--2 { grid-template-columns: repeat(2,1fr); }
.ec-grid--3 { grid-template-columns: repeat(3,1fr); }
.ec-grid--4 { grid-template-columns: repeat(4,1fr); }

/* Image placeholder (cuando no hay imagen destacada) */
.ec-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--ec-bg-light); color: var(--ec-muted-2); font-size: 13px; text-align: center; padding: 16px; min-height: 150px; }

/* ==========================================================================
   6. PAGE HEAD (cabeceras crema)
   ========================================================================== */
.ec-pagehead { background: var(--ec-cream); border-bottom: 1px solid #f3eccf; }
.ec-pagehead .ec-container { padding-top: 34px; padding-bottom: 38px; }
.ec-pagehead--center .ec-container { text-align: center; padding-top: 40px; padding-bottom: 44px; }
.ec-pagehead h1 { font-weight: 800; font-size: 40px; margin: 0; }
.ec-pagehead--center h1 { font-size: 44px; margin-top: 8px; }
.ec-pagehead p { font-size: 16px; color: #7a6e3f; margin: 8px 0 0; max-width: 560px; }
.ec-pagehead--center p { font-size: 17px; max-width: 600px; margin-left: auto; margin-right: auto; }

.ec-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ec-muted-2); }
.ec-breadcrumb a { color: var(--ec-muted-2); text-decoration: none; }
.ec-breadcrumb a:hover { color: var(--ec-gold-dark); }
.ec-breadcrumb .ec-icon { color: var(--ec-muted-2); }
.ec-breadcrumb .ec-breadcrumb__current { color: var(--ec-charcoal); }
.ec-breadcrumb-bar { border-bottom: 1px solid var(--ec-border-3); }
.ec-breadcrumb-bar .ec-container { padding-top: 16px; padding-bottom: 16px; }
/* WooCommerce breadcrumb reusa estilos */
.woocommerce-breadcrumb { font-size: 13px; font-weight: 600; color: var(--ec-muted-2); }
.woocommerce-breadcrumb a { color: var(--ec-muted-2); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--ec-gold-dark); }

/* ==========================================================================
   7. HERO (front-page)
   ========================================================================== */
.ec-hero { background: linear-gradient(180deg, var(--ec-cream) 0%, #fff 100%); }
.ec-hero .ec-container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.ec-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ec-cream-border); color: var(--ec-gold-dark); font-family: var(--ec-font-head); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: var(--ec-r-pill); }
.ec-hero h1 { font-weight: 800; font-size: 52px; line-height: 1.08; letter-spacing: -1px; margin: 20px 0 0; text-wrap: balance; }
.ec-hero h1 .ec-gold-word { color: var(--ec-gold); text-shadow: 0 1px 0 #e0a800; }
.ec-hero__lead { font-size: 18px; line-height: 1.6; color: var(--ec-text); margin: 18px 0 0; max-width: 480px; }
.ec-hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.ec-hero__seals { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.ec-seal { display: flex; align-items: center; gap: 10px; }
.ec-seal__ic { width: 38px; height: 38px; border-radius: 11px; background: var(--ec-cream-2); display: flex; align-items: center; justify-content: center; color: var(--ec-gold-dark); flex-shrink: 0; }
.ec-seal span { font-size: 14px; font-weight: 600; color: #3a3a3a; line-height: 1.2; }
.ec-hero__media { position: relative; }
.ec-hero__blob { position: absolute; inset: -18px -18px auto auto; width: 130px; height: 130px; background: var(--ec-gold); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; opacity: .18; z-index: 0; }
.ec-hero__img { position: relative; z-index: 1; border-radius: 28px; overflow: hidden; }
.ec-hero__img img, .ec-hero__img .ec-ph { width: 100%; height: 440px; object-fit: cover; }
.ec-hero__float { position: absolute; bottom: -22px; left: -22px; z-index: 2; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 16px 36px rgba(0,0,0,.12); display: flex; align-items: center; gap: 12px; }
.ec-hero__float-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--ec-cream-2); display: flex; align-items: center; justify-content: center; color: var(--ec-gold-dark); flex-shrink: 0; }
.ec-hero__float-n { font-family: var(--ec-font-head); font-weight: 800; font-size: 18px; }
.ec-hero__float-t { font-size: 13px; color: var(--ec-muted); }

/* TRUST STRIP */
.ec-trust { border-top: 1px solid var(--ec-border-3); border-bottom: 1px solid var(--ec-border-3); background: #fff; }
.ec-trust .ec-container { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.ec-trust__item { display: flex; align-items: center; gap: 16px; padding: 6px 12px; }
.ec-trust__item:nth-child(2) { border-left: 1px solid var(--ec-border-3); border-right: 1px solid var(--ec-border-3); }
.ec-trust__ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--ec-cream-2); display: flex; align-items: center; justify-content: center; color: var(--ec-gold-dark); }
.ec-trust__t { font-family: var(--ec-font-head); font-weight: 700; font-size: 17px; }
.ec-trust__d { font-size: 14px; color: var(--ec-muted); }

/* SECTION HEADERS */
.ec-section { padding-top: 64px; padding-bottom: 24px; }
.ec-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.ec-section__head h2 { font-weight: 800; font-size: 34px; margin: 6px 0 0; }
.ec-section__center { text-align: center; margin-bottom: 38px; }
.ec-section__center h2 { font-weight: 800; font-size: 34px; margin: 6px 0 0; }
.ec-arrow-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ec-charcoal); font-family: var(--ec-font-head); font-weight: 700; font-size: 15px; text-decoration: none; flex-shrink: 0; padding-bottom: 6px; }
.ec-arrow-link:hover { color: var(--ec-gold-dark); }

.ec-cats { background: var(--ec-bg-light); margin-top: 48px; }
.ec-cats .ec-container { padding-top: 60px; padding-bottom: 60px; }
.ec-cat-card .ec-card__media img, .ec-cat-card .ec-card__media .ec-ph { height: 150px; }
.ec-cat-card .ec-card__count { font-size: 13px; font-weight: 700; color: var(--ec-gold-dark); }
.ec-cat-card .ec-card__body { padding: 16px 18px; }

/* BRAND STORY */
.ec-story { padding-top: 72px; padding-bottom: 72px; }
.ec-story .ec-container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.ec-story__media { position: relative; }
.ec-story__blob { position: absolute; inset: auto auto -16px -16px; width: 120px; height: 120px; background: var(--ec-gold); border-radius: 24px; opacity: .16; }
.ec-story__img { position: relative; z-index: 1; border-radius: 26px; overflow: hidden; }
.ec-story__img img, .ec-story__img .ec-ph { width: 100%; height: 420px; object-fit: cover; }
.ec-story h2 { font-weight: 800; font-size: 36px; line-height: 1.15; margin: 8px 0 0; text-wrap: balance; }
.ec-story p { font-size: 16px; line-height: 1.7; color: var(--ec-text); margin: 16px 0 0; }
.ec-story p strong { color: var(--ec-charcoal); }
.ec-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 30px; }
.ec-stat { background: var(--ec-cream); border-radius: 16px; padding: 18px; }
.ec-stat__n { font-family: var(--ec-font-head); font-weight: 800; font-size: 28px; }
.ec-stat__l { font-size: 13px; color: var(--ec-muted); font-weight: 600; }

/* BLOG SECTION (front) */
.ec-blogband { background: var(--ec-cream); }
.ec-blogband .ec-container { padding-top: 64px; padding-bottom: 64px; }
.ec-postcard .ec-card__media img, .ec-postcard .ec-card__media .ec-ph { height: 200px; }
.ec-postcard__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--ec-gold-dark); text-transform: uppercase; letter-spacing: .5px; }
.ec-postcard__meta .ec-dot { color: #d8d8d8; }
.ec-postcard__meta .ec-date { color: var(--ec-muted-2); }
.ec-postcard__title { font-family: var(--ec-font-head); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 10px 0 8px; color: var(--ec-charcoal); }
.ec-postcard__excerpt { font-size: 14px; line-height: 1.6; color: #6c6c6c; margin: 0; }
.ec-postcard .ec-card__body { padding: 20px 22px 24px; }

/* NEWSLETTER */
.ec-newsletter { background: var(--ec-gold); }
.ec-newsletter .ec-container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.ec-newsletter h2 { font-weight: 800; font-size: 30px; margin: 0; color: var(--ec-on-gold); line-height: 1.2; max-width: 560px; }
.ec-newsletter p { font-size: 16px; color: #5a4a00; margin: 10px 0 0; }
.ec-newsletter form { display: flex; gap: 10px; flex: 1; min-width: 300px; max-width: 480px; }
.ec-newsletter input { flex: 1; border: none; border-radius: 13px; padding: 0 18px; height: 54px; font-family: var(--ec-font-body); font-size: 15px; outline: none; color: var(--ec-charcoal); }
.ec-newsletter button { border: none; background: #3a3a3a; color: #fff; font-family: var(--ec-font-head); font-weight: 700; font-size: 15px; padding: 0 26px; height: 54px; border-radius: 13px; cursor: pointer; white-space: nowrap; }
.ec-newsletter button:hover { background: var(--ec-charcoal); }

/* ==========================================================================
   8. SHOP / ARCHIVE (WooCommerce)
   ========================================================================== */
.ec-shop { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; padding-top: 36px; padding-bottom: 64px; }
.ec-sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 26px; }
.ec-widget { border: 1px solid var(--ec-border-2); border-radius: 18px; padding: 20px; }
.ec-widget h3, .ec-widget .widgettitle, .ec-widget .widget-title { font-family: var(--ec-font-head); font-weight: 700; font-size: 15px; margin: 0 0 14px; color: var(--ec-charcoal); letter-spacing: .3px; }
.ec-widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ec-catlink { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ec-text); }
.ec-catlink:hover, .ec-catlink.is-active { background: var(--ec-cream-2); color: var(--ec-charcoal); }
.ec-catlink__count { font-size: 12px; font-weight: 700; color: var(--ec-gold-dark); background: var(--ec-cream-2); border-radius: var(--ec-r-pill); padding: 2px 9px; }
.ec-catlink.is-active .ec-catlink__count { background: #fff; }

.ec-priceslider { height: 6px; background: var(--ec-border-3); border-radius: var(--ec-r-pill); position: relative; margin: 0 4px; }
.ec-priceslider__fill { position: absolute; top: 0; bottom: 0; background: var(--ec-gold); border-radius: var(--ec-r-pill); }
.ec-priceslider__h { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 16px; height: 16px; background: #fff; border: 3px solid var(--ec-gold); border-radius: 50%; }
.ec-pricerow { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ec-text); }
.ec-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.ec-swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ec-border-2); }
.ec-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ec-gold); }

.ec-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px 22px; flex-wrap: wrap; }
.ec-toolbar .woocommerce-result-count { margin: 0; font-size: 14px; color: var(--ec-muted); }
.ec-toolbar .woocommerce-ordering { margin: 0; }
.ec-select, .woocommerce-ordering select, .ec-search__cat {
	border: 2px solid var(--ec-border); border-radius: 11px; height: 42px; padding: 0 14px;
	font-family: var(--ec-font-body); font-weight: 600; font-size: 14px; color: var(--ec-charcoal);
	background: #fff; cursor: pointer; outline: none;
}

/* Product grid: WooCommerce ul.products + .ec-grid */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin: 0; padding: 0; list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none; display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important; padding: 0; clear: none;
}
.woocommerce ul.products li.product::before { content: none; }
.woocommerce ul.products li.product .button { display: none; } /* usamos nuestro botón dentro de la tarjeta */
/* Relacionados / upsells / portada destacados: 4 columnas */
.woocommerce .related ul.products, .woocommerce .upsells ul.products,
.ec-grid--4.products, ul.products.columns-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1024px) {
	.woocommerce ul.products, .woocommerce-page ul.products,
	.woocommerce .related ul.products, .woocommerce .upsells ul.products { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
	.woocommerce ul.products, .woocommerce-page ul.products,
	.woocommerce .related ul.products, .woocommerce .upsells ul.products { grid-template-columns: 1fr; }
}
/* Destacados de portada: rejilla propia (no cuelga de .woocommerce) */
ul.products.ec-featured-products {
	display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin: 0; padding: 0; list-style: none;
}
ul.products.ec-featured-products::before, ul.products.ec-featured-products::after { content: none; display: none; }
ul.products.ec-featured-products li.product {
	width: auto !important; margin: 0 !important; float: none !important; padding: 0; clear: none; list-style: none;
}
ul.products.ec-featured-products li.product::before { content: none; }
ul.products.ec-featured-products li.product .button { display: none; }
@media (max-width: 1024px) { ul.products.ec-featured-products { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { ul.products.ec-featured-products { grid-template-columns: 1fr; } }

/* Tarjeta de producto (li.product.ec-card) */
li.product.ec-card .ec-card__media img, li.product.ec-card .ec-card__media .ec-ph { height: 230px; }
.woocommerce .related li.product.ec-card .ec-card__media img,
.woocommerce .related li.product.ec-card .ec-card__media .ec-ph,
.ec-featured-products li.product.ec-card .ec-card__media img,
.ec-featured-products li.product.ec-card .ec-card__media .ec-ph { height: 200px; }
li.product.ec-card .ec-card__footer { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f3f3f3; }
li.product.ec-card .ec-card__title { margin: 5px 0 0; }
li.product.ec-card .ec-card__title a { text-decoration: none; color: inherit; }

/* Pagination */
.ec-pagination, .woocommerce-pagination ul,
.ec-posts-pagination .nav-links, .navigation.pagination .nav-links {
	display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; list-style: none; padding: 0; flex-wrap: wrap;
}
.ec-page, .woocommerce-pagination a.page-numbers, .woocommerce-pagination span.page-numbers,
.ec-posts-pagination a.page-numbers, .ec-posts-pagination span.page-numbers,
.navigation.pagination a.page-numbers, .navigation.pagination span.page-numbers {
	width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--ec-border);
	display: flex; align-items: center; justify-content: center; font-family: var(--ec-font-head);
	font-weight: 700; color: var(--ec-charcoal); text-decoration: none; background: #fff;
}
.ec-page:hover, .woocommerce-pagination a.page-numbers:hover,
.ec-posts-pagination a.page-numbers:hover, .navigation.pagination a.page-numbers:hover { border-color: var(--ec-gold); }
.ec-page.is-current, .woocommerce-pagination .page-numbers.current,
.ec-posts-pagination .page-numbers.current, .navigation.pagination .page-numbers.current {
	background: var(--ec-gold); color: var(--ec-on-gold); border-color: var(--ec-gold);
}
.woocommerce-pagination ul li { list-style: none; margin: 0; border: none; }

/* ==========================================================================
   9. SINGLE PRODUCT (WooCommerce)
   ========================================================================== */
.ec-product { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; padding-top: 40px; padding-bottom: 56px; }
.ec-product .ec-gallery { position: sticky; top: 120px; }
.woocommerce div.product div.images { margin: 0; }
/* La galería y el resumen ocupan toda su celda del grid.
   Más especificidad que el width:48%+float de WooCommerce (su hoja carga después). */
.woocommerce div.product .ec-gallery div.images,
.woocommerce div.product .ec-gallery .woocommerce-product-gallery,
.woocommerce div.product .ec-product div.summary,
.woocommerce div.product .ec-product .summary.entry-summary { width: 100%; float: none; margin: 0; }
.woocommerce div.product .woocommerce-product-gallery { position: relative; margin: 0; }
.woocommerce div.product .woocommerce-product-gallery__wrapper { margin: 0; }
/* Bordes redondeados que recortan también el overlay del zoom (.zoomImg) */
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .flex-viewport { border-radius: 22px; overflow: hidden; }
.woocommerce div.product div.images img,
.woocommerce div.product div.images .woocommerce-product-gallery__image img { border-radius: 22px; display: block; width: 100%; height: auto; }
.woocommerce div.product div.images .woocommerce-product-gallery__image .zoomImg { border-radius: 0; }
/* Botón de lupa (abrir zoom/lightbox), redondo y coherente con el tema */
.woocommerce div.product .woocommerce-product-gallery__trigger {
	top: 14px; right: 14px; z-index: 4; width: 42px; height: 42px; border-radius: 50%;
	background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12);
	display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.woocommerce div.product .woocommerce-product-gallery__trigger:hover { background: var(--ec-cream-2); }
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 0; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 100%; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 14px; }

.woocommerce div.product .product_title,
.ec-product .product_title { font-weight: 800; font-size: 34px; line-height: 1.2; margin: 8px 0 0; color: var(--ec-charcoal); }
.ec-product__eyebrow { font-family: var(--ec-font-head); font-weight: 700; font-size: 12px; letter-spacing: 1px; color: var(--ec-gold-dark); text-transform: uppercase; }
.woocommerce div.product .woocommerce-product-rating { margin: 14px 0 0; display: flex; align-items: center; gap: 12px; }
.woocommerce .star-rating { color: var(--ec-gold); }
.woocommerce div.product p.price, .woocommerce div.product span.price {
	font-family: var(--ec-font-head); font-weight: 800; font-size: 32px; color: var(--ec-charcoal); margin: 20px 0 0;
}
.woocommerce div.product p.price del { color: var(--ec-muted-2); font-size: 22px; font-weight: 600; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce-product-details__short-description { font-size: 15px; line-height: 1.65; color: var(--ec-text); margin: 14px 0 0; }

.woocommerce div.product form.cart { margin: 22px 0 0; }
.woocommerce div.product form.cart .variations { margin-bottom: 18px; }
.woocommerce div.product form.cart .variations label { font-family: var(--ec-font-head); font-weight: 700; font-size: 13px; color: var(--ec-charcoal); }
.woocommerce div.product form.cart .variations td.value select,
.woocommerce div.product form.cart .reset_variations { margin-top: 8px; }
.woocommerce div.product form.cart select {
	width: 100%; border: 2px solid var(--ec-border); border-radius: 13px; height: 52px; padding: 0 16px;
	font-family: var(--ec-font-body); font-weight: 600; font-size: 15px; color: var(--ec-charcoal); background: #fff; cursor: pointer; outline: none;
}

/* Quantity stepper */
.quantity.ec-qty { display: inline-flex; align-items: center; border: 2px solid var(--ec-border); border-radius: 13px; height: 54px; overflow: hidden; }
.quantity.ec-qty .ec-qty__btn { width: 48px; height: 100%; border: none; background: #fff; font-size: 22px; color: var(--ec-text); cursor: pointer; line-height: 1; }
.quantity.ec-qty .ec-qty__btn:hover { background: var(--ec-bg-light); }
.quantity.ec-qty input.qty { width: 48px; height: 100%; text-align: center; border: none; font-family: var(--ec-font-head); font-weight: 700; font-size: 17px; color: var(--ec-charcoal); -moz-appearance: textfield; background: #fff; padding: 0; }
.quantity.ec-qty input.qty::-webkit-outer-spin-button,
.quantity.ec-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.woocommerce div.product form.cart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .single_variation_wrap { flex-basis: 100%; }
.woocommerce div.product form.cart button.single_add_to_cart_button {
	flex: 1; min-width: 220px; height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--ec-gold); color: var(--ec-on-gold); border: none; font-family: var(--ec-font-head);
	font-weight: 700; font-size: 16px; border-radius: 13px; cursor: pointer; box-shadow: var(--ec-shadow-cta);
	text-transform: none; letter-spacing: 0;
}
.woocommerce div.product form.cart button.single_add_to_cart_button:hover { background: var(--ec-gold-hover); color: var(--ec-on-gold); }

/* Productos variables: cantidad + botón en la misma fila y sin hueco sobrante */
.woocommerce div.product form.cart .single_variation_wrap { margin-top: 6px; }
.woocommerce div.product .woocommerce-variation.single_variation { margin: 0 0 14px; }
.woocommerce div.product .woocommerce-variation.single_variation:empty { margin: 0; }
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.woocommerce div.product .woocommerce-variation-add-to-cart button.single_add_to_cart_button { flex: 1; min-width: 220px; }
.woocommerce div.product form.cart .reset_variations { align-self: center; font-size: 13px; }

.ec-trustbox { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; padding: 20px; background: var(--ec-cream); border-radius: 16px; }
.ec-trustbox__row { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: #5a4a00; }
.ec-trustbox__row .ec-icon { color: var(--ec-gold-dark); }
.ec-product__meta, .woocommerce div.product .product_meta { display: flex; gap: 24px; margin-top: 22px; font-size: 13px; color: var(--ec-muted-2); font-weight: 600; flex-wrap: wrap; }
.ec-product__meta a, .woocommerce div.product .product_meta a { color: var(--ec-gold-dark); text-decoration: none; }
.woocommerce div.product .product_meta > span { display: flex; gap: 5px; }
.woocommerce div.product .woocommerce-product-rating a { color: var(--ec-muted); font-size: 13px; font-weight: 600; }
/* Variante en el carrito */
.ec-cart-item__variant { font-size: 13px; color: var(--ec-muted-2); }
.ec-cart-item__variant dl { margin: 0; display: inline; }
.ec-cart-item__variant dl dt, .ec-cart-item__variant dl dd { display: inline; margin: 0; font-weight: 600; }
.ec-cart-item__variant dl dd p { display: inline; margin: 0; }
.ec-cart-item__unit { margin-left: 6px; }
.ec-empty { text-align: center; padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { padding: 0; max-width: var(--ec-container); margin: 0 auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; gap: 6px; border-bottom: 2px solid var(--ec-border-3); padding: 0; margin: 0 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent; border: none; border-radius: 0; padding: 0; margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 14px 22px; font-family: var(--ec-font-head); font-weight: 700; font-size: 15px;
	color: var(--ec-muted-2); border-bottom: 3px solid transparent; margin-bottom: -2px; display: block;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ec-charcoal); border-bottom-color: var(--ec-gold); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs .panel { padding: 30px 2px; max-width: 760px; margin: 0; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-weight: 700; font-size: 20px; margin: 0 0 12px; }
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel li { font-size: 15px; line-height: 1.8; color: var(--ec-text); }

.woocommerce div.product .woocommerce-tabs { padding-left: 24px; padding-right: 24px; }

/* Related / upsells: banda gris a sangre completa */
.woocommerce div.product .related, .woocommerce div.product .upsells {
	width: 100vw; position: relative; left: 50%; transform: translateX(-50%);
	background: var(--ec-bg-light); margin: 48px 0 0; padding: 56px 0;
}
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 {
	font-weight: 800; font-size: 28px; margin: 0 auto 28px; max-width: var(--ec-container); padding: 0 24px;
}
.woocommerce div.product .related > ul.products, .woocommerce div.product .upsells > ul.products {
	max-width: var(--ec-container); margin: 0 auto; padding: 0 24px;
}
.ec-main { overflow-x: clip; }

/* ==========================================================================
   10. CART (WooCommerce)
   ========================================================================== */
.ec-cart-wrap { padding-top: 40px; padding-bottom: 64px; }
.ec-cart-wrap h1 { font-weight: 800; font-size: 38px; margin: 0 0 28px; }
.ec-cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.ec-cart-card { border: 1px solid var(--ec-border-2); border-radius: 20px; overflow: hidden; }
.ec-cart-head { display: grid; grid-template-columns: 1fr 130px 120px 40px; gap: 16px; padding: 16px 22px; background: var(--ec-bg-light); font-family: var(--ec-font-head); font-weight: 700; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--ec-muted-2); }
.ec-cart-head span:nth-child(2) { text-align: center; }
.ec-cart-head span:nth-child(3) { text-align: right; }
.ec-cart-item { display: grid; grid-template-columns: 1fr 130px 120px 40px; gap: 16px; padding: 18px 22px; align-items: center; border-top: 1px solid #f3f3f3; }
.ec-cart-item__product { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ec-cart-item__product img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ec-cart-item__name { font-family: var(--ec-font-head); font-weight: 600; font-size: 15px; margin: 0; color: var(--ec-charcoal); line-height: 1.3; }
.ec-cart-item__name a { color: inherit; text-decoration: none; }
.ec-cart-item__variant { font-size: 13px; color: var(--ec-muted-2); }
.ec-cart-item__qty { display: flex; justify-content: center; }
.ec-cart-item__qty .quantity { display: inline-flex; align-items: center; border: 2px solid var(--ec-border); border-radius: 10px; height: 40px; overflow: hidden; }
.ec-cart-item__qty .quantity input.qty { width: 34px; height: 38px; text-align: center; border: none; font-family: var(--ec-font-head); font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.ec-cart-item__qty .quantity .ec-qty__btn { width: 36px; height: 38px; border: none; background: #fff; font-size: 18px; color: var(--ec-text); cursor: pointer; }
.ec-cart-item__subtotal { text-align: right; font-family: var(--ec-font-head); font-weight: 800; font-size: 16px; color: var(--ec-charcoal); }
.ec-cart-item__remove a, a.ec-cart-remove { width: 34px; height: 34px; border: none; background: transparent; border-radius: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #c4c4c4; justify-self: end; text-decoration: none; }
.ec-cart-item__remove a:hover, a.ec-cart-remove:hover { background: #fbeaea; color: var(--ec-red); }
.ec-cart-foot { padding: 18px 22px; border-top: 1px solid #f3f3f3; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ec-cart-foot__coupon { display: flex; gap: 10px; }
.ec-cart-foot__coupon input { border: 2px solid var(--ec-border); border-radius: 11px; height: 44px; padding: 0 14px; font-family: var(--ec-font-body); font-size: 14px; outline: none; width: 180px; }

.ec-cart-summary { border: 1px solid var(--ec-border-2); border-radius: 20px; padding: 26px; position: sticky; top: 120px; }
.ec-cart-summary h2 { font-weight: 800; font-size: 20px; margin: 0 0 20px; }
.ec-cart-summary__row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ec-text); margin-bottom: 12px; }
.ec-cart-summary__row strong, .ec-cart-summary__row .amount { font-weight: 700; color: var(--ec-charcoal); }
.ec-cart-summary__row--discount { color: var(--ec-green); }
.ec-cart-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 2px solid var(--ec-border-3); }
.ec-cart-summary__total span:first-child { font-family: var(--ec-font-head); font-weight: 700; font-size: 17px; }
.ec-cart-summary__total .amount, .ec-cart-summary__total strong { font-family: var(--ec-font-head); font-weight: 800; font-size: 26px; color: var(--ec-charcoal); }
.ec-cart-summary__secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ec-muted-2); font-weight: 600; }

/* ==========================================================================
   10b. CHECKOUT (finalizar compra)
   ========================================================================== */
.ec-checkout-wrap { padding-top: 40px; padding-bottom: 64px; }
.ec-checkout-wrap > h1 { font-weight: 800; font-size: 38px; margin: 0 0 20px; }

/* Barras de "ya soy cliente" / "tengo un cupón" */
.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle { margin-bottom: 16px; }
.woocommerce-form-login-toggle .woocommerce-info, .woocommerce-form-coupon-toggle .woocommerce-info { margin: 0; }
form.woocommerce-form-login, form.checkout_coupon {
	border: 1px solid var(--ec-border-2); border-radius: 16px; padding: 24px; margin: 0 0 20px; background: #fff;
}
form.checkout_coupon .form-row { margin-bottom: 0; }

/* Rejilla principal (datos + resumen) */
.ec-checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.ec-checkout-main { min-width: 0; }

/* Datos del cliente en tarjetas (billing / shipping / notas apiladas) */
.ec-checkout-main #customer_details.col2-set { display: block; width: 100%; }
.ec-checkout-main #customer_details .col-1,
.ec-checkout-main #customer_details .col-2 { width: 100%; float: none; padding: 0; }
.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields {
	border: 1px solid var(--ec-border-2); border-radius: 20px; padding: 26px 26px 12px; margin-bottom: 24px; background: #fff;
}
.woocommerce-additional-fields { padding-bottom: 26px; }
.woocommerce-billing-fields > h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields > h3 {
	font-weight: 800; font-size: 20px; margin: 0 0 18px; color: var(--ec-charcoal);
}
#ship-to-different-address { margin: 0 0 18px; }
#ship-to-different-address label { font-family: var(--ec-font-head); font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; }
#ship-to-different-address input { width: auto; margin: 0; }

/* Campos del formulario */
.woocommerce-checkout .form-row { margin: 0 0 16px; display: block; }
.woocommerce-checkout .form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--ec-charcoal); margin-bottom: 7px; }
.woocommerce-checkout .form-row .required { color: var(--ec-red); text-decoration: none; border: 0; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
	width: 100%; border: 2px solid var(--ec-border); border-radius: var(--ec-r-input);
	padding: 11px 14px; font-family: var(--ec-font-body); font-size: 14px; color: var(--ec-charcoal);
	background: #fff; outline: none; transition: border-color .15s;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus { border-color: var(--ec-gold); }
.woocommerce-checkout .form-row-first { float: left; width: 48%; }
.woocommerce-checkout .form-row-last { float: right; width: 48%; }
.woocommerce-checkout .form-row-wide, .woocommerce-checkout .col-1 .clear, .woocommerce-checkout .col-2 .clear { clear: both; }
/* select2 (país / provincia) a juego con los inputs */
.woocommerce-checkout .select2-container .select2-selection--single { height: 46px; border: 2px solid var(--ec-border); border-radius: var(--ec-r-input); }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 12px; color: var(--ec-charcoal); }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }

/* Columna derecha: resumen del pedido + pago (tarjeta sticky) */
.ec-checkout-side { border: 1px solid var(--ec-border-2); border-radius: 20px; padding: 26px; position: sticky; top: 120px; background: #fff; }
.ec-checkout-side > h2 { font-weight: 800; font-size: 20px; margin: 0 0 18px; }

/* Tabla del pedido */
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-checkout-review-order-table thead th { display: none; }
.woocommerce-checkout-review-order-table .cart_item td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td { padding: 11px 0; border-top: 1px solid var(--ec-border-3); }
.woocommerce-checkout-review-order-table .product-name { color: var(--ec-text); line-height: 1.4; }
.woocommerce-checkout-review-order-table .product-name .product-quantity { color: var(--ec-muted-2); font-weight: 700; }
.woocommerce-checkout-review-order-table .product-total { text-align: right; font-weight: 700; color: var(--ec-charcoal); white-space: nowrap; }
.woocommerce-checkout-review-order-table tfoot th { text-align: left; font-family: var(--ec-font-body); font-weight: 600; color: var(--ec-text); }
.woocommerce-checkout-review-order-table tfoot td { text-align: right; color: var(--ec-charcoal); }
.woocommerce-checkout-review-order-table tfoot .order-total th { font-family: var(--ec-font-head); font-weight: 800; font-size: 16px; color: var(--ec-charcoal); }
.woocommerce-checkout-review-order-table tfoot .order-total td .amount { font-family: var(--ec-font-head); font-weight: 800; font-size: 22px; color: var(--ec-charcoal); }

/* Métodos de pago */
#order_review #payment, .woocommerce-checkout #payment { background: transparent; border-radius: 0; margin-top: 4px; }
#payment ul.payment_methods { border: none; padding: 14px 0 0; margin: 0; list-style: none; }
#payment ul.payment_methods li { margin: 0 0 8px; list-style: none; }
#payment ul.payment_methods li label { font-weight: 700; color: var(--ec-charcoal); display: inline; }
#payment ul.payment_methods li img { display: inline; vertical-align: middle; }
#payment .payment_box { background: var(--ec-cream); border-radius: 12px; font-size: 13px; color: #5a4a00; margin-top: 8px; }
#payment .payment_box::before { display: none; }
#payment div.form-row.place-order { padding: 18px 0 0; margin: 0; }
#payment #place_order {
	width: 100%; height: 54px; background: var(--ec-gold); color: var(--ec-on-gold); border: none; float: none;
	font-family: var(--ec-font-head); font-weight: 700; font-size: 16px; border-radius: 13px; cursor: pointer; box-shadow: var(--ec-shadow-cta);
}
#payment #place_order:hover { background: var(--ec-gold-hover); color: var(--ec-on-gold); }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text { font-size: 12px; color: var(--ec-muted); margin-top: 12px; }

.ec-checkout-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ec-muted-2); font-weight: 600; }

/* ==========================================================================
   11. BLOG
   ========================================================================== */
.ec-blog { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; padding-top: 48px; padding-bottom: 64px; }
.ec-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--ec-border-2); border-radius: 22px; overflow: hidden; text-decoration: none; margin-bottom: 40px; }
.ec-featured:hover { box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.ec-featured__media { line-height: 0; }
.ec-featured__media img, .ec-featured__media .ec-ph { width: 100%; height: 300px; object-fit: cover; }
.ec-featured__body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.ec-featured__badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; background: var(--ec-cream-2); color: var(--ec-gold-dark); font-family: var(--ec-font-head); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: var(--ec-r-pill); text-transform: uppercase; letter-spacing: .5px; }
.ec-featured__body h2 { font-weight: 800; font-size: 26px; line-height: 1.25; margin: 16px 0 0; }
.ec-featured__body p { font-size: 15px; line-height: 1.65; color: #6c6c6c; margin: 12px 0 0; }
.ec-featured__meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--ec-muted-2); text-transform: uppercase; letter-spacing: .5px; }
.ec-featured__meta .ec-cat { color: var(--ec-gold-dark); }
.ec-featured__meta .ec-dot { color: #d8d8d8; }
.ec-blog-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.ec-blog-grid .ec-card__media img, .ec-blog-grid .ec-card__media .ec-ph { height: 190px; }

.ec-blog-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px; }
.ec-blog-sidebar .ec-widget { border-radius: 18px; padding: 22px; }
.ec-blog-sidebar .ec-widget h3 { font-size: 16px; margin: 0 0 16px; }
.ec-recent { display: flex; flex-direction: column; gap: 16px; }
.ec-recent a { display: flex; gap: 12px; text-decoration: none; align-items: center; }
.ec-recent img, .ec-recent .ec-ph { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; object-fit: cover; min-height: 0; }
.ec-recent h4 { font-family: var(--ec-font-head); font-weight: 600; font-size: 14px; line-height: 1.3; margin: 0; color: var(--ec-charcoal); }
.ec-recent span { font-size: 12px; color: var(--ec-muted-2); }
.ec-subscribe { background: var(--ec-gold); border-radius: 18px; padding: 24px; }
.ec-subscribe h3 { font-weight: 800; font-size: 18px; margin: 0; color: var(--ec-on-gold); line-height: 1.25; }
.ec-subscribe p { font-size: 14px; color: #5a4a00; margin: 8px 0 16px; }
.ec-subscribe input { width: 100%; border: none; border-radius: 11px; height: 46px; padding: 0 14px; font-family: var(--ec-font-body); font-size: 14px; outline: none; margin-bottom: 10px; }
.ec-subscribe button { width: 100%; border: none; background: #3a3a3a; color: #fff; font-family: var(--ec-font-head); font-weight: 700; font-size: 14px; height: 46px; border-radius: 11px; cursor: pointer; }
.ec-subscribe button:hover { background: var(--ec-charcoal); }

/* ==========================================================================
   12. SINGLE POST (entrada)
   ========================================================================== */
.ec-article-head { max-width: 760px; margin: 0 auto; padding: 44px 24px 16px; }
.ec-article-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--ec-cream-2); color: var(--ec-gold-dark); font-family: var(--ec-font-head); font-weight: 700; font-size: 12px; padding: 6px 13px; border-radius: var(--ec-r-pill); text-transform: uppercase; letter-spacing: .5px; }
.ec-article-head h1 { font-weight: 800; font-size: 42px; line-height: 1.15; margin: 18px 0 0; text-wrap: balance; }
.ec-byline { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.ec-byline__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ec-gold); display: flex; align-items: center; justify-content: center; font-family: var(--ec-font-head); font-weight: 800; color: var(--ec-on-gold); overflow: hidden; }
.ec-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ec-byline__name { font-family: var(--ec-font-head); font-weight: 700; font-size: 15px; color: var(--ec-charcoal); }
.ec-byline__meta { font-size: 13px; color: var(--ec-muted-2); }
.ec-article-hero { max-width: 900px; margin: 0 auto; padding: 24px 24px 0; }
.ec-article-hero img, .ec-article-hero .ec-ph { width: 100%; height: 440px; object-fit: cover; border-radius: 24px; }
.ec-article-body { max-width: 760px; margin: 0 auto; padding: 36px 24px 56px; }
.ec-article-body > p { font-size: 17px; line-height: 1.85; color: #4c4c4c; margin: 0 0 22px; }
.ec-article-body > p:first-child { font-size: 18px; line-height: 1.8; color: #3a3a3a; font-weight: 500; }
.ec-article-body h2 { font-weight: 700; font-size: 25px; margin: 34px 0 14px; }
.ec-article-body h3 { font-weight: 700; font-size: 20px; margin: 28px 0 12px; }
.ec-article-body ul, .ec-article-body ol { font-size: 17px; line-height: 1.95; color: #4c4c4c; margin: 0 0 22px; padding-left: 22px; }
.ec-article-body img { border-radius: 16px; margin: 22px 0; }
.ec-article-body blockquote { margin: 30px 0; padding: 22px 26px; background: var(--ec-cream); border-left: 4px solid var(--ec-gold); border-radius: 0 14px 14px 0; }
.ec-article-body blockquote p { font-size: 18px; line-height: 1.7; color: #5a4a00; margin: 0; font-style: italic; font-weight: 600; }
.ec-article-body a { color: var(--ec-gold-dark); }

.ec-share { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--ec-border-3); flex-wrap: wrap; }
.ec-share__label { font-family: var(--ec-font-head); font-weight: 700; font-size: 14px; }
.ec-share__links { display: flex; gap: 10px; }
.ec-share__links a { width: 40px; height: 40px; border-radius: 11px; background: var(--ec-bg-light); display: flex; align-items: center; justify-content: center; color: var(--ec-text); }
.ec-share__links a:hover { background: var(--ec-gold); color: var(--ec-on-gold); }

.ec-author { display: flex; gap: 18px; align-items: center; margin-top: 30px; padding: 24px; background: var(--ec-bg-light); border-radius: 18px; }
.ec-author__avatar { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: var(--ec-gold); display: flex; align-items: center; justify-content: center; font-family: var(--ec-font-head); font-weight: 800; font-size: 24px; color: var(--ec-on-gold); overflow: hidden; }
.ec-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ec-author__name { font-family: var(--ec-font-head); font-weight: 700; font-size: 16px; }
.ec-author p { font-size: 14px; line-height: 1.6; color: #6c6c6c; margin: 4px 0 0; }

.ec-keepreading { background: var(--ec-cream); }
.ec-keepreading .ec-container { padding-top: 56px; padding-bottom: 56px; }
.ec-keepreading h2 { font-weight: 800; font-size: 28px; margin: 0 0 28px; }
.ec-keepreading .ec-card__media img, .ec-keepreading .ec-card__media .ec-ph { height: 180px; }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.ec-footer { background: var(--ec-charcoal); color: #cfcfcf; }
.ec-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 30px; }
.ec-footer__brand-text { font-size: 14px; line-height: 1.65; color: var(--ec-muted-2); margin: 18px 0 0; max-width: 300px; }
.ec-footer .ec-logo__pre { color: var(--ec-muted-2); }
.ec-footer .ec-logo__name { color: #fff; }
.ec-footer__social { display: flex; gap: 12px; margin-top: 20px; }
.ec-footer__social a { width: 38px; height: 38px; border-radius: 10px; background: #3a3a3a; display: flex; align-items: center; justify-content: center; color: #cfcfcf; }
.ec-footer__social a:hover { background: var(--ec-gold); color: var(--ec-on-gold); }
.ec-footer h4 { font-family: var(--ec-font-head); font-weight: 700; font-size: 15px; color: #fff; margin: 0 0 16px; }
.ec-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.ec-footer__col a { color: var(--ec-muted-2); text-decoration: none; }
.ec-footer__col a:hover { color: var(--ec-gold); }
.ec-footer__contact { display: flex; flex-direction: column; gap: 13px; font-size: 14px; color: var(--ec-muted-2); }
.ec-footer__contact a, .ec-footer__contact span { display: flex; align-items: center; gap: 9px; color: var(--ec-muted-2); text-decoration: none; }
.ec-footer__contact a:hover { color: var(--ec-gold); }
.ec-footer__contact .ec-icon { color: var(--ec-gold); }
.ec-footer__bottom { border-top: 1px solid #3a3a3a; }
.ec-footer__bottom .ec-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: var(--ec-muted); }
.ec-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.ec-footer__legal a { color: var(--ec-muted); text-decoration: none; }
.ec-footer__legal a:hover { color: var(--ec-gold); }

/* ==========================================================================
   14. WOOCOMMERCE NOTICES / MESSAGES
   ========================================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top: none; border-radius: 14px; padding: 14px 18px 14px 44px; font-family: var(--ec-font-body);
	background: var(--ec-cream); color: var(--ec-on-gold); border: 1px solid var(--ec-cream-border);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--ec-gold-dark); }
.woocommerce-error { background: #fbeaea; border-color: #f3cfcf; color: #8a2b28; }
.woocommerce a.button, .woocommerce button.button, .woocommerce .button {
	background: var(--ec-gold); color: var(--ec-on-gold); border-radius: var(--ec-r-btn);
	font-family: var(--ec-font-head); font-weight: 700; border: none; padding: 12px 20px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--ec-gold-hover); color: var(--ec-on-gold); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	border: 2px solid var(--ec-border); border-radius: var(--ec-r-input); padding: 10px 14px; font-family: var(--ec-font-body);
}

/* ==========================================================================
   14b. ÁREA DE CLIENTE (Mi cuenta: acceso, registro, panel, datos)
   ========================================================================== */
.ec-account { padding-top: 38px; padding-bottom: 64px; }

/* Maqueta del área logueada: menú lateral (col 1) + panel (col 2).
   La rejilla vive en .ec-account-layout (dentro de my-account.php), así que
   NO afecta a la página de login ni depende del wrapper .woocommerce. */
.ec-account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.ec-account .woocommerce { width: 100%; }
/* WooCommerce pone float + width:30%/68% a la navegación y al contenido de la cuenta
   (pensado para su layout clásico). Lo anulamos para que llenen su celda del grid. */
.woocommerce-account .ec-account-layout .woocommerce-MyAccount-navigation,
.woocommerce-account .ec-account-layout .woocommerce-MyAccount-content { width: auto; float: none; margin: 0; }

/* --- Menú lateral --- */
.ec-account-nav {
	background: #fff; border: 1px solid var(--ec-border-2); border-radius: var(--ec-r-card);
	padding: 14px; position: sticky; top: 110px;
}
.ec-account-nav__user {
	display: flex; align-items: center; gap: 12px;
	padding: 8px 8px 16px; margin-bottom: 10px; border-bottom: 1px solid var(--ec-border-3);
}
.ec-account-nav__avatar {
	width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
	background: var(--ec-cream-2); color: var(--ec-gold-dark);
	display: flex; align-items: center; justify-content: center;
}
.ec-account-nav__greet { display: block; font-size: 12px; color: var(--ec-muted-2); }
.ec-account-nav__hello strong { font-family: var(--ec-font-head); font-size: 15px; color: var(--ec-charcoal); }
.ec-account-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ec-account-nav li { margin: 0; }
.ec-account-nav li a {
	display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px;
	text-decoration: none; color: var(--ec-text); font-weight: 600; font-size: 14px;
	transition: background .15s, color .15s;
}
.ec-account-nav li a svg { color: var(--ec-muted); transition: color .15s; }
.ec-account-nav li a:hover { background: var(--ec-bg-light); color: var(--ec-charcoal); }
.ec-account-nav li.is-active a { background: var(--ec-cream); color: var(--ec-gold-dark); }
.ec-account-nav li.is-active a svg { color: var(--ec-gold-dark); }

/* --- Panel de contenido --- */
.ec-account__content {
	background: #fff; border: 1px solid var(--ec-border-2); border-radius: var(--ec-r-card);
	padding: 30px 32px; min-width: 0;
}
.ec-account__content > p { color: var(--ec-text); line-height: 1.7; }
.ec-account__content h2, .ec-account__content h3 { margin-top: 0; }
.ec-account__content a { color: var(--ec-gold-dark); }

/* --- Dashboard (accesos rápidos) --- */
.ec-account-dash__welcome h2 { font-weight: 800; font-size: 24px; margin: 0; }
.ec-account-dash__welcome h2 span { color: var(--ec-gold-dark); }
.ec-account-dash__welcome p { color: var(--ec-text); margin: 8px 0 0; }
.ec-account-dash__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 26px 0 4px; }
.ec-account-tile {
	display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 20px;
	border: 1px solid var(--ec-border-2); border-radius: 16px; background: #fff; text-decoration: none;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ec-account-tile:hover { box-shadow: var(--ec-shadow-card); transform: translateY(-3px); border-color: var(--ec-cream-border); }
.ec-account-tile__ic {
	width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px;
	background: var(--ec-cream-2); color: var(--ec-gold-dark);
	display: flex; align-items: center; justify-content: center;
}
.ec-account-tile__title { font-family: var(--ec-font-head); font-weight: 700; font-size: 16px; color: var(--ec-charcoal); }
.ec-account-tile__desc { font-size: 13px; color: var(--ec-muted); line-height: 1.5; }
.ec-account-tile__cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-weight: 700; font-size: 13px; color: var(--ec-gold-dark); }
.ec-account-dash__logout { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--ec-border-3); font-size: 14px; color: var(--ec-muted); }
.ec-account-dash__logout a { font-weight: 700; }

/* --- Formularios del panel (datos de cuenta, direcciones) --- */
.ec-account__content form .form-row,
.ec-account__content form .woocommerce-form-row { margin: 0 0 16px; }
.ec-account__content label { font-size: 13px; font-weight: 700; color: var(--ec-charcoal); display: block; margin-bottom: 7px; }
.ec-account__content .input-text,
.ec-account__content input[type="text"],
.ec-account__content input[type="email"],
.ec-account__content input[type="password"],
.ec-account__content input[type="tel"],
.ec-account__content select,
.ec-account__content textarea {
	width: 100%; border: 2px solid var(--ec-border); border-radius: var(--ec-r-input);
	padding: 11px 14px; font-family: var(--ec-font-body); font-size: 14px; color: var(--ec-charcoal);
	background: #fff; outline: none; transition: border-color .15s;
}
.ec-account__content input:focus,
.ec-account__content select:focus,
.ec-account__content textarea:focus { border-color: var(--ec-gold); }
.ec-account__content fieldset { border: 1px solid var(--ec-border-2); border-radius: 14px; padding: 16px 20px 20px; margin: 24px 0 0; }
.ec-account__content fieldset legend { font-family: var(--ec-font-head); font-weight: 700; padding: 0 8px; }
.ec-account__content .woocommerce-Button,
.ec-account__content button[type="submit"] { margin-top: 6px; }
/* Campos a dos columnas (nombre/apellidos, etc.) en datos y direcciones */
.ec-account__content .form-row-first { float: left; width: 48%; }
.ec-account__content .form-row-last { float: right; width: 48%; }
.ec-account__content .form-row-wide, .ec-account__content .clear { clear: both; }
.ec-account__content .woocommerce-address-fields__field-wrapper::after,
.ec-account__content form::after { content: ""; display: table; clear: both; }
/* Título de sección del endpoint (Detalles de la cuenta, etc.) */
.ec-account__content > h2, .ec-account__content > h3 { font-weight: 800; font-size: 22px; margin: 0 0 18px; }
.ec-account__content .woocommerce-MyAccount-content__title { font-weight: 800; font-size: 22px; margin: 0 0 18px; }

/* --- Tablas (pedidos / descargas) --- */
.ec-account__content table.shop_table,
.ec-account__content table.woocommerce-orders-table,
.ec-account__content table.woocommerce-table {
	width: 100%; border-collapse: collapse; border: 1px solid var(--ec-border-2);
	border-radius: 14px; overflow: hidden; font-size: 14px;
}
.ec-account__content .shop_table th {
	background: var(--ec-bg-light); text-align: left; font-family: var(--ec-font-head);
	font-weight: 700; font-size: 13px; color: var(--ec-charcoal); padding: 13px 14px;
}
.ec-account__content .shop_table td { padding: 13px 14px; border-top: 1px solid var(--ec-border-3); color: var(--ec-text); }
.ec-account__content .shop_table td.woocommerce-orders-table__cell-order-actions { text-align: right; }
.ec-account__content .shop_table .button { padding: 8px 14px; font-size: 13px; }

/* --- Direcciones --- */
.ec-account__content .u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ec-account__content .u-columns::before, .ec-account__content .u-columns::after { content: none; display: none; }
/* Anula el float + width:47% de WooCommerce en las tarjetas de dirección. */
.woocommerce-account .ec-account__content .woocommerce-Address,
.woocommerce-account .ec-account__content .u-columns > div { float: none; width: auto; }
.woocommerce-Address { background: var(--ec-bg-light); border-radius: 16px; padding: 22px; }
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { font-size: 17px; margin: 0; }
.woocommerce-Address-title .edit { font-size: 13px; font-weight: 700; color: var(--ec-gold-dark); text-decoration: none; }
.woocommerce-Address address { font-style: normal; color: var(--ec-text); line-height: 1.7; font-size: 14px; margin-top: 12px; }

/* --- Acceso / Registro (no logueado) ---
   Flexbox: dos tarjetas iguales lado a lado (no depende de rejillas externas). */
.ec-auth { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; width: 100%; }
.ec-auth--two > .ec-auth__col { flex: 1 1 0; min-width: 280px; }
.ec-auth--one { max-width: 460px; margin: 0 auto; }
.ec-auth--one > .ec-auth__col { flex: 1 1 100%; }
.ec-auth__col { background: #fff; border: 1px solid var(--ec-border-2); border-radius: var(--ec-r-card); padding: 30px 30px 34px; }
.ec-auth__col--register { background: var(--ec-cream); border-color: var(--ec-cream-border); }
.ec-auth__head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.ec-auth__ic {
	width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
	background: var(--ec-cream-2); color: var(--ec-gold-dark);
	display: flex; align-items: center; justify-content: center;
}
.ec-auth__col--register .ec-auth__ic { background: #fff; }
.ec-auth__head h2 { font-weight: 800; font-size: 21px; margin: 0; }
.ec-auth__form .form-row,
.ec-auth__form .woocommerce-form-row { display: flex; flex-direction: column; margin: 0 0 16px; }
.ec-auth__form label { font-size: 13px; font-weight: 700; color: var(--ec-charcoal); margin-bottom: 7px; }
.ec-auth__form .input-text,
.ec-auth__form input[type="text"],
.ec-auth__form input[type="email"],
.ec-auth__form input[type="password"] {
	width: 100%; border: 2px solid var(--ec-border); border-radius: var(--ec-r-input);
	padding: 11px 14px; font-family: var(--ec-font-body); font-size: 14px; color: var(--ec-charcoal);
	background: #fff; outline: none; transition: border-color .15s;
}
.ec-auth__form input:focus { border-color: var(--ec-gold); }
.ec-auth__hint { font-size: 13px; color: var(--ec-muted); margin: 0 0 16px; }
.ec-auth__row-remember { margin-bottom: 18px !important; }
.ec-checkbox { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 600 !important; color: var(--ec-text) !important; cursor: pointer; }
.ec-checkbox input { width: auto; margin: 0; }
/* El botón de registro debe ganar al fondo dorado global de .woocommerce button.button */
.ec-auth .ec-btn--dark.button { background: var(--ec-charcoal); color: #fff; padding: 14px 24px; }
.ec-auth .ec-btn--dark.button:hover { background: #1f1f1f; color: #fff; }
.ec-auth .ec-btn--gold.button { padding: 14px 24px; }
.ec-auth .lost_password { margin: 16px 0 0; font-size: 14px; text-align: center; }
.ec-auth .lost_password a { color: var(--ec-muted); }
.ec-auth .lost_password a:hover { color: var(--ec-gold-dark); }
.ec-auth .required { color: var(--ec-red); border: 0; }

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.ec-grid--4 { grid-template-columns: repeat(2,1fr); }
	.ec-trust .ec-container { grid-template-columns: 1fr; gap: 8px; }
	.ec-trust__item:nth-child(2) { border-left: none; border-right: none; border-top: 1px solid var(--ec-border-3); border-bottom: 1px solid var(--ec-border-3); }
	.ec-shop { grid-template-columns: 1fr; }
	.ec-sidebar { position: static; }
	.ec-product { grid-template-columns: 1fr; gap: 32px; }
	.ec-product .ec-gallery { position: static; }
	.ec-cart-grid { grid-template-columns: 1fr; }
	.ec-cart-summary { position: static; }
	.ec-checkout-grid { grid-template-columns: 1fr; }
	.ec-checkout-side { position: static; }
	.ec-blog { grid-template-columns: 1fr; }
	.ec-blog-sidebar { position: static; }
	.ec-products { grid-template-columns: repeat(2,1fr); }
	/* Cuenta: una columna; menú deja de ser sticky */
	.ec-account-layout { grid-template-columns: 1fr; }
	.ec-account-nav { position: static; }
	.ec-account-dash__grid { grid-template-columns: 1fr; }
	.ec-account__content .u-columns { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
	/* Header colapsa: buscador a 100% bajo el bar, menú toggle */
	.ec-header__bar { flex-wrap: wrap; }
	.ec-search { order: 3; flex-basis: 100%; max-width: 100%; margin-top: 12px; }
	.ec-hero .ec-container { grid-template-columns: 1fr; gap: 32px; }
	.ec-hero h1 { font-size: 40px; }
	.ec-story .ec-container { grid-template-columns: 1fr; gap: 32px; }
	.ec-section__head { flex-direction: column; align-items: flex-start; }
	.ec-featured { grid-template-columns: 1fr; }
	.ec-blog-grid { grid-template-columns: 1fr; }
	.ec-nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; background: none; border: none; font-family: var(--ec-font-head); font-weight: 600; font-size: 14px; color: var(--ec-charcoal); cursor: pointer; padding: 12px 0; }
	.ec-nav__menu { flex-basis: 100%; flex-direction: column; align-items: stretch; display: none; }
	.ec-nav.is-open .ec-nav__menu { display: flex; }
	.ec-nav .ec-container { flex-wrap: wrap; }
	.ec-nav__menu a { border-bottom: none; padding: 12px 4px; border-top: 1px solid var(--ec-border-3); }
	.ec-nav__menu .current-menu-item > a { border-left: 3px solid var(--ec-gold); padding-left: 12px; }
	.ec-cart-head { display: none; }
	.ec-cart-item { grid-template-columns: 1fr auto; grid-auto-rows: auto; gap: 12px; }
	.ec-cart-item__subtotal { text-align: left; }
	/* Checkout y cuenta: los campos nombre/apellidos, etc. a una columna */
	.woocommerce-checkout .form-row-first,
	.woocommerce-checkout .form-row-last,
	.ec-account__content .form-row-first,
	.ec-account__content .form-row-last { float: none; width: 100%; }
	.ec-account-dash__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	:root { --ec-pad: 16px; }
	.ec-grid--4, .ec-grid--3, .ec-grid--2, .ec-products { grid-template-columns: 1fr; }
	.ec-hero h1 { font-size: 32px; }
	.ec-pagehead h1 { font-size: 30px; }
	.ec-pagehead--center h1 { font-size: 32px; }
	.ec-article-head h1 { font-size: 30px; }
	.ec-footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
	.ec-topbar__left { gap: 12px; }
	.ec-newsletter .ec-container { flex-direction: column; align-items: stretch; }
}
