.site-header {
  background: #ffffff;
  box-shadow: 0 1px 0 var(--border-light);
}

.top-bar {
  background: linear-gradient(90deg, var(--primary) 0%, #0f6b6c 100%);
  color: var(--primary-contrast);
  font-size: 13px;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.top-bar__item .icon {
  flex-shrink: 0;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar__links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.top-bar__links a {
  color: inherit;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.top-bar__links a:hover {
  opacity: 1;
}

.top-bar__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: inherit;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-bar__social-link .icon {
  display: block;
}

.top-bar__social-link--facebook .icon {
  width: 18px;
  height: 18px;
  transform: translateY(-1px);
}

.top-bar__social-link--instagram .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.top-bar__social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.top-bar__social .icon {
  flex-shrink: 0;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.main-bar {
  background: #ffffff;
}

.main-bar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}

.logo img {
  width: 160px;
  display: block;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 10px 10px 10px 16px;
  max-width: 460px;
  margin: 0 auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--text-dark);
}

.search:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 107, 108, 0.15);
}

.search__btn {
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 107, 108, 0.2);
}

.search__btn:focus-visible {
  outline: 3px solid rgba(15, 107, 108, 0.35);
  outline-offset: 2px;
}

.search__suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 26, 27, 0.14);
  z-index: 80;
  overflow: hidden;
}

.search__suggestion-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.search__suggestion-name {
  font-size: 14px;
  line-height: 1.3;
}

.search__suggestion-sku {
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-mid);
}

.search__suggestion-item:last-child {
  border-bottom: none;
}

.search__suggestion-item:hover,
.search__suggestion-item.is-active {
  background: var(--bg-light);
  color: var(--primary);
}

.search__suggestion-item:hover .search__suggestion-sku,
.search__suggestion-item.is-active .search__suggestion-sku {
  color: var(--primary);
}

.search__suggestion-empty {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-mid);
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-mid);
}

.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 26, 27, 0.1);
}

.action-btn:focus-visible {
  outline: 3px solid rgba(15, 107, 108, 0.35);
  outline-offset: 2px;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* ── Nav bar ───────────────────────────────────────── */

.nav-bar {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  position: relative;
  z-index: 20;
}

.nav-bar__inner {
  padding: 0;
}

.mega-menu {
  position: relative;
}

/* Scrollable tab row — panels live OUTSIDE this container */
.mega-menu__tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  position: relative;
  z-index: 21;
}

.mega-menu__tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 761px) {
  .main-bar__inner {
    max-width: none;
    width: 100%;
    padding: 18px 24px;
    margin: 0;
  }

  .search {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .nav-bar__inner {
    max-width: none;
    width: 100%;
    padding: 0 24px;
    margin: 0;
  }

  .mega-menu__tabs {
    justify-content: flex-start;
    gap: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .mega-menu__tab {
    padding: 10px 14px;
  }
}

.mega-menu__tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  flex-shrink: 0;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  position: relative;
  scroll-snap-align: start;
}

.mega-menu__link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.mega-menu__tab:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.mega-menu__tab.is-active {
  color: var(--primary);
  background: var(--bg-light);
  border-bottom-color: var(--primary);
}

.mega-menu__link:focus-visible {
  outline: 3px solid rgba(15, 107, 108, 0.35);
  outline-offset: -2px;
}

.mega-menu__toggle {
  display: none;
}

/* Dropdown panel — positioned relative to .mega-menu, outside scroll */
.mega-menu__panel {
  position: absolute;
  left: -20px;
  right: -20px;
  top: 100%;
  padding: 28px 32px 36px;
  background: #ffffff;
  border-top: 2px solid var(--primary);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 16px 48px rgba(15, 26, 27, 0.10), 0 4px 12px rgba(15, 26, 27, 0.06);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}

.mega-menu__panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu__columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 28px 32px;
}

.mega-menu__column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mega-menu__column h4,
.mega-menu__column-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.mega-menu__column-title:hover {
  color: var(--primary-dark);
}

.mega-menu__column a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.mega-menu__column a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Semi-transparent overlay behind dropdown */
.mega-menu__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 19;
}

.mega-menu__overlay.is-visible {
  display: block;
}

/* ── Hamburger & mobile toggle ─────────────────────── */

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hamburger span {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  display: block;
  transition: background 0.2s ease;
}

.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: transform 0.2s ease, top 0.2s ease;
}

.hamburger span::before {
  top: -7px;
}

.hamburger span::after {
  top: 7px;
}

.hamburger:focus-visible {
  outline: 3px solid rgba(15, 107, 108, 0.35);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 980px) {
  .top-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-bar__right {
    width: 100%;
    justify-content: space-between;
  }

  .search {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .top-bar {
    font-size: 12px;
  }

  .top-bar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
  }

  .top-bar__item--store {
    display: none;
  }

  .top-bar__item--shipping {
    min-width: 0;
    flex: 1;
    gap: 6px;
  }

  .top-bar__item--shipping span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-bar__links {
    display: none;
  }

  .top-bar__right {
    width: auto;
    margin-left: auto;
    gap: 0;
  }

  .top-bar__social {
    gap: 6px;
  }

  .top-bar__social-link {
    width: 26px;
    height: 26px;
  }

  .main-bar__inner {
    gap: 12px;
    padding: 18px 16px;
  }

  .search {
    display: none;
  }

  .actions {
    gap: 10px;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-bar {
    display: none;
  }

  .nav-toggle:checked + .nav-bar {
    display: block;
  }

  .nav-bar__inner {
    padding: 0 16px 16px;
  }

  /* Vertical accordion on mobile */
  .mega-menu__tabs {
    flex-direction: column;
    overflow: visible;
    gap: 0;
    white-space: normal;
  }

  .mega-menu__tab {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    border-bottom-width: 1px;
    justify-content: space-between;
    white-space: normal;
  }

  .mega-menu__tab.is-active {
    border-bottom-color: var(--primary);
    background: none;
  }

  .mega-menu__link {
    flex: 1;
    padding-right: 12px;
  }

  .mega-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    color: var(--text-mid);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .mega-menu__toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    display: block;
  }

  .mega-menu__tab.is-active .mega-menu__toggle::before {
    transform: rotate(-135deg);
  }

  .mega-menu__toggle:focus-visible {
    outline: 3px solid rgba(15, 107, 108, 0.35);
    outline-offset: 2px;
  }

  .mega-menu__toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
  }

  .mega-menu__panel {
    position: static;
    left: auto;
    right: auto;
    border-top: none;
    box-shadow: none;
    z-index: auto;
    padding: 0;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, visibility 0.25s ease;
  }

  .mega-menu__panel.is-open {
    visibility: visible;
    pointer-events: auto;
    max-height: 800px;
    padding: 12px 0 16px;
  }

  .mega-menu__columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mega-menu__column-title,
  .mega-menu__column a {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .mega-menu__column a {
    padding: 6px 0;
  }

  .mega-menu__overlay {
    display: none !important;
  }
}
