/*
 * Header de todo el sitio (parts/header.html): barra superior, header con buscador y menú de
 * categorías. Carga en todas las páginas, después de style.css: ver almacen_header_assets() en
 * functions.php. Nació en la home rediseñada (home.css), que además usa los tokens de acá.
 *
 * Las medidas son las del mockup (tools/visual-diff/mockup/home-redesign.src.html). Si se cambia
 * una acá, cambiarla también en el mockup, o la comparación de tools/visual-diff deja de servir.
 */

:root {
  /* Lo que se pega al scrollear (resumen del checkout, galería del producto) va debajo de esto. En el
     teléfono el header no es fijo; en pantallas más anchas sí (ver «fila fija» abajo). */
  --sticky-header-h: 0px;
  --s-cream: #F5F0E8;
  --s-paper: #FFFDF9;
  --s-forest: #4A6741;
  --s-deep: #2C3E2D;
  --s-gold: #C9A961;
  --s-gold-ink: #75591F;
  --s-sage: #E5EBDC;
  --s-line: #E4DCCB;
  --s-ink: #26331F;
  --s-muted: #5F6B58;
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-body: "Mulish", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  /* Íconos: los mismos trazos del mockup, como máscara para pintarlos con background-color. */
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16 16 4.5 4.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8.5' r='3.8' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M4.5 20c1.2-3.7 4-5.5 7.5-5.5s6.3 1.8 7.5 5.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2.4l2.2 10.6a1.6 1.6 0 0 0 1.6 1.3h7.9a1.6 1.6 0 0 0 1.6-1.2L20.5 8H6.3' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9.5' cy='19.6' r='1.4' fill='black'/%3E%3Ccircle cx='17' cy='19.6' r='1.4' fill='black'/%3E%3C/svg%3E");
  --i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z' fill='black'/%3E%3C/svg%3E");  /* logo de WhatsApp de Simple Icons (CC0) */
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11Z' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='10' r='2.3' fill='black'/%3E%3C/svg%3E");
  --i-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 6.5h11v9h-11zM13.5 9.5h4l3 3.2v2.8h-7z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8' fill='none' stroke='black' stroke-width='1.7'/%3E%3Ccircle cx='17' cy='17.5' r='1.8' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");
  --i-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.8' y='5.5' width='18.4' height='13' rx='2.2' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M2.8 9.6h18.4' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M6 15h4' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-steth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5v5a4.5 4.5 0 0 0 9 0v-5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M10.5 13v2.5a4 4 0 0 0 8 0V13' fill='none' stroke='black' stroke-width='1.7'/%3E%3Ccircle cx='18.5' cy='11' r='2' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");
  --i-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9.5V20h16V9.5M3 9.5l1.6-5h14.8l1.6 5H3Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M9.5 20v-5.5h5V20' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E");
  --i-tacc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21V8M12 12c-2.5 0-4-1.6-4-4 2.5 0 4 1.6 4 4Zm0 0c2.5 0 4-1.6 4-4-2.5 0-4 1.6-4 4Zm0 4c-2.5 0-4-1.6-4-4 2.5 0 4 1.6 4 4Zm0 0c2.5 0 4-1.6 4-4-2.5 0-4 1.6-4 4ZM12 8c-1-1-1-3 0-4.5 1 1.5 1 3.5 0 4.5Z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M4 20 20 4' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19C5 10 10 5 20 4c0 10-5 15-13 15M5 19l8-8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- base: la tipografía y los márgenes del header no dependen de la página ---------- */
:is(.site-util, .site-header, .site-nav) { font: 400 15px/1.55 var(--f-body); color: var(--s-ink); -webkit-font-smoothing: antialiased; }
:is(.site-util, .site-header, .site-nav) * { box-sizing: border-box; }
/* (0,1,1): le gana al espaciado de los layouts de core y pierde con cualquier regla de abajo. */
body :is(.site-util, .site-header, .site-nav) :where(h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure) { margin: 0; letter-spacing: normal; }
body :is(.site-util, .site-header, .site-nav) :where(.is-layout-flow, .is-layout-constrained, .is-layout-flex) > *,
body :is(.site-util, .site-header, .site-nav):where(.is-layout-flow, .is-layout-constrained, .is-layout-flex) > * { margin-block: 0; }
:is(.site-util, .site-header, .site-nav) a { color: inherit; text-decoration: none; }
:is(.site-util, .site-header, .site-nav) img { display: block; max-width: 100%; }
:is(.site-util, .site-header, .site-nav) .mx { max-width: 1160px; margin: 0 auto; padding-inline: 32px; }
:is(.site-util, .site-header, .site-nav) :focus-visible { outline: 2px solid var(--s-gold); outline-offset: 2px; }

/* ícono antes del texto: <p class="i-pin">…</p> */
.m-util :is(.i-pin, .i-truck, .i-wa)::before {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.m-util .i-pin { --i: var(--i-pin); }
.m-util .i-truck { --i: var(--i-truck); }
.m-util .i-wa { --i: var(--i-wa); }

/* ---------- barra superior ---------- */
.m-util { background: var(--s-deep); color: #E9E3D3; font-size: 12.5px; }
.m-util .mx { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.m-util .u-left, .m-util .u-right { display: flex; gap: 18px; }
.m-util p { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.m-util .u-open:empty { display: none; }
/* El link lo pide la Disp. 954/2025 a simple vista: subrayado, porque es el único de la barra sin ícono. */
.m-util .open { color: #BFD7A8; font-weight: 700; }

/* ---------- header ---------- */
.m-head { background: var(--s-paper); border-bottom: 1px solid var(--s-line); }
.m-head .mx { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-block: 14px; }
.m-logo { display: flex; align-items: center; gap: 12px; }
.m-logo .wp-block-site-logo { margin: 0; line-height: 0; }
.m-logo .wp-block-site-logo img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.m-logo-name { font: 600 21px/1 var(--f-display); color: var(--s-deep); }
.m-logo-name a { display: block; }
.m-logo-name small { display: block; font: 700 10px/1.6 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--s-forest); }

.site-header .m-search { max-width: 620px; width: 100%; justify-self: center; margin: 0; }
.site-header .m-search .wp-block-search__inside-wrapper { --m-search-bg: var(--s-cream); display: flex; align-items: center; gap: 10px; background: var(--m-search-bg); border: 1.5px solid var(--s-line); border-radius: 999px; padding: 0 6px 0 18px; height: 48px; width: 100% !important; }
.site-header .m-search .wp-block-search__inside-wrapper:focus-within { --m-search-bg: var(--s-paper); border-color: var(--s-forest); }
.site-header .m-search .wp-block-search__inside-wrapper::before {
  content: ""; width: 20px; height: 20px; flex: none; background: #5F6B58;
  -webkit-mask: var(--i-search) center / contain no-repeat; mask: var(--i-search) center / contain no-repeat;
}
.site-header .m-search .wp-block-search__input { flex: 1; min-width: 0; height: auto; border: 0; background: none; padding: 0; margin: 0; font: 500 15px var(--f-body); color: var(--s-ink); outline: none; box-shadow: none; }
.site-header .m-search .wp-block-search__input::placeholder { color: #7D8676; opacity: 1; }
/* El fondo es de la barra entera. Chrome pinta de celeste el texto autocompletado y Safari de amarillo:
   una sombra interna del mismo color de la barra lo tapa, así el texto nunca queda en una caja aparte. */
.site-header .m-search .wp-block-search__input:-webkit-autofill,
.site-header .m-search .wp-block-search__input:-webkit-autofill:hover,
.site-header .m-search .wp-block-search__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px var(--m-search-bg) inset;
  box-shadow: 0 0 0 40px var(--m-search-bg) inset;
  -webkit-text-fill-color: var(--s-ink);
  caret-color: var(--s-ink);
}
.site-header .m-search .wp-block-search__input:autofill { background: var(--m-search-bg); }
/* La ✕ para borrar: la del navegador sale azul; acá es una cruz fina del color del texto. */
.site-header .m-search .wp-block-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0 4px 0 8px; cursor: pointer;
  background-color: var(--s-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.site-header .m-search .wp-block-search__input::-webkit-search-cancel-button:hover { background-color: var(--s-ink); }
.site-header .m-search .wp-block-search__button { height: 36px; padding: 0 16px; margin: 0; border-radius: 999px !important; border: 0; background: var(--s-forest) !important; color: #fff; font: 500 13.5px/1 var(--f-body); cursor: pointer; }  /* style.css le pone radio y fondo con !important a todos los buscadores */
.site-header .m-search .wp-block-search__button:hover { background: var(--s-deep) !important; box-shadow: none; }

.m-icons { display: flex; gap: 6px; align-items: center; }
.site-header .m-account a,
.site-header .m-cart .wc-block-mini-cart__button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font: 500 14px/1.55 var(--f-body); color: var(--s-deep); background: none; border: 0; cursor: pointer; }
.site-header .m-account a:hover,
.site-header .m-cart .wc-block-mini-cart__button:hover { background: var(--s-sage); }
.site-header .m-account svg { width: 22px; height: 22px; }
.site-header .m-account .label { font: inherit; padding: 0; }
/* El ícono del carrito es el de la barra del teléfono (--i-cart, de línea) en vez del SVG relleno de
   WooCommerce, y el número es verde con blanco. Con «Carrito» escrito, el número va después de la
   palabra; sin la palabra (hasta 800px), en la esquina del ícono como en la barra (más abajo). */
.site-header .m-cart .wc-block-mini-cart__quantity-badge { display: contents; }
.site-header .m-cart .wc-block-mini-cart__quantity-badge::before { content: ""; order: 0; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--i-cart) center / contain no-repeat; mask: var(--i-cart) center / contain no-repeat; }
.site-header .m-cart .wc-block-mini-cart__icon { display: none; }
.site-header .m-cart .wc-block-mini-cart__button::after { content: "Carrito"; order: 1; }
/* `!important` en los colores: el script del mini carrito de Woo escribe un style en línea (fondo blanco,
   texto verde) cada vez que cambia la cantidad, y le ganaba a esta regla. */
.site-header .m-cart .wc-block-mini-cart__badge { position: static; transform: none; order: 2; min-width: 20px; height: 20px; display: block !important; border-radius: 999px; border: 0; background: var(--s-forest) !important; color: #fff !important; font: 700 12px/20px var(--f-body); text-align: center; font-variant-numeric: tabular-nums; padding: 0 6px; margin: 0; visibility: visible; }
.site-header .m-cart .wc-block-mini-cart__badge[hidden] { display: none !important; }
.site-header .m-cart .wc-block-mini-cart__amount { display: none; }

/* ---------- menú de categorías ---------- */
.m-nav { background: var(--s-paper); border-bottom: 1px solid var(--s-line); }
.m-nav .mx { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.m-nav .mx::-webkit-scrollbar { display: none; }
.m-nav p { flex: none; font-size: 14px; }
.m-nav a { display: block; white-space: nowrap; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--s-ink); }
.m-nav a:hover { background: var(--s-sage); }
.m-nav .all a { background: var(--s-deep); color: #F5F0E8; }
.m-nav .all a:hover { background: var(--s-forest); }
.m-nav .nutri a { color: var(--s-forest); }
.m-nav .sep { flex: 1; }
.m-nav .whole a { color: var(--s-gold-ink); }
.m-nav .sale a { font-weight: 800; }
.m-nav .sale a::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--s-gold); margin-right: 7px; vertical-align: 1px; }

/* style.css levanta y le da sombra a todo botón submit en hover */
.site-header .wp-block-search__button { transition: background-color .15s ease; }
.site-header .wp-block-search__button:hover { transform: none; }

/* «Categorías» del teléfono, primero del menú: fuera de la home, donde no está la barra de abajo. */
.m-menu { display: none; flex: none; align-items: center; gap: 7px; padding: 8px 14px 8px 12px; border: 0; border-radius: 999px; background: var(--s-deep); color: #F5F0E8; font: 500 13px/1.55 var(--f-body); cursor: pointer; }
.m-menu::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i-grid) center / contain no-repeat; mask: var(--i-grid) center / contain no-repeat; }
.m-menu:hover { background: var(--s-forest); }

@media (max-width: 1020px) {
  .m-util .u-left .addr { display: none; }
}
/* Con el envío, la barra no entra en un renglón debajo de unos 830px. El envío sigue en la fila de
   confianza de la home y en el carrito. */
@media (max-width: 860px) {
  .m-util .u-right .u-ship { display: none; }
}

/* Tablet: el buscador no bajaba del ancho de su campo (311px) y aplastaba el logo (13px a 780, nada
   debajo de 760). El logo conserva su tamaño (con max-width: 100% su mínimo era 0) y cede el buscador. */
@media (min-width: 641px) and (max-width: 900px) {
  .m-logo .wp-block-site-logo img { max-width: none; }
  .m-head .mx { grid-template-columns: min-content 1fr auto; }
  .site-header .m-search { min-width: 0; }
}
/* Hasta 960 el logo se seguía achicando (un óvalo) y el nombre iba en dos renglones. */
@media (min-width: 901px) and (max-width: 960px) {
  .m-head .mx { grid-template-columns: max-content 1fr auto; }
  .site-header .m-search { min-width: 0; }
}
/* Hasta 800, con «Ingresar» y «Carrito» al campo del buscador no le quedaba lugar: íconos solos, como en
   el teléfono, y menos aire alrededor (así el campo no baja de 130px). «Ingresar» sigue para los lectores
   de pantalla: es el único nombre del link. */
@media (min-width: 641px) and (max-width: 800px) {
  .m-head .mx { column-gap: 16px; }
  .site-header .m-account a, .site-header .m-cart .wc-block-mini-cart__button { padding-inline: 8px; }
  .site-header .m-account .label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .m-cart .wc-block-mini-cart__button::after { content: none; }
  .site-header .m-cart .wc-block-mini-cart__quantity-badge { position: relative; display: block; width: 22px; height: 22px; }
  .site-header .m-cart .wc-block-mini-cart__quantity-badge::before { position: absolute; inset: 0; }
  .site-header .m-cart .wc-block-mini-cart__badge { position: absolute; top: -8px; left: 17px; }
}

/* ---------- fila fija (tablet y escritorio) ----------
   Al scrollear queda arriba sólo la fila del logo, el buscador y el carrito: con más de mil productos,
   buscar es como se recorre la tienda. La barra de arriba y el menú de categorías se van con la página.
   En el teléfono no: la fila ocupa dos renglones, y en la home ya está la barra de abajo.

   La fila está dentro del <header class="wp-block-template-part"> que arma WordPress, y un sticky no
   sale de su padre: con el envoltorio fuera del layout (display: contents), el padre pasa a ser
   .wp-site-blocks, que es toda la página. Nada de esto en el editor: ahí el envoltorio es el del bloque,
   y una fila pegada taparía lo que se está editando.

   header.js le pone .is-stuck cuando la barra de arriba ya salió de la pantalla. El cambio es una sola
   transición: todo lo que achica la fila (aire, logo, buscador, botones) usa la misma duración y curva, y
   el margin-bottom que header.js devuelve crece con la misma curva. Como manda el logo (es lo más alto),
   alto + margen suman siempre lo mismo y el contenido de abajo no se mueve durante la animación. */
@media (min-width: 641px) {
  :root {
    --sticky-header-h: calc(var(--wp-admin--admin-bar--height, 0px) + 60px);  /* header.js lo ajusta al alto real */
  }
  body:not(.editor-styles-wrapper) .wp-block-template-part:has(> .m-head) { display: contents; }
  body:not(.editor-styles-wrapper) .m-head { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 40; }

  /* Una transición usa la duración del estado al que va: al pegarse, .2s; al volver arriba, más rápida,
     porque quien sube busca el menú y la barra y no tiene que esperar. */
  .m-head { --stick-t: .12s cubic-bezier(.22, .61, .36, 1); transition: box-shadow var(--stick-t), margin-bottom var(--stick-t); }
  .m-head.is-stuck { --stick-t: .2s cubic-bezier(.22, .61, .36, 1); }
  .m-head .mx { transition: padding-block var(--stick-t); }
  .m-head .m-logo .wp-block-site-logo img { transition: width var(--stick-t), height var(--stick-t); }
  .m-head .m-logo-name { transition: font-size var(--stick-t); }
  .m-head .m-logo-name small { max-height: 16px; overflow: hidden; transition: max-height var(--stick-t), opacity .1s ease; }
  .site-header .m-search .wp-block-search__inside-wrapper,
  .site-header .m-search .wp-block-search__button { transition: height var(--stick-t), background-color .15s ease, border-color .15s ease; }
  .site-header .m-account a,
  .site-header .m-cart .wc-block-mini-cart__button { transition: padding var(--stick-t), background-color .15s ease; }

  .m-head.is-stuck { box-shadow: 0 8px 20px -14px rgba(44, 62, 45, .45); }
  .m-head.is-stuck .mx { padding-block: 8px; }
  .m-head.is-stuck .m-logo .wp-block-site-logo img { width: 40px; height: 40px; }
  .m-head.is-stuck .m-logo-name { font-size: 19px; }
  .m-head.is-stuck .m-logo-name small { max-height: 0; opacity: 0; }
  .site-header.is-stuck .m-search .wp-block-search__inside-wrapper { height: 40px; }
  .site-header.is-stuck .m-search .wp-block-search__button { height: 30px; }
  .site-header.is-stuck .m-account a,
  .site-header.is-stuck .m-cart .wc-block-mini-cart__button { padding-block: 6px; }

  /* header.js mide los dos altos sin animar (ver medir()), y quien pidió menos movimiento no la ve. */
  .m-head.is-measuring, .m-head.is-measuring * { transition: none !important; }
}
@media (min-width: 641px) and (prefers-reduced-motion: reduce) {
  .m-head, .m-head * { transition: none !important; }
}

/* ---------- teléfono ---------- */
@media (max-width: 640px) {
  :is(.site-util, .site-header, .site-nav) .mx { padding-inline: 16px; }
  /* En el teléfono queda sólo el estado del local. El envío está en la fila de confianza, y WhatsApp
     en el botón flotante. */
  .m-util .u-right .u-ship, .m-util .u-right .i-wa { display: none; }
  /* Si no entran en un renglón (320px, sábados, letra agrandada), el link baja entero en vez de cortarse. */
  .m-util .mx { flex-wrap: wrap; justify-content: center; column-gap: 16px; row-gap: 2px; }
  .m-head .mx { grid-template-columns: 1fr auto; gap: 10px 8px; padding-block: 10px 12px; }
  .m-logo .wp-block-site-logo img { width: 44px; height: 44px; }
  .m-logo-name { font-size: 18px; }
  .site-header .m-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .site-header .m-search .wp-block-search__inside-wrapper { height: 46px; }
  .site-header .m-search .wp-block-search__button { display: none; }
  .site-header .m-account .label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* ver arriba */
  .site-header .m-cart .wc-block-mini-cart__button::after { content: none; }
  .site-header .m-cart .wc-block-mini-cart__quantity-badge { position: relative; display: block; width: 22px; height: 22px; }
  .site-header .m-cart .wc-block-mini-cart__quantity-badge::before { position: absolute; inset: 0; }
  .site-header .m-cart .wc-block-mini-cart__badge { position: absolute; top: -8px; left: 17px; }
  .m-nav .all, .m-nav .sep, .m-nav .whole, .m-nav .nutri { display: none; }
  .m-nav a { background: var(--s-cream); border-radius: 999px; font-size: 13px; padding: 8px 12px; }
  .m-menu { display: inline-flex; }
  .home-v2-page .m-menu { display: none; }
}
