body {
  font-family: Lato, sans-serif;
  margin: 0;
  background: #f9f9f9;  
}

/* HEADER minimalista */
.header-minimal {
    position: sticky;
    top: 0;
    z-index: 9998;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Botón volver */
.btn-volver {
    font-size: 16px;
    color: #1b1c24;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    transition: background 0.25s ease;
}

.btn-volver:hover {
    background: #fdf8e8; /* dorado suave */
    color: #1b1c24;
}

/* Esto empuja el carrito a la derecha */
.espaciador {
    flex: 1;
}

.icono-carrito {
  position: relative !important;
  right: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  background: white;
  border: 1px solid #dfe3e8;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 9999;
}

.icono-carrito:hover {
  background: #f8f8f8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.svg-carrito {
  width: 24px;
  height: 24px;
  stroke: #1b1c24;      /* azul-gris profundo */
  fill: none;
}

.badge-carrito {
  position: absolute;
  top: -6px;
  right: -15px;
  background: #f4d58d;     
  color: #1b1c24;
  font-size: 12px;
  padding: 2px 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.icono-carrito {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  padding: 10px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #1b1c24;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}

.icono-carrito:hover {
  background: #fdf8e8;   /* dorado muy suave */
  border-color: #f4d58d;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.svg-carrito {
  width: 22px;
  height: 22px;
  stroke: #1b1c24;
}

.badge-carrito {
  background: #1b1c24;    
  color: white;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
} 

.tienda-titulo {
  font-family: Lato, sans-serif;
  font-size: clamp(32px, 4vw, 40px);
  text-align: center;
  font-weight: 700;
  color: #1b1c24;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  margin-top: 2rem;
  text-transform: uppercase;
  text-shadow: 2px 1px 3px rgba(0,0,0,0.15);
}

/* ----------- TARJETAS ----------- */

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  row-gap: 80px;
  padding: 2rem;
}

/* Caja general */
.producto {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.producto:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.producto img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

.producto:hover img {
  transform: scale(1.03);
}

/* Nombre del producto */
.producto h3 {
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

/* Precio */
.producto p.precio {
  color: #555;
  font-weight: 500;
  font-size: 1rem;
  margin-top: auto;
}

.btn-vermas,
.btn-vermas a.boton-ver {
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 30px;
  background: #f8f8f8;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 0.9rem;
}

.btn-vermas:hover,
.btn-vermas a.boton-ver:hover {
  background: #ececec;
  transform: scale(1.05);
}

.btn-add,
.btn-add a.btn-add {
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 30px;
  background: #f8f8f8;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 0.9rem;
}

.btn-add:hover,
.btn-add a.btn-add:hover {
  background: #ececec;
  transform: scale(1.05);
}

.footer-minimal {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  color: #777;
  font-size: 14px;
  margin-top: 40px;
}

/* Contenedor de botones bajo el precio */
.producto-acciones {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* Botones */
.producto-acciones button {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #dfe3e8;
    background: #fff;
    cursor: pointer;
    transition: background .2s;
}

.producto-acciones button:hover {
    background: #f4f4f4;
}

.producto.agotado {
  opacity: 0.45;
  filter: grayscale(30%);
  position: relative;
  pointer-events: none; 
}

.etiqueta-agotado {
  position: absolute;
  top: 10px;
  left: 10px;

  padding: 6px 10px;
  background: #1b1c24; 
  color: white;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;

  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);

  z-index: 20;
  pointer-events: none;
}

/*Si se necesita resaltar un producto*/
.etiqueta-dorado {
  background: #f4d58d;
  color: #1b1c24;
  font-weight: 700;
}


