/* Custom top header bar to match the provided design */

.top-header {
  background-color: #111b2b; /* dark navy */
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.top-header-inner {
  
  margin: 0;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left navigation */
.top-header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-header-nav a {
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
  padding: 4px 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.top-header-nav a:hover,
.top-header-nav a:focus {
  color: #ffcc66;
}

/* Right side: phones + language */
.top-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-header-phones {
  display: flex;
  gap: 16px;
}

.phone-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  outline: none;
  border: none;
  border-radius: 0;
}

.phone-item:hover,
.phone-item:focus {
  color: #ffcc66;
}

.phone-item:focus {
  outline: none;
  box-shadow: none;
}

.phone-item:focus-visible {
  outline: none;
  box-shadow: none;
}

.phone-item::before,
.phone-item::after {
  display: none !important;
}

.phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
  border: none;
  border-radius: 0;
  outline: none;
}

.phone-icon::before,
.phone-icon::after {
  display: none !important;
}

.top-header-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: #f5f5f5;
  color: #111b2b;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.top-header-lang .lang-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #111b2b;
}

/* Main header (below top navbar) – #page scope so theme does not override */
#page .main-header {
  background-color: #ffffff;
  border-top: 1px solid #e8f0f8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#page .main-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#page .catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background-color: #1f2734;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

#page .catalog-btn:hover,
#page .catalog-btn:focus {
  background-color: #2a3548;
}

#page .catalog-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

#page .catalog-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#page .main-header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000000;
}

#page .logo-main {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

#page .logo-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6em;
  opacity: 0.85;
}

#page .main-header-logo:hover {
  color: #000000;
  opacity: 0.9;
}

#page .main-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

#page .header-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  text-decoration: none;
  padding: 8px;
  border: none;
  border-radius: 0;
  outline: none;
  background: transparent;
}

#page .header-action-icon svg {
  width: 24px;
  height: 24px;
}

#page .header-action-icon:hover,
#page .header-action-icon:focus {
  color: #333;
  opacity: 0.8;
}

#page .header-action-icon:focus {
  box-shadow: none;
}

#page .header-action-icon::before,
#page .header-action-icon::after {
  display: none !important;
}

/* Mobile tweaks – top header */
@media (max-width: 768px) {
  .top-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .top-header-nav {
    flex-wrap: wrap;
    row-gap: 4px;
  }

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

/* Mobile tweaks – main header */
@media (max-width: 768px) {
  #page .main-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  #page .catalog-btn {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  #page .main-header-logo {
    order: 0;
    width: 100%;
  }

  #page .main-header-actions {
    order: 2;
    width: 100%;
    justify-content: center;
  }
}

