/* Keep the navigation's current destination visible with or without a mouse. */
.site-header #primary-nav a[aria-current] {
  color: var(--deep);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #858f70;
  text-underline-offset: .38em;
}

/* The catalogue uses H2s for products and the home page uses H3s. */
.catalog .product-card h2,
.catalog .product-card h3 {
  margin: .35rem 0 .6rem;
  color: var(--deep);
  font: 600 1.075rem/1.34 WaidamiSans, "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.catalog .product-card {
  display: flex;
  flex-direction: column;
}

.catalog .product-bottom {
  flex-wrap: wrap;
  row-gap: .25rem;
  margin-top: auto;
}

.catalog .round-link {
  flex: none;
  margin-left: auto;
}

.catalog .filter-bar > .field,
.catalog .filter-bar input,
.catalog .filter-bar select,
.single-product-grid > * {
  min-width: 0;
}

@media (max-width: 800px) {
  .site-header .header-inner {
    min-height: 64px;
    gap: .65rem;
  }

  .site-header a.brand,
  .site-header a.brand > img {
    width: 124px;
  }

  .site-header a.brand > img {
    height: 54px;
  }

  .site-header .menu-toggle {
    display: grid;
    grid-template-columns: 19px auto;
    grid-template-rows: repeat(2, 2px);
    align-content: center;
    gap: 5px 8px;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 10px;
    border-radius: 9px;
    color: var(--deep);
  }

  .site-header .menu-toggle > span:not(.sr-only) {
    grid-column: 1;
  }

  .site-header .menu-toggle > .sr-only {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    clip-path: none;
    overflow: visible;
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
  }

  .site-header .menu-toggle[aria-expanded="true"] {
    background: var(--wash);
    border-color: #858f70;
  }

  .site-header #primary-nav {
    padding: .5rem max(1.25rem, calc((100% - 44rem) / 2)) .9rem;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }

  .site-header #primary-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: .6rem .3rem;
    font-size: 1rem;
  }

  .site-header #primary-nav a + a {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .woocommerce:has(.catalog) > .page-heading {
    padding-block: 1.6rem .7rem;
  }

  .woocommerce:has(.catalog) > .page-heading > p:last-child {
    margin-bottom: .4rem;
  }

  .woocommerce:has(.catalog) > .notice {
    padding: .8rem 1rem;
    margin-bottom: 1.1rem;
  }

  .catalog .filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .55rem .65rem;
    margin: 0 0 .85rem;
  }

  .catalog .filter-bar .field:first-child {
    grid-column: 1 / -1;
  }

  .catalog .filter-bar .field {
    gap: .25rem;
  }

  .catalog .filter-bar .button {
    width: auto;
    min-height: 48px;
    padding: .75rem .95rem;
  }

  .catalog .filter-bar :is(input, select),
  .single-product-copy form.cart :is(input, select) {
    font-size: 1rem;
  }

  .catalog .product-grid {
    column-gap: .9rem;
    row-gap: 1.7rem;
  }

  .catalog .product-card :is(h2, h3) {
    font-size: 1rem;
  }

  .catalog .product-bottom .round-link {
    width: 44px;
    height: 44px;
  }

  .single-product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 2.75rem;
  }

  .single-product-grid .single-product-copy h1 {
    font-size: clamp(2rem, 7vw, 2.7rem);
    margin-bottom: .8rem;
  }

  .single-product-copy > #wm-gallery {
    margin: 0 0 1.2rem;
  }

  #wm-gallery .wm-zoom .single-product-photo {
    height: clamp(190px, 61vw, 310px);
    min-height: 0;
    aspect-ratio: auto;
  }

  #wm-gallery .wm-thumbnails .wm-thumb {
    flex: 0 0 52px;
  }
}

@media (max-width: 359px) {
  .catalog .filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header .header-inner {
    gap: .35rem;
  }
}
