/* ==========================================================================
   eMovil Clean Theme — CSS completo
   Versión: 2.0 — Reescritura limpia desde cero
   ========================================================================== */

/* ─── 1. RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--em-font);
  font-size: 15px;
  color: var(--em-text);
  background: var(--em-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--em-green); }

img, svg { display: block; max-width: 100%; height: auto; }

h1,h2,h3,h4,h5,h6 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  color: var(--em-dark);
}

p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: var(--em-font); cursor: pointer; }
input, textarea, select { font-family: var(--em-font); }

:focus-visible {
  outline: 2px solid var(--em-green);
  outline-offset: 3px;
}

/* ─── 2. UTILIDADES ────────────────────────────────────────────────────── */
.em-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) { .em-container { padding: 0 16px; } }

.em-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ─── 3. BOTONES ───────────────────────────────────────────────────────── */
.em-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  font-family: var(--em-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--em-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.em-btn--primary {
  background: var(--em-green);
  color: #fff;
  border-color: var(--em-green);
}
.em-btn--primary:hover {
  background: var(--em-green-dark);
  border-color: var(--em-green-dark);
  color: #fff;
}

.em-btn--outline {
  background: transparent;
  color: var(--em-green);
  border-color: var(--em-green);
}
.em-btn--outline:hover {
  background: var(--em-green);
  color: #fff;
}

.em-btn--ghost {
  background: transparent;
  color: var(--em-text-soft);
  border-color: var(--em-border);
}
.em-btn--ghost:hover {
  border-color: var(--em-green);
  color: var(--em-green);
}

.em-btn--lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.em-btn--sm { padding: 8px 16px; font-size: 12px; }
.em-btn--full { width: 100%; }

/* ─── 4. TOPBAR ────────────────────────────────────────────────────────── */
.em-topbar {
  background: #f8f9fa;
  border-bottom: 1px solid var(--em-border);
  padding: 7px 0;
  font-size: 12px;
}

.em-topbar-inner {
  display: flex;
  justify-content: center;
}

.em-topbar-items {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.em-topbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--em-text-soft);
}

.em-topbar-item svg {
  color: var(--em-green);
  flex-shrink: 0;
}

/* ─── 5. HEADER ────────────────────────────────────────────────────────── */
.em-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow .2s ease;
}

.em-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.09);
}

.admin-bar .em-header { top: 32px; }

/* Fila principal */
.em-header-main {
  border-bottom: 1px solid var(--em-border);
}

.em-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.em-logo { flex-shrink: 0; }
.em-logo img { height: 42px; width: auto; }

/* Buscador */
.em-search-bar {
  flex: 1;
  max-width: 520px;
  display: flex;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}

.em-search-bar:focus-within { border-color: var(--em-green); }

.em-search-input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  outline: none;
  font-family: var(--em-font);
  font-size: 14px;
  color: var(--em-text);
  background: transparent;
}

.em-search-input::placeholder { color: var(--em-muted); }

.em-search-btn {
  background: var(--em-green);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s;
}

.em-search-btn:hover { background: var(--em-green-dark); }

/* Acciones header derecha */
.em-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Teléfono / WhatsApp */
.em-header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  text-decoration: none;
  color: var(--em-text);
  transition: border-color .18s;
  white-space: nowrap;
}

.em-header-phone:hover { border-color: var(--em-green); }
.em-header-phone svg { color: var(--em-green); flex-shrink: 0; }

.em-header-phone-text { display: flex; flex-direction: column; }
.em-header-phone-num { font-size: 13px; font-weight: 700; color: var(--em-dark); line-height: 1.3; }
.em-header-phone-label { font-size: 10px; color: var(--em-muted); line-height: 1.2; }

/* Botones icono */
.em-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--em-radius-sm);
  color: var(--em-text);
  transition: background .15s;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}

.em-icon-btn:hover { background: var(--em-section); }

.em-cart-btn { position: relative; }

.em-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--em-green);
  color: #fff;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hamburguesa mobile */
.em-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--em-text);
  border-radius: var(--em-radius-sm);
}

/* Fila de navegación */
.em-header-nav {
  background: #fff;
  border-bottom: 1px solid var(--em-border);
}

.em-header-nav .em-container {
  display: flex;
  align-items: center;
}

.em-nav-primary { width: 100%; }

.em-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.em-nav-list > li > a {
  display: block;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--em-text-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.em-nav-list > li > a:hover,
.em-nav-list > li.current-menu-item > a {
  color: var(--em-green);
  border-bottom-color: var(--em-green);
}

.em-nav-list > li.current-menu-item > a { font-weight: 600; }

/* Buscador mobile desplegable */
.em-search-bar-mobile { display: none; }
.em-search-bar-mobile.is-open { display: block; padding: 10px 0; }
.em-search-bar-mobile form { display: flex; gap: 8px; }
.em-search-bar-mobile .em-search-input {
  flex: 1;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  padding: 10px 14px;
}

/* ─── 6. MENÚ DRAWER MOBILE ────────────────────────────────────────────── */
.em-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.em-mobile-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.em-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
}

.em-mobile-menu.is-open { transform: translateX(0); }

.em-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--em-border);
  flex-shrink: 0;
}

.em-mobile-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--em-text-soft);
  border-radius: var(--em-radius-sm);
}

.em-mobile-close:hover { background: var(--em-section); }

.em-mobile-nav-list {
  padding: 12px;
  flex: 1;
}

.em-mobile-nav-list li a {
  display: block;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--em-text);
  border-radius: var(--em-radius-sm);
  text-decoration: none;
  transition: background .15s;
}

.em-mobile-nav-list li a:hover { background: var(--em-section); color: var(--em-green); }

.em-mobile-menu-footer {
  padding: 16px;
  border-top: 1px solid var(--em-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* ─── 7. HERO ──────────────────────────────────────────────────────────── */
.em-hero {
  background: #fff;
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--em-border);
  overflow: hidden;
}

.em-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.em-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--em-dark);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.em-hero-title-green {
  color: var(--em-green);
  display: block;
}

.em-hero-subtitle {
  font-size: 16px;
  color: var(--em-text-soft);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 460px;
}

.em-hero-checklist {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.em-hero-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--em-text-soft);
}

.em-hero-checklist svg { color: var(--em-green); flex-shrink: 0; }

.em-hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.em-hero-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--em-text-soft);
  text-decoration: none;
  transition: color .15s;
}

.em-hero-link-secondary:hover { color: var(--em-green); }

.em-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0e2212 0%, #1a3b1f 45%, #0a1a0c 100%);
  border-radius: 24px;
  padding: 40px 32px;
  min-height: 440px;
  position: relative;
  overflow: hidden;
}

.em-hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(53,169,54,.2) 0%, transparent 70%);
  pointer-events: none;
}

.em-hero-img {
  max-height: 400px;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.45));
  animation: em-float 3.5s ease-in-out infinite;
}

.em-hero-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: transparent;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

@keyframes em-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ─── 8. BARRA DE BENEFICIOS ───────────────────────────────────────────── */
.em-benefits-bar {
  background: #fff;
  border-bottom: 1px solid var(--em-border);
  padding: 28px 0;
}

.em-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.em-benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  border-right: 1px solid var(--em-border);
}

.em-benefit-item:first-child { padding-left: 0; }
.em-benefit-item:last-child { border-right: none; }

.em-benefit-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--em-green);
}

.em-benefit-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--em-dark);
}

.em-benefit-text span {
  display: block;
  font-size: 12px;
  color: var(--em-muted);
  margin-top: 2px;
}

/* ─── 9. SECCIÓN CATEGORÍAS ────────────────────────────────────────────── */
.em-categories-section {
  padding: 56px 0;
  background: var(--em-section);
}

.em-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.em-section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--em-dark);
}

.em-section-link-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--em-green);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.em-section-link-all:hover { color: var(--em-green-dark); }

.em-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Tarjeta de categoría */
.em-cat-card {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.em-cat-card:hover {
  box-shadow: 0 8px 32px rgba(53,169,54,.12), 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-3px);
  border-color: rgba(53,169,54,.3);
}

.em-cat-card-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.em-cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.em-cat-card:hover .em-cat-card-img { transform: scale(1.06); }

.em-cat-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--em-green-light) 0%, #f0f0f0 100%);
  border-radius: 8px;
}

.em-cat-card-body {
  padding: 12px 14px;
  border-top: 1px solid var(--em-border);
}

.em-cat-card-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--em-dark);
}

.em-cat-card-sub {
  display: block;
  font-size: 11px;
  color: var(--em-green);
  margin-top: 3px;
  font-weight: 500;
}

/* ─── 10. PRODUCTOS DESTACADOS ─────────────────────────────────────────── */
.em-featured-section {
  padding: 56px 0;
  background: #fff;
}

.em-products-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.em-product-tabs {
  display: flex;
  border-bottom: 2px solid var(--em-border);
  flex: 1;
  min-width: 0;
}

.em-product-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 8px 18px;
  font-family: var(--em-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--em-muted);
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.em-product-tab:hover { color: var(--em-green); }
.em-product-tab.is-active { color: var(--em-green); border-bottom-color: var(--em-green); }

.em-products-nav { display: flex; gap: 8px; flex-shrink: 0; }

.em-nav-arrow {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em-text-soft);
  transition: border-color .15s, color .15s;
}

.em-nav-arrow:hover { border-color: var(--em-green); color: var(--em-green); }

/* Grid de productos (home) */
.em-products-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.em-products-footer {
  text-align: center;
  margin-top: 36px;
}

/* ─── 11. TARJETA DE PRODUCTO ──────────────────────────────────────────── */
.em-product-card,
ul.products li.product {
  background: #fff;
  border: 1px solid var(--em-border) !important;
  border-radius: var(--em-radius) !important;
  overflow: visible !important;
  transition: box-shadow .22s ease, transform .22s ease !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  padding: 0 !important;
}

.em-product-card:hover,
ul.products li.product:hover {
  box-shadow: 0 8px 32px rgba(53,169,54,.12), 0 2px 8px rgba(0,0,0,.06) !important;
  transform: translateY(-4px) !important;
}

/* Badge oferta */
.em-product-badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--em-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
}

.em-product-card-link { display: block; text-decoration: none; }

.em-product-card-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--em-radius) var(--em-radius) 0 0;
}

.em-product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.em-product-card:hover .em-product-card-img { transform: scale(1.05); }

.em-product-card-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
}

.em-product-card-info {
  padding: 12px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.em-product-card-brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--em-green);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.em-product-card-title { margin: 0; }

.em-product-card-title a {
  font-size: 13px;
  font-weight: 600;
  color: var(--em-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.em-product-card-title a:hover { color: var(--em-green); }

.em-product-card-price { margin-top: 4px; }

.em-product-card-price .price,
.em-product-card-price .woocommerce-Price-amount {
  font-size: 19px;
  font-weight: 700;
  color: var(--em-dark);
}

.em-product-card-price del,
.em-product-card-price del .woocommerce-Price-amount {
  font-size: 12px;
  color: var(--em-muted);
  font-weight: 400;
  opacity: .8;
}

.em-product-card-price ins { text-decoration: none; }
.em-product-card-price ins .woocommerce-Price-amount { font-size: 19px; }

/* Estrellas */
.em-product-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.em-stars { display: flex; gap: 1px; }

.em-rating-count {
  font-size: 11px;
  color: var(--em-muted);
}

/* Botón ATC en cards */
.em-product-card-cta {
  padding: 8px 14px 14px;
}

.em-product-card .add_to_cart_button,
.em-product-card .button,
.em-product-card a.button,
.em-atc-btn {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: var(--em-green) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  font-family: var(--em-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background .18s !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.em-product-card .add_to_cart_button:hover,
.em-product-card .button:hover,
.em-product-card a.button:hover,
.em-atc-btn:hover {
  background: var(--em-green-dark) !important;
  color: #fff !important;
}

/* ─── 12. BANNER VERDE INFERIOR ────────────────────────────────────────── */
.em-bottom-banner {
  background: var(--em-green);
  padding: 40px 0;
}

.em-bottom-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.em-bottom-banner-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.2);
}

.em-bottom-banner-item:first-child { padding-left: 0; }
.em-bottom-banner-item:last-child { border-right: none; }

.em-bottom-banner-item svg { flex-shrink: 0; opacity: .9; }

.em-bottom-banner-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.em-bottom-banner-item span {
  display: block;
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

/* ─── 13. FOOTER ───────────────────────────────────────────────────────── */
.em-footer {
  background: #1F1F1F;
  color: #9CA3AF;
  padding: 56px 0 32px;
  margin-top: auto;
}

.em-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.em-footer-logo img { height: 36px; filter: brightness(0) invert(1); margin-bottom: 14px; }

.em-footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #9CA3AF;
  margin-bottom: 20px;
}

.em-footer-social {
  display: flex;
  gap: 10px;
}

.em-footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  transition: background .15s, color .15s;
  text-decoration: none;
}

.em-footer-social a:hover { background: var(--em-green); color: #fff; }

.em-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #F9FAFB;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.em-footer-col ul { list-style: none; padding: 0; margin: 0; }
.em-footer-col ul li + li { margin-top: 8px; }

.em-footer-col ul li a {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color .15s;
}

.em-footer-col ul li a:hover { color: var(--em-green); }

.em-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #6B7280;
}

.em-footer-bottom a { color: #9CA3AF; text-decoration: none; }
.em-footer-bottom a:hover { color: var(--em-green); }

/* ─── 14. PÁGINA WRAPPING ──────────────────────────────────────────────── */
.em-page { display: flex; flex-direction: column; min-height: 100vh; }
.em-main { flex: 1; }

/* ─── 15. SHOP / ARCHIVO ───────────────────────────────────────────────── */
.em-shop-layout {
  display: flex;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  align-items: flex-start;
}

.em-shop-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.em-shop-content { flex: 1; min-width: 0; }

/* Toolbar tienda */
.em-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.em-archive-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--em-dark);
}

.em-shop-count {
  font-size: 13px;
  color: var(--em-muted);
  margin-top: 4px;
}

.em-filter-mobile-btn {
  display: none;
  padding: 8px 16px;
  font-size: 13px;
}

/* WooCommerce grid en tienda */
.em-shop-content ul.products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Sidebar filtros */
.em-sidebar-widget {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.em-sidebar-widget-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--em-dark);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--em-border);
}

.em-filter-list { list-style: none; padding: 0; margin: 0; }
.em-filter-list li + li { margin-top: 6px; }

.em-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--em-text-soft);
  cursor: pointer;
  padding: 4px 0;
  transition: color .15s;
}

.em-filter-label:hover { color: var(--em-green); }
.em-filter-cb { accent-color: var(--em-green); width: 15px; height: 15px; cursor: pointer; }

.em-filter-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--em-muted);
}

/* Paginación */
.em-pagination {
  text-align: center;
  margin-top: 36px;
}

.em-pagination .page-numbers {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.em-pagination .page-numbers li a,
.em-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--em-text-soft);
  text-decoration: none;
  transition: all .15s;
}

.em-pagination .page-numbers li a:hover { border-color: var(--em-green); color: var(--em-green); }
.em-pagination .page-numbers li span.current { background: var(--em-green); border-color: var(--em-green); color: #fff; }

/* Breadcrumb */
.em-breadcrumb {
  font-size: 12px;
  color: var(--em-muted);
  padding: 14px 0;
}

.em-breadcrumb a {
  color: var(--em-muted);
  text-decoration: none;
  transition: color .15s;
}

.em-breadcrumb a:hover { color: var(--em-green); }
.em-breadcrumb .sep { margin: 0 5px; }

/* ─── 16. FICHA PRODUCTO SINGLE ─────────────────────────────────────────── */
.em-product-single {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.em-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 56px;
}

/* Galería */
.em-product-gallery { position: sticky; top: 110px; }

.em-gallery-main {
  aspect-ratio: 1;
  background: #fafafa;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 12px;
}

.em-gallery-main img { max-height: 380px; object-fit: contain; }

.em-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.em-gallery-thumb {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  padding: 4px;
}

.em-gallery-thumb img { max-height: 52px; object-fit: contain; }
.em-gallery-thumb.is-active { border-color: var(--em-green); }
.em-gallery-thumb:hover { border-color: var(--em-green); }

/* Info producto */
.em-product-info { display: flex; flex-direction: column; gap: 16px; }

.em-product-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.em-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.em-badge--new { background: #EFF6FF; color: #2563EB; }
.em-badge--sale { background: var(--em-green-light); color: var(--em-green-dark); }
.em-badge--refurb { background: #FFF7ED; color: #C2410C; }

.em-product-brand-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--em-green);
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
}

.em-product-title { font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--em-dark); }

.em-product-rating-row { display: flex; align-items: center; gap: 10px; }

.em-product-price-wrap .price { font-size: 32px; font-weight: 800; color: var(--em-dark); }
.em-product-price-wrap .price del { font-size: 18px; color: var(--em-muted); font-weight: 400; }
.em-product-price-wrap .price del .woocommerce-Price-amount { font-size: 18px; }
.em-product-price-wrap .price ins { text-decoration: none; }

.em-product-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

.em-product-stock--in { background: var(--em-green-light); color: var(--em-green-dark); }
.em-product-stock--low { background: #FEF3C7; color: #92400E; }
.em-product-stock--out { background: #FEE2E2; color: #991B1B; }

/* Botón ATC single */
.single_add_to_cart_button,
.em-btn-atc {
  background: var(--em-green) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 32px !important;
  font-family: var(--em-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: var(--em-radius-sm) !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: background .18s !important;
}

.single_add_to_cart_button:hover { background: var(--em-green-dark) !important; }

/* Barra de confianza single */
.em-product-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: var(--em-section);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
}

.em-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--em-text-soft);
  font-weight: 500;
}

.em-trust-item svg { color: var(--em-green); flex-shrink: 0; }

/* Sticky ATC mobile */
.em-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: #fff;
  border-top: 1px solid var(--em-border);
  padding: 14px 20px;
  display: none;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}

.em-sticky-atc.is-visible { display: flex; }

.em-sticky-atc-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--em-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#em-sticky-atc-btn {
  background: var(--em-green);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--em-radius-sm);
  font-family: var(--em-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s;
}

#em-sticky-atc-btn:hover { background: var(--em-green-dark); }

/* Tabs de producto (WC) */
.woocommerce-tabs .tabs {
  display: flex;
  background: var(--em-section);
  border-bottom: 1px solid var(--em-border);
  padding: 0 24px;
  gap: 0;
  list-style: none;
  margin: 0;
}

.woocommerce-tabs .tabs li a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--em-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}

.woocommerce-tabs .tabs li.active a { color: var(--em-green); border-bottom-color: var(--em-green); }
.woocommerce-tabs .tabs li a:hover { color: var(--em-green); }

.woocommerce-Tabs-panel { padding: 24px; }

/* Highlights */
.em-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.em-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--em-text-soft);
}

.em-highlight-icon { color: var(--em-green); flex-shrink: 0; margin-top: 1px; }

/* Specs table */
.em-specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.em-specs-table tr { border-bottom: 1px solid var(--em-border); }
.em-specs-table tr:last-child { border-bottom: none; }
.em-specs-table th { padding: 10px 14px; background: var(--em-section); font-weight: 600; color: var(--em-text-soft); width: 40%; text-align: left; }
.em-specs-table td { padding: 10px 14px; color: var(--em-text); }

/* FAQ Accordion */
.em-faq-accordion { display: flex; flex-direction: column; gap: 4px; }

.em-faq-item {
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  overflow: hidden;
}

.em-faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--em-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--em-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .15s;
}

.em-faq-question:hover { background: var(--em-section); }
.em-faq-question[aria-expanded="true"] { background: var(--em-section); color: var(--em-green); }

.em-faq-icon {
  flex-shrink: 0;
  transition: transform .2s;
}

.em-faq-question[aria-expanded="true"] .em-faq-icon { transform: rotate(180deg); }

.em-faq-panel {
  padding: 0 20px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--em-text-soft);
  background: var(--em-section);
}

.em-faq-panel[hidden] { display: none; }

/* ─── 17. PRODUCTOS RELACIONADOS ────────────────────────────────────────── */
.em-related {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.em-related-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--em-dark);
  margin-bottom: 24px;
}

.em-related ul.products {
  grid-template-columns: repeat(5, 1fr) !important;
}

/* ─── 18. CARRITO ──────────────────────────────────────────────────────── */
.em-cart-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.em-cart-page h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
}

.em-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: flex-start;
}

.em-cart-table { width: 100%; border-collapse: collapse; }
.em-cart-table th { padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--em-muted); border-bottom: 2px solid var(--em-border); }
.em-cart-table td { padding: 16px; border-bottom: 1px solid var(--em-border); vertical-align: middle; }
.em-cart-table .product-thumbnail img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; border: 1px solid var(--em-border); }
.em-cart-table .product-name a { font-weight: 600; color: var(--em-dark); text-decoration: none; }
.em-cart-table .product-name a:hover { color: var(--em-green); }
.em-cart-table .product-price, .em-cart-table .product-subtotal { font-weight: 700; }
.em-cart-table .quantity input { width: 60px; border: 1.5px solid var(--em-border); border-radius: 6px; padding: 6px 10px; font-family: var(--em-font); font-size: 14px; text-align: center; }
.em-cart-table .remove { color: var(--em-muted); text-decoration: none; font-size: 18px; line-height: 1; transition: color .15s; }
.em-cart-table .remove:hover { color: var(--em-danger); }
.em-cart-table .actions { padding-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.em-cart-coupon { display: flex; gap: 8px; flex: 1; }
.em-cart-coupon input {
  flex: 1;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  padding: 10px 14px;
  font-family: var(--em-font);
  font-size: 13px;
}

.em-cart-totals-box {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 24px;
  position: sticky;
  top: 120px;
}

.em-cart-totals-box h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--em-border);
}

.em-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--em-border);
}

.em-totals-row:last-of-type { border-bottom: none; }

.em-totals-total {
  font-size: 22px;
  font-weight: 800;
  color: var(--em-dark);
}

.em-checkout-btn {
  background: var(--em-green) !important;
  color: #fff !important;
  border: none !important;
  width: 100% !important;
  padding: 16px !important;
  font-family: var(--em-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: var(--em-radius-sm) !important;
  cursor: pointer !important;
  margin-top: 16px !important;
  transition: background .18s !important;
  display: block !important;
  text-align: center !important;
  text-decoration: none !important;
}

.em-checkout-btn:hover { background: var(--em-green-dark) !important; }

/* ─── 19. CHECKOUT ─────────────────────────────────────────────────────── */
.em-checkout-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.em-checkout-page h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
}

.em-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: flex-start;
}

.em-checkout-form-col { display: flex; flex-direction: column; gap: 24px; }
.em-checkout-summary-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }

.em-form-section {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 24px;
}

.em-form-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--em-border);
}

.woocommerce-checkout .form-row { margin-bottom: 16px; }
.woocommerce-checkout .form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--em-dark); margin-bottom: 6px; }
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  padding: 11px 14px;
  font-family: var(--em-font);
  font-size: 14px;
  color: var(--em-text);
  transition: border-color .18s;
  background: #fff;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  outline: none;
  border-color: var(--em-green);
}

.em-order-review-box {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 24px;
}

.em-order-review-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }

.em-checkout-trust {
  background: var(--em-section);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.em-checkout-place-order .button {
  background: var(--em-green) !important;
  color: #fff !important;
  border: none !important;
  width: 100% !important;
  padding: 16px !important;
  font-family: var(--em-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: var(--em-radius-sm) !important;
  cursor: pointer !important;
  transition: background .18s !important;
}

.em-checkout-place-order .button:hover { background: var(--em-green-dark) !important; }

/* ─── 20. MI CUENTA ────────────────────────────────────────────────────── */
.em-myaccount-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.em-myaccount-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.em-account-nav {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.em-account-nav li { border-bottom: 1px solid var(--em-border); }
.em-account-nav li:last-child { border-bottom: none; }
.em-account-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--em-text-soft);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.em-account-nav li a:hover,
.em-account-nav li.is-active a { background: var(--em-green-light); color: var(--em-green-dark); font-weight: 600; }

.em-account-content {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 28px;
}

/* ─── 21. PÁGINAS SIMPLES ───────────────────────────────────────────────── */
.em-page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.em-page-content h1 { font-size: 28px; margin-bottom: 28px; }
.em-page-content p { color: var(--em-text-soft); line-height: 1.8; margin-bottom: 16px; }

/* Página 404 */
.em-404-page { text-align: center; padding: 80px 24px; max-width: 500px; margin: 0 auto; }
.em-404-page h1 { font-size: 96px; font-weight: 800; color: var(--em-green); line-height: 1; margin-bottom: 16px; }
.em-404-page h2 { font-size: 24px; margin-bottom: 12px; }
.em-404-page p { color: var(--em-text-soft); margin-bottom: 28px; }

/* Búsqueda */
.em-search-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.em-search-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ─── 22. SEO FOOTER CATEGORÍAS ─────────────────────────────────────────── */
.em-seo-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.em-seo-footer-content {
  border-top: 1px solid var(--em-border);
  padding-top: 32px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--em-muted);
}

.em-seo-footer-content h2,
.em-seo-footer-content h3 { font-size: 15px; color: var(--em-text-soft); margin-bottom: 8px; margin-top: 20px; }

/* ─── 23. BANNER REACONDICIONADOS ──────────────────────────────────────── */
.em-refurb-banner {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--em-radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.em-refurb-banner-icon { font-size: 28px; flex-shrink: 0; }
.em-refurb-banner-text strong { display: block; font-weight: 700; color: #92400E; }
.em-refurb-banner-text p { font-size: 13px; color: #B45309; margin-top: 3px; }

/* ─── 24. ANIMACIONES ──────────────────────────────────────────────────── */
@keyframes em-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.em-animate { opacity: 0; }

/* ─── 25. WOOCOMMERCE NOTICES ───────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--em-radius-sm) !important;
  border-left-width: 4px !important;
  padding: 14px 18px !important;
  font-size: 13px !important;
  margin-bottom: 20px !important;
  list-style: none !important;
}

.woocommerce-message { background: var(--em-green-light) !important; border-color: var(--em-green) !important; color: var(--em-green-dark) !important; }
.woocommerce-info { background: #EFF6FF !important; border-color: #2563EB !important; color: #1E40AF !important; }
.woocommerce-error { background: #FEE2E2 !important; border-color: var(--em-danger) !important; color: #991B1B !important; }
.woocommerce-error li { list-style: none !important; }

/* ─── 26. ADMIN BAR ─────────────────────────────────────────────────────── */
@media (max-width: 782px) {
  .admin-bar .em-header { top: 46px; }
}

/* ─── 27. RESPONSIVE ────────────────────────────────────────────────────── */

/* ≤ 1200px */
@media (max-width: 1200px) {
  .em-products-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .em-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .em-footer-grid > .em-footer-col:last-child { display: none; }
}

/* ≤ 1024px */
@media (max-width: 1024px) {
  .em-hero-title { font-size: 42px; }
  .em-hero-content { gap: 36px; }
  .em-categories-grid { grid-template-columns: repeat(5, 1fr); }
  .em-products-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .em-shop-content ul.products,
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .em-related ul.products { grid-template-columns: repeat(4, 1fr) !important; }
  .em-product-layout { gap: 32px; }
}

/* ≤ 900px */
@media (max-width: 900px) {
  .em-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .em-footer-grid > .em-footer-col:nth-child(n+4) { display: none; }
  .em-categories-grid { grid-template-columns: repeat(4, 1fr); }
  .em-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .em-benefit-item { border-right: none; border-bottom: 1px solid var(--em-border); padding: 14px 0; }
  .em-benefit-item:nth-child(odd) { border-right: 1px solid var(--em-border); padding-right: 20px; }
  .em-benefit-item:last-child { border-bottom: none; }
  .em-bottom-banner-grid { grid-template-columns: repeat(2, 1fr); }
  .em-bottom-banner-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); padding: 18px 24px; }
  .em-bottom-banner-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
  .em-bottom-banner-item:nth-child(3),
  .em-bottom-banner-item:nth-child(4) { border-bottom: none; }
  .em-cart-layout { grid-template-columns: 1fr; }
  .em-cart-totals-box { position: static; }
  .em-checkout-layout { grid-template-columns: 1fr; }
  .em-checkout-summary-col { position: static; }
  .em-myaccount-layout { grid-template-columns: 1fr; }
  .em-account-nav { position: static; }
}

/* ≤ 768px */
@media (max-width: 768px) {
  .em-search-bar { display: none; }
  .em-header-phone { display: none; }
  .em-mobile-toggle { display: flex; }
  .em-header-nav { display: none; }
  .em-header-inner { padding: 12px 16px; gap: 12px; }

  .em-hero { padding: 40px 0 48px; }
  .em-hero-content { grid-template-columns: 1fr; }
  .em-hero-visual { display: none; }
  .em-hero-title { font-size: 34px; }
  .em-hero-subtitle { font-size: 15px; }

  .em-categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .em-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .em-shop-content ul.products,
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .em-related ul.products { grid-template-columns: repeat(2, 1fr) !important; }

  .em-shop-layout { flex-direction: column; padding: 16px; }
  .em-shop-sidebar { width: 100%; }
  .em-filter-mobile-btn { display: inline-flex; }

  .em-footer-grid { grid-template-columns: 1fr 1fr; }
  .em-footer-grid > div:first-child { grid-column: 1 / -1; }

  .em-product-layout { grid-template-columns: 1fr; }
  .em-product-gallery { position: static; }
  .em-product-title { font-size: 20px; }
  .em-sticky-atc { display: none !important; }
}

/* ≤ 640px */
@media (max-width: 640px) {
  .em-topbar { display: none; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  .em-hero-title { font-size: 28px; }
  .em-hero-ctas { flex-direction: column; align-items: flex-start; }
  .em-categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .em-products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .em-bottom-banner-grid { grid-template-columns: 1fr; }
  .em-bottom-banner-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.15) !important; }
  .em-benefits-grid { grid-template-columns: 1fr; }
  .em-benefit-item { border-right: none !important; }
  .em-footer-grid { grid-template-columns: 1fr; }
  .em-footer-grid > div:first-child { grid-column: auto; }
}

/* ─── 28. HERO RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .em-hero-visual {
    display: none;
  }
}

/* ─── 29. PRODUCT PAGE — COMPONENTES AUTHORITY 2.0 ─────────────────────── */

/* Quick Highlights (sobre el precio) */
.em-quick-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.em-quick-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--em-text-soft);
}

.em-qh-check {
  width: 15px;
  height: 15px;
  color: var(--em-green);
  flex-shrink: 0;
}

/* Specs badge grid (bajo el precio) */
.em-product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.em-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: var(--em-section);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
}

.em-spec-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--em-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.em-spec-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--em-dark);
}

/* Trust bajo ATC */
.em-single-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--em-section);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
}

.em-single-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--em-text-soft);
  line-height: 1.5;
}

.em-single-trust-item svg { color: var(--em-green); flex-shrink: 0; }

/* Sticky ATC (móvil) */
.em-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: #fff;
  border-top: 1px solid var(--em-border);
  padding: 12px 16px;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}

.em-sticky-atc.is-visible { display: block; }

.em-sticky-atc-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.em-sticky-atc-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--em-border);
  flex-shrink: 0;
}

.em-sticky-atc-info { flex: 1; min-width: 0; }

.em-sticky-atc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--em-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.em-sticky-atc-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--em-green);
  margin-top: 2px;
}

.em-sticky-atc-btn {
  background: var(--em-green);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--em-radius-sm);
  font-family: var(--em-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s;
}

.em-sticky-atc-btn:hover { background: var(--em-green-dark); }

/* Productos relacionados (pipeline) */
.em-related-products {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.em-related-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--em-dark);
  margin-bottom: 20px;
}

.em-related-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.em-related-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 16px;
  transition: box-shadow .22s ease, transform .22s ease;
}

.em-related-item a:hover {
  box-shadow: 0 8px 28px rgba(53,169,54,.12), 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-3px);
}

.em-related-img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: 10px;
}

.em-related-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--em-dark);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.em-related-price {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--em-green);
}

@media (max-width: 768px) {
  .em-related-list { grid-template-columns: repeat(2, 1fr); }
}

/* ─── 30. SHOP LOOP — BADGES ────────────────────────────────────────────── */
.em-loop-brand-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--em-green);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.em-loop-stock-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.em-loop-stock-badge--low { background: #FEF3C7; color: #92400E; }

/* ─── 31. REACONDICIONADOS BANNER ───────────────────────────────────────── */
.em-reacond-banner {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFF3E8 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--em-radius);
  margin-bottom: 24px;
  overflow: hidden;
}

.em-reacond-banner-inner {
  display: flex;
  flex-wrap: wrap;
}

.em-reacond-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  flex: 1;
  min-width: 200px;
  border-right: 1px solid #FED7AA;
}

.em-reacond-item:last-child { border-right: none; }
.em-reacond-item svg { color: #C2410C; flex-shrink: 0; }
.em-reacond-item strong { display: block; font-size: 13px; font-weight: 700; color: #92400E; }
.em-reacond-item span { display: block; font-size: 11px; color: #B45309; margin-top: 2px; }

@media (max-width: 768px) {
  .em-reacond-item { border-right: none; border-bottom: 1px solid #FED7AA; }
  .em-reacond-item:last-child { border-bottom: none; }
}

/* ─── 32. FILTROS SIDEBAR ───────────────────────────────────────────────── */
.em-filter-panel { display: none; }
.em-filter-panel.is-open { display: block; }

@media (min-width: 769px) {
  .em-filter-panel { display: block; }
  .em-filter-mobile-btn { display: none; }
}

.em-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--em-border);
}

.em-filter-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--em-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.em-filter-clear-all { font-size: 12px; color: var(--em-green); text-decoration: none; font-weight: 600; }
.em-filter-clear-all:hover { color: var(--em-green-dark); }

.em-filter-section { margin-bottom: 20px; }

.em-filter-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--em-muted);
  margin-bottom: 10px;
}

.em-tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.em-tree-row--sub { padding-left: 10px; }

.em-tree-ico { color: var(--em-muted); font-size: 9px; flex-shrink: 0; }

.em-tree-name-link {
  font-size: 13px;
  color: var(--em-text-soft);
  text-decoration: none;
  flex: 1;
  transition: color .15s;
}

.em-tree-name-link:hover { color: var(--em-green); }
.em-tree-row.is-active .em-tree-name-link { color: var(--em-green); font-weight: 600; }
.em-tree-count { font-size: 11px; color: var(--em-muted); font-style: normal; flex-shrink: 0; }

.em-tree-brands { display: flex; flex-direction: column; gap: 2px; }

.em-tree-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 0;
}

.em-tree-name { font-size: 13px; color: var(--em-text-soft); flex: 1; }

.em-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--em-green);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}

/* ─── 33. TRUST BAR (functions.php) ────────────────────────────────────── */
.em-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 0;
  font-size: 12px;
  color: var(--em-text-soft);
  border-top: 1px solid var(--em-border);
  margin-top: 8px;
}

.em-tbar-item { display: flex; align-items: center; gap: 5px; }
.em-tbar-check { color: var(--em-green); font-weight: 700; }
.em-tbar-sep { color: var(--em-border); }

/* ─── 34. CHECKOUT — PASOS Y MÉTODOS DE PAGO ───────────────────────────── */
.em-checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.em-checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.em-checkout-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--em-border);
  color: var(--em-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.em-checkout-step.is-active .em-checkout-step-num {
  background: var(--em-green);
  color: #fff;
}

.em-checkout-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--em-muted);
}

.em-checkout-step.is-active .em-checkout-step-label { color: var(--em-dark); }

.em-checkout-step-sep {
  width: 32px;
  height: 1px;
  background: var(--em-border);
  flex-shrink: 0;
}

.em-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--em-section);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
}

.em-payment-methods-label {
  font-size: 11px;
  color: var(--em-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  width: 100%;
  margin-bottom: 4px;
}

.em-pm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--em-dark);
  height: 32px;
}

.em-pm-chip--visa { color: #1a1f71; }
.em-pm-chip--mc { color: #eb001b; }
.em-pm-chip--paypal { color: #003087; }
.em-pm-chip--klarna { color: #ff69b4; }

/* Checkout trust items */
.em-checkout-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--em-text-soft);
}

.em-checkout-trust-item svg { color: var(--em-green); flex-shrink: 0; }

.em-checkout-trust-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--em-text-soft);
  margin-bottom: 12px;
}

.em-checkout-trust-line svg { color: var(--em-green); flex-shrink: 0; }

/* Checkout wrapper */
.em-checkout-wrapper { max-width: 1280px; margin: 0 auto; padding: 32px 24px 56px; }
.em-checkout-fields { display: flex; flex-direction: column; gap: 0; }
.em-checkout-summary { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
.em-checkout-order-review { padding: 20px; }
.em-checkout-summary-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--em-border); }

/* Cart page title */
.em-page-title { font-size: 24px; font-weight: 700; margin-bottom: 28px; }
.em-cart-page .em-container { max-width: 1280px; margin: 0 auto; padding: 32px 24px 56px; }

/* Cart continue button */
.em-cart-continue { margin-top: 20px; }

/* Cart sidebar — collaterals box */
.em-cart-sidebar .cart_totals {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 24px;
  position: sticky;
  top: 120px;
}

.em-cart-sidebar .cart_totals h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--em-border);
}

.em-cart-sidebar .shop_table td,
.em-cart-sidebar .shop_table th {
  padding: 10px 0;
  border-bottom: 1px solid var(--em-border);
  font-size: 14px;
  vertical-align: middle;
}

.em-cart-sidebar .order-total .amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--em-dark);
}

/* ─── 35. CARD GLOBAL ───────────────────────────────────────────────────── */
.em-card {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 24px;
}

/* ─── 36. PRODUCT SINGLE WRAPPER ────────────────────────────────────────── */
.em-single-product-wrapper .em-container { padding-top: 20px; padding-bottom: 40px; }

/* ─── 37. ANIMACIONES MEJORADAS ─────────────────────────────────────────── */

/* Hover Glow para cards */
.em-product-card:hover,
ul.products li.product:hover {
  box-shadow: 0 12px 40px rgba(53,169,54,.15), 0 4px 12px rgba(0,0,0,.07) !important;
}

/* Hover Lift para categorías */
.em-cat-card:hover {
  box-shadow: 0 12px 40px rgba(53,169,54,.14), 0 4px 10px rgba(0,0,0,.06);
}

/* Button pulse en ATC */
.em-btn--primary:active {
  transform: scale(.97);
}

/* Stagger delays para categorías */
.em-categories-grid .em-cat-card:nth-child(1)  { --stagger: 0s; }
.em-categories-grid .em-cat-card:nth-child(2)  { --stagger: .06s; }
.em-categories-grid .em-cat-card:nth-child(3)  { --stagger: .12s; }
.em-categories-grid .em-cat-card:nth-child(4)  { --stagger: .18s; }
.em-categories-grid .em-cat-card:nth-child(5)  { --stagger: .24s; }
.em-categories-grid .em-cat-card:nth-child(6)  { --stagger: .08s; }
.em-categories-grid .em-cat-card:nth-child(7)  { --stagger: .14s; }
.em-categories-grid .em-cat-card:nth-child(8)  { --stagger: .20s; }
.em-categories-grid .em-cat-card:nth-child(9)  { --stagger: .26s; }
.em-categories-grid .em-cat-card:nth-child(10) { --stagger: .32s; }

/* Stagger delays para product cards */
.em-products-grid li:nth-child(1)  { --stagger: 0s; }
.em-products-grid li:nth-child(2)  { --stagger: .06s; }
.em-products-grid li:nth-child(3)  { --stagger: .12s; }
.em-products-grid li:nth-child(4)  { --stagger: .18s; }
.em-products-grid li:nth-child(5)  { --stagger: .24s; }

/* Sección highlight bar benefits */
.em-benefits-bar .em-benefit-item { transition: transform .2s ease; }
.em-benefits-bar .em-benefit-item:hover { transform: translateY(-2px); }

/* Footer logo — invertido para fondo oscuro */
.em-footer-brand .em-logo img { filter: brightness(0) invert(1); }

/* ─── 38. WC SHOP — ARCHIVE BREADCRUMB ──────────────────────────────────── */
.woocommerce-breadcrumb {
  font-size: 12px;
  color: var(--em-muted);
  padding: 14px 0;
  margin-bottom: 0 !important;
}

.woocommerce-breadcrumb a { color: var(--em-muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--em-green); }

/* ─── 39. WC NOTICES — fix list style ───────────────────────────────────── */
.woocommerce-message::before,
.woocommerce-info::before { display: none !important; }

.woocommerce-message a.button,
.woocommerce-message .button {
  background: var(--em-green) !important;
  color: #fff !important;
  border-radius: var(--em-radius-sm) !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border: none !important;
}

/* ─── 40. MISC FIXES ────────────────────────────────────────────────────── */

/* Select2 override */
.select2-container--default .select2-selection--single {
  border: 1.5px solid var(--em-border) !important;
  border-radius: var(--em-radius-sm) !important;
  height: 44px !important;
  line-height: 42px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
  padding-left: 14px !important;
  font-family: var(--em-font) !important;
  font-size: 14px !important;
  color: var(--em-text) !important;
}

/* Forzar Poppins en todo WooCommerce */
.woocommerce, .woocommerce-page {
  font-family: var(--em-font) !important;
}

/* ─── 41. CHECKOUT RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .em-checkout-summary { position: static; }
  .em-checkout-steps { gap: 6px; }
  .em-checkout-step-label { display: none; }
}

@media (max-width: 768px) {
  .em-checkout-wrapper { padding: 20px 16px 40px; }
  .em-payment-methods { flex-wrap: wrap; }
}

/* ─── 42. CART RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .em-cart-page .em-container { padding: 20px 16px 40px; }
  .em-cart-table th.product-price,
  .em-cart-table th.product-subtotal,
  .em-cart-table td.em-cart-price,
  .em-cart-table td.em-cart-subtotal { display: none; }
}

/* ─── 43. PRODUCT SINGLE SPECS RESPONSIVE ───────────────────────────────── */
@media (max-width: 480px) {
  .em-product-specs { grid-template-columns: 1fr; }
  .em-related-list { grid-template-columns: repeat(2, 1fr); }
}
