/* ... estilos previos ... */

.cart-symbol {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 70px;
}

.menu-toggle,
.cart-icon {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--verde-abeto) !important;
  font-size: 1.5rem;
  cursor: pointer;
  outline: none;
  width: 40px;
}

.cart-icon {
  position: relative;
  width: 40px;
  height: var(--header-height);
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde-abeto);
  cursor: pointer;
}

.cart-count {
  position: absolute;
  right: 20px;
  top: 5px;
  background: var(--verde-abeto);
  font-family: "Quicksand", sans-serif;
  color: var(--blanco);
  font-size: 1rem;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 50%;
  line-height: 1;
  min-width: 16px;
  text-align: center;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--header-height);
  position: relative;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.site-nav__item > a {
  text-decoration: none;
  font-size: 18px;
  color: var(--verde-abeto);
  position: relative;
  font-weight: bold;
}

.site-nav__item.has-submenu .arrow {
  display: inline-block;
  margin-left: 0.3rem;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--verde-abeto); /* color base */
}

.site-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  background: var(--blanco);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: calc(var(--header-height));
}

.site-nav__submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 18px;
  color: var(--verde-abeto);
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: unset;
}

.site-nav__submenu li a:hover {
  font-weight: bold;
}

/* Flecha como inline-block y transición */
.site-nav__item.has-submenu .arrow {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

/* Cuando el ítem tiene .open, rota la flecha */
.site-nav__item.has-submenu.open .arrow {
  transform: rotate(180deg);
  color: var(--verde-menta); /* o el color que prefieras al desplegar */
}

body.nav-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

body.nav-open .site-header__nav {
  overflow-y: auto;
}

html.nav-open-fix {
  scroll-behavior: auto; /* evita scroll suave automático que provoca saltos */
}

.modal-carrito {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--verde-abeto);
  color: var(--blanco);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  font-weight: bold;
  animation: fadeInUp 0.4s ease;
}

#modal-carrito-confirmado {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--verde-abeto);
  color: var(--blanco);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  font-weight: bold;
  animation: fadeInUp 0.4s ease;
  max-width: calc(100vw - 2rem);
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  #modal-carrito-confirmado {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-width: none;
    font-size: 0.95rem;
    padding: 1rem;
  }
}
