/* Shop-only mobile drawer refinements. Parent Site markup and Mmenu behavior stay authoritative. */
@media screen and (max-width: 991px) {
  /* The parent navigation is 68px tall. Keep the consent surface 12px above
   * it, including the compact-height rule declared earlier in head.html. */
  html body .pluginanti_container {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body .mm-ocd__content {
    width: calc(100vw - 12px) !important;
    max-width: 430px !important;
    overflow: hidden;
    border-radius: 0 18px 18px 0;
    box-shadow: 14px 0 34px rgba(27, 18, 25, 0.2);
  }

  html body #mobile-menu {
    --sf-mobile-catalog-header-height: 80px;
    --sf-mobile-catalog-search-height: 64px;
  }

  html body #mobile-menu .custom__mobile {
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr) 52px !important;
    gap: 4px;
    height: calc(var(--sf-mobile-catalog-header-height) + env(safe-area-inset-top, 0px));
    min-height: calc(var(--sf-mobile-catalog-header-height) + env(safe-area-inset-top, 0px)) !important;
    padding: env(safe-area-inset-top, 0px) 8px 0 12px !important;
  }

  html body #mobile-menu .sf-mobile-catalog-back {
    width: auto;
    min-width: 72px;
  }

  html body #mobile-menu .sf-mobile-catalog-title,
  html body .fixed__search-title h2 {
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  html body #mobile-menu .sf-mobile-catalog-title {
    display: -webkit-box;
    overflow: hidden !important;
    padding: 0 4px;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body #mobile-menu .sf-mobile-catalog-search {
    position: absolute;
    top: calc(var(--sf-mobile-catalog-header-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 9;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    height: var(--sf-mobile-catalog-search-height);
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(35, 24, 31, 0.1);
    box-sizing: border-box;
  }

  html body #mobile-menu .sf-mobile-catalog-search__field {
    display: block;
    min-width: 0;
    margin: 0;
  }

  html body #mobile-menu .sf-mobile-catalog-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  html body #mobile-menu .sf-mobile-catalog-search__input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #cfc5cc;
    border-radius: 12px;
    box-sizing: border-box;
    background: #fff;
    color: #282128;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
  }

  html body #mobile-menu .sf-mobile-catalog-search__input:focus {
    border-color: #a60068;
    outline: 3px solid rgba(166, 0, 104, 0.13);
    outline-offset: 0;
  }

  html body #mobile-menu .sf-mobile-catalog-search__submit {
    appearance: none;
    min-width: 68px;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: #8f075c;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
  }

  html body #mobile-menu .sf-mobile-catalog-search__submit:focus-visible {
    outline: 3px solid rgba(176, 0, 112, 0.38);
    outline-offset: 2px;
  }

  html body #mobile-menu.mm-spn--navbar ul {
    top: calc(var(--sf-mobile-catalog-header-height) + var(--sf-mobile-catalog-search-height) + env(safe-area-inset-top, 0px)) !important;
    height: calc(100dvh - var(--sf-mobile-catalog-header-height) - var(--sf-mobile-catalog-search-height) - env(safe-area-inset-top, 0px)) !important;
  }
}

@media screen and (max-width: 380px) {
  /* The parent navigation contracts to 64px at this breakpoint. */
  html body .pluginanti_container {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media screen and (max-width: 991px) {
  @supports (width: min(430px, calc(100vw - max(12px, env(safe-area-inset-right, 0px))))) {
    html body .mm-ocd__content {
      width: min(430px, calc(100vw - max(12px, env(safe-area-inset-right, 0px)))) !important;
    }
  }
}
