body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background-color: #ffffff;
}

header {
  background-color: white;
  color: #333;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.acciones{

  display: flex;
  align-items: center;
  gap: 20px;

}

.nav {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  color: #daa520;
  border-bottom: 2px solid #daa520;
  background-color: white;
  z-index: 1000;
}

.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0px;
}
.menu a {
  margin: 0 15px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: bold;
}

.icon-cart {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-top: 0px;
  margin-bottom: 0px;
}

.count-product {
  position: absolute;
  top: -2px;
  right: 10px;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.cart-svg {
  width: 24px;
  height: 24px;
  stroke: rgb(0, 0, 0);
  
}
.login-svg {
  width: 24px;
  height: 24px;
  stroke: rgb(0, 0, 0);
}

.texto-body{
    text-align: center;
}

.carrito-slide {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.carrito-slide.abierto {
  right: 0;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.carrito-header h3 {
  margin: 0;
}

#cerrar-carrito {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.carrito-contenido {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
}


.item-carrito {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.carrito-slide {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.carrito-slide.visible {
  right: 0;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.carrito-header h3 {
  margin: 0;
}

#cerrar-carrito {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.carrito-contenido {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
}

.item-carrito {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.usuario {
  display: flex;
  align-items: center;
  gap: 10px; /* espacio entre íconos y texto */
}



.nombre-usuario-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  color: #333;
}

.bienvenida {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
}

.menu-desplegable {
  display: none;
  position: absolute;
  top: 60px;
  right: 60px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  flex-direction: column;
  padding: 10px 0;
  min-width: 150px;
}

.menu-desplegable a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.menu-desplegable a:hover {
  background-color: #f0f0f0;
}

.usuario {
  position: relative; /* Necesario para posicionar el menú */
}

.acciones{

  display: flex;
  align-items: center;
  gap: 20px;

}






























@media (max-width: 768px) {
  /* Header compacto */
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }

  .marca {
    flex: 1;
  }

  /* Menú en una sola línea scrollable si no entra */
  .menu {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    width: 100%;
  }

  .acciones {
    flex: 1;
    justify-content: flex-end;
    gap: 10px;
  }

  /* Ajustar iconos */
  .icon-cart, .icon-login {
    width: 30px;
    height: 30px;
  }

  .cart-svg, .login-svg {
    width: 20px;
    height: 20px;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 2rem;
    gap: 20px;
    text-align: center;
  }

  .hero img {
    width: 100%;
    max-width: 280px;
  }

  /* Productos */
  .img-producto {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  /* Carrito en móvil ocupa todo */
  .carrito-slide {
    width: 100%;
  }
}


@media (max-width: 480px) {
  .menu a {
    font-size: 14px;
    margin: 5px 0;
  }

  h2 {
    font-size: 28px;
  }

  .btn-comprar {
    padding: 10px 16px;
    font-size: 14px;
  }
}
