.sf-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--sf-bg);
  border-bottom: 1px solid var(--sf-border);
  width: 100%;
}

.sf-header__bar {
  width: 100%;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.sf-header__side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sf-header__side--right {
  justify-content: flex-end;
}

.sf-header__icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--sf-text);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  text-decoration: none;
  position: relative;
}

.sf-header__icon-btn:hover {
  background: var(--sf-border);
}

.sf-header__logo {
  text-decoration: none;
  color: var(--sf-text);
  justify-self: center;
}

.sf-header__logo-text {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sf-header__logo img {
  display: block;
  max-height: 34px;
  width: auto;
}

/* Primary nav — second row, full width, centered */

.sf-nav {
  width: 100%;
  border-top: 1px solid var(--sf-border);
  display: flex;
  justify-content: center;
}

.sf-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0.85rem 2rem;
  gap: 2rem;
}

.sf-nav__list a {
  text-decoration: none;
  color: var(--sf-text);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sf-nav__list a:hover {
  color: var(--sf-text-muted);
}

.sf-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sf-text);
  color: var(--sf-bg);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Dropdown panels (search / categories) */

.sf-header__panel {
  border-top: 1px solid var(--sf-border);
  background: var(--sf-bg);
  width: 100%;
}

.sf-header__panel-inner {
  width: 100%;
  padding: 1.25rem 2rem;
}

.sf-header__panel-inner form.woocommerce-product-search,
.sf-header__panel-inner form[role="search"] {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.sf-header__panel-inner input[type="search"],
.sf-header__panel-inner input.search-field {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sf-border);
  border-radius: 4px;
  font-size: 0.95rem;
}

.sf-header__panel-inner button[type="submit"] {
  padding: 0.65rem 1.25rem;
  background: var(--sf-accent);
  color: var(--sf-text-inverse);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.sf-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.sf-categories-list a {
  text-decoration: none;
  color: var(--sf-text);
  font-size: 0.9rem;
}

.sf-categories-list a:hover {
  color: var(--sf-text-muted);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .sf-header__bar {
    padding: 0.85rem 1rem;
  }
  .sf-nav__list {
    padding: 0.75rem 1rem;
    gap: 1.1rem;
  }
}
