/* Automatic photographs also support arrows, indicators and touch gestures. */
.hero-photo > .hero-slide { position: absolute; inset: 0; }
.hero-photo > figcaption { z-index: 1; top: 12px; bottom: auto; }
.slide-indicators {
  position: absolute; z-index: 3; left: 50%; bottom: 12px;
  transform: translateX(-50%); display: flex; align-items: center; gap: 3px;
  padding: 0 5px; border-radius: 4px; background: transparent;
}
.slide-indicator {
  display: grid; place-items: center; width: 38px; height: 40px;
  padding: 0; border: 0; border-radius: 2px; background: transparent;
}
.slide-indicator > span {
  display: block; width: 28px; height: 7px; border: 1px solid #fff;
  background: #ffffff52; border-radius: 1px;
  transition: background .15s, border-color .15s;
}
.slide-indicator:hover > span { background: #fff; }
.slide-indicator[aria-pressed="true"] > span { background: var(--red); border-color: var(--red); }
.slide-indicator:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.hero-slide:not([hidden]) { animation: reveal-slide .35s ease-out; }
@keyframes reveal-slide { from { opacity: .35; } to { opacity: 1; } }

/* Native disclosure: hover on a mouse, tap/click or keyboard everywhere. */
.site-header { position: relative; z-index: 10; }
.categories-dropdown { position: relative; }
.categories-toggle {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  list-style: none; cursor: pointer; font-size: 13px; font-weight: 600;
  color: #414b37; padding: 5px 0; white-space: nowrap;
}
.categories-toggle::-webkit-details-marker { display: none; }
.categories-toggle .category-chevron { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .15s; }
.categories-dropdown[open] > .categories-toggle { color: var(--red); }
.categories-dropdown[open] > .categories-toggle .category-chevron { transform: rotate(180deg); }
.categories-toggle:hover { color: var(--red); }
.categories-toggle:focus-visible { outline: 3px solid #d83f45; outline-offset: 3px; border-radius: 2px; }
.category-menu {
  position: absolute; z-index: 20; top: 100%; left: -18px;
  width: 272px; max-height: min(64vh, 560px); overflow-y: auto;
  overscroll-behavior: contain; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid #e2e6d9; border-top: 2px solid var(--red);
  border-radius: 0 0 5px 5px; box-shadow: 0 14px 35px #25301c1c;
}
.category-menu li { display: block; margin: 0; padding: 0; }
.category-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  min-height: 40px; padding: 9px 12px; border-radius: 3px;
  color: #57634a; font-size: 12px; line-height: 1.5;
}
.category-menu a:hover, .category-menu a:focus-visible { color: var(--red); background: #f6f5ef; }
.category-menu a:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.category-menu .all-categories { color: #343f29; font-weight: 600; margin-bottom: 5px; padding-bottom: 13px; border-bottom: 1px solid var(--line); border-radius: 0; }
.category-menu .all-categories span { color: var(--red); font-size: 18px; }
@media (max-width: 1000px) {
  .main-nav { gap: 20px; }
  .header-inner { gap: 22px; }
  .header-phone { padding-left: 20px; }
}
@media (max-width: 700px) {
  .header-inner { display: grid; grid-template-columns: 1fr; gap: 0; min-height: 0; padding-block: 4px 6px; }
  .header-inner .brand, .header-inner .brand img { width: 166px; }
  .header-inner .brand img { height: 73px; }
  .main-nav { position: relative; width: 100%; margin: 0; justify-content: space-between; gap: 22px; }
  .main-nav > a { display: flex; align-items: center; min-height: 44px; font-size: 12px; }
  .main-nav .active:after { bottom: 2px; width: 4px; height: 4px; }
  .categories-dropdown { position: static; }
  .categories-toggle { font-size: 12px; min-height: 44px; }
  .category-menu { left: 0; right: 0; width: auto; max-height: 60vh; }
  .category-menu a { min-height: 44px; font-size: 13px; }
  .slide-indicators { bottom: 9px; padding-inline: 2px; gap: 1px; }
  .slide-indicator { width: 38px; height: 42px; }
  .slide-indicator > span { width: 25px; height: 6px; }
  .hero-photo > figcaption { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-indicator > span, .categories-toggle .category-chevron { transition: none; }
}
.category-menu .category-department {padding-bottom:8px}
.category-department>strong {display:block;padding:14px 12px 5px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#8b7161}
.category-department>ul {list-style:none;margin:0;padding:0}

/* Keep every manufacturer logo visible without cropping the banner. */
.hero-photo .hero-slide-brands > img { object-fit: contain; background: #f7f3ec; }
.hero-photo:has(.hero-slide-brands:not([hidden])) > figcaption { top: auto; bottom: 4px; right: 6px; font-size: 8px; padding: 2px 4px; }
