/* Contenedor general */
.contenedor {
  display: flex;
  padding: 2rem;
  background-color: var(--color-bg);
}

/* Sidebar de filtros */
.sidebar {
  width: 250px;
  background-color: var(--color-light);
  padding: 1rem;
  margin-right: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.filtro {
  margin-bottom: 1.5rem;
}

.filtro label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

.filtro select,
.filtro input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: white;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

/* Sección de productos */
.productos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.producto-card {
  background-color: var(--color-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Imagen con zoom */
.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.zoom-hover:hover img {
  transform: scale(1.1);
}

/* Badge de agotado */
.offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: crimson;
  color: white;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 2;
}

/* Títulos y precio */
.producto-card h5 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--color-dark);
}

.producto-card p.text-muted {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.producto-card h4.text-primary {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* Pre con scroll y límites */
.producto-card pre {
  background-color: #f5f5f5;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 6px;
  color: var(--color-dark);
  overflow-x: auto;
  max-height: 150px;
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

/* Estilos para tablas internas */
.producto-card table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.producto-card table td, 
.producto-card table th {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}

/* Acordeón */
.producto-card .accordion-button {
  background-color: var(--color-light);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
}

.producto-card .accordion-button:not(.collapsed) {
  background-color: var(--color-secondary);
  color: white;
}

.producto-card .accordion-body {
  font-size: 0.85rem;
  color: #333;
  background-color: #fff;
}

/* Botón de cotización */
/* .producto-card button {
  background-color: var(--color-dark);
  color: white;
  border: 1px solid var(--color-dark);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.producto-card button:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
} */


/* Ícono de carrito fijo */
.carrito {
  position: relative;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
}

.carrito .badge {
  position: absolute;
  top: -10px;
  right: -12px;
  background-color: red; /* Más llamativo que el color primario */
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 5px 8px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transform: scale(1);
  transition: transform 0.2s ease, background-color 0.3s ease;
  z-index: 10;
}

.drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  right: 0;
}

.drawer-header, .drawer-footer {
  padding: 1rem;
  background: #f4f4f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  /* z-index: 9998; */
  display: none;
}

.drawer-overlay.active {
  display: block;
}

.carro-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}
.carro-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 10px;
}
