.custom-small-menu-links {
  background-color: var(--bg-white);
  list-style: none;
  padding: 0;
  margin: 0;
  height: 72px;
  li {
    height: 100%;
    align-content: center;
    transition: opacity 0.3s ease;
    &:not(&:last-child) {
      border-right: 0px !important;
    }
    /* &:hover,
    &:focus,
    &.active {
      .submenu {
        display: block;
        }
        } */
    &.menu-item span {
      font-family: 'Barlow', sans-serif;
      font-weight: 600;
      font-style: normal;
      font-size: 21px;
      line-height: normal;
      text-decoration: none;
      color: var(--text-color);
      text-transform: uppercase;
      display: block;
      cursor: pointer;
      padding: 22px 15px;
      &:hover {
        opacity: 0.6;
      }
    }
    &:nth-child(1) {
      .submenu {
        left: 0;
        li {
          &:nth-child(1),
          &:nth-child(2) {
            width: 25%;
          }
          &:nth-child(n + 3) {
            width: 50%;
          }
        }
      }
    }
    &:nth-child(2) {
      .submenu {
        left: 0;
        width: 100%;
        left: 0;
        li {
          width: 25%;
        }
      }
    }
    &:nth-child(3) {
      .submenu {
        li {
        }
      }
    }
    &:last-child {
      display: flex;
      justify-content: center;
    }
    &.tous-produits {
      a {
        color: white !important;
      }
    }
    a {
      font-family: 'Barlow', sans-serif;
      font-weight: 600;
      font-style: normal;
      font-size: 21px;
      line-height: normal;
      text-decoration: none;
      color: black !important;
      text-transform: uppercase;
      display: block;
      padding: 0 15px;
      &:hover {
        opacity: 0.6;
      }
    }

    .submenu {
      margin-top: -1px;
      display: none;
      border-top: 2px solid black;
      border-right: 2px solid black;
      &.open {
        display: block;
      }
      li {
        float: left;
        transition: opacity 0.3s ease;
        background-color: white;
        border-bottom: 2px solid black;
        border-left: 2px solid black;
        a {
          font-family: 'Barlow Condensed', sans-serif;
          font-weight: bold;
          font-style: normal;
          font-size: 41px;
          line-height: inherit;
          text-decoration: none;
          color: black;
          text-transform: uppercase;
          text-align: center;
          display: block;
          padding: 22px 1rem;
          &:hover {
            opacity: 0.6;
          }
        }
        &.tous-produits {
          a {
            color: white !important;
          }
        }
      }
    }

    &.tous-produits {
      background: linear-gradient(30deg, rgba(218, 86, 66, 1) 0%, rgba(64, 93, 170, 1) 50%, rgba(45, 179, 74, 1) 100%);
    }
  }
}
@media (max-width: 1200px) {
  .custom-small-menu-links {
    li {
      a {
        font-size: 1rem;
        padding: 0.8rem;
      }
      .submenu {
        li {
          width: 100% !important;
        }
      }
    }
  }
}
.popup-search-small {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  &.active {
    .js-search-icon {
      display: none;
    }
    .js-close-icon {
      display: inline-block;
    }
  }
  .material-icons {
    color: var(--text-color);
    font-size: 42px;
    transition: opacity 0.2s ease;
  }
}
.js-close-icon {
  display: none;
}
.search-container-small {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--text-color);
  display: none;
  z-index: 9;
  &.active {
    display: block;
  }
  .material-icons {
    display: none;
  }
  #search_widget {
    form {
      input {
        padding: 0.6rem 1rem 1rem 1rem;
        color: var(--text-color);
        background-color: var(--bg-color);
        border: 1px solid var(--text-color);
        border-radius: 0;
        &::-webkit-search-cancel-button {
          -webkit-appearance: none;
          appearance: none;
        }
        &::-webkit-search-decoration,
        &::-webkit-search-results-button,
        &::-webkit-search-results-decoration {
          display: none;
        }
      }
    }
    .search-widgets__dropdown {
      background: var(--bg-color);
      border: 1px solid var(--text-color);
      border-radius: 0;
      .search-widgets__results {
        padding: 0;
        .search-result__link {
          border-radius: 0;
          padding: 0.25rem 0;
          .search-result__name {
            color: var(--text-color);
          }
          &:hover {
            background: var(--text-color);
            .search-result__name {
              color: var(--bg-color);
            }
          }
        }
      }
    }
  }
}
/* Ajustes para móvil */
@media (max-width: 767px) {
  .search-container-small {
    top: 42px;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    &.active {
      display: block !important;
    }

    #search_widget {
      width: 100%;
      margin-bottom: 0;
      form {
        width: 100%;

        input {
          width: 100%;
          font-size: 16px; /* Evita zoom en iOS */
          color: black;
        }
      }

      .search-widgets__dropdown {
        width: 100%;
        max-height: calc(100vh - 30px);
        overflow-y: auto;
        left: 0;
      }
    }
  }

  .popup-search-small {
    padding: 0 10px;

    .material-icons {
      font-size: 32px; /* Un poco más pequeño en móvil */
    }
  }
}

/* Prevenir scroll del body cuando el search está activo en móvil */
@media (max-width: 991px) {
  body.search-active {
    overflow: hidden;
  }
}
