/* Store header in three tiers, the way Israeli retail catalogues do it:
   a thin navy info strip, the main bar (logo, big search, phone, quote list)
   and a category bar where each category shows a real product photo. */

/* Tier 1: info strip */
.top-strip { background: var(--navy); color: #d7e2ee; font-size: var(--text-small); }

.top-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.4rem; }

.top-strip a { color: var(--white); text-decoration: none; }
.top-strip a:hover { text-decoration: underline; }

.top-strip-info { display: flex; gap: 1.5rem; }

.social-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.35rem; }

.social-links a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.social-links a:hover { background: rgb(255 255 255 / 0.12); }
.social-links svg { width: 1.15rem; height: 1.15rem; }

.social-links .top-strip-text-link { width: auto; height: auto; border-radius: 0; padding-inline-start: 0.6rem; }

/* Tier 2: main bar (sticky) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--stainless);
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.6rem;
}

.logo img { width: 7rem; }

.header-search { display: flex; max-width: 40rem; }

.header-search input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--stainless);
  border-inline-end: 0;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--frost);
  font: inherit;
  color: var(--ink);
}

.header-search input::placeholder { color: #5f6b76; } /* 4.9:1 on frost */

.header-search input:focus { border-color: var(--steel-blue); background: var(--white); outline: none; }

.header-search button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  border: 0;
  border-radius: var(--radius-small) 0 0 var(--radius-small);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.header-search button svg { width: 1.25rem; height: 1.25rem; }

.header-phone, .header-quote {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  text-decoration: none;
}

.header-phone svg, .header-quote svg { width: 1.6rem; height: 1.6rem; flex: none; }

.header-phone > span { display: grid; line-height: 1.25; }
.header-phone-label { font-size: 0.8rem; color: var(--ink-soft); }
.header-phone-number { font-weight: 700; }

.header-quote {
  position: relative;
  min-height: 3rem;
  padding: 0.4rem 1rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius-small);
  background: var(--white);
  font: 600 var(--text-body) / 1.2 var(--font-body);
  cursor: pointer;
}

.header-quote:hover { background: var(--frost); }

.count-badge {
  min-width: 1.4rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 0.8rem;
  text-align: center;
}

.count-badge[hidden] { display: none; }

/* Tier 3: category bar */
.category-bar { background: var(--white); border-bottom: 1px solid var(--stainless); }

.category-bar-list {
  list-style: none;
  margin-block: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.5rem;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  max-width: 11rem;
}

.category-link img { width: 2.4rem; height: 2.4rem; object-fit: contain; flex: none; }

.category-link:hover { color: var(--steel-blue); }
.category-link:hover span { text-decoration: underline; }

@media (max-width: 64rem) {
  .header-phone-label { display: none; }
  .header-main { gap: 1rem; }
}

/* Phones: search drops to its own full-width row; phone and quote become icon buttons. */
@media (max-width: 52rem) {
  .top-strip-office, .social-links .top-strip-text-link { display: none; }
  .header-main {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: 'logo . phone quote' 'search search search search';
    gap: 0.6rem 0.75rem;
  }
  .logo { grid-area: logo; }
  .logo img { width: 5.75rem; }
  .header-search { grid-area: search; max-width: none; }
  .header-phone { grid-area: phone; }
  .header-phone > span { display: none; }
  .header-quote { grid-area: quote; padding: 0.4rem 0.7rem; }
  .header-quote-label { display: none; }
  .header-phone, .header-quote { min-width: 3rem; min-height: 3rem; justify-content: center; }
  .category-bar-list { justify-content: flex-start; padding-inline: var(--gutter); }
  .category-link { flex-direction: column; text-align: center; width: 6.5rem; flex: none; padding-inline: 0.25rem; font-size: 0.8rem; }
}
