/* Components: bottom navigation bar styles. */

/* Services is temporarily unavailable from the public navigation. */
.services-entry-hidden {
  display: none !important;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0));
  left: 14px;
  right: 14px;
  height: 72px;
  padding: 8px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.58),
    rgba(255, 255, 255, 0.32)
  );
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(34px) saturate(180%) contrast(108%);
  -webkit-backdrop-filter: blur(34px) saturate(180%) contrast(108%);
  box-shadow:
    0 22px 46px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 0.24s ease,
    opacity 0.2s ease,
    bottom 0.2s ease;
}

.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.06)
  );
  pointer-events: none;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  padding: 7px 4px 6px;
  margin: 0;
  border-radius: 999px;
  min-width: 0;
}

.nav-btn i {
  font-size: 1.3rem;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.nav-icon-svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    color 0.2s ease,
    stroke-width 0.2s ease;
}

.nav-btn span {
  font-size: 0.72rem;
  font-weight: 700;
  color: currentColor;
  text-shadow: none;
  line-height: 1.2;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-btn.active {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(220, 38, 38, 0.14),
    0 8px 18px rgba(220, 38, 38, 0.08);
  position: relative;
  z-index: 1;
}

.nav-btn.active::after {
  content: none;
}

.nav-btn.active i {
  transform: none;
  color: currentColor;
}

.nav-btn.active .nav-icon-svg {
  transform: none;
  color: currentColor;
  stroke-width: 2.15;
}

.nav-btn.active span {
  color: currentColor;
}

.desktop-header-nav {
  display: none;
}

.platform-route-back-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.platform-route-back-btn svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.platform-route-back-active
  .platform-shared-header
  .platform-route-back-btn {
  display: inline-flex;
}

body.platform-route-back-active
  .platform-shared-header
  .shop-search-brand-logo {
  display: none;
}

body.theme-dark .platform-route-back-btn {
  color: #f8fafc;
}

body.theme-dark .platform-route-back-btn:hover,
body.theme-dark .platform-route-back-btn:focus-visible {
  color: #ff3b3b;
}

.desktop-category-menu {
  display: none;
  position: relative;
  flex: 0 0 auto;
}

.desktop-header-nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(32, 32, 36, 0.68),
    rgba(18, 18, 22, 0.58)
  );
  color: #ffffff;
  min-height: 42px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.desktop-category-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 156px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  z-index: 45;
}

.desktop-category-mega {
  min-width: min(760px, calc(100vw - 48px));
  grid-template-columns: 150px 190px minmax(260px, 1fr);
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
}

.desktop-category-menu:hover .desktop-category-dropdown,
.desktop-category-menu:focus-within .desktop-category-dropdown,
.desktop-category-menu.is-open .desktop-category-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-category-menu:hover .desktop-category-trigger,
.desktop-category-menu:focus-within .desktop-category-trigger,
.desktop-category-menu.is-open .desktop-category-trigger {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(42, 42, 48, 0.78),
    rgba(24, 24, 30, 0.68)
  );
  border-color: rgba(255, 255, 255, 0.42);
}

.desktop-category-item {
  border: 0;
  background: transparent;
  color: #1f2937;
  text-align: right;
  padding: 10px 11px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

.desktop-category-item:hover,
.desktop-category-item:focus-visible {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  outline: none;
}

.desktop-category-col,
.desktop-category-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.desktop-category-col {
  border-left: 1px solid rgba(100, 116, 139, 0.2);
  padding-left: 10px;
}

.desktop-category-mega-item,
.desktop-category-leaf {
  border: 0;
  background: transparent;
  color: #1f2937;
  border-radius: 12px;
  font-family: inherit;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.desktop-category-mega-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  text-align: right;
  font-size: 13px;
}

.desktop-category-mega-item i {
  color: currentColor;
}

.desktop-category-mega-item:hover,
.desktop-category-mega-item:focus-visible,
.desktop-category-mega-item.active,
.desktop-category-leaf:hover,
.desktop-category-leaf:focus-visible {
  color: #ff3b3b;
  background: rgba(255, 59, 59, 0.13);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 59, 59, 0.18);
}

.desktop-category-panel-title {
  color: #64748b;
  font-size: 12px;
  padding: 2px 4px 6px;
}

.desktop-category-leaf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.desktop-category-leaf {
  padding: 9px 10px;
  text-align: right;
  font-size: 12.5px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-visual-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.category-visual-icon::after {
  content: none;
}

.category-visual-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 5px 7px rgba(15, 23, 42, 0.18));
}

.category-visual-icon.is-small {
  width: 28px;
  height: 28px;
}

body.theme-dark .category-visual-svg {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.42));
}

.desktop-header-nav-btn .nav-icon-svg {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
}

.desktop-account-nav-btn {
  max-width: 176px;
  min-height: 40px;
  padding-inline: 12px;
}

.desktop-account-nav-btn .desktop-account-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-account-nav-btn .desktop-account-icon {
  width: 16px !important;
  height: 16px !important;
  inline-size: 16px !important;
  block-size: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
}

.desktop-account-avatar {
  display: none;
  width: 0;
  height: 0;
  flex: 0 0 0;
}

.desktop-header-nav-btn:hover,
.desktop-header-nav-btn:focus-visible {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(42, 42, 48, 0.78),
    rgba(24, 24, 30, 0.68)
  );
  border-color: rgba(255, 255, 255, 0.42);
  outline: none;
}

.desktop-header-nav-btn.active {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(32, 32, 36, 0.76),
    rgba(18, 18, 22, 0.66)
  );
  border-color: rgba(255, 255, 255, 0.38);
}

.top-links-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-size: 12px;
  position: absolute;
  inset: 50% 0 auto 0;
  transform: translateY(-50%);
  pointer-events: none;
  padding-inline: 14px;
}

@media (max-width: 1023px) {
  #mainAppContainer:has(> .info-footer),
  .info-page-wrap:has(.info-footer) {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0)) !important;
  }

  #mainAppContainer:has(#account-section.active-section) {
    padding-bottom: 0 !important;
  }

  body.platform-route-back-active .bottom-nav {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none !important;
  }

  .desktop-category-menu {
    display: block;
  }

  .desktop-header-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    order: 10;
  }
}

.top-links-inline-right,
.top-links-inline-left {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}

.top-links-inline a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.top-links-inline a:hover,
.top-links-inline a:focus,
.top-links-inline a:active {
  color: #ff1f1f;
  text-shadow: 0 0 8px rgba(255, 31, 31, 0.45);
}

.shop-header-content .top-links-inline,
.section-header .top-links-inline {
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  justify-content: center;
  gap: 8px;
  padding-inline: 0;
  pointer-events: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-header-content .top-links-inline::-webkit-scrollbar,
.section-header .top-links-inline::-webkit-scrollbar {
  display: none;
}

.shop-header-content .top-links-inline-left,
.shop-header-content .top-links-inline-right,
.section-header .top-links-inline-left,
.section-header .top-links-inline-right {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
}

.shop-header-content .top-links-inline a,
.section-header .top-links-inline a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 560px) {
  .top-links-inline {
    width: 100%;
    position: static;
    transform: none;
    margin-top: 2px;
    font-size: 11px;
    pointer-events: auto;
    padding-inline: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .top-links-inline::-webkit-scrollbar {
    display: none;
  }

  .top-links-inline-left,
  .top-links-inline-right {
    width: auto;
    justify-content: flex-start;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .top-links-inline a {
    flex: 0 0 auto;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    line-height: 1.35;
    text-align: center;
  }

  .shop-header-content .top-links-inline,
  .section-header .top-links-inline {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .bottom-nav {
    left: 8px;
    right: 8px;
    gap: 2px;
    padding-inline: 5px;
  }

  .nav-btn {
    padding-inline: 2px;
  }

  .nav-btn span {
    font-size: 0.66rem;
  }

  .top-links-inline {
    font-size: 10px;
  }

  .top-links-inline-left,
  .top-links-inline-right {
    gap: 5px;
  }

  .top-links-inline a {
    min-height: 26px;
    padding: 3px 7px;
  }
}
