/*
Theme Name: MercadoVerde
Theme URI: https://mercadoverde.cl
Author: MercadoVerde
Author URI: https://mercadoverde.cl
Description: Tema WordPress para tienda de abarrotes, verduras congeladas, lácteos y útiles de aseo. Diseño fresco y moderno con cursor SVG carrito, animaciones sutiles y botones interactivos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mercadoverde
Tags: e-commerce, food, grocery, woocommerce, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* === Variables Globales === */
:root {
  --mv-verde:          #1e7c3e;
  --mv-verde-oscuro:   #155a2c;
  --mv-verde-claro:    #e8f5ec;
  --mv-verde-medio:    #3aab62;
  --mv-naranja:        #f0820a;
  --mv-naranja-claro:  #fff4e6;
  --mv-crema:          #faf8f3;
  --mv-texto:          #1a2118;
  --mv-texto-suave:    #5a6b55;
  --mv-borde:          #dde8d8;
  --mv-blanco:         #ffffff;
  --mv-sombra:         0 4px 24px rgba(30,124,62,0.10);
  --mv-radio:          16px;
  --mv-radio-sm:       8px;
  --mv-font-display:   'Playfair Display', Georgia, serif;
  --mv-font-body:      'DM Sans', system-ui, sans-serif;
}

/* === Reset Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; width: 100%; }
body {
  font-family: var(--mv-font-body);
  background: var(--mv-crema);
  color: var(--mv-texto);
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  /* NO overflow-x:hidden en body — rompe position:fixed en iOS/Android */
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: none; font-family: var(--mv-font-body); }
input, select, textarea { font-family: var(--mv-font-body); }

/* Contenedor raíz que evita scroll horizontal sin romper fixed/sticky */
.site-wrapper { width: 100%; overflow-x: clip; position: relative; }

/* === Cursor personalizado === */
html, body, a, button, [role="button"], input, select, label { cursor: none !important; }

#mv-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, opacity 0.2s;
  will-change: transform;
}
#mv-cursor.hovering { transform: translate(-50%, -50%) scale(1.35); }
#mv-cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(34,100,60,0.35)); }
/* === Logo Personalizado (custom-logo) === */
.custom-logo-link { display:flex; align-items:center; flex-shrink:0; }
.custom-logo-link img { max-height:50px; width:auto; height:auto; display:block; }

/* Nav: todos los hijos respetan el ancho */
.mv-nav > * { min-width: 0; }
.mv-nav-actions { flex-shrink: 0; }



/* === Animaciones === */
@keyframes mvFloatUp   { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:translateY(0); } }
@keyframes mvLeafFloat { 0%,100%{transform:translateY(0) rotate(0deg);} 33%{transform:translateY(-18px) rotate(8deg);} 66%{transform:translateY(-8px) rotate(-5deg);} }
@keyframes mvShimmer   { from{background-position:-200% center;} to{background-position:200% center;} }
@keyframes mvPulse     { 0%,100%{box-shadow:0 0 0 0 rgba(30,124,62,0.3);} 50%{box-shadow:0 0 0 12px rgba(30,124,62,0);} }
@keyframes mvBadgePop  { 0%{transform:scale(0);} 60%{transform:scale(1.2);} 100%{transform:scale(1);} }
@keyframes mvSpin      { to{transform:rotate(360deg);} }

/* === Scroll Reveal === */
.mv-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.mv-reveal.visible { opacity: 1; transform: translateY(0); }

/* === Utilidades === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-family: var(--mv-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--mv-texto);
}
.section-title span { color: var(--mv-verde); }
.section-link {
  font-size: 14px;
  color: var(--mv-verde);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.section-link:hover { gap: 10px; }

/* === Botones === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mv-verde);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 40px;
  border: none;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  width: fit-content;
}
.btn-primary::before {
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.18),transparent);
  background-size:200% 100%;
  animation: mvShimmer 2.5s linear infinite;
}
.btn-primary:hover { background:var(--mv-verde-oscuro); transform:translateY(-3px); box-shadow:0 12px 32px rgba(30,124,62,0.35); color:#fff; }
.btn-primary:active { transform:translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mv-blanco);
  color: var(--mv-verde-oscuro);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 40px;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { transform:translateX(4px); box-shadow:0 4px 16px rgba(255,255,255,0.3); color:var(--mv-verde-oscuro); }

/* === Top Bar === */
.mv-topbar {
  background: var(--mv-verde-oscuro);
  color: #c8efce;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.02em;
  animation: mvFloatUp 0.5s ease both;
}
.mv-topbar .container { display:flex; justify-content:center; gap:0; flex-wrap:wrap; }
.mv-topbar span { margin:0 20px; }
.mv-topbar strong { color:#7fffa0; }

/* === Header / Nav === */
.mv-header {
  background: var(--mv-blanco);
  border-bottom: 1.5px solid var(--mv-borde);
  position: sticky;
  top: 0;
  z-index: 900;
  animation: mvFloatUp 0.5s 0.1s ease both;
}
.mv-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.mv-logo {
  font-family: var(--mv-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--mv-verde);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.mv-logo em { font-style:normal; color:var(--mv-verde-medio); }
.mv-search {
  display: flex;
  align-items: center;
  background: var(--mv-verde-claro);
  border: 1.5px solid var(--mv-borde);
  border-radius: 40px;
  padding: 8px 16px;
  gap: 8px;
  transition: all 0.2s;
  flex: 1;
  max-width: 280px;
}
.mv-search:focus-within { border-color:var(--mv-verde); box-shadow:0 0 0 3px rgba(30,124,62,0.12); }
.mv-search input { border:none; background:transparent; font-size:14px; color:var(--mv-texto); outline:none; width:100%; }
.mv-search input::placeholder { color:var(--mv-texto-suave); }
.mv-menu {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.mv-menu a {
  color: var(--mv-texto-suave);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--mv-radio-sm);
  transition: all 0.2s;
  position: relative;
}
.mv-menu a::after {
  content:'';
  position:absolute;
  bottom:4px; left:14px; right:14px;
  height:2px;
  background:var(--mv-verde);
  transform:scaleX(0);
  transition:transform 0.2s;
  border-radius:2px;
}
.mv-menu a:hover, .mv-menu .current-menu-item > a { color:var(--mv-verde); background:var(--mv-verde-claro); }
.mv-menu a:hover::after, .mv-menu .current-menu-item > a::after { transform:scaleX(1); }
.mv-nav-actions { display:flex; gap:8px; align-items:center; }
.mv-nav-btn {
  background: none;
  border: 1.5px solid var(--mv-borde);
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mv-texto);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  position: relative;
}
.mv-nav-btn:hover { background:var(--mv-verde-claro); border-color:var(--mv-verde); color:var(--mv-verde); transform:translateY(-1px); }
.mv-cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--mv-naranja);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mvBadgePop 0.4s ease;
}
.mv-mobile-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--mv-borde);
  border-radius: var(--mv-radio-sm);
  padding: 8px;
  font-size: 22px;
}

/* === Hero === */
.mv-hero {
  padding: 32px 0;
  animation: mvFloatUp 0.6s 0.2s ease both;
}
.mv-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}
.mv-hero-main {
  background: linear-gradient(135deg, #e8f5ec 0%, #d0efd8 60%, #b8e6c4 100%);
  border-radius: 24px;
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mv-hero-main::before {
  content:'';
  position:absolute; right:-60px; top:-60px;
  width:340px; height:340px;
  background:radial-gradient(circle,rgba(30,124,62,0.12) 0%,transparent 70%);
  border-radius:50%;
}
.mv-hero-leaf  { position:absolute; right:80px; top:30px;    font-size:120px; opacity:0.18; animation:mvLeafFloat 6s ease-in-out infinite; }
.mv-hero-leaf2 { position:absolute; right:200px; bottom:20px; font-size:60px;  opacity:0.12; animation:mvLeafFloat 8s 2s ease-in-out infinite; }
.mv-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mv-verde);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 20px;
  width: fit-content;
  animation: mvPulse 2.5s ease-in-out infinite;
}
.mv-hero-main h1 {
  font-family: var(--mv-font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--mv-verde-oscuro);
  margin-bottom: 16px;
}
.mv-hero-main h1 em { font-style:italic; color:var(--mv-verde); }
.mv-hero-sub { font-size:16px; color:var(--mv-texto-suave); margin-bottom:32px; max-width:420px; line-height:1.6; }
.mv-hero-price { font-size:13px; color:var(--mv-texto-suave); margin-bottom:8px; }
.mv-hero-price strong { font-family:var(--mv-font-display); font-size:38px; color:var(--mv-verde-oscuro); font-weight:700; }
.mv-hero-side { display:flex; flex-direction:column; gap:20px; }
.mv-hero-card {
  border-radius: 20px;
  padding: 28px 28px 28px 32px;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.mv-hero-card:hover { transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,0.12); }
.mv-hero-card-green { background:linear-gradient(135deg,#155a2c,#1e7c3e); }
.mv-hero-card-orange { background:linear-gradient(135deg,#8b2b00,#c44a00); }
.mv-hero-card .mv-discount { font-family:var(--mv-font-display); font-size:38px; font-weight:700; color:rgba(255,255,255,0.95); line-height:1; margin-bottom:4px; }
.mv-hero-card .mv-desc { font-size:14px; color:rgba(255,255,255,0.8); line-height:1.4; }
.mv-hero-card .mv-desc strong { color:#fff; display:block; font-size:16px; }
.mv-hero-card-icon { position:absolute; right:16px; top:12px; font-size:56px; opacity:0.35; }

/* === Categorías === */
.mv-cats { padding: 0 0 56px; }
.mv-cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.mv-cat-card {
  background: var(--mv-blanco);
  border-radius: 20px;
  padding: 24px 12px;
  text-align: center;
  border: 1.5px solid var(--mv-borde);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--mv-texto);
  position: relative;
  overflow: hidden;
}
.mv-cat-card::before { content:''; position:absolute; inset:0; background:var(--mv-verde-claro); opacity:0; transition:opacity 0.3s; }
.mv-cat-card:hover { border-color:var(--mv-verde); transform:translateY(-6px); box-shadow:var(--mv-sombra); }
.mv-cat-card:hover::before { opacity:1; }
.mv-cat-card:hover .mv-cat-icon { transform:scale(1.15) rotate(-5deg); }
.mv-cat-icon { font-size:44px; display:block; margin-bottom:12px; transition:transform 0.3s; position:relative; }
.mv-cat-name { font-size:13px; font-weight:600; position:relative; line-height:1.3; }
.mv-cat-count { font-size:11px; color:var(--mv-texto-suave); margin-top:4px; position:relative; }

/* === Tabs === */
.mv-tab-nav { display:flex; gap:8px; flex-wrap:wrap; }
.mv-tab-btn {
  background: var(--mv-blanco);
  border: 1.5px solid var(--mv-borde);
  border-radius: 40px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mv-texto-suave);
  transition: all 0.2s;
}
.mv-tab-btn:hover, .mv-tab-btn.active { background:var(--mv-verde); border-color:var(--mv-verde); color:#fff; box-shadow:0 4px 12px rgba(30,124,62,0.25); }

/* === Productos === */
.mv-products { padding: 0 0 56px; }
.mv-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 24px;
  transition: opacity 0.3s, transform 0.3s;
}
.mv-product-card {
  background: var(--mv-blanco);
  border-radius: 20px;
  border: 1.5px solid var(--mv-borde);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.mv-product-card:hover { border-color:var(--mv-verde-medio); transform:translateY(-6px); box-shadow:0 20px 40px rgba(30,124,62,0.12); }
.mv-product-img {
  background: var(--mv-verde-claro);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.mv-product-card:hover .mv-product-img { background:#d4efdb; }
.mv-product-emoji { transition:transform 0.4s cubic-bezier(0.34,1.56,0.64,1); display:block; }
.mv-product-card:hover .mv-product-emoji { transform:scale(1.18) translateY(-4px); }
.mv-badge {
  position:absolute; top:12px; left:12px;
  color:#fff; font-size:11px; font-weight:700;
  padding:4px 10px; border-radius:40px;
}
.mv-badge-sale   { background:var(--mv-naranja); }
.mv-badge-fresh  { background:var(--mv-verde); }
.mv-badge-frozen { background:#2563eb; }
.mv-product-hover-btns {
  position:absolute; bottom:12px; right:12px;
  display:flex; gap:8px;
  opacity:0; transform:translateY(8px);
  transition:all 0.2s;
}
.mv-product-card:hover .mv-product-hover-btns { opacity:1; transform:translateY(0); }
.mv-icon-btn {
  background:#fff; border:none;
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:16px;
  box-shadow:0 2px 8px rgba(0,0,0,0.12);
  transition:all 0.2s;
}
.mv-icon-btn:hover { transform:scale(1.1); background:var(--mv-verde-claro); }
.mv-product-body { padding:16px; }
.mv-product-cat { font-size:11px; color:var(--mv-verde); font-weight:600; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
.mv-product-name { font-size:14px; font-weight:600; margin-bottom:4px; line-height:1.3; }
.mv-product-weight { font-size:12px; color:var(--mv-texto-suave); margin-bottom:12px; }
.mv-product-footer { display:flex; align-items:center; justify-content:space-between; }
.mv-product-price { font-family:var(--mv-font-display); font-size:20px; font-weight:700; color:var(--mv-verde-oscuro); }
.mv-product-old { font-size:12px; color:var(--mv-texto-suave); text-decoration:line-through; margin-left:4px; }
.mv-add-btn {
  background: var(--mv-verde);
  color: #fff;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  line-height: 1;
}
.mv-add-btn:hover { background:var(--mv-verde-oscuro); transform:scale(1.1) rotate(90deg); box-shadow:0 4px 14px rgba(30,124,62,0.4); }
.mv-add-btn:active { transform:scale(0.95); }

/* === Promo Banner === */
.mv-promo { padding:0 0 56px; }
.mv-promo-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.mv-promo-card {
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.mv-promo-card:hover { transform:translateY(-4px); box-shadow:0 20px 50px rgba(0,0,0,0.15); }
.mv-promo-green  { background:linear-gradient(135deg,#1e7c3e 0%,#3aab62 100%); }
.mv-promo-dark   { background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%); }
.mv-promo-card h3 { font-family:var(--mv-font-display); font-size:28px; font-weight:700; color:#fff; margin-bottom:8px; line-height:1.2; }
.mv-promo-card p  { color:rgba(255,255,255,0.75); font-size:14px; margin-bottom:20px; }
.mv-promo-icon {
  position:absolute; right:32px; top:50%; transform:translateY(-50%);
  font-size:88px; opacity:0.25; transition:opacity 0.3s, transform 0.3s;
}
.mv-promo-card:hover .mv-promo-icon { opacity:0.42; transform:translateY(-50%) scale(1.1); }

/* === Features === */
.mv-features { background:var(--mv-verde-oscuro); padding:48px 0; margin-bottom:56px; }
.mv-features-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
.mv-feature {
  text-align: center;
  color: #fff;
  padding: 8px;
  transition: transform 0.3s;
}
.mv-feature:hover { transform:translateY(-4px); }
.mv-feature-icon { font-size:36px; margin-bottom:12px; display:block; }
.mv-feature h4 { font-size:16px; font-weight:600; margin-bottom:6px; }
.mv-feature p  { font-size:13px; color:rgba(255,255,255,0.65); line-height:1.5; }

/* === Deal del Mes === */
.mv-deal { padding:0 0 56px; }
.mv-deal-wrap {
  background: var(--mv-blanco);
  border-radius: 28px;
  border: 1.5px solid var(--mv-borde);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.mv-deal-info { padding:56px; }
.mv-deal-tag {
  display:inline-block;
  background:var(--mv-naranja-claro);
  color:var(--mv-naranja);
  font-size:12px; font-weight:700;
  padding:6px 16px; border-radius:40px;
  margin-bottom:20px;
  text-transform:uppercase; letter-spacing:0.06em;
}
.mv-deal-info h2 { font-family:var(--mv-font-display); font-size:40px; font-weight:700; margin-bottom:16px; line-height:1.1; }
.mv-deal-info p  { color:var(--mv-texto-suave); font-size:15px; line-height:1.7; margin-bottom:28px; }
.mv-countdown { display:flex; gap:16px; margin-bottom:32px; }
.mv-count-block {
  background: var(--mv-verde-claro);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  min-width: 64px;
  border: 1.5px solid var(--mv-borde);
}
.mv-count-num { font-family:var(--mv-font-display); font-size:28px; font-weight:700; color:var(--mv-verde); display:block; line-height:1; }
.mv-count-label { font-size:10px; color:var(--mv-texto-suave); text-transform:uppercase; letter-spacing:0.08em; font-weight:600; }
.mv-deal-price-row { display:flex; align-items:center; gap:16px; margin-bottom:24px; flex-wrap:wrap; }
.mv-deal-price { font-family:var(--mv-font-display); font-size:48px; font-weight:700; color:var(--mv-verde-oscuro); }
.mv-deal-old   { font-size:20px; color:var(--mv-texto-suave); text-decoration:line-through; }
.mv-deal-save  { background:var(--mv-naranja); color:#fff; font-size:12px; font-weight:700; padding:6px 12px; border-radius:40px; }
.mv-deal-img {
  background: linear-gradient(135deg,#e8f5ec,#c8eacf);
  display: flex; align-items: center; justify-content: center;
  font-size: 160px;
  position: relative; overflow: hidden;
}
.mv-deal-img-emoji { animation:mvLeafFloat 4s ease-in-out infinite; filter:drop-shadow(0 20px 40px rgba(30,124,62,0.2)); }

/* === Newsletter === */
.mv-newsletter { padding:0 0 56px; }
.mv-newsletter-inner {
  background: linear-gradient(135deg,#e8f5ec 0%,#d0efd8 100%);
  border-radius: 28px;
  padding: 56px;
  text-align: center;
  border: 1.5px solid var(--mv-borde);
  position: relative;
  overflow: hidden;
}
.mv-newsletter-inner::before { content:'🌿'; position:absolute; left:40px; top:50%; transform:translateY(-50%); font-size:80px; opacity:0.2; }
.mv-newsletter-inner::after  { content:'🥦'; position:absolute; right:40px; top:50%; transform:translateY(-50%); font-size:80px; opacity:0.2; }
.mv-newsletter h3 { font-family:var(--mv-font-display); font-size:32px; font-weight:700; color:var(--mv-verde-oscuro); margin-bottom:12px; }
.mv-newsletter p  { color:var(--mv-texto-suave); font-size:15px; margin-bottom:28px; }
.mv-newsletter-form { display:flex; gap:12px; max-width:480px; margin:0 auto; }
.mv-newsletter-form input {
  flex:1; background:#fff;
  border:1.5px solid var(--mv-borde); border-radius:40px;
  padding:14px 22px; font-size:14px; outline:none; transition:all 0.2s;
}
.mv-newsletter-form input:focus { border-color:var(--mv-verde); box-shadow:0 0 0 3px rgba(30,124,62,0.12); }

/* === Footer === */
.mv-footer { background:var(--mv-verde-oscuro); color:rgba(255,255,255,0.7); padding:56px 0 24px; }
.mv-footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.mv-footer-logo { font-family:var(--mv-font-display); font-size:24px; font-weight:700; color:#7fffa0; display:flex; align-items:center; gap:8px; margin-bottom:16px; text-decoration:none; }
.mv-footer-brand p { font-size:14px; line-height:1.7; max-width:260px; }
.mv-footer-col h5 { color:#fff; font-size:14px; font-weight:600; margin-bottom:16px; text-transform:uppercase; letter-spacing:0.06em; }
.mv-footer-col ul li { margin-bottom:10px; }
.mv-footer-col ul li a { color:rgba(255,255,255,0.65); font-size:14px; transition:color 0.2s, padding-left 0.2s; display:inline-block; }
.mv-footer-col ul li a:hover { color:#7fffa0; padding-left:4px; }
.mv-footer-bottom {
  border-top:1px solid rgba(255,255,255,0.12);
  padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:13px; color:rgba(255,255,255,0.4);
}
.mv-footer-apps { display:flex; gap:10px; margin-top:20px; }
.mv-footer-app-btn {
  background:none; border:1.5px solid rgba(255,255,255,0.2);
  border-radius:40px; padding:7px 14px;
  font-size:12px; font-weight:500; color:rgba(255,255,255,0.7);
  display:flex; align-items:center; gap:6px;
  transition:all 0.2s;
}
.mv-footer-app-btn:hover { border-color:rgba(255,255,255,0.5); color:#fff; }

/* === Toast === */
#mv-toast {
  position:fixed; bottom:24px; right:24px;
  background:var(--mv-verde); color:#fff;
  padding:14px 22px; border-radius:14px;
  font-size:14px; font-weight:500;
  display:flex; align-items:center; gap:10px;
  z-index:9999;
  transform:translateY(100px); opacity:0;
  transition:all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:0 8px 32px rgba(30,124,62,0.35);
}
#mv-toast.show { transform:translateY(0); opacity:1; }

/* === WooCommerce básico === */
.woocommerce-message,
.woocommerce-info { background:var(--mv-verde-claro); border-left:4px solid var(--mv-verde); padding:16px 20px; border-radius:var(--mv-radio-sm); margin-bottom:20px; color:var(--mv-texto); }
.woocommerce-error { background:#fef2f2; border-left:4px solid #ef4444; padding:16px 20px; border-radius:var(--mv-radio-sm); margin-bottom:20px; }
.woocommerce ul.products { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr)); gap:16px; list-style:none; width:100%; }
.woocommerce ul.products li.product { background:var(--mv-blanco); border-radius:20px; border:1.5px solid var(--mv-borde); overflow:hidden; transition:all 0.3s; }
.woocommerce ul.products li.product:hover { transform:translateY(-6px); box-shadow:var(--mv-sombra); }
.woocommerce ul.products li.product a img { width:100%; height:200px; object-fit:cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:15px; font-weight:600; padding:16px 16px 8px; }
.woocommerce ul.products li.product .price { padding:0 16px 16px; font-family:var(--mv-font-display); font-size:20px; font-weight:700; color:var(--mv-verde-oscuro); display:block; }
.woocommerce ul.products li.product .button { background:var(--mv-verde); color:#fff; border:none; padding:10px 20px; border-radius:40px; font-size:13px; font-weight:600; display:block; margin:0 16px 16px; text-align:center; transition:all 0.2s; }
.woocommerce ul.products li.product .button:hover { background:var(--mv-verde-oscuro); }

/* ============================================================
   RESPONSIVE — Correcciones móvil completas
   ============================================================ */

/* ── Base móvil: ningún elemento desborda ── */
* { max-width: 100%; }
img, video, iframe, svg { max-width: 100%; }

/* Secciones con ancho controlado */
.mv-topbar, .mv-header, .mv-hero, .mv-cats,
.mv-products, .mv-promo, .mv-features,
.mv-deal, .mv-newsletter, .mv-footer,
.mv-woo-page, main { width: 100%; }

/* ── Container siempre dentro del viewport ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

/* ── Tablet 1024px ── */
@media (max-width: 1024px) {
  .mv-cats-grid       { grid-template-columns: repeat(3, 1fr); }
  .mv-products-grid   { grid-template-columns: repeat(3, 1fr); }
  .mv-features-grid   { grid-template-columns: repeat(2, 1fr); }
  .mv-footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mv-hero-grid       { grid-template-columns: 1fr 280px; }
  .mv-promo-grid      { grid-template-columns: 1fr 1fr; }
  .mv-deal-wrap       { grid-template-columns: 1fr 1fr; }
}

/* ── Móvil 768px ── */
@media (max-width: 768px) {

  /* NAV */
  .mv-header { position: sticky; top: 0; z-index: 900; width: 100%; }
  .mv-nav {
    height: auto;
    min-height: 58px;
    padding: 10px 0;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    width: 100%;
  }
  .mv-logo { font-size: 17px; gap: 5px; flex-shrink: 0; min-width: 0; white-space: nowrap; }
  .mv-logo em { display: none; }
  .mv-menu { display: none !important; }

  /* Buscador colapsa a ícono */
  .mv-search {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    padding: 8px;
    overflow: hidden;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  .mv-search:focus-within {
    flex: 1 1 auto;
    max-width: 200px;
    border-radius: 40px;
    padding: 8px 14px;
  }
  .mv-search input { display: none; width: 0; }
  .mv-search:focus-within input { display: block; width: 100%; }

  /* Acciones nav */
  .mv-nav-actions { gap: 6px; flex-shrink: 0; }
  .mv-nav-btn { padding: 7px 10px; font-size: 0; gap: 0; }
  .mv-nav-btn svg { width: 18px; height: 18px; }
  .mv-nav-btn span:not(.mv-cart-badge) { display: none; }
  .mv-cart-badge { font-size: 9px; width: 16px; height: 16px; }
  .mv-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    padding: 0;
    font-size: 20px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  /* Topbar */
  .mv-topbar { font-size: 11px; padding: 5px 0; }
  .mv-topbar .container { flex-direction: column; gap: 1px; text-align: center; }
  .mv-topbar span { margin: 0; }

  /* Hero — columna única, ancho completo */
  .mv-hero { padding: 16px 0 0; }
  .mv-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    width: 100%;
  }
  .mv-hero-main {
    padding: 28px 20px 32px;
    min-height: auto;
    border-radius: 18px;
    width: 100%;
  }
  .mv-hero-main h1 { font-size: 28px; line-height: 1.2; }
  .mv-hero-sub { font-size: 14px; margin-bottom: 18px; max-width: 100%; }
  .mv-hero-price strong { font-size: 28px; }
  .mv-hero-leaf  { font-size: 70px; right: 8px; top: 8px; opacity: 0.12; }
  .mv-hero-leaf2 { display: none; }

  .mv-hero-side { flex-direction: row; gap: 10px; width: 100%; }
  .mv-hero-card {
    padding: 18px 14px;
    min-height: 120px;
    border-radius: 14px;
    flex: 1;
  }
  .mv-hero-card .mv-discount { font-size: 26px; }
  .mv-hero-card .mv-desc    { font-size: 11px; }
  .mv-hero-card-icon        { font-size: 36px; right: 10px; top: 10px; }

  /* Categorías */
  .mv-cats { padding: 0 0 32px; }
  .mv-cats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .mv-cat-card { padding: 14px 8px; border-radius: 14px; }
  .mv-cat-icon { font-size: 30px; margin-bottom: 6px; }
  .mv-cat-name { font-size: 11px; }
  .mv-cat-count { font-size: 10px; }

  /* Productos */
  .mv-products { padding: 0 0 32px; }
  .mv-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    width: 100%;
  }
  .mv-product-img { height: 140px; font-size: 58px; }
  .mv-product-body { padding: 12px 10px; }
  .mv-product-name { font-size: 13px; }
  .mv-product-price { font-size: 16px; }
  .mv-add-btn { width: 30px; height: 30px; font-size: 18px; }

  /* WooCommerce grid */
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    width: 100%;
  }
  .woocommerce ul.products li.product a img { height: 160px; }

  /* Promo */
  .mv-promo { padding: 0 0 32px; }
  .mv-promo-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .mv-promo-card { padding: 26px 20px; border-radius: 16px; }
  .mv-promo-card h3 { font-size: 20px; }
  .mv-promo-icon { font-size: 56px; right: 14px; }

  /* Features */
  .mv-features { padding: 28px 0; margin-bottom: 32px; }
  .mv-features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mv-feature-icon { font-size: 28px; }
  .mv-feature h4 { font-size: 13px; }
  .mv-feature p  { font-size: 12px; }

  /* Deal */
  .mv-deal { padding: 0 0 32px; }
  .mv-deal-wrap { grid-template-columns: 1fr !important; border-radius: 18px; }
  .mv-deal-info { padding: 26px 20px; }
  .mv-deal-info h2 { font-size: 24px; }
  .mv-deal-price { font-size: 32px; }
  .mv-deal-old   { font-size: 16px; }
  .mv-deal-img   { height: 180px; font-size: 90px; }
  .mv-countdown  { gap: 10px; }
  .mv-count-block { padding: 10px 12px; min-width: 52px; }
  .mv-count-num   { font-size: 20px; }

  /* Newsletter */
  .mv-newsletter { padding: 0 0 32px; }
  .mv-newsletter-inner {
    padding: 28px 18px;
    border-radius: 18px;
  }
  .mv-newsletter-inner::before,
  .mv-newsletter-inner::after { display: none; }
  .mv-newsletter h3 { font-size: 20px; }
  .mv-newsletter-form { flex-direction: column; gap: 10px; max-width: 100%; }

  /* Footer */
  .mv-footer { padding: 36px 0 16px; }
  .mv-footer-grid { grid-template-columns: 1fr !important; gap: 24px; margin-bottom: 28px; }
  .mv-footer-brand p { max-width: 100%; }
  .mv-footer-bottom { flex-direction: column; gap: 6px; font-size: 12px; }
  .mv-footer-apps { flex-wrap: wrap; gap: 8px; }

  /* Misc */
  .mv-tab-nav { gap: 6px; }
  .mv-tab-btn { padding: 7px 14px; font-size: 12px; }
  .section-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .section-title { font-size: 22px; }
  .btn-primary { font-size: 14px; padding: 12px 22px; }

  /* WooCommerce página producto */
  .woocommerce div.product { width: 100%; }
  .woocommerce div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; }
  .woocommerce div.product .summary { width: 100% !important; float: none !important; clear: both; }
  .woocommerce-page .mv-woo-wrapper { flex-direction: column; }
  .mv-woo-page > .container > div { grid-template-columns: 1fr !important; }
}

/* ── Móvil 480px ── */
@media (max-width: 480px) {
  .mv-logo { font-size: 14px; }
  .mv-hero-main { padding: 22px 16px 26px; }
  .mv-hero-main h1 { font-size: 24px; }
  .mv-hero-side { flex-direction: column; }
  .mv-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mv-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .mv-deal-price-row { flex-direction: column; gap: 6px; align-items: flex-start; }
  .mv-features-grid { grid-template-columns: 1fr; }
  .mv-feature { display: flex; align-items: center; gap: 14px; text-align: left; }
  .mv-feature-icon { margin-bottom: 0; flex-shrink: 0; }
}

/* ── Móvil muy pequeño 360px ── */
@media (max-width: 360px) {
  .mv-logo { font-size: 12px; }
  .mv-hero-main h1 { font-size: 20px; }
  .btn-primary { font-size: 13px; padding: 10px 18px; }
  .mv-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-products-grid { grid-template-columns: 1fr !important; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
}
