.mobile-action-bar,
.mobile-menu-panel {
  display: none;
}

.mobile-action {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.mobile-action-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 4px;
}

.mobile-icon-menu::before,
.mobile-icon-menu::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-icon-menu::before {
  top: 6px;
  box-shadow: 0 7px 0 currentColor;
}

.mobile-icon-menu::after {
  top: 20px;
}

.mobile-icon-search::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.mobile-icon-search::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.mobile-icon-user::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.mobile-icon-user::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 18px;
  height: 11px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.mobile-icon-cart::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 16px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.mobile-icon-cart::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.mobile-cart-action {
  position: relative;
  font-weight: 800;
}

.mobile-cart-badge {
  position: absolute;
  top: 5px;
  left: calc(50% + 10px);
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .site-header {
    background: #fff !important;
    color: #111;
    padding: 0;
    border-bottom-color: #d8d8d8 !important;
  }

  .site-header .site-container {
    padding-left: 0;
    padding-right: 0;
  }

  .header-shell {
    gap: 0;
  }

  .header-top {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
  }

  .header-logo {
    margin: 0;
    min-width: 0;
  }

  .header-logo-img {
    width: 150px;
    height: 46px;
  }

  .header-actions {
    display: flex;
    gap: 0;
    margin-left: auto;
  }

  .header-actions .header-utility,
  .header-actions .header-cart {
    display: none;
  }

  .header-search {
    display: none;
    order: 5;
    width: 100%;
    max-width: none;
    margin: 4px 0 2px;
  }

  .header-search.is-mobile-open {
    display: block;
  }

  .mobile-action-bar {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 58px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #d8d8d8;
    border-bottom: 0;
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
  }

  .mobile-action {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0;
    min-height: 58px;
    padding: 7px 4px 6px;
    color: #111;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
  }

  .mobile-action:hover,
  .mobile-action:focus-visible {
    color: #111;
    background: #f5f5f5;
  }

  .mobile-cart-action {
    font-weight: 800;
  }

  .mobile-menu-panel:not([hidden]) {
    display: grid;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    z-index: 1199;
    max-height: min(68vh, 460px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: var(--radius);
    box-shadow: 0 -12px 26px rgba(15, 23, 42, 0.14);
  }

  .mobile-menu-panel a {
    padding: 11px 14px;
    margin: 0 4px;
    border-bottom: 1px solid #eeeeee;
    color: #111;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
  }

  .mobile-menu-panel a:last-child {
    border-bottom: 0;
  }

  .header-bottom {
    display: none;
  }

  .cart-preview {
    display: none !important;
  }
}
