/*
 * Bebelplatz FASE 17.3 — Collections QA & Accessibility
 */

/* Keep the decorative fourth cover fully inside the hero viewport. */
.bp172-term-covers .bp132-cover-stack--hero .bp132-stack-cover--4 {
  left: auto !important;
  right: 4px !important;
}

/* Breadcrumbs are true touch targets, not text-only links. */
.bp172-main .bp132-breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* Theme pills meet the preferred mobile touch target. */
.bp172-main .bp172-theme-links a {
  min-height: 44px;
}

/* WooCommerce/Bebo custom ordering control: preserve appearance, enlarge hit area. */
.bp172-main .bp132-loop-tools .sbHolder {
  min-height: 44px !important;
}

.bp172-main .bp132-loop-tools a.sbSelector {
  min-height: 44px !important;
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.bp172-main .bp132-loop-tools a.sbToggle {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}

/* WCAG 2.2 minimum target size for text links inside book cards. */
.bp172-main .bp132-book-copy h3 a,
.bp172-main .bp132-book-author a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
}

/* Make the editorial route navigation robust after floated Woo pagination. */
.bp172-main .bp172-route-nav {
  clear: both;
  width: 100%;
  box-sizing: border-box;
}

/* Strong visible keyboard focus for all interactive controls added/used here. */
.bp172-main a:focus-visible,
.bp172-main button:focus-visible,
.bp172-main select:focus-visible {
  outline: 3px solid #e5884c !important;
  outline-offset: 3px !important;
}

@media (max-width: 560px) {
  .bp172-term-covers .bp132-cover-stack--hero .bp132-stack-cover--4 {
    left: auto !important;
    right: 4px !important;
  }

  .bp172-main .bp132-breadcrumb {
    align-items: center;
  }

  .bp172-main .bp132-loop-tools .sbHolder,
  .bp172-main .bp132-loop-tools a.sbSelector {
    width: 100% !important;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp172-main *,
  .bp172-main *::before,
  .bp172-main *::after {
    scroll-behavior: auto !important;
  }
}
