.mobile-search-mount,
.mobile-navigation-mount {
  display: none;
}

@media (max-width: 720px) {
  html {
    scroll-behavior: auto;
  }

  body {
    padding-bottom: 72px;
  }

  header,
  .site-header {
    z-index: 60;
  }

  .mobile-search-mount,
  .mobile-navigation-mount {
    display: block;
  }

  .mobile-search-mount {
    position: relative;
    width: min(100% - 20px, 1280px);
    margin: 0 auto;
    padding: 0 0 10px;
  }

  .mobile-search-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
  }

  .mobile-category-trigger,
  .mobile-search-submit,
  .mobile-bottom-action,
  .mobile-drawer-close {
    border: 0;
    font: inherit;
    cursor: pointer;
  }

  .mobile-category-trigger {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line2);
    background: #0b1118;
    color: var(--ink2);
    padding: 8px 10px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
  }

  .mobile-category-trigger svg,
  .mobile-search-submit svg,
  .mobile-bottom-action svg,
  .mobile-drawer-close svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-search-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    min-width: 0;
    border: 2px solid var(--amber);
    background: #fff;
  }

  .mobile-search-form:focus-within {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .2);
  }

  .mobile-search-form input {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: 0;
    background: #fff;
    color: #111820;
    padding: 10px 12px;
    font-family: "Barlow", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
  }

  .mobile-search-form input::placeholder {
    color: #566371;
    opacity: 1;
  }

  .mobile-search-submit {
    width: 50px;
    min-height: 48px;
    display: grid;
    place-items: center;
    background: var(--amber);
    color: #090b0e;
  }

  .mobile-search-submit:hover,
  .mobile-search-submit:focus-visible {
    background: var(--amber2);
  }

  .mobile-search-suggestions {
    position: absolute;
    z-index: 95;
    left: 0;
    right: 0;
    top: calc(100% - 4px);
    max-height: min(66vh, 520px);
    overflow-y: auto;
    border: 1px solid var(--line2);
    background: #070b10;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .62);
  }

  .mobile-suggestion {
    min-height: 78px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--ink2);
    padding: 8px 11px;
  }

  .mobile-suggestion:last-child {
    border-bottom: 0;
  }

  .mobile-suggestion:hover,
  .mobile-suggestion:focus-visible {
    background: #111a24;
  }

  .mobile-suggestion img,
  .mobile-suggestion-placeholder {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #090d12;
    object-fit: contain;
    color: var(--cyan2);
    font-family: "Chakra Petch", sans-serif;
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-suggestion-copy {
    min-width: 0;
  }

  .mobile-suggestion-copy strong {
    display: block;
    color: var(--ink);
    font-family: "Chakra Petch", sans-serif;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .mobile-suggestion-copy span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
  }

  .mobile-suggestion-price {
    color: var(--amber2);
    font-family: "Chakra Petch", sans-serif;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-search-all,
  .mobile-search-empty {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    color: var(--cyan2);
    font-family: "Chakra Petch", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
  }

  .mobile-search-all {
    border-top: 1px solid var(--line2);
    background: #0c141c;
  }

  .mobile-search-empty {
    color: var(--muted);
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 65;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line2);
    background: rgba(5, 9, 13, .98);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, .42);
  }

  .mobile-bottom-action {
    position: relative;
    min-width: 0;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    color: var(--muted);
    padding: 5px 2px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: center;
  }

  .mobile-bottom-action:hover,
  .mobile-bottom-action:focus-visible,
  .mobile-bottom-action[aria-current="page"] {
    color: var(--cyan2);
    background: rgba(63, 167, 255, .07);
  }

  .mobile-nav-count {
    position: absolute;
    top: 6px;
    left: calc(50% + 7px);
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border: 1px solid #07090c;
    background: var(--amber);
    color: #090a0c;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-category-overlay {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  .mobile-category-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-category-drawer {
    position: fixed;
    z-index: 96;
    inset: 0 0 72px;
    display: flex;
    flex-direction: column;
    background: #070b10;
    transform: translateX(-102%);
    transition: transform .22s ease;
  }

  .mobile-category-drawer.open {
    transform: none;
  }

  .mobile-drawer-head {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line2);
    padding: 14px 16px;
  }

  .mobile-drawer-head span {
    display: block;
    color: var(--cyan2);
    font-family: "Chakra Petch", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .mobile-drawer-head h2 {
    margin: 3px 0 0;
    color: var(--ink);
    font-family: "Chakra Petch", sans-serif;
    font-size: 23px;
  }

  .mobile-drawer-close {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line2);
    background: #0b1118;
    color: var(--ink2);
  }

  .mobile-category-list {
    overflow-y: auto;
    padding: 10px 14px 24px;
  }

  .mobile-category-all,
  .mobile-category-link {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    background: #0b1118;
    color: var(--ink2);
    padding: 12px 14px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 15px;
    font-weight: 600;
  }

  .mobile-category-all {
    margin-bottom: 16px;
    border-color: var(--cyan);
    color: #fff;
  }

  .mobile-category-group {
    margin-top: 18px;
  }

  .mobile-category-group h3 {
    margin: 0 0 8px;
    color: var(--cyan2);
    font-family: "Chakra Petch", sans-serif;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .mobile-category-link + .mobile-category-link {
    border-top: 0;
  }

  .mobile-category-link span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .mobile-category-link b,
  .mobile-category-all b {
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line2);
    color: var(--amber2);
    font-size: 12px;
  }

  .mobile-category-link.active {
    border-color: var(--cyan);
    background: rgba(63, 167, 255, .1);
    color: #fff;
  }

  body.mobile-categories-open {
    overflow: hidden;
  }

  [data-mobile-purchase] {
    bottom: 72px;
    z-index: 64;
  }

  .toast,
  .site-toast {
    bottom: 158px;
  }
}

@media (max-width: 350px) {
  .mobile-search-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 6px;
  }

  .mobile-category-trigger {
    padding-inline: 6px;
    font-size: 10px;
  }

  .mobile-bottom-action {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-category-overlay,
  .mobile-category-drawer {
    transition: none;
  }
}
