/* Personalización dinámica Ecommerce: slider + carrito WhatsApp */
.store-slider-section{padding:22px 0 8px;background:#fff}.store-slider{position:relative;overflow:hidden;border-radius:24px;box-shadow:0 22px 60px rgba(20,20,20,.12);background:#111;min-height:500px}.store-slider-track{position:relative;height:500px}.store-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .55s ease,visibility .55s ease}.store-slide.active{opacity:1;visibility:visible;z-index:1}.store-slide picture,.store-slide img{width:100%;height:100%;display:block}.store-slide img{object-fit:cover}.store-slide-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.64) 0%,rgba(0,0,0,.36) 43%,rgba(0,0,0,.06) 76%,rgba(0,0,0,.03) 100%)}.store-slide-content{position:absolute;z-index:2;left:6%;top:50%;transform:translateY(-50%);max-width:590px;color:#fff}.store-slide-content h1{margin:0 0 16px;font-size:clamp(38px,5vw,70px);line-height:.98;letter-spacing:-.055em;font-weight:850;text-shadow:0 2px 22px rgba(0,0,0,.2)}.store-slide-content p{font-size:clamp(14px,1.5vw,19px);max-width:520px;margin:0 0 26px;color:rgba(255,255,255,.91);line-height:1.55}.slider-btn{display:inline-flex;align-items:center;gap:10px;background:#fff;color:#171717;border:0;border-radius:999px;padding:13px 21px;font-weight:800}.slider-btn:hover{background:#171717;color:#fff}.slider-arrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(0,0,0,.25);color:#fff;font-size:29px;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(8px);transition:.2s}.slider-arrow:hover{background:rgba(0,0,0,.65)}.slider-arrow.prev{left:18px}.slider-arrow.next{right:18px}.slider-dots{position:absolute;z-index:4;left:50%;bottom:18px;transform:translateX(-50%);display:flex;gap:8px}.slider-dot{width:8px;height:8px;border:0;padding:0;border-radius:999px;background:rgba(255,255,255,.5);cursor:pointer;transition:.2s}.slider-dot.active{width:27px;background:#fff}.guest-cart-banner{display:flex;align-items:flex-start;gap:13px;margin-bottom:20px;padding:15px 17px;border:1px solid #d8eadf;background:#f3fbf6;border-radius:16px}.guest-cart-icon{width:28px;height:28px;border-radius:50%;background:#1f8b55;color:#fff;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.guest-cart-banner strong{display:block;font-size:13px}.guest-cart-banner p{margin:3px 0 0;color:#5f7467;font-size:12px}.cart-code{display:block;color:#999;margin-top:4px;font-size:10px}.btn-whatsapp{background:#25d366!important;color:#fff!important;border-color:#25d366!important;font-weight:800}.btn-whatsapp:hover{background:#1fb85a!important;border-color:#1fb85a!important}.wa-icon{display:inline-grid;width:20px;height:20px;border:2px solid currentColor;border-radius:50%;place-items:center;margin-right:5px;font-size:9px}.whatsapp-cart-note{font-size:10px;color:#777;text-align:center;margin:8px 0 13px;line-height:1.45}.whatsapp-unavailable{font-size:11px;color:#8a5a5a;background:#fbefef;border-radius:10px;padding:10px;margin:9px 0}.floating-whatsapp{position:fixed;z-index:90;right:22px;bottom:22px;background:#25d366;color:#fff;display:flex;align-items:center;gap:8px;padding:11px 15px;border-radius:999px;box-shadow:0 10px 34px rgba(37,211,102,.3);font-size:12px;font-weight:800}.floating-whatsapp span{width:21px;height:21px;border:2px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:8px}.floating-whatsapp:hover{color:#fff;transform:translateY(-2px)}.brand-logo{max-height:44px;max-width:190px;object-fit:contain}
@media(max-width:820px){.store-slider-section{padding:12px 0 0}.store-slider{border-radius:18px;min-height:470px}.store-slider-track{height:470px}.store-slide-shade{background:linear-gradient(0deg,rgba(0,0,0,.68) 0%,rgba(0,0,0,.18) 62%,rgba(0,0,0,.05) 100%)}.store-slide-content{left:22px;right:22px;top:auto;bottom:50px;transform:none;max-width:none}.store-slide-content h1{font-size:43px}.store-slide-content p{font-size:14px;margin-bottom:19px}.slider-arrow{width:38px;height:38px;font-size:25px}.slider-arrow.prev{left:10px}.slider-arrow.next{right:10px}.floating-whatsapp b{display:none}.floating-whatsapp{width:49px;height:49px;padding:0;justify-content:center;right:14px;bottom:14px}.floating-whatsapp span{border:0;font-size:20px}}
@media(max-width:560px){.store-slider{min-height:430px}.store-slider-track{height:430px}.store-slide-content h1{font-size:36px}.slider-arrow{display:none}.slider-dots{bottom:13px}.brand-logo{max-width:150px;max-height:38px}}
@media(prefers-reduced-motion:reduce){.store-slide{transition:none}.slider-dot{transition:none}}

/* ============================================================
   VENOVA - FIX RESPONSIVE CATALOGO MOVIL V3
   Corrige desbordes, ancho reducido y tarjetas demasiado pequenas
   en /catalog y en el header movil.
   ============================================================ */

html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

.site-header,
.site-header .container,
.catalog-section,
.catalog-section .container,
.catalog-layout,
.catalog-results,
.product-grid,
.catalog-grid,
.product-card,
.product-card-body{
  min-width:0;
  max-width:100%;
}

@media (max-width:820px){
  /* Contenedor realmente utilizable en telefono */
  .container{
    width:calc(100% - 24px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* HEADER: logo + acciones arriba, buscador debajo */
  .header-row{
    width:100%;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "brand actions"
      "search search"!important;
    gap:9px 10px!important;
    padding:9px 0 10px!important;
    min-height:0!important;
  }

  .brand{
    grid-area:brand;
    min-width:0;
    overflow:hidden;
  }

  .brand-logo{
    display:block;
    width:auto;
    max-width:145px!important;
    max-height:36px!important;
    object-fit:contain;
  }

  .header-actions{
    grid-area:actions;
    min-width:0;
    gap:7px!important;
    justify-self:end;
    white-space:nowrap;
  }

  .header-actions .header-link{
    flex:0 0 auto;
  }

  .icon-circle{
    width:34px;
    height:34px;
  }

  .cart-button{
    width:38px;
    height:38px;
    flex:0 0 38px;
  }

  .header-search{
    grid-area:search;
    width:100%;
    min-width:0;
    height:42px;
    margin:0;
  }

  .header-search input{
    min-width:0;
    width:100%;
    font-size:14px;
  }

  /* Menu superior deslizable sin ensanchar el body */
  .category-nav{
    width:calc(100% - 24px)!important;
    max-width:calc(100% - 24px)!important;
    height:40px;
    gap:18px!important;
    overflow-x:auto!important;
    overflow-y:hidden;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:0;
  }
  .category-nav::-webkit-scrollbar{display:none}
  .category-nav a{flex:0 0 auto;font-size:12px}

  /* Hero de catalogo: menos alto en telefono */
  .page-hero.compact{
    padding:28px 0!important;
  }
  .page-hero h1{
    font-size:34px!important;
    line-height:1.05;
  }
  .page-hero p{
    font-size:13px;
    line-height:1.45;
  }

  .catalog-section.section{
    padding:30px 0 54px!important;
  }

  .catalog-layout{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
  }

  .catalog-results{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  /* Evita que la barra quede flotando encima de los productos */
  .catalog-toolbar{
    position:static!important;
    top:auto!important;
    width:100%;
    margin:0 0 14px!important;
    padding:0!important;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  .filter-toggle{
    flex:0 0 auto;
    min-height:36px;
  }

  /* Grid movil estable: 2 columnas reales */
  .product-grid.catalog-grid,
  .catalog-grid{
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px 12px!important;
    align-items:start;
  }

  .catalog-grid .product-card,
  .product-grid .product-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden;
  }

  .catalog-grid .product-image-wrap{
    width:100%!important;
    max-width:100%!important;
    aspect-ratio:3/4!important;
    border-radius:14px!important;
  }

  .catalog-grid .product-image-wrap img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  .catalog-grid .product-card-body{
    width:100%;
    padding:10px 2px 4px!important;
  }

  .catalog-grid .product-meta{
    font-size:9.5px!important;
    line-height:1.3;
    letter-spacing:.045em;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .catalog-grid .product-card h3{
    margin:5px 0 8px!important;
    font-size:13px!important;
    line-height:1.28!important;
    min-height:33px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .catalog-grid .card-sizes{
    gap:4px!important;
    margin:0 0 8px!important;
  }

  .catalog-grid .card-sizes span{
    max-width:100%;
    padding:3px 7px!important;
    font-size:10px!important;
  }

  .catalog-grid .product-card-bottom{
    width:100%;
    min-width:0;
    align-items:flex-end;
    gap:6px!important;
  }

  .catalog-grid .product-card-bottom > div{
    min-width:0;
    max-width:calc(100% - 36px);
  }

  .catalog-grid .discount-price-wrap{
    min-width:0;
    max-width:100%;
    gap:4px!important;
    flex-wrap:wrap!important;
  }

  .catalog-grid .discount-price-wrap .old-price{
    font-size:11px!important;
  }

  .catalog-grid .discount-price-wrap .discount-price,
  .catalog-grid .product-card-bottom strong{
    font-size:14px!important;
  }

  .catalog-grid .round-add{
    width:32px!important;
    height:32px!important;
    min-width:32px;
    flex:0 0 32px;
    font-size:18px!important;
  }

  .catalog-grid .stock-badge,
  .catalog-grid .discount-badge{
    max-width:calc(100% - 18px);
    white-space:nowrap;
  }

  /* Drawer filtros no debe provocar ancho extra */
  .filters-panel{
    box-sizing:border-box;
    max-width:100vw!important;
  }

  .floating-whatsapp{
    right:12px!important;
    bottom:12px!important;
  }
}

@media (max-width:560px){
  .container{
    width:calc(100% - 20px)!important;
  }

  .category-nav{
    width:calc(100% - 20px)!important;
    max-width:calc(100% - 20px)!important;
  }

  .brand-logo{
    max-width:128px!important;
    max-height:34px!important;
  }

  .product-grid.catalog-grid,
  .catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:13px 10px!important;
  }
}

/* Telefonos extremadamente angostos: una sola columna para no aplastar tarjetas */
@media (max-width:340px){
  .product-grid.catalog-grid,
  .catalog-grid{
    grid-template-columns:1fr!important;
  }
  .catalog-grid .product-card h3{
    min-height:0;
    font-size:15px!important;
  }
  .catalog-grid .product-meta{font-size:10.5px!important}
  .catalog-grid .product-card-bottom strong,
  .catalog-grid .discount-price-wrap .discount-price{font-size:16px!important}
}
