* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.header {
  background: black;
  color: white;
  text-align: center;
  padding: 20px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.nav a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px;
}

.product-card img {
  width: 100%;
}

.product-card h3 {
  margin-top: 10px;
  font-size: 14px;
}

.product-card p {
  font-weight: bold;
}

.footer {
  background: black;
  color: white;
  text-align: center;
  padding: 20px;
}

.logo {
  height: 200px;
  object-fit: contain;
}

/* DROPDOWN */
.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown span {
  font-weight: 500;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px 30px;
  gap: 40px;
  border: 1px solid #ddd;
  z-index: 1000;
}

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-column strong {
  font-size: 14px;
}

.dropdown-column a {
  text-decoration: none;
  color: black;
  font-size: 13px;
}


.dropbtn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px 30px;
  gap: 40px;
  border: 1px solid #ddd;
  z-index: 1000;
}

.dropdown-content.show {
  display: flex;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#searchInput {
  position: absolute;
  left: 30px;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  outline: none;
  width: 160px;
}

.search-container {
  position: absolute;
  left: 30px;
  top: 20px;           /* 🔼 más arriba */
  display: flex;
  align-items: center;
  background: white;
  border-radius: 25px;
  padding: 6px 14px;
}

.search-icon {
  font-size: 14px;
  margin-right: 8px;
}

#searchInput {
  border: none;
  outline: none;
  font-size: 13px;
  width: 200px;        /* ➜ más larga */
}

.search-container:focus-within {
  box-shadow: 0 0 0 1px black;
}

/*carrito*/

.cart-btn {
  position: fixed;
  top: 25px;
  right: 25px;
  background: white;
  color: black;
  border: 1px solid black;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 2000; /* MÁS ALTO QUE TODO */
  font-size: 18px;
}


.cart {
  position: fixed;
  top: 80px;
  right: 15px;
  width: 320px;
  max-height: 80vh;
  background: white;
  border: 1px solid #ddd;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
}

.cart h2 {
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.cart ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.cart li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hidden {
  display: none;
}
.close-cart {
  margin-top: 15px;
  background: black;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
} 

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-img {
  width: 50px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-info {
  flex: 1;
  font-size: 13px;
}

.cart-name {
  font-weight: bold;
  display: block;
}

.cart-price {
  color: #555;
  font-size: 12px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.cart-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid black;
  background: white;
  cursor: pointer;
  font-size: 14px;
}

.cart-sub {
  font-weight: bold;
  font-size: 13px;
}

.cart-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.categoria-titulo {
  text-align: center;
  margin: 20px 0 10px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.categoria-vacio {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  grid-column: 1 / -1;
}

.destacados-titulo {
  text-align: center;
  margin: 25px 0 10px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.destacados-vacio {
  display: none;
}

.talles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 8px 0;
}

.talle-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #333;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.talle-btn:hover {
  background: #f2f2f2;
}

.talle-btn.talle-seleccionado {
  background: black;
  color: white;
  border-color: black;
}

.talle-btn.talle-disabled {
  color: #bbb;
  border-color: #ddd;
  background: #f7f7f7;
  cursor: not-allowed;
}

/* ---------- GALERÍA DE FOTOS (carrusel) ---------- */

.carrusel {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.carrusel-imgs img {
  display: none;
  width: 100%;
}

.carrusel-imgs img.activa {
  display: block;
}

.carrusel-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.carrusel-prev {
  left: 6px;
}

.carrusel-next {
  right: 6px;
}

.carrusel-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.carrusel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  display: inline-block;
}

.carrusel-dots .dot.activo {
  background: white;
  outline: 1px solid #333;
}

/* ---------- BOTONES DE COLOR ---------- */

.colores-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 8px 0;
}

.color-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 20px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  font-size: 12px;
}

.color-btn:hover {
  border-color: #999;
}

.color-btn.color-seleccionado {
  border-color: black;
  background: #f2f2f2;
  font-weight: bold;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: inline-block;
}

.color-swatch[data-color="negro"] { background: #000000; }
.color-swatch[data-color="blanco"] { background: #ffffff; }
.color-swatch[data-color="chocolate"] { background: #5C3317; }
.color-swatch[data-color="bordo"] { background: #7D1935; }
.color-swatch[data-color="azul"] { background: #1E3A8A; }
.color-swatch[data-color="verde"] { background: #228B22; }
.color-swatch[data-color="camel"] { background: #C19A6B; }
.color-swatch[data-color="plateado"] { background: #C0C0C0; }
.color-swatch[data-color="dorado"] { background: #D4AF37; }
.color-swatch[data-color="vison"] { background: #A9967B; }
.color-swatch[data-color="uva"] { background: #6F2DA8; }
.color-swatch[data-color="rojo"] { background: #FF0000; }
.color-swatch[data-color="amarillo"] { background: #FFD700; }
.color-swatch[data-color="rosa"] { background: #FF69B4; }
.color-swatch[data-color="celeste"] { background: #87CEEB; }

.product-card-destacado {
  text-decoration: none;
  color: inherit;
  display: block;
}
