/* AeroPresent Design System — global storefront header/navigation. */

:root {
  /* Compatibility aliases point at the canonical Stage 4 tokens. */
  --ap-header-sticky-offset: var(--ap-header-height-desktop);
  --ap-mobile-header-height: var(--ap-header-height-mobile);
  --ap-mobile-bottom-height: var(--ap-mobile-bottom-nav-height);
}

.ap-shell-icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  overflow: visible;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap-shell-footer-socials .ap-shell-icon,
.ap-mobile-contact-link .ap-shell-icon {
  fill: currentColor;
  stroke: none;
}

html.ap-overlay-scroll-lock,
html.ap-overlay-scroll-lock body {
  overscroll-behavior: none;
}

.ap-site-header {
  position: sticky;
  z-index: var(--ap-z-sticky);
  top: 0;
  width: 100%;
  box-shadow: none;
  background: var(--ap-color-surface);
  color: var(--ap-color-text);
  border-bottom: 1px solid var(--ap-color-border);
}

.ap-header-utility {
  background: var(--ap-color-surface-muted);
  border-bottom: 0;
}

.ap-header-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ap-space-5);
  min-height: var(--ap-space-8);
}

.ap-header-utility-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--ap-space-6);
}

.ap-header-location {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-1);
  color: var(--ap-color-text);
  font-size: var(--ap-font-size-body-small);
  font-weight: var(--ap-font-weight-semibold);
  white-space: nowrap;
}

.ap-header-location .ap-shell-icon {
  width: 15px;
  height: 15px;
  color: var(--ap-color-brand);
}

.ap-header-utility-nav a {
  position: relative;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  font-size: var(--ap-font-size-body-small);
  color: var(--ap-color-text-muted);
  letter-spacing: normal;
}

.ap-header-utility-nav a:hover,
.ap-header-utility-nav a:focus,
.ap-header-utility-nav a.is-active {
  color: var(--ap-color-brand-hover);
  text-decoration: none;
}

.ap-header-utility-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--ap-space-2);
}

.ap-header-utility-side .btn,
.ap-header-utility-side button,
.ap-header-utility-side a {
  font-size: 11px;
}

.ap-header-primary {
  position: relative;
  background: #fff;
}

.ap-header-primary-inner {
  display: grid;
  align-items: center;
  min-height: 92px;
  grid-template-columns: 176px 136px minmax(220px, 1fr) auto auto;
  gap: var(--ap-space-6);
}

.ap-header-brand,
.ap-header-brand-link {
  min-width: 0;
  display: flex;
  align-items: center;
}

.ap-header-brand-link {
  width: fit-content;
  text-decoration: none;
}

.ap-header-logo {
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 166px;
  height: 52px;
  aspect-ratio: 480 / 151;
}

.ap-header-brand-text {
  color: var(--ap-color-text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.ap-header-catalog-slot {
  min-width: 0;
}

.ap-catalog-menu {
  position: relative;
}

.ap-catalog-backdrop {
  position: fixed;
  z-index: var(--ap-z-backdrop);
  inset: var(--ap-header-sticky-offset) 0 0;
  display: block;
  padding: 0;
  border: 0;
  background: rgba(14, 52, 70, .36);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ap-transition-default), visibility var(--ap-transition-default);
}

html.ap-catalog-open .ap-catalog-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ap-catalog-trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--ap-color-brand);
  background: var(--ap-color-brand);
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--ap-transition-fast), border-color var(--ap-transition-fast), box-shadow var(--ap-transition-fast);
  min-height: 48px;
  gap: var(--ap-space-2);
  padding: 0 var(--ap-space-4);
  border-radius: var(--ap-radius-md);
  font-size: var(--ap-font-size-body);
  letter-spacing: normal;
}

.ap-catalog-trigger:hover,
.ap-catalog-trigger:focus,
.ap-catalog-menu.is-open .ap-catalog-trigger {
  color: #fff;
  border-color: var(--ap-color-brand-hover);
  background: var(--ap-color-brand-hover);
  box-shadow: var(--ap-focus-ring);
  outline: 0;
}

.ap-catalog-trigger-chevron {
  margin-left: auto;
  transition: transform var(--ap-transition-fast);
}

.ap-catalog-menu.is-open .ap-catalog-trigger-chevron {
  transform: rotate(180deg);
}

.ap-catalog-flyout {
  position: absolute;
  z-index: var(--ap-z-dropdown);
  top: calc(100% + 12px);
  left: 0;
  width: min(1080px, calc(100vw - 64px));
  overflow: hidden;
  border: 1px solid var(--ap-color-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(35, 57, 68, .18);
}

.ap-catalog-flyout[hidden] {
  display: none;
}

.ap-catalog-flyout-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 470px;
  max-height: min(680px, calc(100vh - var(--ap-header-sticky-offset) - 38px));
}

.ap-mobile-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.ap-mobile-category-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ap-header-search {
  min-width: 0;
}

.ap-site-search {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  transition: border-color var(--ap-transition-fast), background-color var(--ap-transition-fast), box-shadow var(--ap-transition-fast);
  height: 48px;
  min-height: 48px;
  grid-template-rows: 40px;
  align-content: center;
  border: 1px solid transparent;
  border-radius: var(--ap-radius-md);
  background: var(--ap-color-surface-muted);
  padding: 4px 4px 4px var(--ap-space-3);
}

.ap-site-search:focus-within {
  border-color: var(--ap-color-brand);
  box-shadow: var(--ap-focus-ring);
  background: var(--ap-color-surface);
}

.ap-site-search-icon {
  color: #91a2aa;
  font-size: 14px;
  text-align: center;
}

.ap-site-search-input {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0;
  color: var(--ap-color-text);
  border: 0;
  outline: 0;
  background: transparent;
  line-height: 38px;
  font-size: var(--ap-font-size-body);
}

.ap-site-search-input::placeholder {
  color: var(--ap-color-text-muted);
}

.ap-site-search-clear {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ap-color-text-muted);
  border: 0;
  border-radius: var(--ap-radius-pill);
  background: transparent;
}

.ap-site-search-clear[hidden] {
  display: none;
}

.ap-site-search-clear:hover,
.ap-site-search-clear:focus-visible {
  color: var(--ap-color-text);
  background: var(--ap-color-surface-muted);
}

.ap-site-search-submit {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  min-width: 72px;
  margin: 0;
  padding: 0 var(--ap-space-3);
  color: var(--ap-color-text);
  background: transparent;
  border-radius: var(--ap-radius-md);
  font-size: var(--ap-font-size-body-small);
}

.ap-site-search-submit:hover,
.ap-site-search-submit:focus {
  outline: 0;
  background: var(--ap-color-surface-accent);
  color: var(--ap-color-brand-hover);
}

.ap-header-contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.ap-header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ap-color-text);
  text-decoration: none;
  white-space: nowrap;
  min-height: 24px;
}

.ap-header-phone:hover,
.ap-header-phone:focus {
  color: var(--ap-color-brand-hover);
  text-decoration: none;
}

.ap-header-phone > .ap-shell-icon {
  color: var(--ap-color-brand);
  width: 16px;
  height: 16px;
}

.ap-header-phone strong {
  line-height: 1.25;
  font-weight: 700;
  font-size: var(--ap-font-size-body);
}

.ap-header-callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-color-brand-hover);
  line-height: 1.2;
  text-decoration: none;
  min-height: 24px;
  font-size: var(--ap-font-size-body-small);
  font-weight: 500;
}

.ap-header-callback:hover,
.ap-header-callback:focus {
  color: var(--ap-color-brand);
  text-decoration: none;
}

.ap-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ap-header-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  transition: color var(--ap-transition-fast), background-color var(--ap-transition-fast);
  min-width: 48px;
  color: var(--ap-color-text-muted);
  padding: var(--ap-space-1);
  border-radius: var(--ap-radius-md);
}

.ap-header-action .ap-shell-icon {
  color: inherit;
  width: 21px;
  height: 21px;
}

.ap-header-action span {
  line-height: 1;
  font-size: var(--ap-font-size-body-small);
  font-weight: 500;
}

.ap-header-action:hover,
.ap-header-action:focus,
.ap-header-account.open > .ap-header-action {
  color: var(--ap-color-brand-hover);
  background: transparent;
  text-decoration: none;
  outline: 0;
}

.ap-header-action:hover .ap-shell-icon,
.ap-header-action:focus .ap-shell-icon,
.ap-header-account.open > .ap-header-action .ap-shell-icon {
  color: var(--ap-color-brand-hover);
}

.ap-header-account-menu {
  min-width: 210px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--ap-color-border);
  border-radius: 8px;
  box-shadow: var(--ap-shadow-md);
}

.ap-header-account-menu > li > a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #526770;
  font-size: 12px;
}

.ap-header-account-menu > li > a:hover,
.ap-header-account-menu > li > a:focus {
  color: var(--ap-color-brand-hover);
  background: var(--ap-color-surface-accent);
}

.ap-header-cart {
  min-width: 54px;
}

.ap-header-cart .ap-mini-cart {
  position: relative;
  margin: 0;
}

.ap-header-cart .ap-mini-cart-trigger {
  min-width: 58px;
  height: 54px;
  min-height: 48px;
  box-sizing: border-box;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 3px 7px;
  color: #5b717b;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

.ap-header-cart .ap-mini-cart-trigger:hover,
.ap-header-cart .ap-mini-cart.open .ap-mini-cart-trigger {
  color: var(--ap-color-brand-hover);
  background: transparent;
}

.ap-header-cart .ap-mini-cart-icon {
  position: relative;
  width: auto;
  height: auto;
  display: block;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: 17px;
}

.ap-header-cart .ap-mini-cart-trigger-copy {
  display: block;
  line-height: 1;
}

.ap-header-cart .ap-mini-cart-trigger-label {
  display: block;
  color: inherit;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
}

.ap-header-cart .ap-mini-cart-trigger-total {
  display: none;
}

.ap-header-cart .ap-mini-cart-badge,
.ap-cart-count,
.ap-mobile-bottom-count {
  position: absolute;
  min-width: 17px;
  height: 17px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--ap-radius-pill);
  background: var(--ap-color-accent-coral);
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
}

.ap-header-cart .ap-mini-cart-badge {
  top: -9px;
  right: -11px;
}

.ap-header-cart .ap-mini-cart-badge,
.ap-cart-count.is-visible,
.ap-mobile-bottom-count.is-visible {
  display: inline-flex;
}

.ap-header-cart .ap-mini-cart-dropdown {
  width: min(390px, calc(100vw - 32px));
  margin-top: 11px;
  border: 1px solid var(--ap-color-border);
  border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow-md);
}

.ap-header-mobile-button,
.ap-header-mobile-actions,
.ap-mobile-bottom-nav,
.ap-mobile-menu,
.ap-mobile-menu-backdrop {
  display: none;
}

/* Tablet: keep the ecommerce row, drop secondary information and labels. */
.ap-header-utility-locales .ap-header-utility-inner {
  justify-content: flex-end;
}
.ap-header-utility-locales .ap-header-utility-side {
  margin-left: auto;
}
@media (max-width: 1199px) {
  .ap-header-primary-inner {
    gap: var(--ap-space-3);
    min-height: 84px;
    grid-template-columns: 150px 128px minmax(180px, 1fr) auto;
  }

  .ap-header-logo {
    max-width: 144px;
    height: 45px;
  }

  .ap-header-contact {
    display: none;
  }

  .ap-header-actions {
    gap: 1px;
  }
}

@media (max-width: 991px) {
  :root {
    --ap-header-sticky-offset: 76px;
  }

  .ap-header-utility {
    display: none;
  }

  .ap-header-primary-inner {
    min-height: 80px;
    grid-template-columns: 132px 116px minmax(160px, 1fr) auto;
  }

  .ap-header-logo {
    max-width: 128px;
    height: 40px;
  }

  .ap-header-actions .ap-header-action span,
  .ap-header-cart .ap-mini-cart-trigger-label {
    display: none;
  }

  .ap-header-actions .ap-header-action,
  .ap-header-cart .ap-mini-cart-trigger {
    min-width: 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--ap-radius-md);
  }

  .ap-catalog-flyout {
    width: min(900px, calc(100vw - 48px));
  }

  .ap-catalog-flyout-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

}

/* Mobile shell is server-rendered; JS controls only open/closed state. */
.ap-mobile-contact-backdrop,
.ap-mobile-contact-sheet {
  display: none;
}
@media (max-width: 767px) {
  :root {
    --ap-mobile-header-height: 64px;
    --ap-header-sticky-offset: var(--ap-mobile-header-height);
  }

  body.ap-storefront {
    padding-bottom: calc(var(--ap-mobile-bottom-height) + env(safe-area-inset-bottom, 0px));
  }

  .ap-site-header {
    box-shadow: none;
  }

  .ap-header-primary {
    position: relative;
  }

  .ap-header-primary-inner {
    position: relative;
    min-height: var(--ap-mobile-header-height);
    display: grid;
    padding-right: var(--ap-page-gutter-mobile);
    padding-left: var(--ap-page-gutter-mobile);
    grid-template-columns: 44px minmax(0, 1fr) 92px;
    gap: var(--ap-space-2);
  }

  .ap-header-mobile-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 18px;
    text-decoration: none;
    width: 44px;
    height: 44px;
    color: var(--ap-color-text);
    border-radius: var(--ap-radius-md);
  }

  .ap-header-mobile-button:hover,
  .ap-header-mobile-button:focus {
    color: var(--ap-color-brand-hover);
    background: var(--ap-color-surface-accent);
    text-decoration: none;
    outline: 0;
  }

  .ap-header-brand {
    justify-content: center;
  }

  .ap-header-brand-link {
    margin: 0 auto;
  }

  .ap-header-logo {
    max-width: 126px;
    height: 40px;
  }

  .ap-header-catalog-slot {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
  }

  .ap-catalog-trigger,
  .ap-catalog-flyout,
  .ap-catalog-backdrop,
  .ap-header-actions,
  .ap-header-contact {
    display: none;
  }

  .ap-header-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
  }

  .ap-header-mobile-cart .ap-cart-count {
    top: 2px;
    right: 0;
  }

  .ap-header-search {
    position: absolute;
    z-index: var(--ap-z-dropdown);
    top: 100%;
    right: 0;
    left: 0;
    padding: 10px var(--ap-page-gutter-mobile) 12px;
    border-top: 1px solid var(--ap-color-border);
    border-bottom: 1px solid var(--ap-color-border);
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 12px 28px rgba(42, 64, 75, .1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--ap-transition-default), visibility var(--ap-transition-default), transform var(--ap-transition-default);
  }

  body.ap-search-open .ap-header-search {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .ap-site-search {
    min-height: 48px;
  }

  .ap-site-search-submit {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .ap-site-search-submit span {
    display: none;
  }

  .ap-mobile-menu-backdrop {
    position: fixed;
    z-index: var(--ap-z-backdrop);
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(33, 50, 59, .38);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
    height: 100dvh;
  }

  html.ap-mobile-menu-open .ap-mobile-menu-backdrop {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .ap-mobile-menu {
    position: fixed;
    z-index: var(--ap-z-drawer);
    top: 0;
    left: 0;
    display: block;
    overflow: hidden;
    background: #fff;
    transform: translateX(-104%);
    transition: transform 220ms ease;
    width: min(92vw, 380px);
    height: 100dvh;
    max-height: 100dvh;
    bottom: auto;
    border-radius: 0;
    box-shadow: var(--ap-shadow-md);
  }

  html.ap-mobile-menu-open .ap-mobile-menu {
    transform: translateX(0);
  }

  .ap-mobile-menu-head {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ap-space-4);
    padding: 0 var(--ap-space-4);
    border-bottom: 1px solid var(--ap-color-border);
    background: #fff;
  }

  .ap-mobile-menu-head span,
  .ap-mobile-menu-head strong {
    display: block;
  }

  .ap-mobile-menu-head span {
    margin-bottom: 2px;
    color: var(--ap-color-brand-hover);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .ap-mobile-menu-head strong {
    color: var(--ap-color-text);
    font-size: var(--ap-font-size-body-large);
  }

  .ap-mobile-menu-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
    padding: var(--ap-space-2) var(--ap-space-3) var(--ap-space-8);
  }

  .ap-mobile-category-list {
    display: grid;
    gap: 4px;
  }

  .ap-mobile-category {
    border-bottom: 1px solid #f0f4f5;
  }

  .ap-mobile-category-row {
    min-height: 54px;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .ap-mobile-category-link {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    padding: 6px 4px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none;
    font-size: var(--ap-font-size-body);
    gap: var(--ap-space-3);
    color: var(--ap-color-text);
  }

  .ap-mobile-category-link:hover,
  .ap-mobile-category-link:focus {
    color: var(--ap-color-brand-hover);
    text-decoration: none;
  }

  .ap-mobile-category-icon {
    width: 46px;
    height: 46px;
    border-radius: 0;
    background: transparent;
  }

  .ap-mobile-category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #91a2aa;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    border-radius: var(--ap-radius-md);
  }

  .ap-mobile-category-toggle .ap-shell-icon {
    transition: transform var(--ap-transition-fast);
  }

  .ap-mobile-category.is-open .ap-mobile-category-toggle .ap-shell-icon {
    transform: rotate(180deg);
  }

  .ap-mobile-category-children {
    display: grid;
    gap: 2px;
    padding: 0 0 10px 48px;
  }

  .ap-mobile-category-children[hidden] {
    display: none;
  }

  .ap-mobile-category-children a {
    padding: 8px 10px;
    color: #71858e;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none;
  }

  .ap-mobile-category-children a:hover,
  .ap-mobile-category-children a:focus {
    color: var(--ap-color-brand-hover);
    background: var(--ap-color-surface-accent);
    text-decoration: none;
  }

  .ap-mobile-utility-links {
    display: grid;
    gap: 2px;
    margin-top: var(--ap-space-5);
    padding-top: var(--ap-space-4);
    border-top: 1px solid var(--ap-color-border);
  }

  .ap-mobile-menu-section-label {
    padding: 0 10px 7px;
    color: #97a7ae;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .ap-mobile-utility-links a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 10px;
    color: #5a6f79;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }

  .ap-mobile-utility-links a .ap-shell-icon {
    width: 18px;
    height: 18px;
    color: var(--ap-color-brand);
    text-align: center;
  }

  .ap-mobile-utility-links a:hover,
  .ap-mobile-utility-links a:focus {
    color: var(--ap-color-brand-hover);
    background: var(--ap-color-surface-accent);
    text-decoration: none;
  }

  .ap-mobile-bottom-nav {
    position: fixed;
    z-index: var(--ap-z-bottom-nav);
    right: 0;
    bottom: 0;
    left: 0;
    min-height: var(--ap-mobile-bottom-height);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ap-color-border);
    box-shadow: none;
    background: var(--ap-color-surface);
  }

  .ap-mobile-bottom-item {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    color: var(--ap-color-text-muted);
    border-radius: var(--ap-radius-md);
  }

  .ap-mobile-bottom-item .ap-shell-icon {
    width: 19px;
    height: 19px;
  }

  .ap-mobile-bottom-item:hover,
  .ap-mobile-bottom-item:focus,
  .ap-mobile-bottom-item.is-primary {
    color: var(--ap-color-brand-hover);
    text-decoration: none;
    outline: 0;
  }

  .ap-mobile-bottom-item.is-primary .ap-shell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    border-radius: 0;
    background: transparent;
  }

  .ap-mobile-bottom-count {
    top: 4px;
    left: calc(50% + 6px);
  }

  .ap-mobile-contact-backdrop {
    pointer-events: none;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(22,37,44,.34);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
    z-index: var(--ap-z-backdrop);
    display: block;
  }

  .ap-mobile-contact-sheet {
    pointer-events: none;
    position: fixed;
    border: 1px solid rgba(20,38,44,.08);
    transform: translateY(14px);
    opacity: 0;
    visibility: hidden;
    transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
    bottom: calc(var(--ap-mobile-bottom-height) + env(safe-area-inset-bottom, 0px) + var(--ap-space-3));
    left: var(--ap-space-3);
    right: var(--ap-space-3);
    padding: var(--ap-space-4);
    border-radius: var(--ap-radius-lg);
    background: var(--ap-color-surface);
    box-shadow: var(--ap-shadow-md);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: var(--ap-z-drawer);
    display: block;
  }

  html.ap-contact-sheet-open .ap-mobile-contact-backdrop,
  html.ap-contact-sheet-open .ap-mobile-contact-sheet {
    pointer-events: auto;
  }

  html.ap-contact-sheet-open .ap-mobile-contact-backdrop {
    opacity: 1;
    visibility: visible;
  }

  html.ap-contact-sheet-open .ap-mobile-contact-sheet {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .ap-mobile-contact-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .ap-mobile-contact-sheet-head span,
  .ap-mobile-contact-sheet-head strong {
    display: block;
  }

  .ap-mobile-contact-sheet-head span {
    color: #0f8897;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .ap-mobile-contact-sheet-head strong {
    color: #18363d;
    font-size: 18px;
    font-weight: 800;
  }

  .ap-mobile-contact-sheet-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .ap-mobile-contact-link {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 18px;
    color: #17333a;
    background: #f4f7f8;
    text-decoration: none;
    font-weight: 700;
  }

  .ap-mobile-contact-link .ap-shell-icon {
    width: 23px;
    height: 23px;
  }

  .ap-mobile-contact-link.is-vk { background: #e8f2fe; }
  .ap-mobile-contact-link.is-tg { background: #ecf5ff; }
  .ap-mobile-contact-link.is-wa { background: #ecfbf0; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-catalog-backdrop,
  .ap-catalog-trigger-chevron,
  .ap-header-search,
  .ap-mobile-menu,
  .ap-mobile-menu-backdrop,
  .ap-mobile-category-toggle .ap-shell-icon {
    transition: none;
  }
}

/* Desktop full-screen catalog: composition follows the supplied reference. */
@media (min-width:768px) {
  html.ap-catalog-open .ap-catalog-flyout {
    position: fixed;
    z-index: var(--ap-z-drawer);
    top: var(--ap-header-sticky-offset);
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100dvh - var(--ap-header-sticky-offset));
    border: 0;
    border-top: 1px solid var(--ap-color-border);
    border-bottom: 1px solid var(--ap-color-border);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    scrollbar-width: thin;
    background: var(--ap-color-surface);
    color: var(--ap-color-text);
    padding: var(--ap-space-6) 0 var(--ap-space-8);
    scrollbar-color: var(--ap-color-border) transparent;
  }
  .ap-catalog-flyout::-webkit-scrollbar{width:6px;}
  .ap-catalog-flyout::-webkit-scrollbar-thumb{border-radius:999px;background:rgba(255,255,255,.55);}
  html.ap-catalog-open .ap-catalog-flyout-shell {
    min-height: 0;
    max-height: none;
    display: block;
    margin: 0 auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    width: min(var(--ap-workspace-max), calc(100% - 64px));
  }
  .ap-catalog-modal-head{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:0 0 34px;padding:0;border:0;background:transparent;}
  .ap-catalog-modal-head strong{display:block;line-height:1.15;letter-spacing:-.025em;color: var(--ap-color-text);font-size: var(--ap-font-size-h2);font-weight: 700;}
  .ap-catalog-modal-close{display:grid;place-items:center;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;transition:color .18s ease,transform .18s ease;color: var(--ap-color-text);width: 44px;height: 44px;font-size: 24px;}
  .ap-catalog-modal-close:hover,.ap-catalog-modal-close:focus{border:0;background:transparent;outline:0;color: var(--ap-color-brand-hover);transform: none;}
  .ap-catalog-modal-body{overflow:visible;}
  .ap-catalog-group-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:0;background:transparent;}
  .ap-catalog-group{min-width:0;margin:0 0 32px;padding:0 22px 0 0;background:transparent;}
  .ap-catalog-group-title{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;min-height:42px;text-decoration:none;color: var(--ap-color-text);}
  .ap-catalog-group-title:hover,.ap-catalog-group-title:focus{text-decoration:none;outline:0;color: var(--ap-color-brand-hover);}
  .ap-catalog-group-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;overflow:visible;border-radius:0;background:transparent;box-shadow:none;}
  .ap-catalog-group-icon img{display:block;width:100%;height:100%;object-fit:contain;}
  .ap-catalog-group-icon .ap-shell-icon{color:var(--ap-color-brand);}
  .ap-catalog-group-title strong{min-width:0;line-height:1.3;font-weight:700;font-size: var(--ap-font-size-body-large);}
  .ap-catalog-group-title>.ap-shell-icon{display:none;}
  .ap-catalog-group-links{display:grid;margin:11px 0 0 54px;gap: var(--ap-space-2);}
  .ap-catalog-group-links a{line-height:1.38;text-decoration:none;color: var(--ap-color-text-muted);font-size: var(--ap-font-size-body);}
  .ap-catalog-group-links a:hover,.ap-catalog-group-links a:focus{text-decoration:none;outline:0;color: var(--ap-color-brand-hover);}
  .ap-catalog-group-more{display:inline-flex;align-items:center;gap:7px;margin:10px 0 0 46px;padding:0;border:0;background:transparent;font-weight:700;text-decoration:none;cursor:pointer;color: var(--ap-color-brand-hover);font-size: var(--ap-font-size-body-small);}
  .ap-catalog-group-more .ap-shell-icon{transition:transform .18s ease;}
  .ap-catalog-group.is-expanded .ap-catalog-group-more .ap-shell-icon{transform:rotate(180deg);}
  .ap-catalog-group-more:hover,.ap-catalog-group-more:focus{text-decoration:underline;outline:0;color: var(--ap-color-brand-hover);}
}
@media (min-width:768px) and (max-width:1050px){.ap-catalog-group-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
