/* Shared branding. The original SVG is used without changing its geometry. */
.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: 142px;
  height: auto;
}

.footer-logo .brand-logo {
  width: 210px;
  filter: brightness(0) invert(1);
}

/* Foreground colors follow the selected accent, including dark accents. */
.button,
.skip-link,
.quality-panel,
::selection {
  color: var(--on-accent);
}

.button:hover {
  color: var(--on-accent-hover);
}

.product-image:hover .product-arrow {
  color: var(--on-accent);
}

.quality-panel .text-button {
  color: inherit;
}

.quality-panel .text-button span:first-child {
  border-color: currentColor;
}

/* The modal covers the viewport; the left panel scrolls independently. */
.mobile-menu {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.mobile-menu::backdrop {
  background: rgb(0 0 0 / 55%);
  backdrop-filter: none;
}

.mobile-menu-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 600px);
  height: 100%;
  padding: 28px 28px max(28px, env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-strong) var(--paper);
  box-shadow: 8px 0 30px rgb(0 0 0 / 12%);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 35px;
}

.mobile-menu-header .brand-logo {
  width: 160px;
}

.mobile-menu-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.mobile-menu-close:hover {
  color: var(--accent-strong);
}

.mobile-menu-primary,
.mobile-menu-secondary,
.mobile-menu-categories {
  display: flex;
  flex-direction: column;
}

.mobile-menu-primary > a {
  padding: 10px 0;
  font-size: 20px;
  font-weight: 800;
}

.mobile-menu-categories {
  gap: 2px;
  padding: 3px 0 18px 16px;
}

.mobile-menu-categories a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
}

.mobile-menu-secondary {
  gap: 6px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.mobile-menu-secondary a {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 46px;
  font-size: 16px;
}

.mobile-menu-secondary svg {
  flex-shrink: 0;
}

.mobile-menu-navigation a:hover,
.mobile-menu-navigation a[aria-current='page'] {
  color: var(--accent-strong);
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: auto;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.mobile-menu-footer .languages {
  gap: 16px;
  font-size: 14px;
}

.mobile-menu-footer .languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 44px;
}

.mobile-menu-footer .button {
  width: 100%;
}

@media (max-width: 800px) {
  .header .brand-logo {
    width: 126px;
  }

  .header .navigation {
    display: none;
  }

  .menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--surface-strong);
  }

  .menu-toggle span {
    width: 21px;
  }

  .footer-logo .brand-logo {
    width: min(180px, 100%);
  }
}

@media (max-width: 380px) {
  .header-actions {
    gap: 12px;
  }

  .mobile-menu-panel {
    padding-inline: 22px;
  }

  .footer-logo .brand-logo {
    width: 132px;
  }
}
