/* ====== RESET ====== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
body{font-family:Arial,Helvetica,sans-serif;background:#fafafa;color:#333;}

/* ====== CABECERA ====== */
.topbar{display:flex;align-items:center;gap:1rem;background:#222;padding:.8rem 1rem;}
.logo{height:80px}
.topbar input{flex:1;padding:.6rem 1rem;border:none;border-radius:4px;font-size:1rem;}

.topbar2 {
  display: flex;
  justify-content: flex-end;  
  align-items: center;       
  gap: 1rem;
  background: #ffffff;
  padding: .1rem 1rem;
          
}
 

/* ------------- NUEVO: login / saludo ------------- */
#userBox{display:flex;align-items:center;gap:.6rem;color:#fff;}
#userBox button{padding:.3rem .8rem;}
 
#searchInput{display:flex;color:#464545;font-weight:600; width: 30%;}

.greet{font-weight:600;color:#fff;}

#carrBox{display:flex;align-items:center;gap:.6rem;color:#fff;}
.carr{font-weight:600;;align-items:center;color:#fff;}

 

/* ====== CATÁLOGO / CARRUSEL ====== */
h2{margin:2rem 0 1rem 1rem;font-size:1.3rem;color:#555;}

.carousel{
  display:flex;
  gap:1rem;
  padding:0 1rem 1rem;
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
}
.card{
  flex:0 0 200px;
  scroll-snap-align:start;
  background:#fff;
  border-radius:6px;
  overflow:hidden;
  text-decoration:none;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  transition:transform .2s;
}
.card:hover{transform:translateY(-4px);}
.card img{width:100%;aspect-ratio:1/1;object-fit:cover;}
.card h3{padding:.6rem .8rem;font-size:.9rem;color:#222;}
.price{padding:0 .8rem 1rem;color:#d35400;font-weight:700;}

/* ====== PÁGINA DE AUTENTICACIÓN ====== */
.center{display:flex;justify-content:center;align-items:center;height:100vh;background:#f4f4f4;}
.auth-box{
  background:#fff;
  padding:2rem 2.5rem;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  width:320px;
}
.auth-box form{display:flex;flex-direction:column;gap:.8rem;}
.auth-box input{padding:.5rem .8rem;border:1px solid #ccc;border-radius:4px;}
.auth-box button{padding:.6rem 0;background:#d35400;color:#fff;border:none;border-radius:4px;cursor:pointer;}
.auth-box .switch{font-size:.9rem;text-align:center;}
.msg{color:#d35400;text-align:center;margin-top:.5rem;}

/* ====== RESET ====== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.5;
}

/* ====== CABECERA ====== */
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #19487e, #083846);
  padding: .8rem 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.topbar2 {
  display: flex;
 
  gap: 1rem;
  
  padding: .8rem 1rem;
  box-shadow: 0 2px 6px rgba(2, 2, 2, 0.15);
}
.logo {
  height: 170px;
}

.topbar input {
  flex: 1;
  padding: .6rem 1rem;
  border: none;
  
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
}

/* Login / saludo */
#userBox {
  width: 300px;
  display: flex;
  align-items:center;
  gap: .16rem;
  color: #fff;
}
#carrBox {
  width: 40px;
  height: 30px;
  
  display: flex;
  
  align-items:end;
 
  color: #fff;
}
#cartBadge
{
  width: 50px;
  height: 30px;
  align-self: center;
  display: flex;
  
  align-items:end;
 
  color: #0a0707;
}

#userBox button {
  padding: .4rem 1rem;
  background: #083846;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}
#userBox button:hover {
  background: #ff4b4b;
  transform: scale(1.05);
}
.greet {
  font-weight: 600;
  color: #757575;
}
.carr
{
  
  align-self: center;
  font-weight: 600;
  color: #000000;
 
  width: 70px;
  height: 50px;
}

 


/* ====== CATÁLOGO / CARRUSEL ====== */
h2 {
  margin: 2rem 0 1rem 1rem;
  font-size: 1.4rem;
  color: #222;
  font-weight: 600;
}

.carousel {
  display: flex;
  gap: 1rem;
  padding: 0 1rem 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.card h3 {
  padding: .8rem 1rem;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}
.price {
  padding: 0 1rem 1rem;
  color: #0077ff;
  font-weight: 700;
  font-size: 1rem;
}

/* ====== PÁGINA DE AUTENTICACIÓN ====== */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg,  #0077ff, #00c6ff);
}

.auth-box {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  width: 350px;
  animation: fadeIn 0.5s ease;
}
.auth-box form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-box input {
  padding: .6rem .9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.auth-box input:focus {
  border-color: #0077ff;
  outline: none;
  box-shadow: 0 0 6px rgba(0,119,255,0.3);
}
.auth-box button {
  padding: .8rem 0;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}
.auth-box button:hover {
  background: #0056cc;
  transform: scale(1.05);
}
.auth-box .switch {
  font-size: .9rem;
  text-align: center;
  color: #555;
}
.msg {
  color: #ff6b6b;
  text-align: center;
  margin-top: .6rem;
  font-weight: 500;
}

/* ====== Animación ====== */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}


/* ====== HERO SLIDER ====== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  margin-bottom: 2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== BOTONES AGREGAR ====== */
.btn {
  display: block;
  width: 90%;
  margin: 0.5rem auto 1rem;
  padding: 0.6rem;
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all .3s ease;
}
.btn:hover {
  background: linear-gradient(135deg, #0056cc, #00aaff);
  transform: scale(1.05);
}

/* ====== BARRA DE CATEGORÍAS ====== */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #19487e, #083846);
  border-bottom: 2px solid #fffdfd;
  flex-wrap: wrap;
  
  position: sticky;
  top: 0;
  z-index: 50;
}

.cat-btn {
  background: linear-gradient(135deg, #818385, #083846);
  color: rgb(247, 245, 245);
  border: none;
  border-radius: 35px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
 
.cat-btn:hover {
  background: linear-gradient(135deg, #0056cc, #00aaff);
  transform: scale(1.05);
}