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: 30px;
}

.menu a {
  margin: 0 15px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: bold;
}


.icon-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  cursor: pointer;
}

.icon-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.count-product {
  position: absolute;
  top: 7px;
  right: 1px;
  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.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;
}




.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ú */
}


.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;

}


.pedidos-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  font-size: 0.95em;
}

th {
  background-color: #f8f8f8;
  font-weight: 600;
  text-transform: uppercase;
}

.estado {
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  font-size: 0.85em;
  display: inline-block;
  min-width: 80px;
}

.pendiente { background-color: orange; }
.enviado { background-color: dodgerblue; }
.entregado { background-color: green; }

.btn-detalle {
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85em;
  transition: background-color 0.3s;
}

.btn-detalle:hover {
  background-color: black;
}

@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 10px;
  }

  td {
    text-align: right;
    padding: 8px 10px;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75em;
    color: #777;
  }
}



@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;
  }
}