/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  background: radial-gradient(circle at top, #fffdfd 0%, #f8f2f1 35%, #f6f1f0 70%, #f3eceb 100%);
  font-family: 'Poppins', sans-serif;
  color: #4b3b3f;
  line-height: 1.5;
  overflow-x: hidden;
}

/* CONTENEDOR GLOBAL */
.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

/* =========================
   NAVBAR GLOBAL
========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(183, 110, 121, 0.08);
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 4px;
  font-size: 20px;
  color: #b76e79;
  text-decoration: none;
  white-space: nowrap;
}

.menu {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.menu a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  color: #4b3b3f;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1.5px;
  background: #b76e79;
  transition: width 0.3s ease;
}

.menu a:hover,
.menu a.active {
  color: #b76e79;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.icons a:hover {
  transform: translateY(-2px) scale(1.06);
  opacity: 0.75;
}

.icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #b76e79;
  line-height: 1;
  padding: 0;
}

/* CART COUNTER */
.cart-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #b76e79;
  color: white;
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   NAVBAR RESPONSIVE
========================= */
@media (max-width: 992px) {
  .topbar {
    padding: 20px 30px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu {
    gap: 20px;
    justify-content: center;
    flex: unset;
    width: 100%;
    order: 3;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: none;
    border: none;
    color: #b76e79;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 24px;
    width: 230px;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(183, 110, 121, 0.1);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    z-index: 1100;
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 16px 24px;
    position: relative;
  }

  .icons {
    position: relative;
    margin-left: auto;
    padding-right: 52px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 14px 18px;
  }

  .brand {
    font-size: 16px;
    letter-spacing: 3px;
  }
}
