#site-header-root {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-wrap {
  position: relative;
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.site-header-wrap.is-hidden {
  transform: translateY(-100%);
}

.site-header {
  width: 100%;
  background: color-mix(in srgb, var(--surface-elevated) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border-default);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--surface-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.5rem var(--container-pad);
  min-height: var(--header-height);
  max-height: 5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: start;
}

.site-header__logo-img {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.site-header__nav--main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.1rem 1rem;
  min-width: 0;
}

.site-header__nav-item {
  position: static;
}

.site-header__nav-trigger {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.site-header__nav-trigger:hover,
.site-header__nav-item:focus-within .site-header__nav-trigger {
  color: var(--site-accent);
  border-bottom-color: var(--site-accent);
}

.site-header__nav-item--active .site-header__nav-trigger {
  color: var(--site-accent);
  border-bottom-color: var(--site-accent);
  font-weight: 600;
}

.site-header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.site-header__link:hover {
  color: var(--site-accent);
  border-bottom-color: var(--site-accent);
}

.site-header__link--active {
  border-bottom-color: var(--site-accent);
  color: var(--site-accent);
  font-weight: 600;
}

.site-header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: end;
  gap: 0.45rem;
}

.site-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  background: var(--surface-elevated);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.site-header__burger:hover {
  background: rgba(28, 33, 25, 0.06);
}

.site-header__burger-icon {
  display: block;
}

.site-header__mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.site-header__mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.site-header__mobile-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(14, 16, 20, 0.48);
  opacity: 0;
  transition: opacity 0.28s ease;
  cursor: pointer;
}

.site-header__mobile-nav.is-open .site-header__mobile-overlay {
  opacity: 1;
}

.site-header__mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 22rem);
  height: 100%;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-header__mobile-nav.is-open .site-header__mobile-panel {
  transform: translateX(0);
}

.site-mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 3.25rem 1rem 1.5rem;
  gap: 0;
}

.site-mobile-nav__section {
  border-bottom: 1px solid var(--border-default);
}

.site-mobile-nav__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.85rem 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.site-mobile-nav__chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.site-mobile-nav__section.is-open .site-mobile-nav__chevron {
  transform: rotate(-135deg);
}

.site-mobile-nav__filters {
  padding: 0 0 0.75rem;
}

.site-mobile-nav__link {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-default);
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-mobile-nav__link--active {
  color: var(--site-accent);
  font-weight: 600;
}

.site-header__mega--in-drawer {
  display: block !important;
  max-height: none;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

.site-header__mega--in-drawer .mega-panel__inner {
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 0.25rem 0 0.5rem;
}

.site-header__mega--in-drawer .mega-panel__grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.site-header__mega--in-drawer .mega-panel__footer {
  position: sticky;
  bottom: 0;
  margin-top: 0.5rem;
}

body.is-mobile-nav-open {
  overflow: hidden;
}

.site-header__profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  background: var(--surface-elevated);
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.site-header__profile:hover {
  background: var(--site-accent-muted);
  border-color: var(--site-accent);
  color: var(--site-accent);
}

.site-header__profile-icon {
  display: block;
}

.site-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header__btn--primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

.site-header__btn--primary:hover {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: var(--site-accent-contrast);
}

.site-header__mega-host {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 110;
  overflow: hidden;
  overflow-x: clip;
  pointer-events: none;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__mega-host.is-mega-open,
.site-header__mega-host:has(.site-header__mega.is-open) {
  pointer-events: auto;
  max-height: min(60vh, 560px);
}

.site-header__mega {
  display: none;
  width: 100%;
  max-height: min(60vh, 560px);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-elevated) 98%, transparent);
  border-bottom: 1px solid var(--border-default);
  box-shadow: var(--shadow-md);
}

.site-header__mega.is-open {
  display: block;
}

.mega-panel__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  max-height: inherit;
  height: 100%;
  box-sizing: border-box;
}

.mega-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
  flex: 1;
  min-height: 0;
  overflow: visible;
  align-content: start;
}

.mega-panel__group-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.mega-panel__options--list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  width: 100%;
}

.mega-panel__chip--list {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0.2rem 0;
  font-size: 0.88rem;
  font-family: inherit;
  line-height: 1.35;
  cursor: pointer;
  color: var(--text-secondary);
  text-align: left;
  transition: color 0.15s ease, font-size 0.15s ease;
}

.mega-panel__chip--list:hover {
  color: var(--text-primary);
}

.mega-panel__chip--list.is-on {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--site-accent);
}

.mega-panel__options--brands {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  max-height: min(36vh, 280px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mega-panel__brand-tile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 3rem;
  padding: 0.15rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.mega-panel__brand-tile:hover {
  opacity: 0.85;
}

.mega-panel__brand-tile.is-on {
  background: rgba(183, 110, 121, 0.18);
  border-radius: 4px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  margin-left: -0.35rem;
}

.mega-panel__brand-tile img {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

.mega-panel__empty {
  font-size: 0.82rem;
  color: #9a948a;
}

.mega-panel__price-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.mega-panel__price-row label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
}

.mega-panel__price-row input[type='number'] {
  width: 6rem;
  border: 1px solid #ddd5c8;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font: inherit;
}

.mega-panel__range-dual {
  position: relative;
  height: 2rem;
  margin-top: 0.5rem;
}

.mega-panel__range-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #e8e4dc;
  border-radius: 2px;
  pointer-events: none;
}

.mega-panel__range-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #c4b8a8;
  border-radius: 2px;
}

.mega-panel__range-dual input[type='range'] {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  height: 1.25rem;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.mega-panel__range-dual input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.mega-panel__range-dual input[type='range']::-moz-range-track {
  height: 4px;
  background: transparent;
}

.mega-panel__range-dual input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 2px solid #9a8b78;
  box-shadow: 0 1px 4px rgba(36, 33, 24, 0.15);
  cursor: pointer;
  margin-top: -6px;
}

.mega-panel__range-dual input[type='range']::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 2px solid #9a8b78;
  box-shadow: 0 1px 4px rgba(36, 33, 24, 0.15);
  cursor: pointer;
}

.mega-panel__range-dual input[data-price-range='min'] {
  z-index: 3;
}

.mega-panel__range-dual input[data-price-range='max'] {
  z-index: 4;
}

.mega-panel__footer {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
  border-top: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.98);
  z-index: 2;
}

.mega-panel__cta {
  min-width: 220px;
  text-align: center;
}

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
  }

  .site-header__logo {
    grid-column: 1;
  }

  .site-header__actions {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header__nav--main {
    display: none;
  }

  .site-header__burger {
    display: inline-flex;
  }

  .site-header__mega-host {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 3.25rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .site-header__logo {
    grid-column: 1;
    justify-self: center;
  }

  .site-header__logo-img {
    height: 1.65rem;
    max-width: 118px;
  }

  .site-header__actions {
    display: none !important;
  }

  .site-header__burger {
    display: none !important;
  }

  .site-header__mobile-nav {
    display: none !important;
  }

  body.has-mobile-tab-bar {
    padding-bottom: calc(2.85rem + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-tab-bar .home-footer {
    padding-bottom: calc(0.85rem + 2.85rem + env(safe-area-inset-bottom, 0px));
  }
}

.site-tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1.35rem, 7vw, 2.35rem);
  padding-inline: clamp(0.75rem, 4vw, 1.25rem);
  min-height: 2.85rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  background: color-mix(in srgb, var(--surface-elevated) 94%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--border-default);
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@media (max-width: 900px) {
  .site-tab-bar:not([hidden]) {
    display: flex;
  }
}

.site-tab-bar.is-hidden {
  transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px)));
}

.site-tab-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.site-tab-bar__item:hover,
.site-tab-bar__item:focus-visible {
  color: var(--site-accent);
}

.site-tab-bar__item--active {
  color: var(--site-accent);
}

.site-tab-bar__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
}

.site-tab-bar__icon {
  display: block;
}

.site-tab-bar__badge {
  position: absolute;
  top: -0.15rem;
  right: -0.35rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: var(--radius-pill);
  background: var(--site-accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1rem;
  text-align: center;
  box-sizing: border-box;
}

@media (prefers-reduced-transparency: reduce) {
  .site-tab-bar {
    background: var(--surface-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 720px) {
  .site-header__mega-host.is-mega-open {
    max-height: min(70vh, 620px);
  }

  .mega-panel__grid {
    grid-template-columns: 1fr;
  }

  .mega-panel__group--brands .mega-panel__options--brands {
    max-height: min(28vh, 220px);
  }
}
