.header__icon--menu {
  position: initial;
}

.js menu-drawer > details > summary::before,
.js menu-drawer > details[open]:not(.menu-opening) > summary::before {
  content: '';
  position: absolute;
  cursor: default;
  width: 100%;
  height: calc(100vh - 100%);
  height: calc(var(--viewport-height, 100vh) - (var(--header-bottom-position, 100%)));
  top: 100%;
  left: 0;
  background: rgba(var(--color-foreground), 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  transition: opacity 0s, visibility 0s;
}

menu-drawer > details[open] > summary::before {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--duration-default) ease, visibility var(--duration-default) ease;
}

.menu-drawer {
  position: absolute;
  transform: translateX(-100%);
  visibility: hidden;
  z-index: 3;
  left: 0;
  top: 100%;
  width: 100%;
  padding: 0;
  background-color: #FBFCEC;
  overflow-x: hidden;

  .menu-drawer__inner-container {

    .menu-drawer__navigation-container {

      .menu-drawer__navigation {
        
        @media screen and (min-width: 1024px) {
          display: grid;
          grid-template-columns: 1fr 2fr 1fr;
          gap: 40px;
        }

        .tp-product-cards__wrapper {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 8px;
          padding-bottom: 16px;
          padding-left: 3rem;
          padding-right: 3rem;

          @media screen and (min-width: 1024px) {
            display: none;
          }

          .tp-product-card {
            display: flex;
            flex-direction: row;
            gap: 8px;
            align-items: center;
            text-decoration: none;
            background: #BB2B3F;
            padding: 8px;
            border-radius: 8px;

            img {
              width: 48px;
              height: auto;
              aspect-ratio: 1;
              object-fit: cover;
            }

            h6 {
              font-family: "Recoleta Alt";
              font-weight: 500;
              margin: 0;
              font-size: clamp(1.6rem, 1.5257rem + 0.1905vw, 1.8rem);
              color: #FBFCEC;
              line-height: 1;
            }
          }
        }

        .menu-drawer__menu {

          li {
            a {
              color: #000;
              font-family: Point;
              font-size: 14px;
              font-style: normal;
              font-weight: 700;
              line-height: normal;
              text-transform: uppercase;
            }

            details {
              summary {
                color: #000;
                font-family: Point;
                font-size: 14px;
                font-style: normal;
                font-weight: 700;
                line-height: normal;
                text-transform: uppercase;
              }

              .menu-drawer__submenu {
                background-color: #FBFCEC;

                .menu-drawer__close-button {
                  color: #000;
                }
              }
            }
          }
        }

        .tp-collections-wrapper {
          display: none;
          gap: 24px;
          flex-direction: row;

          @media screen and (min-width: 1024px) {
            display: flex;
          }

          .tp-collection-card {
            display: flex;
            flex-direction: column;
            gap: 16px;
            align-items: center;
            justify-content: center;
            text-decoration: none;

            img {
              width: 100%;
              max-width: 240px;
            }

            .tp-text-wrapper {
              display: flex;
              flex-direction: column;

              h5 {
                color: #000;
                font-feature-settings: 'liga' off, 'clig' off;
                font-family: Point;
                font-size: 12px;
                font-style: normal;
                font-weight: 400;
                line-height: 120%; /* 14.4px */
                text-transform: uppercase;
                margin: 0;
                text-align: center;
                text-decoration: none;
              }

              p {
                margin: 0;
                color: #7A7A7A;
                font-family: Point;
                font-size: 10px;
                font-style: normal;
                font-weight: 700;
                line-height: normal;
                letter-spacing: 0.4px;
                text-transform: uppercase;
                display: flex;
                align-items: center;
                justify-content: center;
                text-decoration: none;

                svg {
                  color: #7A7A7A52
                }
              }
            }

            &:hover {
              text-decoration: underline;
               .tp-text-wrapper {
                h5 {
                  text-decoration: underline;
                }

                p {
                  text-decoration: underline;
                }
               }
            }
          }
        }

        .tp-second-menu {
          display: none;
          gap: 16px;
          flex-direction: column;

          @media screen and (min-width: 1024px) {
            display: flex;
          }
          p {
            margin: 0;
            line-height: normal;
          }

          a {
            color: #7A7A7A;
            font-feature-settings: 'liga' off, 'clig' off;
            font-family: Point;
            font-size: 12px;
            font-style: normal;
            font-weight: 400;
            line-height: 120%; /* 14.4px */
            text-decoration: none;

            &:hover {
              text-decoration: underline;
            }
          }
        }
      }
    }
  }
}

.js .menu-drawer {
  height: calc(100vh - 100%);
  height: calc(var(--viewport-height, 100vh) - (var(--header-bottom-position, 100%)));

  @media screen and (min-width: 1024px) {
    height: unset;
  }
}

.js details[open] > .menu-drawer,
.js details[open] > .menu-drawer__submenu {
  transition: transform var(--duration-default) ease, visibility var(--duration-default) ease;
}

.js details[open].menu-opening > .menu-drawer,
details[open].menu-opening > .menu-drawer__submenu {
  transform: translateX(0);
  visibility: visible;
}

.js .menu-drawer__navigation .submenu-open {
  visibility: hidden; /* hide menus from screen readers when hidden by submenu */
}

@media screen and (min-width: 750px) {
  .menu-drawer {
    width: 100%;
    border-width: 0 var(--drawer-border-width) 0 0;
    border-style: solid;
    border-color: rgba(var(--color-foreground), var(--drawer-border-opacity));
  }
}

.menu-drawer__inner-container {
  position: relative;
  height: 100%;
}

.menu-drawer__navigation-container {
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: space-between;
  overflow-y: auto;
  height: 100%;
}

.menu-drawer__navigation {
  padding: 3rem 0;
}

.menu-drawer__inner-submenu {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.js .menu-drawer__menu li {
  margin-bottom: 0.2rem;
}

.menu-drawer__menu-item {
  padding: 1.1rem 3rem;
  text-decoration: none;
  font-size: 1.8rem;
}

.menu-drawer summary.menu-drawer__menu-item {
  padding-right: 5.2rem;
}

.menu-drawer__menu-item--active,
.menu-drawer__menu-item:focus,
.menu-drawer__close-button:focus,
.menu-drawer__menu-item:hover,
.menu-drawer__close-button:hover {
  color: rgb(var(--color-foreground));
  background-color: rgba(var(--color-foreground), 0.04);
}

.menu-drawer__menu-item--active:hover {
  background-color: rgba(var(--color-foreground), 0.08);
}

.js .menu-drawer__menu-item .icon-caret {
  display: none;
}

.menu-drawer__menu-item > .svg-wrapper {
  width: 15px;
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
}

.js .menu-drawer__submenu {
  position: absolute;
  top: 0;
  width: 100%;
  bottom: 0;
  left: 0;
  background-color: rgb(var(--color-background));
  z-index: 1;
  transform: translateX(100%);
  visibility: hidden;
}

.js .menu-drawer__submenu .menu-drawer__submenu {
  overflow-y: auto;
}

.menu-drawer__close-button {
  margin-top: 1.5rem;
  padding: 1.2rem 2.6rem 1.2rem 3rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  width: 100%;
  background-color: transparent;
  font-family: var(--font-body-family);
  font-style: var(--font-body-style);
  text-align: left;
}

.menu-drawer__close-button .svg-wrapper {
  transform: rotate(180deg);
  margin-right: 1rem;
  width: 15px;
}

.menu-drawer__utility-links {
  padding: 0;
  background-color: rgba(var(--color-foreground), 0.03);
  position: relative;
}

.header--has-social .menu-drawer__utility-links {
  padding: 2rem 3rem;
}

@media screen and (max-width: 749px) {
  .header--has-account:where(:not(.header--has-social):not(.header--has-localizations)) .menu-drawer__utility-links {
    padding: 2rem 3rem;
  }
}

@media screen and (max-width: 989px) {
  .header--has-localizations:where(:not(.header--has-social)) .menu-drawer__utility-links {
    padding: 2rem 3rem;
  }
}

.menu-drawer__account {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 1rem 0;
  font-size: 1.4rem;
  color: rgb(var(--color-foreground));
  margin-bottom: 0;
}

.menu-drawer__utility-links:has(.menu-drawer__localization) .menu-drawer__account {
  margin: 0;
}

.menu-drawer__account account-icon > .svg-wrapper {
  height: 2rem;
  width: 2rem;
  margin-right: 1rem;
}

.menu-drawer__account shop-user-avatar {
  --shop-avatar-size: 2.4rem;
  margin-right: 0.55rem;
  margin-left: -0.45rem;
}

.menu-drawer__account:hover account-icon > .svg-wrapper {
  transform: scale(1.07);
}

.menu-drawer .list-social {
  justify-content: flex-start;
  margin-left: -1.25rem;
}

.menu-drawer .list-social:empty {
  display: none;
}

.menu-drawer .list-social__link {
  padding: 1.1rem 1.1rem;
}

@media screen and (max-width: 749px) {
  .menu-drawer.country-selector-open {
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
