/* =====================================================================
   Farmacia Arenales — MÓVIL (rev. 2026-11): tienda pensada para el pulgar
   Se carga después de custom.css (ver config/theme.yml).
   ===================================================================== */
/* El classic pone el slider a sangre con left:50% / margin-left:-50vw */
.arl-hero__media .carousel{left:0!important;margin-left:0!important;width:100%!important}
body{overflow-x:clip}

@media (max-width:767px){
  body{font-size:14px}
  #wrapper{padding-top:0}
  #wrapper .container{padding-left:12px;padding-right:12px}
  #wrapper .row{margin-left:-12px;margin-right:-12px}
  #wrapper [class*="col-"]{padding-left:12px;padding-right:12px}
  /* Ficha: sin tira de miniaturas si solo hay una foto, portada más baja */
  #product .images-container .js-qv-mask:has(.thumb-container:only-child){display:none}
  #product .product-cover{margin-bottom:.4rem}
  #product .product-cover .layer{display:none}
  .page-home.arl-home{margin:0 -12px}

  /* Cabecera compacta */
  .arl-header__row{padding:.25rem 8px}
  #header .arl-header__logo .logo{height:44px}
  .arl-icon{width:38px;height:38px}
  .arl-quick{display:flex;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
  .arl-quick::-webkit-scrollbar{display:none}
  .arl-quick a{flex:none;padding:.55rem .85rem;font-size:.7rem;letter-spacing:.05em}
  .arl-search{padding:0 8px 4px}
  #header #search_widget.arl-search form input[type=text]{padding:.55rem .4rem .55rem 0!important;font-size:16px!important;text-align:left;letter-spacing:.02em}

  /* Hero: foto + ventajas en tarjeta compacta */
  .arl-hero{margin-bottom:1.2rem}
  .arl-hero__media{aspect-ratio:16/11}
  .arl-hero__media .carousel .caption{bottom:1rem;padding:0 1rem;max-width:90%}
  .arl-hero__media .carousel .caption .display-1{font-size:1.05rem}
  .arl-hero__media .carousel-indicators{bottom:4px}
  .arl-hero__panel{padding:1.1rem 14px}
  .arl-hero__panel h2{font-size:.88rem;margin-bottom:.8rem;letter-spacing:.06em}
  .arl-hero__panel ul{grid-template-columns:1fr 1fr;gap:.7rem .8rem}
  .arl-hero__panel li{grid-template-columns:16px 1fr;gap:.4rem}
  .arl-hero__panel strong{font-size:.72rem;letter-spacing:.05em}
  .arl-hero__panel p{display:none}
  .arl-ico{font-size:.9rem}

  /* Secciones y títulos */
  .arl-sec{margin:2rem 0;padding:0 12px}
  .arl-title{font-size:1rem;margin-bottom:1rem}
  .arl-bigtitle{font-size:1.5rem;margin-bottom:1rem}
  .arl-center{margin-top:1rem}

  /* Tarjeta de producto más baja */
  .arl-card__img{padding:.5rem}
  .arl-card__body{padding:.3rem .6rem .7rem}
  .arl-card__name{font-size:.72rem;letter-spacing:.06em;margin-bottom:.3rem;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .arl-card__price{margin-bottom:.4rem}
  .arl-card__price .price{font-size:.9rem}
  .arl-card__btn{font-size:.78rem;padding:.4rem .5rem;border:1px solid var(--ink-2);border-radius:999px;width:100%;justify-content:center}
  .arl-card .product-flags li.product-flag{font-size:.6rem;padding:.1rem .4rem}
  .arl-card .wishlist-button-add{display:none}
  .arl-carousel__track,.arl-viral__list .arl-carousel__track{grid-auto-columns:46%;gap:.7rem}

  /* Tendencias 2x2 compacto */
  .arl-trends{gap:.7rem}
  .arl-trend img{aspect-ratio:1}
  .arl-trend h3{font-size:1rem;margin:.6rem .2rem .3rem;padding-bottom:.3rem}
  .arl-trend span{margin:0 .2rem;font-size:.66rem}

  /* Bloque Edgar Neville */
  .arl-en{padding:0;margin:1.2rem 0}
  .arl-en .sfh-hero{padding:1.2rem 12px!important}
  .arl-en .sfh-hero__titulo{font-size:1.2rem!important}
  .arl-en .sfh-hero__sub{font-size:.8rem}
  .arl-en .sfh-buscador__input{font-size:16px!important}
  .arl-en .sfh-seccion{padding:0 12px;margin:1.6rem 0}
  .arl-en .sfh-seccion__cab{margin-bottom:.7rem}
  .arl-en .sfh-seccion__cab h2,.arl-en .sfh-seccion h2{font-size:.88rem!important;letter-spacing:.08em}
  .arl-en .sfh-cats__lista{grid-template-columns:repeat(3,1fr)!important;gap:.5rem!important}
  .arl-en .sfh-cats__enlace{padding:.6rem .3rem!important;min-height:0!important;height:auto!important}
  .arl-en .sfh-cats__img{width:38px!important;height:38px!important;margin-bottom:.3rem!important}
  .arl-en .sfh-cats__img svg{width:18px;height:18px}
  .arl-en .sfh-cats__nombre{font-size:.7rem!important;line-height:1.2}
  /* "Lo más vendido en…": fila deslizable en vez de rejilla larguísima */
  .arl-en .sfh-rejilla{display:grid!important;grid-auto-flow:column;grid-template-columns:none!important;grid-auto-columns:42%;
    gap:.6rem!important;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.6rem;scrollbar-width:none}
  .arl-en .sfh-rejilla::-webkit-scrollbar{display:none}
  .arl-en .sfh-rejilla>*{scroll-snap-align:start;min-width:0}

  /* Servicios, marcas, acordeón, newsletter, pie */
  .arl-care{gap:.6rem}
  .arl-care b{font-size:.85rem;padding-bottom:.4rem;margin-bottom:.4rem}
  .arl-care i{font-size:.62rem}
  .arl-service{padding:1.5rem 12px;margin:2rem 0;gap:1rem}
  .arl-service__img h2{font-size:1.4rem}
  .arl-service__txt p{font-size:.9rem}
  .arl-brands-sec{padding:1.8rem 12px;margin:2rem 0}
  .arl-brands--img{grid-template-columns:repeat(3,1fr)!important;gap:.5rem}
  .arl-seo{padding:0 12px}
  .arl-seo summary{font-size:.92rem;padding:.9rem 2rem .9rem 0}
  .arl-news{padding:1.4rem 14px;gap:.8rem}
  .arl-news__h{font-size:1.2rem!important}
  .arl-footer{padding:2rem 14px 5rem}
  .arl-footer__grid{grid-template-columns:1fr 1fr;gap:1.4rem 1rem}
  .arl-footer__brand{grid-column:1/-1}
  .arl-footer__brand img{height:60px}
  .arl-footer li{margin:.5rem 0}

  /* Listados de categoría y búsqueda */
  .block-category{padding:.8rem 0!important;margin-bottom:.8rem;background:none!important}
  .block-category h1{font-size:1.3rem!important}
  #subcategories{margin-bottom:.8rem}
  #subcategories .subcategory-heading{font-size:.8rem;margin-bottom:.4rem}
  #subcategories ul{display:flex!important;flex-wrap:nowrap;overflow-x:auto;gap:.4rem;scrollbar-width:none;padding-bottom:.3rem;margin:0}
  #subcategories ul::-webkit-scrollbar{display:none}
  #subcategories ul li{flex:none;width:auto!important;margin:0!important;padding:0!important;min-height:0!important}
  #subcategories ul li .subcategory-image{display:none}
  #subcategories ul li h5{margin:0}
  #subcategories ul li h5 a,#subcategories ul li>a{display:block;padding:.4rem .8rem;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:.75rem!important;white-space:nowrap;min-height:0}
  #products .products{gap:.6rem;grid-template-columns:1fr 1fr}
  .products-selection{margin-bottom:.6rem}
  #search_filter_toggler{width:100%;border-radius:0}

  /* Ficha de producto */
  #product .breadcrumb{font-size:.68rem;padding:.4rem 0}
  #product .product-cover img{max-height:300px;width:auto;max-width:100%;margin:0 auto;object-fit:contain}
  #product .product-images>li.thumb-container>.thumb{border-width:2px}
  #product h1.h1{font-size:1.05rem;letter-spacing:.05em;margin-top:.5rem}
  #product .product-prices{margin:.4rem 0}
  #product .product-prices .current-price-value{font-size:1.4rem}
  #product .product-add-to-cart .product-quantity{display:flex;flex-wrap:nowrap;gap:.5rem;align-items:center}
  #product .product-add-to-cart .add{flex:1;margin:0}
  #product .product-add-to-cart .add-to-cart{width:100%;padding:.75rem .5rem;font-size:.85rem}
  #product .wishlist-button-product{position:static!important;margin-left:.3rem;flex:none}
  #product .social-sharing{display:none}
  #product .blockreassurance_product{font-size:.82rem}
  #product .tabs{padding:.6rem 0;box-shadow:none}

  /* WhatsApp: pequeño */
  .arenales-wa{left:12px;bottom:12px;width:44px;height:44px}
}
@media (max-width:360px){
  .arl-hero__panel ul{grid-template-columns:1fr}
}

/* Página de marcas: rejilla de logos (todas las anchuras) */
#manufacturer #main ul{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1rem;padding:0;list-style:none}
#manufacturer #main ul li.brand{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid var(--line);background:#fff;padding:.6rem;margin:0;width:auto}
#manufacturer #main ul li.brand .brand-img{width:100%;margin:0}#manufacturer #main ul li.brand .brand-img img{width:100%;max-width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
#manufacturer #main ul li.brand .brand-infos{width:auto;padding:0}
#manufacturer #main ul li.brand .brand-infos p a{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
#manufacturer #main ul li.brand .brand-products{display:none}
@media (max-width:1100px){#manufacturer #main ul{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:767px){#manufacturer #main ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}#manufacturer #main ul li.brand{padding:.4rem}}
