/** Shopify CDN: Minification failed

Line 32:0 Unexpected "("
Line 46:54 Unterminated string token
Line 109:5 Expected "]" to go with "["

**/
:root{--mm-cart-ink:#202421;--mm-cart-paper:#faf9f5;--mm-cart-green:#233d32;--mm-cart-soft:#eaf2ed;--mm-cart-border:#e6e3da}
.mm-cart[aria-hidden="true"]{display:none}.mm-cart{position:fixed;z-index:100000;inset:0;font-family:Arial,sans-serif;color:var(--mm-cart-ink)}.mm-cart__shade{position:absolute;inset:0;border:0;background:rgba(16,19,17,.28);cursor:pointer}.mm-cart__panel{position:absolute;right:0;top:0;display:flex;flex-direction:column;width:min(100%,430px);height:100%;background:var(--mm-cart-paper);overflow:hidden;box-shadow:-14px 0 35px rgba(0,0,0,.12)}
.mm-cart__head{padding:16px 20px 9px}.mm-cart__brand{margin:0 0 13px;color:#778078;font-weight:700;font-size:8px;letter-spacing:.36em}.mm-cart__head-row{display:flex;justify-content:space-between;align-items:center}.mm-cart h2,.mm-cart h3,.mm-cart h4{font-family:Arial,sans-serif!important}.mm-cart__head h2{margin:0;font-size:20px;letter-spacing:-.04em;line-height:1.1}.mm-cart__close{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#f0f0ec;font-size:30px;font-weight:200;line-height:1;cursor:pointer}.mm-cart__body{flex:1;overflow:auto;padding:0 15px 18px}
.mm-cart__empty{display:grid;justify-items:center;align-content:center;min-height:64vh;text-align:center}.mm-cart__empty h3{margin:0;font-size:22px;letter-spacing:-.04em}.mm-cart__empty p{max-width:310px;margin:18px 0;color:#6d6c67;font-size:14px;line-height:1.5}.mm-cart__discover,.mm-cart__checkout{display:flex;align-items:center;justify-content:center;border-radius:20px;color:white;background:var(--mm-cart-green);font-weight:700;text-decoration:none}.mm-cart__discover{width:100%;min-height:54px;margin-top:14px;font-size:15px}.mm-cart__empty-note{font-size:12px!important}
.mm-cart__shipping{margin:5px 0 14px;padding:10px 6px;border-radius:16px;color:#295b46;background:var(--mm-cart-soft);font-size:11px;line-height:1.2;text-align:center;white-space:normal}.mm-cart__shipping span{padding:0 4px}.mm-cart__items{display:grid;gap:12px}.mm-cart__line{display:grid;grid-template-columns:65px 1fr;gap:13px;padding:14px;border:1px solid var(--mm-cart-border);border-radius:22px;background:#fff;box-shadow:0 8px 18px rgba(40,40,35,.035)}.mm-cart__line>img{width:65px;height:82px;object-fit:cover}.mm-cart__line-content{position:relative;min-width:0}.mm-cart__line h3{max-width:calc(100% - 24px);margin:0;font-size:13px;line-height:1.18}.mm-cart__variant{margin:4px 0 5px;color:#9b9e9a;font-size:10px}.mm-cart__remove{position:absolute;top:-2px;right:-2px;display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;background:transparent;color:#6f7e86;cursor:pointer}.mm-cart__remove svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mm-cart__price-row{display:flex;flex-wrap:nowrap;align-items:baseline;gap:6px}.mm-cart__price-row s{color:#8e918c;font-size:11px;white-space:nowrap}.mm-cart__price-row strong{font-size:14px;white-space:nowrap}.mm-cart__price-row span{padding:4px 7px;border-radius:8px;color:#28704f;background:var(--mm-cart-soft);font-size:9px;white-space:nowrap}.mm-cart__qty{display:grid;grid-template-columns:1fr 1fr 1fr;width:120px;margin-top:7px;border:1px solid var(--mm-cart-border);border-radius:12px;overflow:hidden;text-align:center}.mm-cart__qty>*{min-height:27px;border:0;background:white;font-size:13px}.mm-cart__qty button{cursor:pointer}
.mm-cart__upsell{margin:28px 0 15px}.mm-cart__upsell>h3{margin:0 0 12px;font-size:16px}.mm-cart__upsell-carousel{position:relative}.mm-cart__upsell-arrow{position:absolute;z-index:1;top:50%;display:grid;place-items:center;width:30px;height:30px;padding:0;border:2px solid var(--mm-cart-ink);border-radius:50%;background:var(--mm-cart-paper);color:var(--mm-cart-ink);font-size:26px;line-height:1;transform:translateY(-50%);cursor:pointer}.mm-cart__upsell-arrow--previous{left:-31px}.mm-cart__upsell-arrow--next{right:-31px}.mm-cart__upsell-card{display:grid;grid-template-columns:65px 1fr;gap:12px;padding:14px;border:1px solid var(--mm-cart-border);border-radius:20px;background:#fff}.mm-cart__upsell-card img{width:65px;height:82px;border-radius:12px;object-fit:cover}.mm-cart__upsell-card h4{margin:1px 0 5px;font-size:13px;line-height:1.15}.mm-cart__upsell-card p{margin:0 0 8px;font-size:14px}.mm-cart__upsell-card button{width:100%;min-height:32px;border:1px solid #bdc9bf;border-radius:11px;color:var(--mm-cart-green);background:#fff;font-size:12px;font-weight:700;cursor:pointer}
.mm-cart__footer{margin:8px -15px -18px;padding:14px 20px 16px;border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -6px 22px rgba(40,40,35,.04)}.mm-cart__delivery,.mm-cart__subtotal{display:flex;align-items:center;justify-content:space-between}.mm-cart__delivery{font-size:12px;color:#5f625d}.mm-cart__delivery strong{color:#277450}.mm-cart__subtotal{margin-top:12px;font-size:20px;letter-spacing:-.04em}.mm-cart__checkout{min-height:47px;margin-top:12px;gap:8px;font-size:14px}.mm-cart__checkout b{margin-left:5px;font-size:19px}.mm-cart__secure{display:flex;align-items:center;justify-content:center;gap:7px;margin:14px 0 16px;color:#7e827d;font-size:11px;text-align:center}.mm-cart__secure svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.mm-cart__payments{display:flex;justify-content:center;gap:6px;margin:0;padding:0;list-style:none}.mm-cart__payments li{display:flex}.mm-cart__payments svg{width:34px;height:22px}.mm-cart__empty[hidden],[data-mm-cart-filled][hidden],.mm-cart__footer[hidden]{display:none!important}
.mm-cart__upsell-card{grid-template-columns:82px 1fr}.mm-cart__upsell-card img{width:82px;height:82px}.mm-cart__upsell-card p{display:flex;gap:8px;align-items:baseline}.mm-cart__upsell-card p s{color:#8e918c;font-size:11px}.mm-cart__upsell-card p strong{font-size:14px}.mm-cart__upsell-actions{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:8px}.mm-cart__upsell-actions select{min-width:0;height:32px;padding:0 7px;border:1px solid #bdc9bf;border-radius:11px;background:#fff;color:var(--mm-cart-ink);font-size:10px}.mm-cart__upsell-actions button{min-width:0}
.mm-cart__head{padding:12px 20px 6px}.mm-cart__brand{margin-bottom:8px}.mm-cart__shipping{margin:4px 0 20px;padding:8px 6px}.mm-cart__line{grid-template-columns:60px 1fr;gap:12px;padding:12px}.mm-cart__line>img{width:60px;height:75px}.mm-cart__line h3{font-size:12px}.mm-cart__variant{margin:3px 0 4px}.mm-cart__qty{margin-top:5px}.mm-cart__qty>*{min-height:24px}.mm-cart__upsell{display:none!important}.mm-cart__upsell>h3{margin-bottom:8px}.mm-cart__upsell-card{grid-template-columns:74px 1fr;padding:11px}.mm-cart__upsell-card img{width:74px;height:74px}.mm-cart__upsell-card h4{margin:0 0 3px;font-size:12px}.mm-cart__upsell-card p{margin-bottom:5px}.mm-cart__upsell-actions{grid-template-columns:minmax(0,1fr) 76px;gap:7px}.mm-cart__upsell-actions select,.mm-cart__upsell-card button{min-height:28px;height:28px}.mm-cart__footer{margin-top:5px;padding:12px 20px}.mm-cart__subtotal{margin-top:9px}.mm-cart__checkout{min-height:42px;margin-top:9px}.mm-cart__secure{margin:10px 0 11px}.mm-cart__payments svg{width:30px;height:20px}
.mm-cart__body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-mm-cart-filled] {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.mm-cart__footer {
  flex: 0 0 auto;
}/* Flechas: muestra una prenda activa y disponible al azar. */
(() => {
  const cartRoot = document.querySelector('#mm-cart');
  if (!cartRoot) return;

  let pool = [];
  let shownProductId = null;

  const money = value =>
    '€' + Number(value).toLocaleString(document.documentElement.lang || 'es-ES', {
      minimumFractionDigits: 2,
      maximumFractionDigits: 2,
    });

  const esc = value =>
    String(value || '').replace(/[&<>"']/g, char => ({
      '&': '&amp;',
      '<': '&lt;',
      '>': '&gt;',
      '"': '&quot;',
      "'": '&#39;',
    }[char]));

  async function showRandomProduct() {
    const cart = await fetch('/cart.js').then(response => response.json());

    if (!pool.length) {
      const catalog = await fetch('/products.json?limit=250').then(response => response.json());

      pool = (catalog.products || []).filter(product =>
        !cart.items.some(item => item.product_id === product.id) &&
        product.variants?.some(variant => variant.available)
      );
    }

    const choices = pool.filter(product => product.id !== shownProductId);
    const product = choices[Math.floor(Math.random() * choices.length)] || pool[0];

    if (!product) return;

    shownProductId = product.id;

    const variant = product.variants.find(item => item.available);
    const image =
      product.featured_image?.src ||
      product.featured_image ||
      product.images?.[0]?.src ||
      product.images?.[0] ||
      '';

    const options = product.variants
      .filter(item => item.available)
      .map(item => `<option value="${item.id}">${esc(item.title)}</option>`)
      .join('');

    const oldPrice = Number(variant.compare_at_price || 0);
    const currentPrice = Number(variant.price);
    const compare = oldPrice > currentPrice ? `<s>${money(oldPrice)}</s>` : '';

    cartRoot.querySelector('[data-mm-cart-upsell-card]').innerHTML =
      `<div class="mm-cart__upsell-card">
        <img src="${image}" alt="${esc(product.title)}">
        <div>
          <h4>${esc(product.title)}</h4>
          <p>${compare}<strong>${money(currentPrice)}</strong></p>
          <div class="mm-cart__upsell-actions">
            <select aria-label="Elegir variante" data-mm-cart-upsell-select>${options}</select>
            <button type="button" data-mm-cart-add="${variant.id}">Añadir</button>
          </div>
        </div>
      </div>`;
  }

  document.addEventListener('click', event => {
    if (!event.target.closest('.mm-cart__upsell-arrow')) return;
    event.preventDefault();
    showRandomProduct().catch(() => {});
  });
})();