.site-header.glass,
.bottom-nav.glass {
  --glass-rim: 1.7px;
  background-color: rgba(12, 28, 46, .20);
  background-image: none;
  border: var(--glass-rim) solid rgb(237 247 255 / 55%);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 48%),
    inset 0 -1px 0 rgb(42 55 77 / 22%),
    0 3px 10px rgb(26 28 43 / 10%);
  -webkit-backdrop-filter: saturate(1.04);
  backdrop-filter: saturate(1.04);
}

body {
  --header-height: 59px;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.glass {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 7px auto 0;
  height: var(--header-height);
  z-index: 6;
}
@media (max-width: 700px) { body { --header-height: 55px; } }
.basket-link.is-floating {
  position: fixed;
  left: max(14px, env(safe-area-inset-left, 0px));
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 6;
  background: transparent;
  box-shadow: none;
}
.basket-link b[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .basket-link.is-floating { animation: basket-arrives .20s ease-out; }
  @keyframes basket-arrives {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
  }
}

.site-header .brand {display:flex;align-items:center;gap:6px;padding:0}
.brand-symbol,.brand-name {display:block;background-image:url("assets/brand.png");background-repeat:no-repeat}
.brand-symbol {width:39px;height:36px;background-size:39px auto;background-position:top center}
.brand-name {width:47px;height:26px;background-size:50px auto;background-position:bottom center}

.glass::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--glass-rim));
  padding: var(--glass-rim);
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from 0deg, #e5f4ffee, #94a7bc99 75deg, #aebfd1ae 105deg, #f4fdff 138deg, #d7e8f4dc 180deg, #8197aaa3 255deg, #b2c4d8bd 284deg, #fbffff 316deg, #e5f4ffee);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .glass::after { display: none; }
}

html { scroll-padding-top: 12px; }

.bottom-nav.glass { height: 41px; padding-block: 1px; }
.bottom-nav.glass > :is(a, button) {
  position: relative;
  min-height: 0;
  padding-block: 0;
  gap: 1px;
}
.bottom-nav.glass > :is(a, button)::after {
  content: "";
  position: absolute;
  inset: -5px 0;
}

.site-header.glass :is(.category-select, .basket-link),
.bottom-nav.glass :is(a, button) {
  color: #2b2038;
  text-shadow: 0 1px 1px rgb(255 255 255 / 45%);
}

.bottom-nav.glass .active {
  color: #361963;
  background-color: rgb(255 252 247 / 48%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 46%);
}

.glass-optics-defs {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  overflow: hidden;
}

@media (forced-colors: active) {
  .site-header.glass,
  .bottom-nav.glass {
    background: Canvas;
    border-color: ButtonText;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

.site-header.glass::before,
.bottom-nav.glass .active::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: contain;
}
.site-header.glass::before {
  width: 125px;
  height: 32px;
  top: -5px;
  left: 36px;
  background-image: url("assets/glint-ice.svg");
  opacity: .78;
}
.bottom-nav.glass a { position: relative; }
.bottom-nav.glass .active::before {
  width: 46px;
  height: 26px;
  top: -5px;
  right: -1px;
  background-image: url("assets/glint-gold.svg");
}
@media (prefers-reduced-motion: no-preference) {
  .site-header.glass::before { animation: rim-glint 1.5s ease-out both; }
  .bottom-nav.glass .active::before { animation: rim-glint .65s ease-out; }
}
@keyframes rim-glint {
  0% { opacity: .18; }
  35% { opacity: 1; }
  100% { opacity: .78; }
}
@media (forced-colors: active) {
  .site-header.glass::before, .bottom-nav.glass .active::before { display: none; }
}
