/* ROLLTEK's vector logo is the source of truth for all solid orange accents. */
:root, html[data-design] {
  --brand-orange: #f15a22;
  --orange: var(--brand-orange);
  --active: var(--brand-orange);
  --action: var(--brand-orange);
}
.primary, .primary:hover, html[data-design] .button.primary,
html[data-design] .button.primary:hover, .site-search button {
  background: var(--brand-orange);
  color: #283740;
}

/* A percentage height in an auto-minimum grid track used to expand a 230px
   portrait-image slot to 812px. Bound the track, not the original photograph. */
.product-photo {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  flex: none;
}
.product-photo img {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Two independently focusable destinations: illustration above, name below.
   The third, small chevron only opens subcategories on touch and keyboard. */
#navigation {
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  font-size: 17px;
}
.nav-category { position: relative; min-width: 0; }
.nav-category-links { display: grid; justify-items: center; padding: 8px 4px; gap: 2px; }
.nav-illustration, .nav-label {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; text-align: center;
  transition: background .18s, color .18s, box-shadow .18s;
}
.nav-illustration { min-width: 72px; min-height: 65px; padding: 5px 12px; }
.nav-icon { display: block; width: 54px; height: 48px; color: var(--ink); }
.nav-icon svg { width: 100%; height: 100%; }
.nav-icon .a { stroke: var(--brand-orange); }
.nav-label-row { display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav-label { min-height: 44px; padding: 6px 7px; font-weight: 650; line-height: 1.35; }
.nav-category:first-child .nav-label, .nav-category:last-child .nav-label { white-space: nowrap; }
.nav-illustration:hover, .nav-label:hover {
  background: color-mix(in srgb, var(--brand-orange) 9%, white);
  color: var(--brand-orange);
  box-shadow: inset 0 -2px var(--brand-orange);
}
.nav-illustration:hover .nav-icon { color: var(--brand-orange); }
.nav-submenu-toggle {
  display: grid; place-items: center; flex: none; min-width: 30px; min-height: 44px;
  padding: 0 5px; border: 0; background: transparent; color: var(--brand-orange); border-radius: 8px;
}
.nav-submenu-toggle:hover { background: color-mix(in srgb, var(--brand-orange) 12%, white); }
.nav-submenu-toggle .nav-caret { background: none; color: inherit; }
.nav-submenu-toggle[aria-expanded=true] .nav-caret { transform: rotate(180deg); }
.nav-category .submenu { right: 0; top: 100%; max-width: calc(100vw - 32px); border-bottom-color: var(--brand-orange); }
.nav-category:nth-last-child(-n+2) .submenu { right: auto; left: 0; }
.nav-category .submenu a:hover { color: var(--brand-orange); }
html[data-design=anthracite] .nav-icon { color: #f7f8f8; }
html[data-design=anthracite] .nav-label:hover,
html[data-design=anthracite] .nav-illustration:hover { background: #343b42; color: var(--brand-orange); }
@media (min-width: 801px) and (max-width: 1100px) {
  #navigation { font-size: 14px; gap: 2px; flex-wrap: nowrap; }
  .nav-category-links { padding-inline: 0; }
  .nav-icon { width: 44px; height: 44px; }
  .nav-illustration { min-width: 56px; padding-inline: 6px; }
  .nav-label { padding-inline: 3px; }
  .nav-submenu-toggle { min-width: 24px; padding-inline: 1px; }
}
@media (max-width: 800px) {
  #navigation { font-size: 18px; }
  .nav-category { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-category-links { display: flex; gap: 12px; padding: 3px 0; }
  .nav-illustration { width: 64px; min-width: 64px; min-height: 60px; }
  .nav-icon { width: 48px; height: 42px; }
  .nav-label-row { flex: 1; justify-content: space-between; }
  .nav-label { justify-content: flex-start; flex: 1; text-align: right; }
  .nav-submenu-toggle { min-width: 44px; }
  .nav-category .submenu { position: static; width: auto; max-width: none; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-illustration, .nav-label { transition: none; }
}
