.header-search-toggle { appearance: none; }
.header-account { display: grid; }

.search-overlay {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: clamp(5rem, 12vh, 9rem) var(--helima-gutter) 2rem;
  background: rgba(8,9,11,.94);
  backdrop-filter: blur(22px) saturate(120%);
}
.search-overlay[hidden] { display: none; }
.search-overlay__close { position: absolute; inset: 1.25rem auto auto 1.25rem; }
[dir="ltr"] .search-overlay__close { left: auto; right: 1.25rem; }
.search-panel { width: min(100%, 980px); }
.search-panel__form { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .8rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.24); }
.search-panel__form > svg { width: 2rem; height: 2rem; color: var(--helima-accent-soft); }
.search-panel__form input { width: 100%; min-width: 0; padding: .7rem 0; border: 0; outline: 0; background: transparent; color: #fff; font: clamp(1.2rem,3vw,2.1rem)/1.4 var(--helima-ui); }
.search-panel__form input::placeholder { color: rgba(255,255,255,.46); }
.search-panel__meta { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; color: var(--helima-muted); font-size: .78rem; }
.search-results { max-height: min(62vh, 600px); overflow: auto; border-top: 1px solid rgba(255,255,255,.08); }
.search-results > a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 1rem; align-items: center; padding: 1rem .25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.search-results > a:hover,
.search-results > a:focus-visible { background: rgba(255,255,255,.04); padding-inline: .75rem; }
.search-results .tag { min-width: 4.5rem; text-align: center; }
.search-result-copy strong,
.search-result-copy small { display: block; }
.search-result-copy small { color: var(--helima-muted); }
.search-results > p,
.search-results__empty { padding: 2rem 0; color: var(--helima-muted); }
.search-results__error { color: #f0aaa0; }
body.search-open { overflow: hidden; }

.offline-notice { position: fixed; z-index: 230; inset: auto 1rem 1rem; max-width: 28rem; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: .7rem; background: #412f24; color: #fff; box-shadow: var(--helima-shadow); }

.language-switcher ul { display: flex; gap: .4rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.language-switcher a { display: inline-flex; padding: .3rem .6rem; border: 1px solid var(--helima-border); border-radius: 999px; }
.language-switcher a[aria-current="page"] { background: var(--helima-brand); border-color: var(--helima-accent); }
.header-actions .language-switcher ul { margin: 0; }
.header-actions .language-switcher a { min-width: 2.25rem; justify-content: center; font-size: .72rem; }

.newsletter-band { background: #0d0e11; border-top: 1px solid var(--helima-border); }
.newsletter-band__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.65fr); gap: 2rem; align-items: center; padding-block: clamp(2rem,5vw,4rem); }
.newsletter-band h2 { margin: 0; font-family: var(--helima-display); }
.newsletter-band form { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.newsletter-band input[type="email"] { min-width: 0; min-height: 3.25rem; padding: .7rem 1rem; border: 1px solid var(--helima-border); border-radius: 0 .6rem .6rem 0; background: rgba(255,255,255,.06); color: #fff; font: inherit; }
[dir="ltr"] .newsletter-band input[type="email"] { border-radius: .6rem 0 0 .6rem; }
.newsletter-band button { min-height: 3.25rem; padding: .6rem 1.2rem; border: 0; border-radius: .6rem 0 0 .6rem; background: var(--helima-brand); color: #fff; font: inherit; cursor: pointer; }
[dir="ltr"] .newsletter-band button { border-radius: 0 .6rem .6rem 0; }
.helima-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  white-space: nowrap !important;
}

.helima-wishlist > header { margin-bottom: 2rem; }
.helima-wishlist > header h2 { margin-bottom: .35rem; font-family: var(--helima-display); font-size: clamp(1.7rem,4vw,3rem); }
.helima-wishlist > header p { color: var(--helima-muted); }
.helima-wishlist__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2vw,2rem); }
.helima-wishlist__item { min-width: 0; }
.helima-wishlist__empty { padding: 3rem; border: 1px solid var(--helima-border); text-align: center; color: var(--helima-muted); }

.mobile-bottom-nav { display: none; }

@media (max-width: 1099px) {
  .header-actions .language-switcher { display: none; }
}

@media (max-width: 760px) {
  body { padding-bottom: 4.25rem; }
  .header-account { display: none; }
  .search-overlay { padding: 5rem 1rem 1rem; }
  .search-panel__form { grid-template-columns: auto minmax(0,1fr); }
  .search-panel__form .button { grid-column: 1 / -1; }
  .search-panel__meta { display: grid; }
  .newsletter-band__inner { grid-template-columns: 1fr; }
  .helima-wishlist__grid { grid-template-columns: 1fr; }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 120;
    inset: auto 0 0;
    min-height: 4.25rem;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(8,9,11,.94);
    backdrop-filter: blur(18px);
  }
	.mobile-bottom-nav.has-woocommerce { grid-template-columns: repeat(5,1fr); }
	.mobile-bottom-nav small { color: var(--helima-accent-soft); font-size: .66rem; }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button { display: grid; place-items: center; align-content: center; gap: .15rem; min-width: 0; padding: .45rem .2rem; border: 0; background: transparent; color: var(--helima-muted); font: inherit; font-size: .68rem; }
  .mobile-bottom-nav .is-active { color: var(--helima-accent-soft); }
}

@media (prefers-reduced-motion: reduce) {
  .search-results > a { transition: none; }
}
