.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.topbar {
  background: #111;
  color: #ddd;
  font-size: 0.8rem;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  min-height: 34px;
  padding-block: 0.35rem;
}

.topbar a {
  color: #eee;
}

.topbar a:hover {
  color: var(--color-accent);
}

.topbar-loc {
  margin-left: auto;
  color: #999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(360px, 58vw);
}

.logo img {
  height: 58px;
  width: auto;
  max-width: min(280px, 58vw);
}

.logo-text,
.footer-logo .logo-text {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
  text-wrap: balance;
}

.footer-logo .logo-text {
  color: #fff;
  max-width: 280px;
  margin-bottom: 0.85rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-nav > ul > li > a.is-active,
.main-nav > ul > li > a:hover {
  color: var(--color-accent);
}

.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 50;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.dropdown a:hover {
  background: #faf7f0;
  color: var(--color-accent);
}

.dropdown .sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 0.75rem;
}

.dropdown .sub a {
  font-size: 0.82rem;
  padding: 0.3rem 1rem;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.35rem;
}

.site-search {
  display: flex;
  align-items: center;
  margin-left: 0.65rem;
  border: 1px solid var(--color-border);
  background: #fff;
  min-width: 168px;
}

.site-search input {
  border: 0;
  outline: none;
  width: 140px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.88rem;
  background: transparent;
  color: var(--color-ink);
}

.site-search button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.site-search button:hover {
  color: var(--color-accent-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-section > .container,
.catalog-layout {
  max-width: min(1280px, calc(100% - 2rem));
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.product-sidebar {
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0.85rem 0.9rem 1rem;
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.product-sidebar__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.product-sidebar__title::before {
  content: "▼ ";
  font-size: 0.7em;
  color: var(--color-muted);
}

.sidebar-tree,
.sidebar-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-group {
  margin-bottom: 0.15rem;
}

.sidebar-link {
  display: block;
  padding: 0.38rem 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink);
}

.sidebar-link:hover,
.sidebar-link.is-active {
  color: var(--color-accent-dark);
}

.sidebar-children {
  display: none;
  padding: 0.1rem 0 0.35rem 0.85rem;
}

.sidebar-group.is-open > .sidebar-children,
.sidebar-group.has-active > .sidebar-children {
  display: block;
}

.sidebar-children a {
  display: block;
  padding: 0.28rem 0.15rem;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.sidebar-children a:hover,
.sidebar-children a.is-active {
  color: var(--color-accent-dark);
  font-weight: 600;
}

.catalog-main {
  min-width: 0;
}

.search-page-form {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  font: inherit;
  font-size: 1rem;
}

.search-empty {
  color: var(--color-muted);
  margin-top: 1rem;
}

.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img,
.footer-logo img {
  height: 52px;
  width: auto;
  max-width: 240px;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: #9a9a9a;
  font-size: 0.92rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: var(--color-footer-text);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #888;
}

.wa-float-stack {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.wa-float {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #25d366;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: #fff;
  pointer-events: auto;
  flex-shrink: 0;
}

.wa-float--ug {
  background: #128c7e;
  box-shadow: 0 8px 20px rgba(18, 140, 126, 0.35);
}

.wa-float:hover {
  transform: translateY(-2px);
  color: #fff;
}

.wa-float svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.wa-float__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.page-hero {
  padding: 2.75rem 0 1.75rem;
  background: #f6f6f6;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin-bottom: 0.35rem;
}

.page-hero p {
  margin: 0;
  color: var(--color-muted);
}

.prose {
  max-width: 820px;
}

.prose p {
  font-size: 1.02rem;
}

@media (max-width: 960px) {
  .topbar-loc {
    margin-left: 0;
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 34px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem 1.25rem;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .has-dropdown > .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    max-height: none;
    display: none;
    padding-left: 0.5rem;
  }

  .has-dropdown.open > .dropdown {
    display: block;
  }

  .lang-pill {
    margin: 0.75rem 0 0;
  }

  .site-search {
    margin: 0.85rem 0 0;
    width: 100%;
  }

  .site-search input {
    width: 100%;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
