/* ==========================================================================
   Header Styles - CarTrier WordPress Theme v4
   3D Dark Gradient Header Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --primary: #1E293B;
  --primary-dark: #0F172A;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --border: #E2E8F0;
  --bg-light: #F8FAFC;
}

/* --------------------------------------------------------------------------
   Header Wrapper - 3D Perspective
   -------------------------------------------------------------------------- */
.header-wrapper {
  perspective: 1000px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* --------------------------------------------------------------------------
   1. Site Header - Premium Dark Gradient with Glass Effect
   -------------------------------------------------------------------------- */
.site-header {
  background: linear-gradient(180deg, #1a2332 0%, #0d1321 100%);
  transform-style: preserve-3d;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.15),
    0 12px 32px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  z-index: 50;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.15) 50%, transparent 90%);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), transparent);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. Top Bar - Subtle but visible
   -------------------------------------------------------------------------- */
.top-bar {
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Main Header - Compact & Centered
   -------------------------------------------------------------------------- */
.main-header {
  background: transparent;
  position: relative;
  z-index: 50;
  padding: 20px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 32px;
  min-height: 64px;
}

/* Logo - Larger & More Prominent */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 3px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.3s, text-shadow 0.3s, filter 0.3s;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  filter: brightness(1.1);
}

.logo-car {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.logo-trier {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   4. Desktop Navigation - Premium Glass Style with High Visibility
   -------------------------------------------------------------------------- */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

.nav-item {
  position: relative;
}

.nav-item[data-dropdown] {
  position: relative;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-btn:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.nav-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  background: transparent;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-link:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.nav-link.active,
.nav-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

/* Active / open state */
.nav-item.active .nav-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.nav-item.active .nav-arrow {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   4. Mega Menu
   -------------------------------------------------------------------------- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  min-width: 800px;
  z-index: 50;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-item.active .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Mega menu columns */
.mega-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  padding: 0 8px;
}

/* Standard mega link */
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

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

.mega-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mega-link-icon.summer {
  background-color: #FEF3C7;
  color: #D97706;
}

.mega-link-icon.winter {
  background-color: #DBEAFE;
  color: #2563EB;
}

.mega-link-icon.allseason {
  background-color: #D1FAE5;
  color: #059669;
}

.mega-link-icon svg {
  width: 20px;
  height: 20px;
}

.mega-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mega-link-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.mega-link-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Simple mega link with colored dot */
.mega-link-simple {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background-color 0.15s ease;
}

.mega-link-simple:hover {
  background-color: var(--bg-light);
}

.mega-link-simple .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mega-link-simple .dot.performance {
  background-color: #DC2626;
}

.mega-link-simple .dot.touring {
  background-color: #2563EB;
}

.mega-link-simple .dot.suv {
  background-color: #059669;
}

.mega-link-simple .dot.truck {
  background-color: #6B7280;
}

/* View all link */
.mega-link-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.mega-link-all:hover {
  background-color: rgba(225, 29, 72, 0.06);
}

.mega-link-all svg {
  width: 16px;
  height: 16px;
}

/* Size grid inside mega menu */
.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.size-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(225, 29, 72, 0.04);
}

/* Featured card inside mega menu */
.mega-featured {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  border-radius: 12px;
  padding: 20px;
  grid-column: span 1;
}

.featured-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background-color: rgba(225, 29, 72, 0.1);
  border-radius: 20px;
  width: fit-content;
}

.featured-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: var(--accent);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.featured-btn:hover {
  background-color: #BE123C;
}

/* --------------------------------------------------------------------------
   5. Tools Dropdown
   -------------------------------------------------------------------------- */
.tools-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  min-width: 380px;
  z-index: 50;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-item.active .tools-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tools-section {
  padding: 4px 0;
}

.tools-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
  padding: 0 8px;
}

.tool-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.tool-link:hover {
  background-color: var(--bg-light);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon.purple {
  background-color: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
}

.tool-icon.blue {
  background-color: rgba(2, 132, 199, 0.1);
  color: #0284C7;
}

.tool-icon.green {
  background-color: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.tool-icon.red {
  background-color: rgba(220, 38, 38, 0.1);
  color: #DC2626;
}

.tool-icon svg {
  width: 20px;
  height: 20px;
}

.tool-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tool-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.tool-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tools-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

.guide-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.guide-link:hover {
  background-color: var(--bg-light);
}

.guide-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.tools-footer {
  padding-top: 8px;
}

.tools-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.tools-footer a:hover {
  background-color: rgba(225, 29, 72, 0.06);
}

/* --------------------------------------------------------------------------
   6. Search Button - Premium Glass Pill Style
   -------------------------------------------------------------------------- */
.search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow:
    0 2px 12px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  min-width: 180px;
}

.search-btn:hover,
.search-btn:focus-within {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.1);
  color: white;
  transform: translateY(-1px);
}

.search-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}

.search-btn:hover svg {
  color: white;
}

/* --------------------------------------------------------------------------
   7. Search Overlay
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 640px;
  margin: 0 24px;
  overflow: hidden;
  transform: translateY(-16px);
  transition: transform 0.25s ease;
}

.search-overlay.active .search-modal {
  transform: translateY(0);
}

.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.search-header svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.search-header input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-primary);
  background: transparent;
}

.search-header input::placeholder {
  color: var(--text-secondary);
}

.search-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.search-close-btn:hover {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

.search-close-btn svg {
  width: 16px;
  height: 16px;
}

.search-suggestions {
  padding: 16px 20px;
}

.search-suggestions a {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  background-color: var(--bg-light);
  border-radius: 20px;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.search-suggestions a:hover {
  color: var(--accent);
  background-color: rgba(225, 29, 72, 0.06);
}

/* --------------------------------------------------------------------------
   8. Mobile Menu Button - Dark header style
   -------------------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   9. Mobile Overlay
   -------------------------------------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   10. Mobile Menu
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: #fff;
  z-index: 51;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-content {
  padding: 20px;
}

/* Mobile close button at top */
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background-color 0.15s ease;
}

.mobile-menu-close button:hover {
  background-color: var(--bg-light);
}

.mobile-menu-close button svg {
  width: 20px;
  height: 20px;
}

/* Collapsible sections */
.mobile-section {
  border-bottom: 1px solid var(--border);
}

.mobile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.mobile-section-header svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

.mobile-section.active .mobile-section-header svg {
  transform: rotate(180deg);
}

.mobile-section-content {
  display: none;
  padding-bottom: 12px;
}

.mobile-section.active .mobile-section-content {
  display: block;
}

.mobile-section-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-section-content a:hover {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

/* Simple main links in mobile */
.mobile-main-links {
  padding: 12px 0;
}

.mobile-main-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}

.mobile-main-links a:last-child {
  border-bottom: none;
}

.mobile-main-links a:hover {
  color: var(--accent);
}

.mobile-main-links a svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Sticky Header
   -------------------------------------------------------------------------- */
.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-header.is-sticky .top-bar {
  display: none;
}

.site-header.is-sticky .header-container {
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header.is-sticky .logo-car,
.site-header.is-sticky .logo-trier {
  font-size: 20px;
}

/* Placeholder to prevent content jump */
.header-placeholder {
  display: none;
}

.site-header.is-sticky + .header-placeholder {
  display: block;
}

/* --------------------------------------------------------------------------
   12. Language Switcher
   -------------------------------------------------------------------------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s ease;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
  border-color: var(--accent);
}

.flag-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* ==========================================================================
   Responsive: Tablet & Below (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .search-btn span {
    display: none;
  }

  .search-btn {
    padding: 12px;
    border-radius: 50px;
    min-width: auto;
    width: auto;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-container {
    gap: 16px;
  }

  .logo-car,
  .logo-trier {
    font-size: 28px;
  }

  .main-header {
    padding: 20px 0;
  }

  /* Mega menus shouldn't appear on tablet */
  .mega-menu,
  .tools-dropdown {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive: Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .top-bar {
    font-size: 12px;
    padding: 4px 0;
  }

  .top-bar-container {
    padding: 0 16px;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-right {
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
  }

  .header-container {
    padding: 10px 16px;
  }

  .logo-car,
  .logo-trier {
    font-size: 20px;
  }

  .search-overlay {
    padding-top: 80px;
  }

  .search-modal {
    margin: 0 16px;
    border-radius: 12px;
  }

  .mobile-menu {
    max-width: 100%;
  }

  .site-header.is-sticky .header-container {
    padding: 8px 16px;
  }

  .site-header.is-sticky .logo-car,
  .site-header.is-sticky .logo-trier {
    font-size: 18px;
  }
}
