/* LMM Bakery v1.2.0 */

/* ===== La Matancera Market – Bakery Page v1.1.0 (rediseño) ===== */
:root{
  --lmm-cream:#f5efe4;
  --lmm-cream-2:#efe6d6;
  --lmm-ink:#0b1b2b;
  --lmm-muted:#556070;
  --lmm-card:#ffffff;
  --lmm-border: rgba(15,23,42,0.10);
  --lmm-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --lmm-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  --lmm-radius: 20px;
}

.lmm-bakery-wrap{
  background: var(--lmm-cream);
  position: relative;
}

/* Contenedor */
.lmm-container{
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

/* HERO */
.lmm-bakery-hero{
  position: relative;
  min-height: 620px;
  display:flex;
  align-items:flex-end;
  background-size: cover;
  background-position: center;
  background-color: #0b1b2b;
  overflow:hidden;
}
.lmm-bakery-hero__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(1000px 420px at 20% 70%, rgba(0,0,0,0.20), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.70) 100%);
}
.lmm-bakery-hero__inner{
  position:relative;
  padding: 84px 0 56px;
}
.lmm-bakery-hero__content{ max-width: 760px; }
.lmm-bakery-hero h1{
  margin:0 0 12px; color:#fff;
  font-size: clamp(34px, 3.3vw, 54px);
  line-height:1.08; letter-spacing:-0.03em;
  text-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.lmm-bakery-hero p{
  margin:0 0 22px;
  color: rgba(255,255,255,0.92);
  font-size: clamp(15px, 1.4vw, 19px);
  max-width: 58ch;
}
.lmm-bakery-hero__actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* Botones */
.lmm-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:700;
  border:1px solid transparent;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.lmm-btn--primary{
  background:#ffffff;
  color: var(--lmm-ink);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.lmm-btn--ghost{
  background: rgba(255,255,255,0.12);
  color:#fff;
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
}
.lmm-btn:hover{ transform: translateY(-1px); }
.lmm-btn:active{ transform: translateY(1px); }

/* CARDS – “quick navigation” */
.lmm-bakery-cards{
  padding: 22px 0 8px;
  background: var(--lmm-cream);
  position: relative;
  margin-top: -26px;
}
.lmm-card-grid{
  display:grid;
  grid-template-columns: repeat(var(--lmm-card-cols, 3), minmax(0, 1fr));
  gap: 14px;
}
.lmm-card{
  display:flex; align-items:stretch; gap: 12px;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--lmm-border);
  text-decoration:none; color: inherit;
  background: var(--lmm-card);
  box-shadow: var(--lmm-shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lmm-card__icon{
  width: 42px; height: 42px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: #f3f6fa; color: var(--lmm-ink);
  flex: 0 0 auto;
}
.lmm-card__body h3{ margin:0 0 4px; font-size: 16px; letter-spacing:-0.01em; }
.lmm-card__body p{
  margin:0; color: var(--lmm-muted);
  font-size: 13px; line-height: 1.35;
}
.lmm-card__arrow{ margin-left:auto; display:flex; align-items:center; color: var(--lmm-ink); opacity:.7; }
.lmm-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--lmm-shadow);
  border-color: rgba(15,23,42,0.16);
}

/* PRODUCTS */
.lmm-bakery-products{
  padding: 26px 0 44px;
  background: var(--lmm-cream);
}
.lmm-section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 12px; margin-bottom: 10px;
}
.lmm-section-head--center{
  flex-direction: column;
  align-items:flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
.lmm-section-head h2{
  margin:0;
  font-size: 26px;
  letter-spacing:-0.03em;
  color: var(--lmm-ink);
}
.lmm-link{
  text-decoration:none; font-weight:700;
  color: var(--lmm-ink);
  opacity:.85;
}
.lmm-link:hover{ opacity:1; }

.lmm-subhead{
  margin: 8px 0 10px;
  color: var(--lmm-muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Chips */
.lmm-chips{ display:flex; flex-wrap:wrap; gap:10px; margin: 10px 0 18px; }
.lmm-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 12px; border-radius: 999px;
  border: 1px solid var(--lmm-border);
  background: #fff;
  text-decoration:none; color: var(--lmm-ink);
  font-weight:700; font-size: 13px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.lmm-chip:hover{ background:#f7fafc; transform: translateY(-1px); border-color: rgba(15,23,42,0.16); }
.lmm-chip .lmm-ico{ opacity:.9; }

/* WooCommerce grid polish (soft) */
.lmm-wc-wrap{
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--lmm-border);
  border-radius: var(--lmm-radius);
  padding: 14px 14px 6px;
  box-shadow: var(--lmm-shadow-soft);
}
.lmm-wc-wrap .products{ margin-top: 6px !important; }

/* WHY / FEATURES */
.lmm-bakery-why{
  padding: 34px 0 36px;
  background: var(--lmm-cream);
}
.lmm-lead{
  margin: 0;
  color: var(--lmm-muted);
  font-size: 15px;
  max-width: 70ch;
}
.lmm-features{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lmm-feature{
  background: #fff;
  border: 1px solid var(--lmm-border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--lmm-shadow-soft);
  display:flex; gap: 12px; align-items:flex-start;
}
.lmm-feature__icon{
  width: 40px; height: 40px;
  border-radius: 14px;
  background: #f3f6fa;
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
  flex: 0 0 auto;
}
.lmm-feature__text h3{
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--lmm-ink);
  letter-spacing:-0.01em;
}
.lmm-feature__text p{
  margin: 0;
  color: var(--lmm-muted);
  font-size: 13px;
  line-height: 1.35;
}

/* CTA */
.lmm-bakery-cta{ padding: 0 0 56px; background: var(--lmm-cream); }
.lmm-cta-box{
  display:flex; align-items:center; justify-content:space-between; gap: 18px;
  padding: 18px 18px;
  border-radius: 22px;
  border: 1px solid var(--lmm-border);
  background:
    radial-gradient(600px 240px at 10% 30%, rgba(11,27,43,0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: var(--lmm-shadow);
}
.lmm-cta-box h3{ margin:0 0 4px; font-size: 19px; letter-spacing:-0.01em; color: var(--lmm-ink); }
.lmm-cta-box p{ margin:0; color: var(--lmm-muted); font-size: 13px; }
.lmm-cta-actions{ display:flex; gap: 10px; flex-wrap:wrap; justify-content:flex-end; }

/* Responsive */
@media (max-width: 1024px){
  .lmm-features{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .lmm-card-grid{ grid-template-columns: 1fr; }
  .lmm-bakery-hero{ min-height: 480px; }
  .lmm-cta-box{ flex-direction: column; align-items: flex-start; }
  .lmm-cta-actions{ justify-content:flex-start; }
}
@media (max-width: 520px){
  .lmm-container{ width: calc(100% - 24px); }
  .lmm-wc-wrap{ padding: 12px 12px 4px; }
}

.lmm-empty-products{margin:10px 4px 6px;padding:12px 14px;border-radius:14px;border:1px dashed rgba(15,23,42,0.18);background:rgba(255,255,255,0.65);color:var(--lmm-muted);}
.lmm-empty-products strong{color:var(--lmm-ink);} 

.lmm-cta-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.lmm-cta-badges span{
  font-size:12px;font-weight:700;
  padding:6px 10px;border-radius:999px;
  background:rgba(11,27,43,0.06);
  border:1px solid rgba(15,23,42,0.10);
  color:var(--lmm-ink);
}
/* Separadores sutiles */
.lmm-bakery-products{position:relative}
.lmm-bakery-products:before{
  content:""; position:absolute; left:0; right:0; top:0;
  height:1px; background:rgba(15,23,42,0.08);
}
.lmm-bakery-why:before{
  content:""; display:block; height:1px; background:rgba(15,23,42,0.08);
  margin-bottom:22px;
}


/* ===== WooCommerce grid (solo dentro de Bakery) ===== */
/* Objetivo: que SIEMPRE sea una cuadrícula normal (2–4 columnas), sin cards gigantes ni columna estrecha. */
.lmm-wc-wrap{
  width: 100% !important;
}

.lmm-wc-wrap ul.products,
.lmm-wc-wrap ul.products.products,
.lmm-wc-wrap .woocommerce ul.products{
  width: 100% !important;
  max-width: 220px !important;
  float: none !important;

  display: grid !important;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  gap: 22px !important;
  justify-content: start !important;
  align-items: start !important;
  justify-items: start !important;

  margin: 0 !important;
  padding: 0 !important;
}

.lmm-wc-wrap ul.products::before,
.lmm-wc-wrap ul.products::after{
  content: none !important; /* neutraliza clearfixs raros del tema */
}

/* Neutraliza reglas del tema (floats/flex/widths) */
.lmm-wc-wrap ul.products li.product,
.lmm-wc-wrap .woocommerce ul.products li.product{
  float: none !important;
  width: auto !important;
  max-width: 220px !important;
  clear: none !important;

  margin: 0 !important;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.lmm-wc-wrap ul.products li.product:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.12);
}

.lmm-wc-wrap ul.products li.product img{
  width: 100% !important;
  height: 130px !important;
  object-fit: cover !important;
  border-radius: 12px;
}

/* Botones WooCommerce dentro del bloque bakery */
.lmm-wc-wrap .button,
.lmm-wc-wrap a.button,
.lmm-wc-wrap button.button,
.lmm-wc-wrap input.button{
  background: var(--lmm-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-weight: 800 !important;
  border: 1px solid rgba(0,0,0,0) !important;
}

.lmm-wc-wrap .button:hover,
.lmm-wc-wrap a.button:hover,
.lmm-wc-wrap button.button:hover,
.lmm-wc-wrap input.button:hover{
  opacity: .92;
}



@media (max-width: 640px){
  .lmm-wc-wrap ul.products,
  .lmm-wc-wrap ul.products.products,
  .lmm-wc-wrap .woocommerce ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .lmm-wc-wrap ul.products li.product{
    max-width: none !important;
  }
  .lmm-wc-wrap ul.products li.product img{
    height: 120px !important;
  }
}

/* WC responsive sizing */
@media (min-width: 980px){
  .lmm-wc-wrap ul.products,
  .lmm-wc-wrap ul.products.products,
  .lmm-wc-wrap .woocommerce ul.products{
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  }
}
@media (min-width: 1200px){
  .lmm-wc-wrap ul.products,
  .lmm-wc-wrap ul.products.products,
  .lmm-wc-wrap .woocommerce ul.products{
    grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  }
}

/* Tipografía más compacta dentro de las cards */
.lmm-wc-wrap ul.products li.product .woocommerce-loop-product__title{
  font-size: 16px !important;
  line-height: 1.2 !important;
  margin: 8px 0 6px !important;
}
.lmm-wc-wrap ul.products li.product .price{
  font-size: 14px !important;
  margin: 0 0 10px !important;
}
.lmm-wc-wrap .button,
.lmm-wc-wrap a.button{
  padding: 8px 14px !important;
  font-size: 14px !important;
}



/* ===== Ajuste inteligente del panel de productos ===== */
/* Objetivo: el panel se agranda/achica según la cantidad de productos, pero sin estirarse a toda la pantalla.
   - 1 producto: ancho de 1 card
   - 2 productos: ancho de 2 cards
   - 3 productos: ancho de 3 cards
   - 4+ productos: máximo 4 cards por fila (el panel no sigue creciendo infinito)
*/
.lmm-bakery-products{
  --lmm-card-w: 220px;
  --lmm-card-gap: 22px;
  --lmm-max-cols: 4;
}

/* El panel blanco: shrink-wrap pero con límite por columnas */
.lmm-bakery-products .lmm-products-shell,
.lmm-bakery-products .lmm-products-panel,
.lmm-bakery-products .lmm-products-box{
  display: inline-block;
  width: fit-content;
  max-width: calc((var(--lmm-card-w) * var(--lmm-max-cols)) + (var(--lmm-card-gap) * (var(--lmm-max-cols) - 1)));
}

/* El grid: columnas fijas (no 1fr), así el ancho real depende del # de productos */
.lmm-bakery-products .lmm-wc-wrap ul.products,
.lmm-bakery-products .lmm-wc-wrap ul.products.products,
.lmm-bakery-products .lmm-wc-wrap .woocommerce ul.products{
  grid-template-columns: repeat(auto-fit, var(--lmm-card-w)) !important;
  gap: var(--lmm-card-gap) !important;
  width: max-content !important;   /* mide exactamente lo que ocupa el contenido */
  max-width: 100% !important;      /* pero nunca se sale del panel */
}

/* Alineación en la columna derecha */
.lmm-bakery-products .lmm-products-right{
  display: flex;
  justify-content: flex-start;
}

/* Breakpoints: baja el máximo de columnas en pantallas más pequeñas */
@media (max-width: 1100px){
  .lmm-bakery-products{ --lmm-max-cols: 3; }
}
@media (max-width: 820px){
  .lmm-bakery-products{ --lmm-max-cols: 2; }
  .lmm-bakery-products .lmm-products-shell,
  .lmm-bakery-products .lmm-products-panel,
  .lmm-bakery-products .lmm-products-box{
    max-width: 100%;
  }
  .lmm-bakery-products .lmm-wc-wrap ul.products,
  .lmm-bakery-products .lmm-wc-wrap ul.products.products,
  .lmm-bakery-products .lmm-wc-wrap .woocommerce ul.products{
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}




/* ===== Panel width dinámico según cantidad de productos (JS setea --lmm-cols) ===== */
.lmm-bakery-products{
  --lmm-card-w: 220px;
  --lmm-card-gap: 22px;
  --lmm-max-cols: 4;
  --lmm-cols: 3; /* default */
}

/* El panel ahora se calcula EXACTO al # de columnas visibles */
.lmm-bakery-products .lmm-products-shell,
.lmm-bakery-products .lmm-products-panel,
.lmm-bakery-products .lmm-products-box{
  display: inline-block;
  width: fit-content;
  max-width: calc((var(--lmm-card-w) * var(--lmm-cols)) + (var(--lmm-card-gap) * (var(--lmm-cols) - 1)));
}

/* El grid usa columnas fijas y su ancho es el del contenido */
.lmm-bakery-products .lmm-wc-wrap ul.products,
.lmm-bakery-products .lmm-wc-wrap ul.products.products,
.lmm-bakery-products .lmm-wc-wrap .woocommerce ul.products{
  grid-template-columns: repeat(var(--lmm-cols), var(--lmm-card-w)) !important;
  gap: var(--lmm-card-gap) !important;
  width: max-content !important;
}

/* En pantallas pequeñas, 2 columnas fluidas */
@media (max-width: 820px){
  .lmm-bakery-products{ --lmm-cols: 2; }
  .lmm-bakery-products .lmm-products-shell,
  .lmm-bakery-products .lmm-products-panel,
  .lmm-bakery-products .lmm-products-box{
    max-width: 100%;
  }
  .lmm-bakery-products .lmm-wc-wrap ul.products,
  .lmm-bakery-products .lmm-wc-wrap ul.products.products,
  .lmm-bakery-products .lmm-wc-wrap .woocommerce ul.products{
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* ===== Ajuste solicitado: mostrar SOLO las cards (sin panel gigante) ===== */
.lmm-bakery-products .lmm-wc-wrap{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Grid de productos: máximo 4 por fila */
.lmm-bakery-products .lmm-wc-wrap ul.products,
.lmm-bakery-products .lmm-wc-wrap ul.products.products,
.lmm-bakery-products .lmm-wc-wrap .woocommerce ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 22px !important;
}

/* Responsive */
@media (max-width: 1100px){
  .lmm-bakery-products .lmm-wc-wrap ul.products,
  .lmm-bakery-products .lmm-wc-wrap ul.products.products,
  .lmm-bakery-products .lmm-wc-wrap .woocommerce ul.products{
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  }
}
@media (max-width: 820px){
  .lmm-bakery-products .lmm-wc-wrap ul.products,
  .lmm-bakery-products .lmm-wc-wrap ul.products.products,
  .lmm-bakery-products .lmm-wc-wrap .woocommerce ul.products{
    grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
  }
}
@media (max-width: 520px){
  .lmm-bakery-products .lmm-wc-wrap ul.products,
  .lmm-bakery-products .lmm-wc-wrap ul.products.products,
  .lmm-bakery-products .lmm-wc-wrap .woocommerce ul.products{
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}


/* ===== Bakery catalog header / quick filters ===== */
.lmm-bakery-catalog-head{
  margin: 10px 0 24px;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #faf8f2 100%);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}
.lmm-bakery-catalog-head__top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
}
.lmm-bakery-catalog-head h1{
  margin:0 0 6px;
  color: var(--lmm-ink);
  font-size: clamp(30px, 3vw, 42px);
  line-height:1.05;
  letter-spacing:-0.03em;
}
.lmm-bakery-catalog-head p{
  margin:0;
  color:#556070;
  font-size:15px;
}
.lmm-bakery-catalog-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.lmm-bakery-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  color: var(--lmm-ink);
  background:#fff;
  border:1px solid rgba(15,23,42,0.10);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.lmm-bakery-chip:hover{
  transform: translateY(-1px);
  background:#f7fafc;
  border-color: rgba(15,23,42,0.18);
}
.lmm-bakery-chip.is-active{
  background: var(--lmm-ink);
  color:#fff;
  border-color: var(--lmm-ink);
}

@media (max-width: 700px){
  .lmm-bakery-catalog-head{
    padding:18px 16px;
    border-radius:18px;
  }
  .lmm-bakery-catalog-head h1{
    font-size:30px;
  }
}


/* ===== Catalog Bakery page polish ===== */
body.lmm-bakery-catalog-page{
  background: #f5efe4 !important;
}
body.lmm-bakery-catalog-page .site,
body.lmm-bakery-catalog-page .site-content,
body.lmm-bakery-catalog-page .content-area,
body.lmm-bakery-catalog-page .site-main,
body.lmm-bakery-catalog-page .woocommerce{
  background: #f5efe4 !important;
}

body.lmm-bakery-catalog-page .woocommerce-breadcrumb{
  margin-bottom: 18px !important;
  color: #6b7280 !important;
}
body.lmm-bakery-catalog-page .woocommerce-products-header{
  margin-bottom: 18px !important;
}
body.lmm-bakery-catalog-page .woocommerce-products-header__title.page-title{
  font-size: clamp(40px, 5vw, 64px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 10px !important;
}

body.lmm-bakery-catalog-page .woocommerce-result-count,
body.lmm-bakery-catalog-page .woocommerce-ordering{
  margin-bottom: 22px !important;
}

body.lmm-bakery-catalog-page ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 0 !important;
}
@media (max-width: 1100px){
  body.lmm-bakery-catalog-page ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 780px){
  body.lmm-bakery-catalog-page ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px){
  body.lmm-bakery-catalog-page ul.products{
    grid-template-columns: 1fr !important;
  }
}

body.lmm-bakery-catalog-page ul.products li.product{
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
body.lmm-bakery-catalog-page ul.products li.product:hover{
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 28px rgba(15,23,42,0.08) !important;
}

body.lmm-bakery-catalog-page ul.products li.product a img{
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
@media (max-width: 780px){
  body.lmm-bakery-catalog-page ul.products li.product a img{
    height: 180px !important;
  }
}

body.lmm-bakery-catalog-page ul.products li.product .woocommerce-loop-category__title,
body.lmm-bakery-catalog-page ul.products li.product .woocommerce-loop-product__title{
  padding: 14px 16px 6px !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  color: #0b1b2b !important;
}
body.lmm-bakery-catalog-page ul.products li.product .price{
  padding: 0 16px 12px !important;
  margin: 0 !important;
  font-size: 15px !important;
  color: #52627a !important;
  font-weight: 700 !important;
}

body.lmm-bakery-catalog-page ul.products li.product .ast-on-card-button{
  transform: scale(.78) !important;
  transform-origin: top right !important;
}
body.lmm-bakery-catalog-page ul.products li.product .ast-onsale-card{
  transform: scale(.78) !important;
  transform-origin: top left !important;
}

body.lmm-bakery-catalog-page ul.products li.product .button,
body.lmm-bakery-catalog-page ul.products li.product a.button{
  margin: 0 16px 16px !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0b1b2b !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border: 0 !important;
}

body.lmm-bakery-catalog-page .site-main{
  padding-bottom: 42px !important;
}


/* ===== Force Bakery catalog background ===== */
html body.lmm-bakery-catalog-page,
html body.lmm-bakery-catalog-page #page,
html body.lmm-bakery-catalog-page .site,
html body.lmm-bakery-catalog-page .site-content,
html body.lmm-bakery-catalog-page .content-area,
html body.lmm-bakery-catalog-page .site-main,
html body.lmm-bakery-catalog-page .woocommerce,
html body.lmm-bakery-catalog-page .ast-container,
html body.lmm-bakery-catalog-page .woocommerce-page,
html body.lmm-bakery-catalog-page .entry-content{
  background: #f5efe4 !important;
}

/* Evita doble título si el tema lo imprime aparte */
body.lmm-bakery-catalog-page .woocommerce-products-header__title.page-title{
  display: none !important;
}

/* Header del catálogo bakery */
body.lmm-bakery-catalog-page .lmm-bakery-catalog-head{
  margin: 10px 0 24px !important;
  padding: 22px 24px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fff 0%, #faf8f2 100%) !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05) !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-head h1{
  display:block !important;
  margin:0 0 6px !important;
  color:#0b1b2b !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height:1.05 !important;
  letter-spacing:-0.03em !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-head p{
  margin:0 !important;
  color:#556070 !important;
  font-size:15px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-chips{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:16px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-chip{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:10px 14px !important;
  border-radius:999px !important;
  text-decoration:none !important;
  font-weight:700 !important;
  font-size:14px !important;
  color:#0b1b2b !important;
  background:#fff !important;
  border:1px solid rgba(15,23,42,0.10) !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-chip.is-active{
  background:#0b1b2b !important;
  color:#fff !important;
  border-color:#0b1b2b !important;
}


/* ===== Small hero for Bakery catalog ===== */
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero{
  position: relative;
  margin: 6px 0 22px;
  border-radius: 24px;
  overflow: hidden;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.45)),
    url('https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero__inner{
  position: relative;
  z-index: 2;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 24px 28px;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero__text{
  max-width: 720px;
}
body.lmm-bakery-catalog-page .lmm-bakery-kicker{
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero h2{
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero p{
  margin: 0;
  color: rgba(255,255,255,0.94);
  font-size: 15px;
  max-width: 60ch;
}
@media (max-width: 720px){
  body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero{
    min-height: 180px;
    border-radius: 18px;
  }
  body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero__inner{
    min-height: 180px;
    padding: 18px 18px;
  }
}

/* Hide chip row if there are no real subcategories (only "Todos") */
body.lmm-bakery-catalog-page .lmm-bakery-catalog-chips:has(.lmm-bakery-chip:only-child){
  display: none !important;
}

/* Premium product cards */
body.lmm-bakery-catalog-page ul.products li.product{
  border-radius: 20px !important;
  box-shadow: 0 12px 28px rgba(15,23,42,0.06) !important;
}
body.lmm-bakery-catalog-page ul.products li.product a img{
  height: 200px !important;
}
body.lmm-bakery-catalog-page ul.products li.product .woocommerce-loop-product__title{
  font-size: 17px !important;
  font-weight: 700 !important;
}
body.lmm-bakery-catalog-page ul.products li.product .button,
body.lmm-bakery-catalog-page ul.products li.product a.button{
  background: #0b1b2b !important;
  box-shadow: 0 8px 18px rgba(11,27,43,0.14) !important;
}


body.lmm-bakery-catalog-page .lmm-bakery-catalog-head{
  margin-top: 0 !important;
}
body.lmm-bakery-catalog-page ul.products li.product .price{
  font-size: 14px !important;
}


/* ===== v1.4.4 landing cleanup ===== */
.lmm-bakery-wrap .lmm-bakery-products{
  display: block !important;
}
.lmm-bakery-wrap .lmm-bakery-products .lmm-container{
  display: block !important;
}
.lmm-bakery-wrap .lmm-bakery-products .lmm-section-head{
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  margin-bottom: 16px !important;
}
.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap{
  margin-top: 0 !important;
}
.lmm-bakery-wrap .lmm-subhead,
.lmm-bakery-wrap .lmm-chips{
  display:none !important;
}

/* ===== v1.4.4 catalog spacing + custom hero image ===== */
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero{
  margin: 8px 0 28px !important;
  background-size: cover !important;
  background-position: center !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-head{
  margin-bottom: 28px !important;
}
body.lmm-bakery-catalog-page .woocommerce-breadcrumb{
  margin-bottom: 14px !important;
}
body.lmm-bakery-catalog-page ul.products{
  margin-top: 10px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-head + .woocommerce-notices-wrapper{
  margin-top: 0 !important;
}


/* ===== v1.4.6 landing cleanup ===== */
.lmm-bakery-wrap .lmm-subhead,
.lmm-bakery-wrap .lmm-chips{
  display:none !important;
}
.lmm-bakery-wrap .lmm-bakery-products{
  padding-top:30px !important;
}
.lmm-bakery-wrap .lmm-bakery-products .lmm-section-head{
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin-bottom:18px !important;
}

/* ===== v1.4.6 catalog spacing ===== */
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero{
  margin:8px 40px 40px 0 !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-head{
  margin:0 0 30px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-chips{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:18px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-chip{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:10px 14px !important;
  border-radius:999px !important;
  text-decoration:none !important;
  font-weight:700 !important;
  font-size:14px !important;
  color:#0b1b2b !important;
  background:#fff !important;
  border:1px solid rgba(15,23,42,0.10) !important;
  box-shadow:0 4px 10px rgba(15,23,42,0.04) !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-chip.is-active{
  background:#0b1b2b !important;
  color:#fff !important;
  border-color:#0b1b2b !important;
  box-shadow:0 8px 18px rgba(11,27,43,0.14) !important;
}
@media (max-width:900px){
  body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero{
    margin-right:0 !important;
    margin-bottom:26px !important;
  }
}


/* ===== v1.4.7 bakery family catalog pages ===== */
html body.lmm-bakery-catalog-page,
html body.lmm-bakery-catalog-page #page,
html body.lmm-bakery-catalog-page .site,
html body.lmm-bakery-catalog-page .site-content,
html body.lmm-bakery-catalog-page .content-area,
html body.lmm-bakery-catalog-page .site-main,
html body.lmm-bakery-catalog-page .woocommerce,
html body.lmm-bakery-catalog-page .ast-container,
html body.lmm-bakery-catalog-page .entry-content{
  background: #f5efe4 !important;
}

body.lmm-bakery-catalog-page .woocommerce-products-header__title.page-title{
  display:none !important;
}

body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero{
  position: relative !important;
  margin: 10px 48px 42px 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  min-height: 240px !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 14px 30px rgba(15,23,42,0.08) !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero__inner{
  min-height: 240px !important;
  display:flex !important;
  align-items:flex-end !important;
  padding: 24px 28px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero__text{
  max-width: 720px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-kicker{
  display:inline-block !important;
  margin-bottom:8px !important;
  padding:6px 10px !important;
  border-radius:999px !important;
  background: rgba(255,255,255,0.16) !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:700 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero h2{
  margin:0 0 8px !important;
  color:#fff !important;
  font-size: clamp(28px, 3.5vw, 42px) !important;
  line-height:1.06 !important;
  letter-spacing:-0.03em !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero p{
  margin:0 !important;
  color: rgba(255,255,255,0.94) !important;
  font-size:15px !important;
  max-width:60ch !important;
}

body.lmm-bakery-catalog-page .woocommerce-breadcrumb{
  margin-bottom: 12px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-head{
  margin: 0 0 30px !important;
  padding: 22px 24px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fff 0%, #faf8f2 100%) !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05) !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-head h1{
  margin: 0 0 6px !important;
  color: #0b1b2b !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-head p{
  margin: 0 !important;
  color: #556070 !important;
  font-size: 15px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-catalog-chips{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:18px !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-chip{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:10px 14px !important;
  border-radius:999px !important;
  text-decoration:none !important;
  font-weight:700 !important;
  font-size:14px !important;
  color:#0b1b2b !important;
  background:#fff !important;
  border:1px solid rgba(15,23,42,0.10) !important;
  box-shadow:0 4px 10px rgba(15,23,42,0.04) !important;
}
body.lmm-bakery-catalog-page .lmm-bakery-chip.is-active{
  background:#0b1b2b !important;
  color:#fff !important;
  border-color:#0b1b2b !important;
  box-shadow:0 8px 18px rgba(11,27,43,0.14) !important;
}

body.lmm-bakery-catalog-page ul.products{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 10px 0 0 !important;
}
body.lmm-bakery-catalog-page ul.products li.product{
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  background:#fff !important;
  border:1px solid rgba(15,23,42,0.08) !important;
  border-radius:18px !important;
  overflow:hidden !important;
  box-shadow:0 10px 24px rgba(15,23,42,0.05) !important;
}
body.lmm-bakery-catalog-page ul.products li.product a img{
  width:100% !important;
  height:220px !important;
  object-fit:cover !important;
  margin:0 !important;
}
body.lmm-bakery-catalog-page ul.products li.product .woocommerce-loop-product__title{
  padding:14px 16px 6px !important;
  margin:0 !important;
  font-size:16px !important;
  line-height:1.2 !important;
  color:#0b1b2b !important;
}
body.lmm-bakery-catalog-page ul.products li.product .price{
  padding:0 16px 12px !important;
  margin:0 !important;
  font-size:15px !important;
  color:#52627a !important;
  font-weight:700 !important;
}
body.lmm-bakery-catalog-page ul.products li.product .button,
body.lmm-bakery-catalog-page ul.products li.product a.button{
  margin:0 16px 16px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#0b1b2b !important;
  color:#fff !important;
  border-radius:999px !important;
  padding:10px 16px !important;
  font-size:14px !important;
  font-weight:700 !important;
  border:0 !important;
  box-shadow:0 8px 18px rgba(11,27,43,0.14) !important;
}
body.lmm-bakery-catalog-page ul.products li.product .ast-on-card-button,
body.lmm-bakery-catalog-page ul.products li.product .ast-onsale-card{
  transform: scale(.82) !important;
  transform-origin: top right !important;
}

@media (max-width: 1100px){
  body.lmm-bakery-catalog-page ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 900px){
  body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero{
    margin-right:0 !important;
    margin-bottom:28px !important;
  }
}
@media (max-width: 700px){
  body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero{
    min-height: 180px !important;
    border-radius: 18px !important;
  }
  body.lmm-bakery-catalog-page .lmm-bakery-catalog-hero__inner{
    min-height: 180px !important;
    padding: 18px !important;
  }
  body.lmm-bakery-catalog-page ul.products{
    grid-template-columns: 1fr !important;
  }
}


/* ===== v1.5.0 popular products grid ===== */
.lmm-bakery-wrap .lmm-bakery-products .products{
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
@media (max-width: 1200px){
  .lmm-bakery-wrap .lmm-bakery-products .products{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 980px){
  .lmm-bakery-wrap .lmm-bakery-products .products{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px){
  .lmm-bakery-wrap .lmm-bakery-products .products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 480px){
  .lmm-bakery-wrap .lmm-bakery-products .products{
    grid-template-columns: 1fr !important;
  }
}


/* ===== v1.5.1 landing 5-up fix ===== */
.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.lmm-bakery-wrap .lmm-bakery-products ul.products{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
}
.lmm-bakery-wrap .lmm-bakery-products ul.products li.product{
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 18px !important;
}
.lmm-bakery-wrap .lmm-bakery-products ul.products li.product a img{
  height: 150px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
}
.lmm-bakery-wrap .lmm-bakery-products ul.products li.product .woocommerce-loop-product__title{
  font-size: 14px !important;
  line-height: 1.2 !important;
  margin: 8px 0 6px !important;
  padding: 0 !important;
}
.lmm-bakery-wrap .lmm-bakery-products ul.products li.product .price{
  font-size: 13px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}
.lmm-bakery-wrap .lmm-bakery-products ul.products li.product .button,
.lmm-bakery-wrap .lmm-bakery-products ul.products li.product a.button{
  margin: 0 !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  width: auto !important;
}
@media (max-width: 1280px){
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 980px){
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px){
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 480px){
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns: 1fr !important;
  }
}


/* ===== v1.5.2 landing width/card fix ===== */
.lmm-bakery-wrap .lmm-container{
  width: min(1520px, calc(100% - 28px)) !important;
}
.lmm-bakery-wrap .lmm-bakery-products .products{
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.lmm-bakery-wrap .lmm-bakery-products .products li.product{
  flex: 0 0 18.6% !important;
  width: 18.6% !important;
  min-width: 0 !important;
  max-width: 18.6% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: 10px !important;
}
.lmm-bakery-wrap .lmm-bakery-products .products li.product a img{
  width: 100% !important;
  height: 145px !important;
  object-fit: cover !important;
}
.lmm-bakery-wrap .lmm-bakery-products .products li.product .woocommerce-loop-product__title{
  font-size: 13px !important;
  line-height: 1.18 !important;
}
.lmm-bakery-wrap .lmm-bakery-products .products li.product .price{
  font-size: 12px !important;
}
.lmm-bakery-wrap .lmm-bakery-products .products li.product .button,
.lmm-bakery-wrap .lmm-bakery-products .products li.product a.button{
  font-size: 12px !important;
  padding: 7px 12px !important;
}
@media (max-width: 1280px){
  .lmm-bakery-wrap .lmm-bakery-products .products{
    flex-wrap: wrap !important;
  }
  .lmm-bakery-wrap .lmm-bakery-products .products li.product{
    flex: 0 0 calc(25% - 12px) !important;
    width: calc(25% - 12px) !important;
    max-width: calc(25% - 12px) !important;
  }
}
@media (max-width: 980px){
  .lmm-bakery-wrap .lmm-bakery-products .products li.product{
    flex: 0 0 calc(33.333% - 11px) !important;
    width: calc(33.333% - 11px) !important;
    max-width: calc(33.333% - 11px) !important;
  }
}
@media (max-width: 700px){
  .lmm-bakery-wrap .lmm-bakery-products .products li.product{
    flex: 0 0 calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
  }
}
@media (max-width: 480px){
  .lmm-bakery-wrap .lmm-bakery-products .products li.product{
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ===== v1.5.3 force 5 cards in one row on desktop ===== */
.lmm-bakery-wrap .lmm-bakery-products ul.products{
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: space-between !important;
}

.lmm-bakery-wrap .lmm-bakery-products ul.products::before,
.lmm-bakery-wrap .lmm-bakery-products ul.products::after{
  display: none !important;
  content: none !important;
}

.lmm-bakery-wrap .lmm-bakery-products ul.products li.product{
  flex: 0 0 calc((100% - 64px) / 5) !important;
  width: calc((100% - 64px) / 5) !important;
  max-width: calc((100% - 64px) / 5) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  clear: none !important;
}

.lmm-bakery-wrap .lmm-bakery-products ul.products li.product a img{
  height: 135px !important;
}

.lmm-bakery-wrap .lmm-bakery-products ul.products li.product .woocommerce-loop-product__title{
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.lmm-bakery-wrap .lmm-bakery-products ul.products li.product .price{
  font-size: 12px !important;
}

.lmm-bakery-wrap .lmm-bakery-products ul.products li.product .button,
.lmm-bakery-wrap .lmm-bakery-products ul.products li.product a.button{
  font-size: 11px !important;
  padding: 6px 10px !important;
  white-space: nowrap !important;
}

@media (max-width: 1280px){
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    flex-wrap: wrap !important;
  }
  .lmm-bakery-wrap .lmm-bakery-products ul.products li.product{
    flex: 0 0 calc((100% - 48px) / 4) !important;
    width: calc((100% - 48px) / 4) !important;
    max-width: calc((100% - 48px) / 4) !important;
  }
}
@media (max-width: 980px){
  .lmm-bakery-wrap .lmm-bakery-products ul.products li.product{
    flex: 0 0 calc((100% - 32px) / 3) !important;
    width: calc((100% - 32px) / 3) !important;
    max-width: calc((100% - 32px) / 3) !important;
  }
}
@media (max-width: 700px){
  .lmm-bakery-wrap .lmm-bakery-products ul.products li.product{
    flex: 0 0 calc((100% - 16px) / 2) !important;
    width: calc((100% - 16px) / 2) !important;
    max-width: calc((100% - 16px) / 2) !important;
  }
}
@media (max-width: 480px){
  .lmm-bakery-wrap .lmm-bakery-products ul.products li.product{
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ===== v1.5.4 final landing popular products fix ===== */
/* Resetea wrappers viejos que estaban dejando el ancho "encogido" y mandando la 5ta card abajo */
.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}

.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products,
.lmm-bakery-wrap .lmm-bakery-products ul.products{
  display:grid !important;
  grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
  width:100% !important;
  max-width:100% !important;
  gap:16px !important;
  margin:0 !important;
  padding:0 !important;
  justify-content:stretch !important;
}

.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products::before,
.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products::after,
.lmm-bakery-wrap .lmm-bakery-products ul.products::before,
.lmm-bakery-wrap .lmm-bakery-products ul.products::after{
  content:none !important;
  display:none !important;
}

.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products > li.product,
.lmm-bakery-wrap .lmm-bakery-products ul.products > li.product{
  float:none !important;
  clear:none !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:12px !important;
  box-sizing:border-box !important;
}

.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products > li.product a img,
.lmm-bakery-wrap .lmm-bakery-products ul.products > li.product a img{
  width:100% !important;
  height:140px !important;
  object-fit:cover !important;
  border-radius:14px !important;
}

.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products > li.product .woocommerce-loop-product__title,
.lmm-bakery-wrap .lmm-bakery-products ul.products > li.product .woocommerce-loop-product__title{
  font-size:13px !important;
  line-height:1.15 !important;
  margin:8px 0 6px !important;
  padding:0 !important;
}

.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products > li.product .price,
.lmm-bakery-wrap .lmm-bakery-products ul.products > li.product .price{
  font-size:12px !important;
  margin:0 0 8px !important;
  padding:0 !important;
}

.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products > li.product .button,
.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products > li.product a.button,
.lmm-bakery-wrap .lmm-bakery-products ul.products > li.product .button,
.lmm-bakery-wrap .lmm-bakery-products ul.products > li.product a.button{
  font-size:11px !important;
  padding:6px 10px !important;
  white-space:nowrap !important;
  width:auto !important;
  margin:0 !important;
}

/* Solo baja de 5 a 4 cuando la pantalla realmente sea más estrecha */
@media (max-width: 1180px){
  .lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products,
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 920px){
  .lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products,
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 680px){
  .lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products,
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 460px){
  .lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products,
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns:1fr !important;
  }
}


/* ===== v1.5.5 desktop breakpoint fix ===== */
/* En muchas pantallas de laptop el breakpoint 1180 estaba cayendo demasiado pronto.
   Mantenemos 5 cards hasta pantallas más estrechas. */
.lmm-bakery-wrap .lmm-container{
  width: min(1600px, calc(100% - 28px)) !important;
}

@media (max-width: 1024px){
  .lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products,
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 820px){
  .lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products,
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 620px){
  .lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products,
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 420px){
  .lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap > ul.products,
  .lmm-bakery-wrap .lmm-bakery-products ul.products{
    grid-template-columns: 1fr !important;
  }
}


/* ===== v1.6.0 custom popular cards (landing only) ===== */
.lmm-bakery-wrap .lmm-bakery-products .lmm-wc-wrap{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.lmm-popular-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.lmm-popular-card{
  background:#fff;
  border:1px solid rgba(15,23,42,0.08);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,23,42,0.05);
}
.lmm-popular-card__img{
  display:block;
  padding:14px 14px 0;
}
.lmm-popular-card__img img{
  width:100%;
  height:170px;
  object-fit:cover;
  border-radius:16px;
  display:block;
}
.lmm-popular-card__body{
  padding:12px 14px 16px;
}
.lmm-popular-card__cat{
  color:#98a2b3;
  font-size:14px;
  margin-bottom:6px;
}
.lmm-popular-card__title{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.15;
}
.lmm-popular-card__title a{
  color:#0b1b2b;
  text-decoration:none;
}
.lmm-popular-card__price{
  color:#52627a;
  font-weight:700;
  margin-bottom:12px;
}
.lmm-popular-card__price ins,
.lmm-popular-card__price bdi{
  text-decoration:none;
}
.lmm-popular-card__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  background:#0b1b2b;
  color:#fff !important;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  border:0;
  box-shadow:0 8px 18px rgba(11,27,43,0.14);
}
@media (max-width: 1280px){
  .lmm-popular-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  .lmm-popular-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .lmm-popular-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lmm-popular-card__img img{ height:150px; }
  .lmm-popular-card__title{ font-size:16px; }
}
@media (max-width: 480px){
  .lmm-popular-grid{ grid-template-columns: 1fr; }
}


/* ===== v1.7.0 popular card enhancements ===== */
.lmm-popular-card{
  transition: transform .18s ease, box-shadow .18s ease;
}
.lmm-popular-card:hover{
  transform: translateY(-6px);
  box-shadow:0 18px 32px rgba(15,23,42,0.09);
}
.lmm-popular-card__img{
  position:relative;
}
.lmm-popular-card__badge{
  position:absolute;
  top:24px;
  left:24px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff4d6;
  color:#7a4b00;
  font-size:12px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(122,75,0,0.12);
}
.lmm-popular-card__price{
  font-size:16px;
}
.lmm-popular-card__price .amount{
  color:#52627a;
  font-weight:800;
}

/* Secondary light button in CTA */
.lmm-btn--light{
  background: rgba(255,255,255,0.65);
  color: var(--lmm-ink) !important;
  border-color: rgba(15,23,42,0.08);
}

/* Better CTA spacing */
.lmm-cta-box{
  align-items:center;
}


/* ===== v1.8.1 card hover animation ===== */
.lmm-box{
  transition: transform .25s ease, box-shadow .25s ease;
}
.lmm-box:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

/* spacing before CTA section */
.lmm-cta-section{
  margin-top:60px;
}



/* ===== v1.8.2 feature cards hover ===== */
.lmm-features .lmm-feature,
.lmm-bakery-why .lmm-feature{
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  will-change: transform;
}

.lmm-features .lmm-feature:hover,
.lmm-bakery-why .lmm-feature:hover{
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.lmm-features .lmm-feature__icon,
.lmm-bakery-why .lmm-feature__icon{
  transition: transform .24s ease, box-shadow .24s ease;
}

.lmm-features .lmm-feature:hover .lmm-feature__icon,
.lmm-bakery-why .lmm-feature:hover .lmm-feature__icon{
  transform: scale(1.10);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* Un poco más de aire antes del CTA */
.lmm-bakery-cta{
  margin-top: 56px;
}

/* Entrada suave al cargar */
.lmm-features .lmm-feature,
.lmm-bakery-why .lmm-feature{
  animation: lmmFeatureFadeUp .45s ease both;
}

.lmm-features .lmm-feature:nth-child(2),
.lmm-bakery-why .lmm-feature:nth-child(2){ animation-delay: .05s; }
.lmm-features .lmm-feature:nth-child(3),
.lmm-bakery-why .lmm-feature:nth-child(3){ animation-delay: .10s; }
.lmm-features .lmm-feature:nth-child(4),
.lmm-bakery-why .lmm-feature:nth-child(4){ animation-delay: .15s; }

@keyframes lmmFeatureFadeUp{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== v1.9.0 categories + weekly ===== */
.lmm-bakery-quickcats{
  padding:18px 0 10px;
}
.lmm-quickcats-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.lmm-quickcat{
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:16px 18px;
  text-decoration:none;
  color:var(--lmm-ink,#0b1b2b);
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  transition:transform .22s ease, box-shadow .22s ease;
}
.lmm-quickcat:hover{
  transform:translateY(-5px);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}
.lmm-quickcat__emoji{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#f3f5f8;
  font-size:22px;
  flex:0 0 42px;
}
.lmm-quickcat__title{
  font-weight:700;
  line-height:1.2;
}

.lmm-bakery-weekly{
  padding:10px 0 20px;
}
.lmm-bakery-weekly .lmm-section-head{
  margin-bottom:18px;
}
.lmm-bakery-weekly .products{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px !important;
}
.lmm-bakery-weekly .products::before,
.lmm-bakery-weekly .products::after{
  content:none !important;
  display:none !important;
}
.lmm-bakery-weekly .products li.product{
  width:auto !important;
  float:none !important;
  margin:0 !important;
}

@media (max-width:1200px){
  .lmm-quickcats-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:980px){
  .lmm-quickcats-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lmm-bakery-weekly .products{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px){
  .lmm-quickcats-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lmm-bakery-weekly .products{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:480px){
  .lmm-quickcats-grid{ grid-template-columns:1fr; }
  .lmm-bakery-weekly .products{ grid-template-columns:1fr; }
}


/* v1.9.1 category title */
.lmm-cat-title{
font-size:22px;
font-weight:700;
margin:10px 0 20px;
color:#0b1b2b;
}



/* ===== v1.9.2 spacing fix for category cards ===== */
.lmm-bakery-quickcats{
  padding-top: 40px !important;
  padding-bottom: 30px !important;
}

.lmm-cat-title{
  margin-bottom: 30px !important;
}

.lmm-bakery-quickcats{
  border-top: 1px solid #e8e8e8;
}



/* ===== v1.9.3 spacing between sections ===== */
.lmm-bakery-quickcats{
  margin-bottom: 40px !important;
}

.lmm-bakery-products{
  padding-top: 20px !important;
}



/* ===== v1.9.4 fix gap under category cards ===== */
.lmm-bakery-quickcats{
  padding-bottom:60px !important;
}

.lmm-quickcats-grid{
  margin-bottom:20px !important;
}

.lmm-bakery-products{
  padding-top:40px !important;
}
