:root {
  --blanco: #ffffff; /* colores */
  --negro: #000000;
  --fuentes: "tufuente"; /* fuentes , solo fuentes externas(google fonts) */
}

.flex-wrap {
  display: inline-flex;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%; /* se ajusta al contenedor padre */
  -webkit-overflow-scrolling: touch; /* suave en iOS */
}

.textos h2,
.textos p {
  color: var(--blanco);
  filter: drop-shadow(0 0 0.75rem rgb(0, 0, 0));
}

html {
  scroll-behavior: smooth;
}

/* Estilos para checkout y carrito */
.checkout-cart-total {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.order-summary-table {
  width: 100%;
}

.order-summary-table th,
.order-summary-table td {
  padding: 8px;
  border-bottom: 1px solid #dee2e6;
}

.order-summary-table tfoot {
  font-weight: bold;
}

.payment-info {
  padding: 10px 15px;
  margin-top: 5px;
  background-color: #f0f0f0;
  border-radius: 3px;
  font-size: 0.9rem;
}

.checkout-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.order-details-container {
  background-color: #f8f9fa;
  border-radius: 5px;
}

/* Mejoras para formulario de checkout */
#checkout-form .form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#checkout-form .was-validated .form-control:invalid {
  border-color: #dc3545;
}

#checkout-form label {
  font-weight: 600;
}

/* ===========================
   ESTILOS PARA FILTROS DE TIENDA
   =========================== */

/* Sidebar de filtros */
.sidebar-wrapper {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.sidebar-widget {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #339DBA;
}

/* Búsqueda de productos */
.sidebar-search form {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sidebar-search input:focus {
  border-color: #339DBA;
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 157, 186, 0.1);
}

.sidebar-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #339DBA;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 10px;
}

/* Lista de categorías */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 8px;
}

.sidebar-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  color: #555555;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar-list a:hover {
  background-color: #f0f0f0;
  color: #339DBA;
  padding-left: 20px;
}

.sidebar-list a.active {
  background-color: #339DBA;
  color: #ffffff;
  font-weight: 600;
}

.sidebar-list a.active:hover {
  background-color: #2a8399;
}

.sidebar-list .count {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.sidebar-list a.active .count {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Filtro de precio */
.price-input-wrapper input {
  font-size: 14px;
  padding: 8px 12px;
}

.price-input-wrapper button {
  background-color: #339DBA;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.price-input-wrapper button:hover {
  background-color: #2a8399;
}

/* Checkboxes personalizados */
.custom-control {
  position: relative;
  display: block;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.custom-control-input {
  position: absolute;
  left: 0;
  z-index: -1;
  width: 1rem;
  height: 1.25rem;
  opacity: 0;
}

.custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: top;
  cursor: pointer;
  font-weight: 500;
  color: #555555;
}

.custom-control-label::before {
  position: absolute;
  top: 0.25rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #fff;
  border: 1px solid #adb5bd;
  border-radius: 0.25rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: #339DBA;
  background-color: #339DBA;
}

.custom-control-input:checked ~ .custom-control-label::after {
  content: "✓";
  position: absolute;
  top: 0.25rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  color: white;
  text-align: center;
  line-height: 1rem;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Contador de resultados */
#results-count {
  font-weight: 600;
  color: #555555;
}

#shown-products,
#total-products {
  color: #339DBA;
  font-weight: 700;
}

/* Responsive para filtros */
@media (max-width: 991px) {
  .sidebar-wrapper {
    margin-bottom: 30px;
  }
  
  .sidebar-widget {
    margin-bottom: 15px !important;
  }
}

/* Animación de carga */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Mensaje cuando no hay productos */
.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
  padding: 20px;
  border-radius: 6px;
  font-size: 16px;
}
/* botón flotante whatsapp */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 140px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  display: block;
  border-radius: 50%; /* opcional */
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* botón flotante whatsapp end */