/* =========================================
   CATÁLOGO MESERO — Estilos complementarios
   Se combinan con las reglas base de styles.css
   ========================================= */

/* Asegurar que el input de búsqueda use font-size 16px en móviles
   para evitar el auto-zoom en iOS/Safari                         */
@media (max-width: 768px) {
  .catalog-search-wrap input {
    font-size: 16px;
  }
}

/* Sombra sutil en el borde inferior del bloque sticky
   para indicar que hay contenido detrás al hacer scroll */
.catalog-sticky-top.scrolled {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* =========================================
   TARJETA REPARTIDOR — Flujo de entrega
   ========================================= */

.delivery-card {
  border-left: 4px solid #0f5d52;
  background: #fff;
}

.delivery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.delivery-order-num {
  font-weight: 700;
  font-size: 1rem;
  color: #0f5d52;
}

.delivery-client-info {
  background: #f0faf8;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.delivery-client-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.delivery-label {
  font-size: .8rem;
  color: #6b7280;
  min-width: 90px;
}

.delivery-call-btn {
  margin-left: auto;
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
  font-weight: 600;
  padding: .3rem .8rem;
  font-size: .85rem;
  text-decoration: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.delivery-call-btn:hover {
  background: #16a34a;
  border-color: #16a34a;
}

.delivery-items-section {
  margin-bottom: .75rem;
}

.delivery-items-title {
  font-weight: 600;
  font-size: .85rem;
  color: #374151;
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.delivery-item-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .3rem 0;
  border-bottom: 1px dashed #e5e7eb;
  flex-wrap: wrap;
}

.delivery-item-row:last-child {
  border-bottom: none;
}

.delivery-item-name {
  font-weight: 600;
  flex: 1;
  word-break: break-word;
}

.delivery-item-qty {
  background: #0f5d52;
  color: #fff;
  border-radius: 12px;
  padding: .1rem .5rem;
  font-size: .8rem;
  font-weight: 700;
}

.delivery-item-note {
  width: 100%;
  color: #6b7280;
  font-size: .78rem;
}

.delivery-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.delivery-wa-btn {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  font-weight: 600;
  flex: 1;
}

.delivery-wa-btn:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
}

.delivery-entregado-btn {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
}

.delivery-done-msg {
  text-align: center;
  color: #6b7280;
  font-size: .9rem;
  padding: .5rem 0;
}

@media (max-width: 600px) {
  .delivery-actions {
    flex-direction: column;
  }

  .delivery-call-btn {
    margin-left: 0;
  }
}
