.tienda-header {
  background: linear-gradient(135deg, #50d9f8 0%, #3a7bd5 100%);
  padding: 2.5rem 1rem;
  text-align: center;
}

.tienda-titulo {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tienda-main {
  background-color: #f8f9fa;
  padding: 4rem 0;
  min-height: 60vh;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  text-decoration: none;
  background: white;
  color: #3a7bd5;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.filter-active {
  background: linear-gradient(45deg, #1a5fa8, #0d3f6e);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(13, 63, 110, 0.4);
}

.filter-active:hover {
  background: linear-gradient(45deg, #0d3f6e, #1a5fa8);
  box-shadow: 0 6px 20px rgba(13, 63, 110, 0.5);
}

.product-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid #8bb8d9;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
}

.product-wishlist:hover {
  background: #f8f9fa;
  transform: scale(1.1);
  border-color: #e74c3c;
}

.product-wishlist i {
  font-size: 1.2rem;
  color: #ccc;
  transition: color 0.3s ease;
}

.product-wishlist:hover i {
  color: #e74c3c;
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.product-brand {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
}

.btn-add-cart {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  color: white;
}

.shadow-blue {
  box-shadow: 0 10px 30px rgba(139, 184, 217, 0.25);
}

.shadow-blue:hover {
  box-shadow: 0 15px 40px rgba(139, 184, 217, 0.35);
}

.btn-azul {
  background: linear-gradient(45deg, #00d2ff, #3a7bd5);
  box-shadow: 0 3px 15px rgba(0, 210, 255, 0.3);
  color: white !important;
}

.btn-azul:hover {
  background: linear-gradient(45deg, #3a7bd5, #00d2ff);
  box-shadow: 0 5px 25px rgba(0, 210, 255, 0.5);
}

.tienda-main .row {
  --bs-gutter-x: 3rem;
}

@media (max-width: 576px) {
  .tienda-header {
    padding: 1.5rem 1rem;
  }

  .tienda-titulo {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .product-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .product-footer .btn-add-cart {
    width: 100%;
    justify-content: center;
  }
}

.product-card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.product-card-link .product-card {
  height: 100%;
}

.product-card-link:hover .product-card {
  transform: translateY(-5px);
  text-decoration: none;
}

.product-card-link:hover {
  text-decoration: none;
}

/* --- ESTILOS DEL MENÚ LATERAL DEL CARRITO --- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px; /* Escondido por defecto */
  width: 350px;
  height: 100%;
  background-color: #fff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: right 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.cart-sidebar.active {
  right: 0; /* Se desliza hacia adentro */
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 15px;
}

.cart-header h4 {
  margin: 0;
  font-weight: bold;
  color: #333;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.cart-body {
  flex-grow: 1;
  padding: 30px 0;
  text-align: center;
}

.cart-body i {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 15px;
}

.cart-footer {
  border-top: 1px solid #f1f1f1;
  padding-top: 20px;
}

/* Capa oscura de fondo */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1999;
}

.sidebar-overlay.active {
  display: block;
}
