/**
 * Custom Header Styles - Tailwind Inspired
 * Modern header with brand colors
 */
.custom-header {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  display: unset;
}

/* Header Main - Tailwind Grid */
.custom-header__main {
  background: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.custom-header__main-content {
  display: grid;
  grid-template-columns: 200px 3fr 2fr;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
}

/* Header Bottom - Modern Navigation */
@media (min-width: 1024px) {
  .custom-header__bottom {
    background: linear-gradient(
      90deg,
      rgba(238, 64, 42, 1) 0%,
      rgba(242, 77, 56, 1) 50%,
      rgba(247, 94, 74, 1) 100%
    );
    padding: 0.5rem 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

@media (max-width: 1024px) {
  .custom-header {
    position: sticky;
    display: block;
  }
}

.custom-header__bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

/* Search Bar - Tailwind Style */
.custom-header__search {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-header__search form {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  overflow: visible;
  width: 100%;
  position: relative;
  max-width: 100%;
  transition: all 0.2s ease-in-out;
  margin: 0px;
  border-radius: 35px;
}

/* Search Input - Clean Tailwind Style */
.custom-header__search input[type="search"],
.custom-header__search input {
  flex: 1;
  padding: 0.75rem 3.5rem 0.75rem 1rem;
  border: none;
  outline: none;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  line-height: 1.25;
  margin: 0px;
  box-shadow: none;
  height: 46px;
}
.custom-header__search input[type="search"]:focus,
.custom-header__search input:focus {
  box-shadow: none;
  background-color: unset;
}

.custom-header__search input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

/* Search Button - Round Icon Inside Form */
.custom-header__search button,
.custom-header__search button[type="submit"] {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-header__search button i {
  font-size: 0.625rem;
  color: currentColor;
}

.custom-header__search button:hover,
.custom-header__search button[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Right Actions - Tailwind Flex */
.custom-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* Language Switcher in Header */
.custom-header__lang {
  position: relative;
  display: inline-block;
}

.custom-header__lang .modern-language-switcher {
  position: relative;
  display: inline-block;
}

.custom-header__lang .language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 70px;
}

.custom-header__lang .language-toggle:hover {
  background: var(--gray-50);
  border-color: var(--primary-color);
}

.custom-header__lang .language-flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.custom-header__lang .language-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.custom-header__lang .dropdown-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform 0.2s ease-in-out;
}

.custom-header__lang .language-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.custom-header__lang .language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 120px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
}

.custom-header__lang .language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-header__lang .language-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-header__lang .language-item {
  margin: 0;
}

.custom-header__lang .language-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.custom-header__lang .language-link:hover {
  background: var(--gray-50);
}

/* Cart Icon - Modern Button Style */
.custom-header__cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 1px solid var(--gray-200);
  color: var(--white);
  font-size: 0.9em;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.custom-header__cart-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Cart Badge - Tailwind Style */
.custom-header__cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 9999px;
  border: 2px solid var(--white);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}

/* Call Button */
.custom-btn--call {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  white-space: nowrap;
}

.custom-btn--call i {
  font-size: 0.9em;
}

/* Logo */
.custom-header__logo {
  display: flex;
  align-items: center;
}

.custom-header__logo .custom-logo-link {
  display: inline-block;
  text-decoration: none;
}

.custom-header__logo img,
.custom-header__logo .custom-logo {
  max-height: 50px;
  width: auto;
  height: auto;
  display: block;
}

/* WordPress default logo classes */
.custom-logo-link .custom-logo {
  max-height: 50px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  text-decoration: none;
}

/* Navigation - Modern Tailwind Style */
.custom-header__nav {
  flex: 1;
}

.custom-header__menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.375rem;
}

/* Navigation Links */
.custom-header__item {
  position: relative;
  margin-bottom: 0px;
}

.custom-header__link {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-base);
  line-height: var(--line-height-tight);
  border-radius: 40px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-family: var(--font-primary);
  letter-spacing: var(--letter-spacing-tight);
}

/* Hover and Active States */
.custom-header__link:hover {
  color: var(--primary-color);
  background: var(--primary-s-light);
  border-radius: 40px;
}

.custom-header__item--active .custom-header__link,
.custom-header__item.current-menu-item .custom-header__link,
.custom-header__item.current_page_item .custom-header__link {
  color: var(--primary-color);
  background: white;
  font-weight: 500;
  border-radius: 40px;
}

.custom-header__item--active .custom-header__link i,
.custom-header__item.current-menu-item .custom-header__link i,
.custom-header__item.current_page_item .custom-header__link i {
  color: var(--primary-color);
}

/* Quote Button - Special CTA Style */
.custom-btn--quote {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(239, 64, 42, 0.2);
  transition: all 0.2s ease-in-out;
}

.custom-btn--quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(239, 64, 42, 0.3);
  color: var(--white);
  text-decoration: none;
}

.custom-header__dropdown-icon {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}

/* Mũi tên menu cấp 1 - xoay xuống khi hover */
.custom-header__menu
  > .custom-header__item--has-dropdown:hover
  > .custom-header__link
  .custom-header__dropdown-icon {
  transform: rotate(180deg);
  color: var(--primary-color);
}

/* Mũi tên menu cấp 2 - chỉ đổi màu, không xoay (vì hiển thị bên phải) */
.custom-header__submenu
  .custom-header__item--has-dropdown:hover
  > .custom-header__link
  .custom-header__dropdown-icon {
  color: var(--primary-color);
  /* Không xoay vì submenu hiển thị bên phải, không phải bên dưới */
}

/* SVG Arrow cho menu cấp 2 */
.custom-header__dropdown-icon--arrow-right {
  display: inline-block;
  width: 16px;
  height: 9px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTYgOSI+PHBhdGggZmlsbD0iIzY2NzMzOCIgZD0iTTEyLjUgNWgtOWMtLjI4IDAtLjUtLjIyLS41LS41cy4yMi0uNS41LS41aDljLjI4IDAgLjUuMjIuNS41cy0uMjIuNS0uNS41Ii8+PHBhdGggZmlsbD0iIzY2NzMzOCIgZD0iTTEwIDguNWEuNDcuNDcgMCAwIDEtLjM1LS4xNWMtLjItLjItLjItLjUxIDAtLjcxbDMuMTUtMy4xNWwtMy4xNS0zLjE1Yy0uMi0uMi0uMi0uNTEgMC0uNzFzLjUxLS4yLjcxIDBsMy41IDMuNWMuMi4yLjIuNTEgMCAuNzFsLTMuNSAzLjVjLS4xLjEtLjIzLjE1LS4zNS4xNVoiLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.6;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-header__submenu
  .custom-header__item--has-dropdown:hover
  > .custom-header__link
  .custom-header__dropdown-icon--arrow-right {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTYgOSI+PHBhdGggZmlsbD0iI0VFNDAyQSIgZD0iTTEyLjUgNWgtOWMtLjI4IDAtLjUtLjIyLS41LS41cy4yMi0uNS41LS41aDljLjI4IDAgLjUuMjIuNS41cy0uMjIuNS0uNS41Ii8+PHBhdGggZmlsbD0iI0VFNDAyQSIgZD0iTTEwIDguNWEuNDcuNDcgMCAwIDEtLjM1LS4xNWMtLjItLjItLjItLjUxIDAtLjcxbDMuMTUtMy4xNWwtMy4xNS0zLjE1Yy0uMi0uMi0uMi0uNTEgMC0uNzFzLjUxLS4yLjcxIDBsMy41IDMuNWMuMi4yLjIuNTEgMCAuNzFsLTMuNSAzLjVjLS4xLjEtLjIzLjE1LS4zNS4xNVoiLz48L3N2Zz4=");
  opacity: 1;
}

.custom-header__item--has-dropdown .custom-header__link {
  padding-right: 0.75rem;
}

/* Submenu - Enhanced Design */
.custom-header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Chỉ hiển thị submenu cấp 1 khi hover vào parent */
.custom-header__item--has-dropdown:hover > .custom-header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu cấp 2 */
.custom-header__submenu .custom-header__submenu {
  top: 0;
  left: 100%;
  margin-left: 0.5rem;
}

/* Hiển thị submenu cấp 2 khi hover vào item cấp 2 */
.custom-header__submenu
  .custom-header__item--has-dropdown:hover
  > .custom-header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* JavaScript active states */
.custom-header__submenu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-header__submenu .custom-header__item {
  width: 100%;
  margin-bottom: 2px;
  list-style: none;
}

.custom-header__submenu .custom-header__item:last-child {
  margin-bottom: 0;
}

.custom-header__submenu .custom-header__link {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  width: 100%;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-primary);
}

.custom-header__submenu .custom-header__link:hover {
  background: var(--primary-s-light);
  color: var(--primary-color);
  transform: translateX(4px);
  padding-left: 1.25rem;
}

/* CTA Button */
.custom-header__cta {
  flex-shrink: 0;
}

/* Custom Buttons - Tailwind Design System */
.custom-header .custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 40px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}

/* Primary Button - Brand Red */
.custom-header .custom-btn--primary {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.custom-header .custom-btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* Secondary Button - Outline Style */
.custom-header .custom-btn--secondary {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.custom-header .custom-btn--secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  border-color: white;
  text-decoration: none;
}

/* Mobile Toggle */
.custom-header__mobile-toggle {
  display: none;
  flex-shrink: 0;
}

.custom-header__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.3s ease;
  margin: 0px;
  display: flex;
  justify-content: center;
}

.custom-header__hamburger span {
  width: 15px;
  height: 1px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.custom-header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 4px);
}

.custom-header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.custom-header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.custom-header__mobile-menu {
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
}

.custom-header__mobile-menu.active {
  max-height: 100vh;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.custom-header__mobile-content {
  padding-bottom: var(--spacing-md);
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  -webkit-overflow-scrolling: touch;
}

/* Mobile Navigation Stack */
.custom-header__mobile-nav-stack {
  position: relative;
  width: 100%;
  height: auto;
}

.custom-header__mobile-nav-level {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.custom-header__mobile-nav-level.active {
  transform: translateX(0);
  opacity: 1;
  position: relative;
  z-index: 2;
}

.custom-header__mobile-nav-level.slide-out {
  transform: translateX(-100%);
  opacity: 0;
}

/* Forward navigation animations */
.custom-header__mobile-nav-level.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
  position: absolute;
  z-index: 1;
}

/* Back navigation animations */
.custom-header__mobile-nav-level.slide-in-left {
  transform: translateX(-100%);
  opacity: 1;
  position: absolute;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-header__mobile-nav-level.slide-out-right {
  transform: translateX(100%);
  opacity: 1;
  position: absolute;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Navigation Header */
.custom-header__mobile-nav-header {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.custom-header__mobile-nav-back,
.custom-header__mobile-nav-home {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  cursor: pointer;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: var(--font-weight-medium);
}

.custom-header__mobile-nav-back:hover,
.custom-header__mobile-nav-home:hover {
  background: var(--primary-s-light);
  color: var(--primary-dark);
}

.custom-header__mobile-nav-title {
  flex: 1;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

/* Mobile Navigation List */
.custom-header__mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-header__mobile-nav .menu-item {
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 0px;
}

.custom-header__mobile-nav .menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 10px var(--spacing-md) 0;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: background 0.2s ease;
}
.custom-header__mobile-nav .menu-item.menu-item-has-children a {
  cursor: pointer;
}

/* Mobile Menu Arrow */
.custom-header__mobile-arrow {
  display: inline-block;
  width: 16px;
  height: 9px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTYgOSI+PHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJNMTIuNSA1aC05Yy0uMjggMC0uNS0uMjItLjUtLjVzLjIyLS41LjUtLjVoOWMuMjggMCAuNS4yMi41LjVzLS4yMi41LS41LjUiLz48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xMCA4LjVhLjQ3LjQ3IDAgMCAxLS4zNS0uMTVjLS4yLS4yLS4yLS41MSAwLS43MWwzLjE1LTMuMTVsLTMuMTUtMy4xNWMtLjItLjItLjItLjUxIDAtLjcxcy41MS0uMi43MSAwbDMuNSAzLjVjLjIuMi4yLjUxIDAgLjcxbC0zLjUgMy41Yy0uMS4xLS4yMy4xNS0uMzUuMTVaIi8+PC9zdmc+");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.6;
  flex-shrink: 0;
}

.custom-header__mobile-utilities {
  padding-top: var(--spacing-lg);
}

.custom-header__mobile-search {
  margin-bottom: var(--spacing-md);
}

.custom-header__mobile-search form {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0px;
}

/* Mobile search input */
.custom-header__mobile-search input[type="search"],
.custom-header__mobile-search input {
  flex: 1;
  padding: var(--spacing-md);
  border: none;
  border-radius: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  margin: 0;
  font-family: inherit;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  height: 100%;
}

.custom-header__mobile-search input[type="search"]:focus,
.custom-header__mobile-search input:focus {
  box-shadow: none;
  background-color: unset;
}

/* Mobile search button */
.custom-header__mobile-search button,
.custom-header__mobile-search button[type="submit"] {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0;
  padding: var(--spacing-md);
  cursor: pointer;
  box-shadow: none;
  margin: 0;
  font-family: inherit;
  transition: background 0.3s ease;
}

.custom-header__mobile-search button:hover,
.custom-header__mobile-search button[type="submit"]:hover {
  background: var(--primary-dark);
}

.custom-header__mobile-search button i {
  font-size: 16px;
  color: currentColor;
}

.custom-header__mobile-phone {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-lg);
}

/* Responsive */
@media (max-width: 1024px) {
  /* Hide bottom navigation on tablet */
  .custom-header__bottom {
    display: none;
  }

  /* Make main header sticky on mobile */
  .custom-header__main {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .custom-header__mobile-toggle {
    display: block;
    background: var(--primary-color);
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Adjust main header grid */
  .custom-header__main-content {
    grid-template-columns: 1fr auto;
    gap: var(--spacing-md);
  }

  .custom-header__search {
    display: none;
  }

  /* Language switcher mobile styling - stay in header */
  .custom-header__lang .language-toggle {
    padding: 0.4rem 0.6rem;
    min-width: 60px;
    font-size: 0.75rem;
    height: 40px;
  }

  .custom-header__lang .language-flag {
    width: 14px;
    height: 10px;
  }

  .custom-header__lang .language-name {
    font-size: 0.75rem;
  }

  .custom-header__lang .dropdown-arrow {
    width: 12px;
    height: 12px;
  }

  .custom-header__lang .language-dropdown {
    right: 0;
    min-width: 100px;
  }

  .custom-header__lang .language-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 5px;
  }

  /* Adjust mobile menu position based on header height */
  .custom-header__mobile-menu {
    top: 100%;
  }
}

@media (max-width: 767px) {
  .custom-header__main {
    padding: var(--spacing-md) 0;
  }

  /* Extra compact language switcher on very small screens */
  .custom-header__lang .language-toggle {
    padding: 0.3rem 0.5rem;
    min-width: 50px;
    height: 40px;
  }

  .custom-header__lang .language-flag {
    width: 12px;
    height: 9px;
  }

  .custom-header__lang .language-name {
    font-size: 0.7rem;
  }

  .custom-header__lang .dropdown-arrow {
    width: 10px;
    height: 10px;
  }

  .custom-header__lang .language-dropdown {
    min-width: 90px;
  }

  .custom-header__main-content {
    grid-template-columns: 1fr auto;
    gap: var(--spacing-sm);
  }

  .custom-header__logo img {
    max-height: 40px;
  }

  .site-title {
    font-size: var(--font-size-xl);
  }

  .custom-header__actions {
    gap: var(--spacing-sm);
  }

  .custom-header__call {
    display: none;
  }
}
