/* Barra de búsqueda, contacto rápido y panel de carrito en home */

.home-toolbar {
  background: linear-gradient(135deg, #1d6fd8 0%, #3d8fe8 100%);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(29, 111, 216, 0.2);
}

.home-toolbar__search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.home-toolbar__search .btn-todos {
  background: #ffc107;
  border: none;
  color: #1a1a1a;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.home-toolbar__search .btn-todos:hover {
  background: #e0a800;
  color: #1a1a1a;
}

.home-toolbar__search .form-control {
  flex: 1;
  min-width: 140px;
  border: none;
  border-radius: 0.5rem;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.home-toolbar__search .btn-buscar {
  background: rgba(255, 255, 255, 0.95);
  color: #1d6fd8;
  border: none;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1.1rem;
}

.home-toolbar__search .btn-buscar:hover {
  background: #fff;
  color: #0b5ed7;
}

.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.home-quick-actions__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-quick-actions__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.home-quick-actions__btn--call {
  background: #fff;
  color: #1d6fd8;
}

.home-quick-actions__btn--wa {
  background: #25d366;
  color: #fff;
}

.home-quick-actions__btn--email {
  background: #fff;
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.35);
}

/* Panel carrito en home */
.cart-panel-wrap {
  background: #f8fafc;
}

.cart-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.cart-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.cart-panel__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #0f172a;
}

.cart-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #1d6fd8;
  color: #1d6fd8;
  text-decoration: none;
  background: #eff6ff;
}

.cart-panel__link:hover {
  background: #1d6fd8;
  color: #fff;
}

.cart-panel .table {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.cart-panel .table thead th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.cart-panel .table tbody tr {
  border-bottom: 1px solid #f1f5f9;
}

.cart-panel .table tbody tr:hover {
  background: #f8fafc;
}

.cart-panel .table tfoot th,
.cart-panel .table tfoot td {
  background: #f8fafc;
  font-weight: 600;
  border-top: 2px solid #e2e8f0;
}

.cart-panel .input-cantidad {
  width: 72px;
  text-align: center;
  border-radius: 0.375rem;
  border: 1px solid #cbd5e1;
}

.cart-panel .quantity-controls .btn {
  min-width: 32px;
  padding: 0.2rem 0.45rem;
}

.cart-panel .sortable-handle {
  color: #94a3b8;
  cursor: grab;
}

@media (max-width: 576px) {
  .home-quick-actions {
    grid-template-columns: 1fr;
  }

  .cart-panel .table thead {
    font-size: 0.75rem;
  }

  .cart-panel {
    padding: 1rem 0.65rem;
  }
}
