/* Custom Mobile Menu CSS - Modern Design */

@media (max-width: 768px) {
  .footer-aside-wrap .widget-title {
    cursor: pointer;
    position: relative;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  .footer-aside-wrap .widget-title::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
  }

  .footer-aside-wrap aside.active .widget-title::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
  }

  .footer-aside-wrap .menu-quick-links-container {
    display: none;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
  }

  .footer-aside-wrap .menu-quick-links-container .menu {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .footer-aside-wrap .menu-quick-links-container .menu-item a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-top: 1px solid #eee;
    transition: background-color 0.3s ease;
  }

  .footer-aside-wrap .menu-quick-links-container .menu-item:first-child a {
    border-top: none;
  }

  .footer-aside-wrap .menu-quick-links-container .menu-item a:hover {
    background-color: #f0f0f0;
  }
}


/* Base styles - Hide mobile menu on desktop by default */
.custom-mobile-menu,
.mobile-menu-trigger {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Global overlay styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

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

/* Only apply mobile menu styles on mobile devices */
@media (max-width: 1024px) {

  .custom-mobile-menu,
  .mobile-menu-trigger {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Make overlay available on mobile */
  .overlay {
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Show overlay when active */
  .overlay.active {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .custom-mobile-menu {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    background: #ffffff;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 24px 24px 0 0;
  }

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

  .custom-mobile-menu .menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #bb0a07 0%, #8a0805 100%);
    position: relative;
  }

  .custom-mobile-menu .menu-header:before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .custom-mobile-menu .menu-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .custom-mobile-menu .close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    padding: 0;
    font-size: 0;
  }

  /* Modern X icon with CSS */
  .custom-mobile-menu .close-btn:before,
  .custom-mobile-menu .close-btn:after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: all 0.25s ease;
  }

  .custom-mobile-menu .close-btn:before {
    transform: rotate(45deg);
  }

  .custom-mobile-menu .close-btn:after {
    transform: rotate(-45deg);
  }

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

  .custom-mobile-menu .close-btn:hover:before {
    transform: rotate(135deg);
  }

  .custom-mobile-menu .close-btn:hover:after {
    transform: rotate(45deg);
  }

  .custom-mobile-menu .close-btn:active {
    transform: scale(0.95);
  }

  .custom-mobile-menu .menu-content {
    padding: 0;
    background: #f8f9fa;
  }

  .custom-mobile-menu .menu-list {
    list-style: none;
    padding: 10px;
    margin: 0;
  }

  /* Prevent autofill background color */
  .custom-mobile-menu input,
  .custom-mobile-menu input:-webkit-autofill,
  .custom-mobile-menu input:-webkit-autofill:hover,
  .custom-mobile-menu input:-webkit-autofill:focus,
  .custom-mobile-menu input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: inherit !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: background-color 5000s ease-in-out 0s;
  }

  .custom-mobile-menu .menu-item {
    position: relative;
    margin-bottom: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid #e9ecef;
    min-height: 54px;
  }

  .custom-mobile-menu .menu-item:last-child {
    border-bottom: none;
  }

  .custom-mobile-menu .menu-link {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #1a202c;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
    border: none;
    background: #ffffff !important;
    position: relative;
    line-height: 1.4;
  }

  /* Prevent any autofill styling on menu items */
  .custom-mobile-menu .menu-link:-webkit-autofill,
  .custom-mobile-menu .menu-item:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1a202c !important;
  }

  .custom-mobile-menu .menu-link:hover {
    background: linear-gradient(135deg, #bb0a07 0%, #8a0805 100%);
    color: #ffffff;
    padding-left: 25px;
  }

  .custom-mobile-menu .menu-link:active {
    transform: scale(0.98);
  }

  .custom-mobile-menu .menu-link.has-children {
    padding-right: 56px;
  }

  /* Toggle arrow - only for items with children */
  .custom-mobile-menu .menu-item .toggle-arrow {
    position: absolute !important;
    right: 12px;
    top: 11px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    background: rgba(187, 10, 7, 0.1);
    border-radius: 8px;
    z-index: 10;
    pointer-events: auto;
  }

  .custom-mobile-menu .menu-item:hover .toggle-arrow {
    background: rgba(187, 10, 7, 0.2);
  }

  /* Simple chevron down icon using CSS */
  .custom-mobile-menu .toggle-arrow:after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #bb0a07;
    border-bottom: 2px solid #bb0a07;
    transform: rotate(45deg) translateY(-2px);
    transition: all 0.3s ease;
  }

  .custom-mobile-menu .toggle-arrow.active {
    background: #bb0a07;
  }

  .custom-mobile-menu .toggle-arrow.active:after {
    border-color: #ffffff;
    transform: rotate(-135deg) translateY(-2px);
  }

  /* Remove toggle arrow from submenu items that don't have children */
  .custom-mobile-menu .sub-menu .menu-item:not(.menu-item-has-children) .toggle-arrow {
    display: none !important;
  }

  /* Adjust padding for submenu items with toggle arrows */
  .custom-mobile-menu .sub-menu .menu-link.has-children {
    padding-right: 56px;
  }

  /* Adjust toggle arrow position in submenus - SAME SIZE AND POSITION */
  .custom-mobile-menu .sub-menu .menu-item .toggle-arrow {
    width: 32px;
    height: 32px;
    right: 12px;
    top: 11px;
    background: rgba(187, 10, 7, 0.1);
  }

  .custom-mobile-menu .sub-menu .menu-item .toggle-arrow.active {
    background: #bb0a07;
  }

  .custom-mobile-menu .sub-menu .menu-item .toggle-arrow:after {
    width: 8px;
    height: 8px;
  }

  /* Nested submenu toggle arrows - SAME SIZE AND POSITION */
  .custom-mobile-menu .sub-menu .sub-menu .menu-item .toggle-arrow {
    width: 32px;
    height: 32px;
    right: 12px;
    top: 11px;
  }

  .custom-mobile-menu .sub-menu .sub-menu .menu-item .toggle-arrow:after {
    width: 8px;
    height: 8px;
  }

  .custom-mobile-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #e9ecef;
    overflow: hidden;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
    }

    to {
      opacity: 1;
      max-height: 500px;
    }
  }

  .custom-mobile-menu .sub-menu.active {
    display: block;
  }

  .custom-mobile-menu .sub-menu .menu-item {
    margin-bottom: 0;
    border-bottom: 1px solid #dee2e6;
    position: relative;
    min-height: 46px;
  }

  .custom-mobile-menu .sub-menu .menu-item:last-child {
    border-bottom: none;
  }

  .custom-mobile-menu .sub-menu .menu-link {
    display: block;
    padding: 14px 20px 14px 40px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    background: transparent !important;
    position: relative;
    line-height: 1.3;
  }

  /* Prevent autofill on submenu items */
  .custom-mobile-menu .sub-menu .menu-link:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #4a5568 !important;
  }

  .custom-mobile-menu .sub-menu .menu-link:hover {
    background: rgba(187, 10, 7, 0.1);
    color: #bb0a07;
  }

  .custom-mobile-menu .sub-menu .menu-link:before {
    content: "•";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #bb0a07;
    line-height: 1;
  }

  /* Nested submenu styles */
  .custom-mobile-menu .sub-menu .sub-menu {
    background: #dee2e6;
  }

  .custom-mobile-menu .sub-menu .sub-menu .menu-link {
    padding: 12px 20px 12px 55px;
    font-size: 13px;
  }

  .custom-mobile-menu .sub-menu .sub-menu .menu-link:before {
    content: "◦";
    left: 40px;
    font-size: 16px;
  }

  .custom-mobile-menu .sub-menu .sub-menu .sub-menu .menu-link {
    padding: 10px 20px 10px 70px;
    font-size: 12px;
  }

  .custom-mobile-menu .sub-menu .sub-menu .sub-menu .menu-link:before {
    content: "▪";
    left: 56px;
    font-size: 12px;
  }

  .custom-mobile-menu .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

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

  /* Mobile menu trigger button - menu label inside trigger */
  .menu-label-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
  }

  .menu-label-wrapper>.menu-label {
    display: none;
  }

  .mobile-menu-trigger {
    display: none;
    background: linear-gradient(135deg, #bb0a07 0%, #8a0805 100%);
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    z-index: 9997;
    position: relative;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(187, 10, 7, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
  }

  .mobile-menu-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(187, 10, 7, 0.4);
  }

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

  .mobile-menu-trigger .menu-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1;
  }

  .mobile-menu-trigger .hamburger {
    width: 20px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: .4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .mobile-menu-trigger .hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    opacity: 1;
    transform: rotate(0deg);
    transition: .3s ease-in-out;
    transform-origin: center;
  }

  .mobile-menu-trigger.active {
    background: linear-gradient(135deg, #8a0805 0%, #bb0a07 100%);
  }

  .mobile-menu-trigger.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-trigger.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .mobile-menu-trigger.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  @media (max-width: 480px) {
    .mobile-menu-trigger {
      padding: 10px 14px;
      gap: 8px;
      height: 40px;
    }

    .mobile-menu-trigger .menu-label {
      font-size: 13px;
    }

    .mobile-menu-trigger .hamburger {
      width: 18px;
      height: 16px;
    }
  }

  /* Enhanced visual effects */
  .custom-mobile-menu {
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
  }


  /* Special styling for image-based submenus */
  .custom-mobile-menu .sub-menu.image-menu {
    background: #fff;
    padding: 12px;
  }

  .custom-mobile-menu .sub-menu.image-menu .menu-item {
    border-bottom: none;
    margin-bottom: 10px;
  }

  .custom-mobile-menu .sub-menu.image-menu .menu-item:last-child {
    margin-bottom: 0;
  }

  .custom-mobile-menu .sub-menu.image-menu .menu-link {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
  }

  .custom-mobile-menu .sub-menu.image-menu .menu-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .custom-mobile-menu .sub-menu.image-menu .menu-link img {
    width: 100px;
    height: auto;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .custom-mobile-menu .sub-menu.image-menu .menu-link .menu-text {
    flex-grow: 1;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
  }

  /* Hide bullet point for image menus */
  .custom-mobile-menu .sub-menu.image-menu .menu-link:before {
    display: none !important;
  }


  /* Responsive */
  @media (max-width: 1024px) {
    .mobile-menu-trigger {
      display: inline-flex !important;
      align-items: center;
    }
  }

  @media (max-width: 768px) {
    .custom-mobile-menu {
      width: 100%;
      max-width: 100%;
      max-height: 85vh;
    }

    .custom-mobile-menu .menu-content {
      max-height: calc(85vh - 70px);
      overflow-y: auto;
    }
  }

  /* Very small screens */
  @media (max-width: 480px) {
    .custom-mobile-menu {
      max-height: 90vh;
    }

    .custom-mobile-menu .menu-content {
      max-height: calc(90vh - 70px);
    }
  }
}

/* Header responsive wrap */
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Desktop - max width - Override theme styles including header-full */
#site-header .site-header-inner.wrap {
  max-width: 1350px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* Extra override for header-full class */
[class*="header-style"].header-full .site-header-inner.wrap,
#site-header.header-full .site-header-inner.wrap {
  max-width: 1350px !important;
  width: 100% !important;
}

/* Mobile only - full width */
@media (max-width: 1024px) {

  #site-header .site-header-inner.wrap,
  #site-header.header-full .site-header-inner.wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 768px) {

  #site-header .site-header-inner.wrap,
  #site-header.header-full .site-header-inner.wrap {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {

  #site-header .site-header-inner.wrap,
  #site-header.header-full .site-header-inner.wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Menu label wrapper visibility */
.menu-label-wrapper {
  display: none;
}

/* Show menu label wrapper only on mobile - HIGHEST PRIORITY */
@media (max-width: 1024px) {
  .menu-label-wrapper {
    display: inline-flex !important;
    align-items: center;
    position: relative;
    z-index: 100;
  }

  /* Override any theme styles that might hide it */
  body .menu-label-wrapper,
  #site-header .menu-label-wrapper,
  .site-header .menu-label-wrapper,
  .header-content .menu-label-wrapper,
  .extras .menu-label-wrapper {
    display: inline-flex !important;
  }
}

/* Ensure menu trigger is visible on mobile */
@media (max-width: 1024px) {

  .header-content .extras .menu-label-wrapper,
  .navigator .menu-label-wrapper,
  .extras .menu-label-wrapper {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Make sure the hamburger button is always visible on mobile */
  .mobile-menu-trigger {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Align search and menu buttons */
  .header-content .extras {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .extras .fg-search-wrap {
    margin: 0;
  }
}

/* Prevent logo scaling - highest specificity to override any conflicting styles */
body #site-header .site-header-inner .header-brand img,
body #site-header .header-brand img,
body .site-header .header-brand img,
body .header-brand img,
#site-header .site-header-inner .header-brand img,
#site-header .header-brand img,
.site-header .header-brand img,
.header-brand img,
body img.logo,
img.logo {
  max-width: 100% !important;
  height: auto !important;
  transition: none !important;
  transform: none !important;
  width: auto !important;
  max-height: 60px !important;
  position: static !important;
  display: block !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
}

/* Extra specific rules to prevent any scaling */
body .header-brand img.logo,
.site-header .header-brand img.logo,
#site-header .header-brand img.logo,
.header-brand img.logo {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: 60px !important;
  transform: none !important;
  transition: none !important;
  position: static !important;
  box-sizing: border-box !important;
}

/* Extra protection for mobile devices */
@media (max-width: 480px) {

  body #site-header .site-header-inner .header-brand img,
  body #site-header .header-brand img,
  body .site-header .header-brand img,
  body .header-brand img,
  #site-header .site-header-inner .header-brand img,
  #site-header .header-brand img,
  .site-header .header-brand img,
  .header-brand img {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
  }

  body .header-brand img.logo,
  .site-header .header-brand img.logo,
  #site-header .header-brand img.logo,
  .mobile-menu-trigger {
    display: inline-flex !important;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .custom-mobile-menu {
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
  }

  .custom-mobile-menu .menu-content {
    max-height: calc(85vh - 70px);
    overflow-y: auto;
  }
}

/* Very small screens */
@media (max-width: 480px) {}

/* Desktop - max width - Override theme styles including header-full */
#site-header .site-header-inner.wrap {
  max-width: 1350px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* Extra override for header-full class */
[class*="header-style"].header-full .site-header-inner.wrap,
#site-header.header-full .site-header-inner.wrap {
  max-width: 1350px !important;
  width: 100% !important;
}

/* Mobile only - full width */
@media (max-width: 1024px) {

  #site-header .site-header-inner.wrap,
  #site-header.header-full .site-header-inner.wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 768px) {

  #site-header .site-header-inner.wrap,
  #site-header.header-full .site-header-inner.wrap {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {

  #site-header .site-header-inner.wrap,
  #site-header.header-full .site-header-inner.wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Menu label wrapper visibility */
.menu-label-wrapper {
  display: none;
}

/* Show menu label wrapper only on mobile - HIGHEST PRIORITY */
@media (max-width: 1024px) {
  .menu-label-wrapper {
    display: inline-flex !important;
    align-items: center;
    position: relative;
    z-index: 100;
  }

  /* Override any theme styles that might hide it */
  body .menu-label-wrapper,
  #site-header .menu-label-wrapper,
  .site-header .menu-label-wrapper,
  .header-content .menu-label-wrapper,
  .extras .menu-label-wrapper {
    display: inline-flex !important;
  }
}

/* Ensure menu trigger is visible on mobile */
@media (max-width: 1024px) {

  .header-content .extras .menu-label-wrapper,
  .navigator .menu-label-wrapper,
  .extras .menu-label-wrapper {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Make sure the hamburger button is always visible on mobile */
  .mobile-menu-trigger {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Align search and menu buttons */
  .header-content .extras {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .extras .fg-search-wrap {
    margin: 0;
  }
}

/* Prevent logo scaling - highest specificity to override any conflicting styles */
body #site-header .site-header-inner .header-brand img,
body #site-header .header-brand img,
body .site-header .header-brand img,
body .header-brand img,
#site-header .site-header-inner .header-brand img,
#site-header .header-brand img,
.site-header .header-brand img,
.header-brand img,
body img.logo,
img.logo {
  max-width: 100% !important;
  height: auto !important;
  transition: none !important;
  transform: none !important;
  width: auto !important;
  max-height: 60px !important;
  position: static !important;
  display: block !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
}

/* Extra specific rules to prevent any scaling */
body .header-brand img.logo,
.site-header .header-brand img.logo,
#site-header .header-brand img.logo,
.header-brand img.logo {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: 60px !important;
  transform: none !important;
  transition: none !important;
  position: static !important;
  box-sizing: border-box !important;
}

/* Extra protection for mobile devices */
@media (max-width: 480px) {

  body #site-header .site-header-inner .header-brand img,
  body #site-header .header-brand img,
  body .site-header .header-brand img,
  body .header-brand img,
  #site-header .site-header-inner .header-brand img,
  #site-header .header-brand img,
  .site-header .header-brand img,
  .header-brand img {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
  }

  body .header-brand img.logo,
  .site-header .header-brand img.logo,
  #site-header .header-brand img.logo,
  .header-brand img.logo {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
  }
}

/* Override any potential JavaScript-based transformations */
body.menu-open #site-header .header-brand img,
body .custom-mobile-menu.active~#site-header .header-brand img,
body .overlay.active~#site-header .header-brand img {
  max-width: 100% !important;
  height: auto !important;
  transform: none !important;
  width: auto !important;
  max-height: 60px !important;
  position: static !important;
}

/* Mobile Language & Region Selector Styles */
@media (max-width: 1024px) {
  .mobile-lang-region-selector {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
  }

  .lang-region-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #1a202c;
    font-weight: 600;
    font-size: 15px;
  }

  .lang-region-header svg {
    color: #bb0a07;
    flex-shrink: 0;
  }

  .lang-region-popular {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .lang-region-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .lang-region-item:hover {
    background: #ffffff;
    border-color: #bb0a07;
    box-shadow: 0 4px 12px rgba(187, 10, 7, 0.1);
    transform: translateY(-2px);
  }

  .lang-region-item:active {
    transform: translateY(0);
  }

  .lang-region-item img {
    width: 28px;
    height: 21px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .lang-region-item span {
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
  }

  .lang-region-view-all {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #bb0a07 0%, #8a0805 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(187, 10, 7, 0.2);
  }

  .lang-region-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 10, 7, 0.3);
  }

  .lang-region-view-all:active {
    transform: translateY(0);
  }

  @media (max-width: 480px) {
    .lang-region-popular {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .lang-region-item {
      padding: 10px 6px;
    }

    .lang-region-item img {
      width: 24px;
      height: 18px;
    }

    .lang-region-item span {
      font-size: 10px;
    }

    .lang-region-view-all {
      font-size: 13px;
      padding: 10px 14px;
    }
  }
}