.header {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  padding: 1.8rem clamp(1.2rem, 4vw, 5rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, #ffa4db 15%, #fcfaf6 70%);
  z-index: 20;
}

.nav-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-div {
  width: 100%;
  max-width: 1930px;
  height: 85px;

  display: flex;
  align-items: center;

  position: relative;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: clamp(1.2rem, 2.5vw, 3rem);
}

.navsize-link {
  font-family: Hatton, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;

  font-size: clamp(0.7rem, 0.85vw, 1rem);

  transition: color 0.3s ease;
  white-space: nowrap;
}

.navsize-link:hover {
  color: #3d3d3d;
}

.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-logo {
  width: clamp(110px, 12vw, 160px);
  transition: all 200ms ease;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 20;
}

.cart-rightdiv {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: clamp(0.8rem, 2vw, 1.6rem);
}

.hamburger.hide {
  opacity: 0;
  pointer-events: none;
}

.hamburger span {
  width: 20px;
  height: 1.7px;
  background: #222;
  transition: 0.4s;
}

.close-button {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 30;

  display: flex;
  justify-content: center;
  align-items: center;
}

.close-button span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #222;
  transition: 0.3s ease;
}

.close-button span:nth-child(1) {
  transform: rotate(45deg);
}

.close-button span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-menu {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: -100%;
  display: flex;
  flex-direction: column;
  padding: 7rem 2rem 2rem 2rem;
  background: linear-gradient(to top, #ffa4db 15%, #fcfaf6 45%);
  transition: left 0.4s ease;
  gap: 2.5rem;
  z-index: 200;
}

.mobile-menu.active {
  left: 0;
}

/* ===== MOBILE MENU LINKS ANIMATION ===== */

.mobile-link {
  opacity: 0;
  color: #222;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Hatton, Arial, sans-serif;
  transform: translateX(-20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* Cuando el menú está activo */
.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateX(0);
}

/* Delay escalonado — FIX REAL */
.mobile-menu.active .mobile-link:nth-of-type(1) {
  transition-delay: 0.15s;
}
.mobile-menu.active .mobile-link:nth-of-type(2) {
  transition-delay: 0.25s;
}
.mobile-menu.active .mobile-link:nth-of-type(3) {
  transition-delay: 0.35s;
}
.mobile-menu.active .mobile-link:nth-of-type(4) {
  transition-delay: 0.45s;
}
.mobile-menu.active .mobile-link:nth-of-type(5) {
  transition-delay: 0.55s;
}
.mobile-menu.active .mobile-link:nth-of-type(6) {
  transition-delay: 0.65s;
}
.mobile-menu.active .mobile-link:nth-of-type(7) {
  transition-delay: 0.75s;
}

.navsize-button {
  background-color: rgba(0, 0, 0, 0);
  padding: 0;
}

@media screen and (max-width: 1550px) {
  .nav-links,
  .navsize-link {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media screen and (max-width: 1200px) {
  .header {
    padding: 1rem 1.5rem 0;
  }
}

@media (max-width: 768px) {
  #bikinis,
  #jumpsuits,
  #crochets,
  #sets {
    scroll-margin-top: 110px;
  }
}

/*----- CART ------*/

.cart-button {
  position: relative;
  margin-left: 25px;
  display: flex;
  align-items: center;
  font-size: clamp(0.7rem, 0.8vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px none #161616;
  background-color: transparent;
  -webkit-filter: brightness(110%);
  filter: brightness(110%);
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
  gap: 8px;
}

.cart-button:hover {
  -webkit-filter: brightness(200%);
  filter: brightness(200%);
}

.cart-icon {
  width: 32px;
  height: 32px;
  color: #1b1b1b;
}

.cart-count {
  position: absolute;
  top: 4.4px;
  right: 5px;
  background: transparent;
  color: #fff;
  width: 20px;
  height: 20px;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  padding-top: 0.14rem;
}

.cart-quantity {
  width: 122px;
  height: 44px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  min-width: auto;
  margin-right: auto;
  padding-top: 5px;
  margin-left: -4px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  border: 1px solid #161616;
  border-radius: 12px;
  background-color: transparent;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
  font-family: Hatton, Arial, sans-serif;
  color: #161616;
  font-size: 1.7rem;
  font-weight: 200;
}

.cart-quantity:hover {
  border-color: #161616;
  background-color: #fd64c0;
  font-weight: 300;
  color: #fff;
}

.cart {
  right: 0px;
  margin-right: 0px;
  margin-left: 0px;
}

.cart-container {
  position: fixed;
  left: auto;
  top: 15px;
  right: 3%;
  bottom: auto;
  z-index: 3;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-right: auto;
  margin-left: auto;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 110;
}

.cart-wrapper {
  z-index: 40;
  background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .cart-icon {
    width: 24px;
    height: 24px;
  }

  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 10px;
    top: 2px;
    right: 3px;
  }
}

@media (max-width: 550px) {
  .cart-text {
    display: none;
  }
}
