
@media (max-width: 768px) {
  .categorias {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .categorias ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.5rem !important;
    padding: 0 1rem !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }

  .categorias ul::-webkit-scrollbar {
    display: none !important;
  }

  .categorias li {
    flex: 0 0 auto !important;
    list-style: none !important;
    margin: 0 !important;
    width: auto !important;
  }

  .categorias a {
    display: block !important;
    white-space: nowrap !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0.4rem 1rem !important;
    color: #333 !important;
    background-color: #f5f5f5 !important;
    border-radius: 20px !important;
    border: 1px solid #e5e5e5 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  .categorias a:active {
    background-color: #222 !important;
    color: #fff !important;
    border-color: #222 !important;
  }
}

@media (max-width: 768px) {
  .header-main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo-container {
    align-self: flex-start;
  }

  .menu {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }

  .menu a {
    text-align: center;
    width: auto;
  }
}
@media (max-width: 768px) {
  .carrito-flotante {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  /* ── Grilla 2 columnas ───────────────────────────────────────────────────
     Usamos #productosContainer .producto para ganar especificidad sobre
     la regla de style.css que pone width:100% max-width:320px margin:auto
     (esa regla rompe la grilla y fuerza 1 tarjeta por fila).               */
  #productosContainer {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    padding: 0;
    box-sizing: border-box;
  }

  #productosContainer .producto {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  #productosContainer .producto img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ── Fix precio oferta ───────────────────────────────────────────────────
     .precio es un <p> inline por defecto. En tarjetas de ~50% del viewport
     el span tachado + margin-right empuja el span oferta fuera del área
     visible. Lo convertimos en flex-wrap para que bajen de línea en lugar
     de quedar cortados por overflow.                                         */
  #productosContainer .precio {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline;
    column-gap: 6px;
    row-gap: 2px;
    line-height: 1.4;
    margin-top: auto !important;
    margin-bottom: 0.5rem;
    padding: 0;
    font-weight: 700 !important;
  }

  /* Precio original tachado: siempre íntegro en su línea */
  #productosContainer .precio span:first-child {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Precio oferta: claramente visible, más peso visual */
  #productosContainer .precio span:last-child {
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 700 !important;
    font-size: 1em !important;
  }
}

@media screen and (max-width: 768px) {
  .footer .footer-contenido {
    gap: 0.5rem !important;
  }
  .footer .footer-der {
    gap: 0.5rem !important;
    margin-left: -15px !important; /* lo corremos un poco a la izquierda */
  }
  .footer .footer-afip img {
    height: 40px !important; /* achicar el QR de AFIP que ocupa mucho lugar */
  }
  .footer .contacto-info {
    font-size: 0.75rem !important; /* texto ligeramente mas chico para que entre el email */
    margin: 0 0.3rem !important;
  }
  .footer .footer-contacto {
    gap: 0.3rem !important;
  }
  .footer .footer-contenido p {
    white-space: normal !important;
    font-size: 0.8rem;
  }
}
