/* Comercializadora Panda V8.11 - CATÁLOGOS MÓVILES - sin alterar escritorio */
@media screen and (max-width:767px) {
  html,body {min-width:0;max-width:100%;overflow-x:clip;}
  main,section,article,aside,footer {min-width:0;}
  .container{width:calc(100% - 28px);max-width:100%;}
  /* La grilla anterior usaba min-width:auto y se expandía a casi 1000px en iPhone. */
  .catalog-layout{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:14px;
    width:calc(100% - 28px);max-width:100%;min-width:0;padding-top:18px;padding-bottom:36px;}
  .catalog-layout > .sidebar,.catalog-layout > .catalog-main {min-width:0;width:100%;max-width:100%;}
  .catalog-main{overflow:visible;}
  .sidebar{padding:11px 12px;border-radius:14px;overflow:hidden;position:static;}
  .sidebar h3{font-size:14px;margin:0 0 9px;}
  .side-filter{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;
    width:100%;max-width:100%;gap:7px;padding-bottom:5px;scrollbar-width:thin;}
  .side-filter button{flex:0 0 auto;white-space:nowrap;font-size:12px;min-height:38px;padding:9px 12px;}
  .catalog-toolbar {box-sizing:border-box;width:100%;max-width:100%;min-width:0;display:flex;
    flex-direction:column;align-items:stretch;gap:7px;padding:11px 12px;margin-bottom:12px;}
  .catalog-toolbar input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:16px;min-height:42px;}
  .catalog-meta{font-size:12px;}
  .product-grid {display:grid;grid-template-columns:minmax(0,1fr)!important;gap:11px;
    width:100%;max-width:100%;min-width:0;}
  /* Producto compacto: foto izquierda, datos y acción a la derecha. */
  .product-card{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:stretch;
    width:100%;max-width:100%;min-width:0;overflow:hidden;border-radius:14px;
    border-top-width:3px;box-shadow:0 7px 16px rgba(0,0,0,.18);}
  .product-image{width:110px;min-width:0;min-height:138px;height:100%;max-height:none;
    overflow:hidden;border-right:1px solid #353024;border-bottom:0;position:relative;
    display:flex;justify-content:center;align-items:center;background:#fff;}
  .product-image img,body[data-category="Aseo"] .product-image img{
    width:100%;height:100%!important;max-height:none;min-height:0;object-fit:contain!important;
    padding:6px!important;background:#fff;}
  .product-tag{position:absolute;top:auto;bottom:5px;left:4px;max-width:calc(100% - 8px);
    padding:3px 5px;font-size:9px;line-height:1.12;white-space:normal;overflow-wrap:anywhere;
    border-radius:7px;box-shadow:none;}
  .selected-count{top:5px;right:5px;font-size:9px;padding:3px 5px;}
  .product-body{min-width:0;max-width:100%;padding:10px 11px 11px;display:flex;flex-direction:column;gap:6px;}
  .product-body h3{font-family:"Outfit","Manrope",sans-serif;font-size:15px!important;line-height:1.27;
    margin:0;overflow-wrap:anywhere;word-break:normal;hyphens:auto;}
  .product-body p{font-size:11.5px;line-height:1.4;margin:0;flex:0 0 auto;overflow:hidden;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;}
  .product-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;min-width:0;}
  .product-actions button{min-height:40px;max-width:100%;flex:1 1 100%;border-radius:9px;
    padding:7px 8px;font-size:12px;line-height:1.15;white-space:normal;overflow-wrap:anywhere;}
  .page-intro{padding:23px 0 24px;}
  .page-intro h1{font-size:clamp(24px,6.2vw,29px);line-height:1.14;}
  .page-intro p{font-size:13px;line-height:1.5;}
  .page-intro .section-kicker{font-size:9px;line-height:1.25;letter-spacing:.06em;max-width:100%;}
  .seo-grid,.quote-layout,.footer-grid{display:grid;grid-template-columns:minmax(0,1fr);}
  .quote-strip .container{display:flex;flex-direction:row;align-items:center;justify-content:space-between;
    flex-wrap:nowrap;gap:10px;padding:8px 0;}
  .quote-strip strong{font-size:13px;}
  .quote-strip span{font-size:11px;}
  .quote-strip .btn{width:auto;min-width:105px;min-height:42px;padding:8px 11px;font-size:12px;line-height:1.2;}
  /* Botón WhatsApp compacto, sin tapar el botón para añadir productos */
  .whatsapp{bottom:83px;right:10px;width:44px;height:44px;min-width:44px;max-width:44px;
    padding:0;border-radius:50%;font-size:0;display:flex;align-items:center;justify-content:center;}
  .whatsapp::before{content:"WA";font-size:13px;font-weight:900;letter-spacing:-.02em;color:#fff;}
  /* Portada compacta, con fotografías proporcionadas. */
  .hero-showcase{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .showcase-card img{height:120px!important;max-height:120px;object-fit:cover;}
  .showcase-card span{font-size:10px;padding:6px 8px;max-width:calc(100% - 14px);white-space:normal;}
  .home-categories .category-grid,.category-grid,.steps-grid,.form-grid{grid-template-columns:minmax(0,1fr);}
  .footer-grid>*{min-width:0;}
  .footer-links a,.sales-email-address{overflow-wrap:anywhere;word-break:break-word;}
  /* Cotización adaptable */
  .quote-form{width:100%;min-width:0;max-width:100%;padding:13px;}
  .selected-row{grid-template-columns:43px minmax(0,1fr) 28px;gap:7px;min-width:0;}
  .selected-row img{width:43px;height:44px;}
  .selected-row>div:nth-child(2){min-width:0;overflow-wrap:anywhere;}
  .selected-row strong{font-size:12px;line-height:1.3;}
  .selected-row .qty{grid-column:2;grid-row:2;justify-self:start;}
  .selected-row .delete{grid-column:3;grid-row:1;}
  .quote-form input,.quote-form textarea{min-width:0;max-width:100%;}
}
@media screen and (max-width:359px){
  .product-card{grid-template-columns:92px minmax(0,1fr);}
  .product-image{width:92px;}
  .product-body h3{font-size:14px!important;}
  .product-body p{font-size:11px;}
  .product-tag{font-size:8px;}
}

/* Tablet: eliminar el mismo problema de anchura mínima, conservando tarjetas de 2 columnas */
@media screen and (min-width:768px) and (max-width:1024px) {
  .catalog-layout{grid-template-columns:minmax(0,1fr)!important;min-width:0;}
  .catalog-layout>.sidebar,.catalog-layout>.catalog-main {min-width:0;width:100%;max-width:100%;}
  .sidebar{overflow:hidden;position:static;}
  .side-filter{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;max-width:100%;width:100%;}
  .side-filter button{flex:0 0 auto;white-space:nowrap;}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0;max-width:100%;}
  .product-card,.product-body,.catalog-toolbar{min-width:0;max-width:100%;}
  .product-body h3{overflow-wrap:anywhere;}
}

/* V9: fotografías completas sin recortes en catálogo de tecnología y herramientas. */
body[data-category="Tecnología"] .product-image,body[data-category="Herramientas"] .product-image{background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;min-width:0;}
body[data-category="Tecnología"] .product-image img,body[data-category="Herramientas"] .product-image img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain!important;object-position:center;padding:12px;box-sizing:border-box;background:#fff;}
body[data-category="Tecnología"] .product-card,body[data-category="Herramientas"] .product-card{min-width:0;}
body[data-category="Tecnología"] .product-body h3,body[data-category="Herramientas"] .product-body h3{overflow-wrap:anywhere;}
@media(max-width:620px){body[data-category="Tecnología"] .product-image,body[data-category="Herramientas"] .product-image{height:230px;}body[data-category="Tecnología"] .product-image img,body[data-category="Herramientas"] .product-image img{padding:10px;}}
