/* ==========================================================================
   Wheelchire — Premium mobility UI (inspired by Küschall / Aria Wheels)
   Layered polish for header, nav dropdowns, footer, and chrome.
   ========================================================================== */

:root {
  /* Non-color fallbacks only — palette/fonts come from Theme Settings via inline CSS on main. */
  --tx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tx-font-body);
  color: var(--tx-text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(200, 16, 46, 0.04), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(17, 17, 17, 0.035), transparent 50%),
    var(--tx-bg);
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.tx-section-title,
.entry-title,
.archive-title {
  font-family: var(--tx-font-heading);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--tx-content-width, 1320px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tx-container-pad, 28px);
  padding-right: var(--tx-container-pad, 28px);
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Announcement
   -------------------------------------------------------------------------- */
.terea-announcement-bar,
.announcement-bar {
  background: #0a0a0a !important;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 20px;
}

.terea-announcement-text,
.announcement-bar {
  font-size: max(0.8125rem, 13px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terea-announcement-icon {
  color: var(--tx-accent);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Header — clean premium bar (Küschall / Aria)
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
  border-bottom: 1px solid var(--tx-border);
}

.terea-header-main {
  background: transparent;
  border-bottom: 0;
}

.terea-header-main-inner {
  max-width: 1320px;
  padding: 18px 28px;
  gap: 28px;
}

.terea-logo-img,
.terea-logo-link img,
.custom-logo {
  height: 80px !important;
  max-height: 100px !important;
  max-width: 200px !important;
}

.terea-site-title {
  font-family: var(--tx-font-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

.terea-header-search {
  max-width: 520px;
}

.terea-search-form {
  display: flex;
  align-items: center;
  background: #f4f4f2;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.2s var(--tx-ease), box-shadow 0.2s var(--tx-ease), background 0.2s var(--tx-ease);
}

.terea-search-form:focus-within {
  background: #fff;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.terea-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 13px 18px;
  font-size: 14px;
  color: var(--tx-text);
  outline: none;
}

.terea-search-input::placeholder {
  color: #8b8b8b;
}

.terea-search-btn {
  width: 46px;
  height: 46px;
  border: 0;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--tx-ease);
}

.terea-search-btn:hover {
  background: var(--tx-accent);
}

.terea-header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terea-header-call,
.terea-header-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tx-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.terea-header-call:hover,
.terea-header-mail:hover {
  color: var(--tx-accent);
}

.terea-header-call-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f3f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.terea-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terea-header-tool,
.terea-header-btn,
.terea-header-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e8e8e8;
  background: #fff;
  color: #111;
  transition: transform 0.2s var(--tx-ease), border-color 0.2s var(--tx-ease), background 0.2s var(--tx-ease), color 0.2s var(--tx-ease);
}

.terea-header-tool:hover,
.terea-header-btn:hover,
.terea-header-icon-btn:hover {
  background: #111;
  border-color: #111;
  color: #fff;
  transform: translateY(-1px);
}

.terea-header-cart-btn,
.terea-header-cart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111 !important;
  border: 1px solid #111 !important;
  color: #fff !important;
}

.terea-header-cart-btn:hover,
.terea-header-cart:hover {
  background: var(--tx-btn-bg, var(--tx-accent)) !important;
  border-color: var(--tx-btn-bg, var(--tx-accent)) !important;
  color: #fff !important;
}

.terea-cart-count,
.terea-header-badge {
  background: var(--tx-accent) !important;
  border: 2px solid #fff;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Sticky nav + dropdown menus
   -------------------------------------------------------------------------- */
.terea-header-nav {
  background: #0a0a0a;
  border-bottom: 0;
}

.terea-header-nav.is-stuck {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.terea-header-nav-inner {
  max-width: 1320px;
  padding: 0 28px;
  min-height: 54px;
  gap: 20px;
}

.terea-cat-toggle {
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 4px;
  background: var(--tx-btn-bg, var(--tx-accent));
  border-color: var(--tx-btn-bg, var(--tx-accent));
}

.terea-cat-toggle:hover {
  background: var(--tx-accent-2);
  border-color: var(--tx-accent-2);
}

.terea-cat-toggle-label {
  font-family: var(--tx-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terea-nav-menu {
  gap: 0;
}

.terea-nav-menu > li > a {
  padding: 16px 16px;
  font-family: var(--tx-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 0;
  background: transparent;
  position: relative;
}

.terea-nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 2px;
  background: var(--tx-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--tx-ease);
}

.terea-nav-menu > li > a:hover,
.terea-nav-menu > li.current-menu-item > a,
.terea-nav-menu > li.current-menu-ancestor > a,
.terea-nav-menu > li:focus-within > a {
  color: #fff;
  background: transparent;
}

.terea-nav-menu > li > a:hover::after,
.terea-nav-menu > li.current-menu-item > a::after,
.terea-nav-menu > li.current-menu-ancestor > a::after,
.terea-nav-menu > li:focus-within > a::after {
  transform: scaleX(1);
}

.terea-nav-menu .nav-arrow {
  opacity: 0.7;
}

.terea-nav-menu .sub-menu {
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 10px;
  margin: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  transform: translateY(8px);
}

.terea-nav-menu .sub-menu a {
  padding: 12px 14px;
  font-family: var(--tx-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #1a1a1a;
  border-radius: 4px;
}

.terea-nav-menu .sub-menu a:hover,
.terea-nav-menu .sub-menu .current-menu-item > a {
  background: #f4f4f2;
  color: var(--tx-accent);
}

.terea-nav-menu .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 8px);
}

/* Legacy list dropdowns */
.terea-nav-list > li > a:hover,
.terea-nav-list > li.current-menu-item > a {
  color: #111;
  background: #f4f4f2;
}

.terea-nav-list .sub-menu {
  border-radius: 6px;
  border-color: #ececec;
  box-shadow: var(--tx-shadow-lg);
}

.terea-nav-list .sub-menu li a:hover {
  background: #f4f4f2;
  color: var(--tx-accent);
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
.terea-cat-drawer,
.terea-mobile-nav {
  background: #fff;
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.2);
}

.terea-cat-drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid #ececec;
  background: #0a0a0a;
}

.terea-cat-drawer-close {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

.terea-cat-drawer-tabs {
  background: #f7f7f5;
  border-bottom: 1px solid #ececec;
}

.terea-cat-tab {
  font-family: var(--tx-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.terea-cat-tab.is-active {
  color: #111;
  box-shadow: inset 0 -2px 0 var(--tx-accent);
}

.terea-cat-drawer-list a,
.terea-mobile-menu a {
  font-weight: 600;
  color: #1a1a1a;
}

.terea-cat-drawer-list a:hover,
.terea-mobile-menu a:hover {
  background: #f4f4f2;
  color: var(--tx-accent);
}

.terea-mobile-nav-contact {
  background: #f4f4f2 !important;
  color: #111 !important;
  border-radius: 6px;
}

.terea-mobile-nav-cart {
  background: #111 !important;
}

/* --------------------------------------------------------------------------
   Buttons / CTAs
   -------------------------------------------------------------------------- */
.tx-btn,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.single_add_to_cart_button {
  border-radius: 8px !important;
  font-family: var(--tx-font-body, Manrope, sans-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.tx-btn--primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.single_add_to_cart_button {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.tx-btn--primary:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.single_add_to_cart_button:hover {
  background: var(--tx-btn-bg, var(--tx-accent)) !important;
  border-color: var(--tx-btn-bg, var(--tx-accent)) !important;
  color: #fff !important;
}

.tx-btn--accent {
  background: var(--tx-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.tx-btn--accent:hover {
  background: var(--tx-accent-2) !important;
  color: #fff !important;
}

.tx-section-eyebrow,
.tx-eyebrow--sm {
  border-radius: 4px !important;
  background: #f4f4f2 !important;
  color: #111 !important;
  border-color: #e5e5e5 !important;
  letter-spacing: 0.12em;
}

.tx-section-eyebrow-line {
  background: var(--tx-accent) !important;
}

/* --------------------------------------------------------------------------
   Footer — light brand chrome (matches header)
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  background: #f3f3f1;
  color: #374151;
  border-top: 1px solid #e5e5e5;
  position: relative;
  overflow: visible;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tx-accent), transparent 55%);
}

.footer-top {
  padding: 72px 0 48px;
}

.footer-grid {
  gap: 48px;
}

.footer-brand img {
  height: 44px;
  filter: none;
}

.footer-description {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.75;
  max-width: 340px;
}

.footer-col h3.footer-title,
.footer-col .footer-widget-title,
.footer-col .widget-title {
  font-family: var(--tx-font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #000;
}

.footer-col a,
.footer-col .widget a {
  color: #374151;
  font-size: 16px;
  font-weight: 500;
}

.footer-contact-list li,
.footer-contact-list a,
.footer-contact-list span {
  font-size: 16px;
}

.footer-col a:hover,
.footer-col .widget a:hover {
  color: var(--tx-accent, #c8102e);
}

.footer-contact-icon {
  background: rgba(200, 16, 46, 0.14);
  color: var(--tx-accent);
  border-radius: 4px;
}

.footer-stars {
  color: var(--tx-accent, #c8102e);
}

.footer-rating {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d7d7d4;
  color: #111;
}

.social-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--tx-accent);
  border-color: var(--tx-accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  background: #ecece8;
  border-top: 1px solid #dddcd7;
  padding: 22px 0;
}

.footer-bottom .age-notice {
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   Product cards / surfaces
   -------------------------------------------------------------------------- */
.terea-product-card,
.tx-product-card,
.woocommerce ul.products li.product {
  border-radius: 8px;
  border-color: #ececec;
  box-shadow: none;
  transition: transform 0.25s var(--tx-ease), box-shadow 0.25s var(--tx-ease), border-color 0.25s var(--tx-ease);
}

.terea-product-card:hover,
.tx-product-card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--tx-shadow-md);
  border-color: #ddd;
}

/* --------------------------------------------------------------------------
   Scroll top / toast / drawer accents
   -------------------------------------------------------------------------- */
.terea-scroll-top {
  background: #111;
  border-radius: 4px;
}

.terea-scroll-top:hover {
  background: var(--tx-accent);
}

.terea-drawer-btn--checkout,
.terea-drawer-btn--cart {
  border-radius: 4px;
}

.terea-drawer-btn--checkout {
  background: #111 !important;
}

.terea-drawer-btn--checkout:hover {
  background: var(--tx-accent) !important;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .terea-header-nav-inner,
  .terea-header-main-inner {
    animation: wh-fade-down 0.55s var(--tx-ease) both;
  }

  .site-footer .footer-col {
    animation: wh-fade-up 0.6s var(--tx-ease) both;
  }

  .site-footer .footer-col:nth-child(2) { animation-delay: 0.05s; }
  .site-footer .footer-col:nth-child(3) { animation-delay: 0.1s; }
  .site-footer .footer-col:nth-child(4) { animation-delay: 0.15s; }
}

@keyframes wh-fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wh-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Responsive polish
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .terea-header-nav {
    display: none !important;
  }

  .site-header {
    background: #fff;
  }

  .terea-header-main-inner {
    padding: 12px 16px;
  }

  .terea-search-form {
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  .footer-top {
    padding: 40px 0 28px;
  }

  .footer-col,
  .footer-col .widget,
  .footer-col .footer-widget {
    min-width: 0;
    max-width: 100%;
  }

  .footer-brand img {
    max-width: min(200px, 72vw);
    height: auto;
    max-height: 44px;
  }

  .footer-description {
    max-width: none;
    font-size: 15px;
    line-height: 1.7;
  }

  .footer-col a,
  .footer-col .widget a,
  .footer-contact-list li,
  .footer-contact-list a {
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .footer-legal {
    text-align: left;
    width: 100%;
  }

  .footer-bottom-inner,
  .wh-site-footer .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    width: 100%;
  }

  .footer-payment {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .footer-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-payment-icons img {
    height: 28px;
    width: auto;
    max-width: 64px;
    object-fit: contain;
  }

  .footer-copyright,
  .age-notice {
    font-size: 13px;
    line-height: 1.55;
  }
}

/* --------------------------------------------------------------------------
   Homepage hero — Küschall / Aria editorial feel
   -------------------------------------------------------------------------- */
.tx-hero-title {
  font-family: var(--tx-font-heading) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

.tx-hero-actions .tx-btn--primary {
  background: #fff !important;
  color: #111 !important;
  border-radius: 4px !important;
}

.tx-hero-actions .tx-btn--primary:hover {
  background: var(--tx-accent) !important;
  color: #fff !important;
}

.tx-hero-actions .tx-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  border-radius: 4px !important;
  background: transparent !important;
}

.tx-hero-actions .tx-btn--ghost:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.tx-hero-perks li {
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
}

.tx-eyebrow-dot {
  background: var(--tx-accent) !important;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.25) !important;
}

.tx-section--ink {
  background: #0a0a0a !important;
}

.tx-btn {
  border-radius: 4px !important;
}

/* ==========================================================================
   Wheelchair catalog header / footer rebuild
   ========================================================================== */

.wh-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #ececec;
  box-shadow: none;
}

body.admin-bar .wh-site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .wh-site-header { top: 46px; }
}

.wh-announce {
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wh-announce-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.wh-announce p { margin: 0; }

.wh-header-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wh-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.wh-header-logo {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.wh-header-logo a,
.wh-header-logo .custom-logo-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
}

.wh-header-logo img,
.wh-header-logo .custom-logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: 80px;
  max-height: 100px;
  object-fit: contain;
}

.wh-header-bar {
  position: relative;
}

.wh-header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.wh-header-nav {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
  position: static;
}

.wh-nav-menu {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-self: stretch;
}

.wh-nav-menu > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.wh-nav-menu > li.menu-item--mega {
  position: static;
}

.wh-nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  min-height: 72px;
  height: 100%;
  font-family: var(--tx-font-body, Manrope, sans-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  color: #1a1a1a;
  border-radius: 0;
  background: transparent;
  position: relative;
  box-sizing: border-box;
}

.wh-nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 2px;
  background: var(--tx-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.wh-nav-menu > li > a:hover,
.wh-nav-menu > li:hover > a,
.wh-nav-menu > li:focus-within > a,
.wh-nav-menu > li.is-open > a,
.wh-nav-menu > li.is-mega-open > a,
.wh-nav-menu > li.current-menu-item > a,
.wh-nav-menu > li.current-menu-ancestor > a {
  color: #0a0a0a;
  background: transparent;
}

.wh-nav-menu > li > a:hover::after,
.wh-nav-menu > li:hover > a::after,
.wh-nav-menu > li:focus-within > a::after,
.wh-nav-menu > li.is-open > a::after,
.wh-nav-menu > li.is-mega-open > a::after,
.wh-nav-menu > li.current-menu-item > a::after,
.wh-nav-menu > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.wh-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 10050;
}

/* Invisible bridge so cursor never falls through between trigger and dropdown */
.wh-nav-menu > li.menu-item-has-children:not(.menu-item--mega) > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.wh-nav-menu > li:hover > .sub-menu,
.wh-nav-menu > li:focus-within > .sub-menu,
.wh-nav-menu > li.is-open > .sub-menu,
.wh-nav-menu > li.is-mega-open > .sub-menu {
  display: block;
}

.wh-nav-menu .sub-menu a {
  display: block;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #1a1a1a;
  border-radius: 4px;
}

.wh-nav-menu .sub-menu a:hover {
  background: #f4f4f2;
  color: var(--tx-accent);
}

.wh-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  max-width: none;
}

.wh-header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wh-header-icon:hover {
  background: #111;
  border-color: #111;
  color: #fff;
  transform: translateY(-1px);
}

.wh-header-cart,
.wh-header-icon.wh-header-cart {
  background: #111;
  border-color: #111;
  color: #fff;
}

.wh-header-cart:hover,
.wh-header-icon.wh-header-cart:hover {
  background: var(--tx-accent, #c8102e);
  border-color: var(--tx-accent, #c8102e);
  color: #fff;
}

.wh-header-cart .cart-count,
.wh-header-cart .header-cart-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tx-accent, #c8102e);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.wh-header-cart .cart-count[hidden],
.wh-header-cart .header-cart-count[hidden] {
  display: none !important;
}

@keyframes whCartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.wh-header-cart.terea-cart-pulse {
  animation: whCartPulse 0.45s ease;
}

.wh-header-search-toggle[aria-expanded="true"] {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* Search popup */
.wh-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(72px, 12vh, 120px) 20px 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.wh-search-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.wh-search-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 8, 8, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.wh-search-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 24px;
  background:
    radial-gradient(900px 220px at 10% -20%, rgba(200, 16, 46, 0.07), transparent 55%),
    #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.wh-search-modal.is-open .wh-search-modal__panel {
  transform: translateY(0) scale(1);
}

.wh-search-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.wh-search-modal__close:hover {
  background: #111;
  border-color: #111;
  color: #fff;
  transform: rotate(90deg);
}

.wh-search-modal__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx-accent, #c8102e);
}

.wh-search-modal__title {
  margin: 0 0 22px;
  padding-right: 48px;
  font-family: var(--tx-font-display, var(--tx-font-body, Manrope, sans-serif));
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0a0a0a;
}

.wh-search-modal__form {
  margin: 0;
  width: 100%;
}

/* Pill search bar — icon, input, button as flex siblings (no overlap) */
.wh-search-modal__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 6px 6px 6px 18px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.wh-search-modal__bar:focus-within {
  border-color: #111;
  box-shadow:
    0 0 0 4px rgba(17, 17, 17, 0.08),
    0 14px 36px rgba(15, 23, 42, 0.1);
}

.wh-search-modal__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.wh-search-modal__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  font-family: var(--tx-font-body, Manrope, sans-serif);
  font-size: max(1rem, 16px);
  font-weight: 500;
  line-height: 1.4;
  color: #111;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.wh-search-modal__input::placeholder {
  color: #9ca3af;
  font-weight: 500;
  opacity: 1;
}

.wh-search-modal__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.wh-search-modal__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--tx-font-body, Manrope, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wh-search-modal__submit:hover {
  background: var(--tx-accent, #c8102e);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28);
}

.wh-search-modal__submit:active {
  transform: translateY(0);
}

.wh-search-modal__results {
  margin-top: 16px;
  max-height: min(42vh, 340px);
  overflow: auto;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fafafa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wh-search-modal__results:not([hidden]) {
  display: block;
}

.wh-search-modal__results .terea-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #ececec;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
}

.wh-search-modal__results .terea-search-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ececec;
  flex-shrink: 0;
}

.wh-search-modal__results .terea-search-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.wh-search-modal__results .terea-search-item span {
  font-size: 13px;
  font-weight: 700;
  color: var(--tx-accent, #c8102e);
}

.wh-search-modal__results .terea-search-item:last-child {
  border-bottom: 0;
}

.wh-search-modal__results .terea-search-item:hover {
  background: #fff;
}

.wh-search-modal__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.wh-search-modal__hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

body.wh-search-open {
  overflow: hidden;
}

.wh-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.wh-header-phone:hover { color: var(--tx-accent); }

.wh-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  background: #111;
  color: #fff !important;
  border-radius: 8px;
  font-family: var(--tx-font-body, Manrope, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}

.wh-header-cta-short {
  display: none;
}

.wh-header-cta:hover {
  background: var(--tx-accent);
  color: #fff !important;
}

.wh-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  background: #111;
  color: #fff !important;
  border-radius: 8px;
  font-family: var(--tx-font-body, Manrope, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
}

.wh-site-footer .footer-legal--start { text-align: left; }
.wh-site-footer .footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.wh-site-footer .footer-bottom-links {
  display: flex;
  gap: 18px;
}
.wh-site-footer .footer-bottom-links a {
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

.wh-site-footer .footer-copyright,
.wh-site-footer .footer-bottom p,
.wh-site-footer .footer-legal {
  font-size: 14px;
}
.wh-site-footer .footer-bottom-links a:hover { color: var(--tx-accent, #c8102e); }

.wheelchire-catalog-mode:not(.wh-online-commerce) .terea-header-cart,
.wheelchire-catalog-mode:not(.wh-online-commerce) .terea-header-cart-btn,
.wheelchire-catalog-mode:not(.wh-online-commerce) .wh-header-cart,
.wheelchire-catalog-mode:not(.wh-online-commerce) .terea-cart-toast,
.wheelchire-catalog-mode:not(.wh-online-commerce) .terea-drawer,
.wheelchire-catalog-mode:not(.wh-online-commerce) .terea-drawer-backdrop {
  display: none !important;
}

/* Hide legacy sticky category nav if any leftover markup exists */
.wheelchire-catalog-mode .terea-header-nav:not(.wh-header-nav) {
  display: none !important;
}

@media (max-width: 1200px) {
  .wh-header-bar-inner {
    gap: 16px;
    padding: 0 20px;
  }
  .wh-header-end {
    gap: 12px;
  }
  .wh-header-nav .wh-nav-menu {
    gap: 2px;
  }
  .wh-nav-menu > li > a {
    padding: 0 10px;
    font-size: 16px;
  }
}

@media (max-width: 1100px) {
  .wh-header-nav,
  .wh-header-phone {
    display: none;
  }
  .wh-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .wh-header-bar-inner {
    justify-content: space-between;
    padding: 0 14px;
    min-height: 60px;
    gap: 8px;
  }
  .wh-header-logo {
    flex: 1 1 auto;
    margin: 0;
    max-width: none;
    overflow: hidden;
  }
  .wh-header-logo img,
  .wh-header-logo .custom-logo {
    height: auto;
    max-height: 36px;
    max-width: 100%;
  }
  .wh-header-actions {
    max-width: none;
    flex: 0 0 auto;
    gap: 6px;
  }
  .wh-header-cta {
    padding: 0 12px;
    min-height: 40px !important;
    min-width: 0 !important;
    font-size: 12px !important;
    letter-spacing: 0.01em;
    line-height: 1.1;
    max-width: none;
  }
  .wh-header-cta-full { display: none; }
  .wh-header-cta-short { display: inline; }
  .wh-announce {
    padding: 7px 12px;
    font-size: 10px;
    letter-spacing: 0.06em;
    overflow: hidden;
  }
  .wh-announce p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 640px) {
  .wh-search-modal {
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px 16px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .wh-search-modal__panel {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
    margin-top: 52px;
    padding: 18px 16px 16px;
    border-radius: 18px;
    align-self: flex-start;
    flex: 0 0 auto;
  }

  .wh-search-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .wh-search-modal__eyebrow {
    margin: 0 0 6px;
  }

  .wh-search-modal__title {
    font-size: 1.25rem;
    margin-bottom: 14px;
    padding-right: 44px;
  }

  .wh-search-modal__bar {
    flex-wrap: wrap;
    min-height: 0;
    padding: 10px;
    gap: 8px;
    border-radius: 16px;
    box-shadow: none;
  }

  .wh-search-modal__icon {
    order: 0;
  }

  .wh-search-modal__input {
    order: 1;
    flex: 1 1 calc(100% - 36px);
    padding: 10px 4px;
  }

  .wh-search-modal__submit {
    order: 2;
    width: 100%;
    min-width: 0;
    height: 46px;
  }

  .wh-search-modal__results {
    margin-top: 12px;
    max-height: min(38vh, 280px);
  }

  /* Keyboard shortcuts are desktop-only — hide on touch */
  .wh-search-modal__hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .wh-header-bar-inner {
    padding: 0 10px;
    gap: 6px;
  }
  .wh-menu-toggle {
    width: 40px;
    height: 40px;
  }
  .wh-header-logo img,
  .wh-header-logo .custom-logo {
    max-height: 32px;
  }
  .wh-header-cta {
    padding: 0 10px;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
