/* Header Navigation V3 Styles */
.header-navigation.header-main-section {
  background: transparent !important;
  height: 80px;
  padding: 0;
  border-radius: 50px 50px 50px 50px;
  box-shadow: none;
  margin: -40px 0 0 0;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: all 0.3s ease-in-out !important;
}

/* Sticky state for Header V3 */
.header-navigation.header-main-section.sticky {
  position: fixed !important;
  top: 60px !important; /* Position below sticky top header */
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* When top header is not sticky, adjust main header position */
.header-navigation.header-main-section.sticky:not(.header-top-bar.sticky + .sticky) {
  top: 0 !important;
}

/* خلفية رمادية فاتحة للشكل البيضاوي */
.header-navigation.header-main-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f2f2f2;
  border-radius: 50px 50px 50px 50px;
  z-index: -1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* إزالة الخلفية البيضاء من الحاوية الرئيسية */
.header-navigation.header-main-section .container-fluid {
  background: transparent;
}

/* إزالة الخلفية البيضاء من الصفوف والأعمدة */
.header-navigation.header-main-section .row,
.header-navigation.header-main-section .col-lg-8,
.header-navigation.header-main-section .col-lg-4,
.header-navigation.header-main-section .col-lg-6 {
  background: transparent;
}

/* تأثير ثلاثي الأبعاد أسفل الهيدر */
.header-navigation.header-main-section::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 15px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-navigation .container-fluid {
  padding: 0 30px;
}

.header-navigation .primary-menu {
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo Styles */
.site-branding {
  display: flex;
  align-items: center;
  /* order: 1; - Removed to prevent conflicts with fixed column layout */
  flex-shrink: 0;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-main {
  font-size: 28px !important;
  font-weight: bold !important;
  color: #e62e37 !important;
  line-height: 1;
  margin-bottom: 2px;
}

.logo-sub {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #e62e37 !important;
  line-height: 1;
  margin-bottom: 2px;
}

.logo-arabic {
  font-size: 12px !important;
  color: #666666 !important;
  line-height: 1;
}

/* Navigation Menu Styles */
.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  /* order: 2; - Removed to prevent conflicts with fixed column layout */
}

.main-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 5px;
}

.main-menu .menu-item {
  margin: 0;
}

.main-menu .menu-item a {
  display: block;
  padding: 10px 15px !important;
  color: #666666 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-decoration: none;
  transition: color 0.3s ease;
  border-radius: 50px;
  white-space: nowrap;
}

.main-menu .menu-item a:hover {
  color: #e62e37 !important;
  background-color: rgba(230, 46, 55, 0.1);
}

.main-menu .menu-item a.active {
  color: #e62e37 !important;
  background-color: rgba(230, 46, 55, 0.1);
}

/* Header Right Tools - إزالة المستطيل المقوس */
.header-right-nav {
  display: flex;
  align-items: center;
  /* order: 3; - Removed to prevent conflicts with fixed column layout */
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  transition: none;
  min-width: auto;
}

.header-right-nav:hover {
  box-shadow: none;
  transform: none;
}

.right-nav-tool {
  display: flex;
  align-items: center;
  gap: 15px;
  width: auto;
  justify-content: flex-end;
}

/* Nav Buttons Container - Expanded Oval White Background */
.nav-buttons-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 8px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

/* Responsive adjustments for smaller oval container */
@media (max-width: 768px) {
  .nav-buttons-container {
    padding: 4px 8px;
    gap: 6px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .nav-buttons-container {
    padding: 3px 6px;
    gap: 5px;
    border-radius: 16px;
  }
}

@media (max-width: 576px) {
  .nav-buttons-container {
    padding: 3px 5px;
    gap: 4px;
    border-radius: 14px;
  }
}

/* Language Icon with Globe Above */
.lang-icon-with-globe {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Globe icon specific styling to ensure it fits inside container */
.lang-icon-with-globe i.fas.fa-globe {
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Globe circle styles removed - using globe icon only */

/* Specific styling for language selector to ensure globe fits */
.nav-buttons-container .language-selector {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}

/* Ensure lang dropdown fits properly */
.nav-buttons-container .lang-dropdown {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

/* Ensure lang toggle fits properly */
.nav-buttons-container .lang {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

/* Ensure dropdown appears above container */
.nav-buttons-container .language-options {
  z-index: 10001 !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  min-width: 120px !important;
  margin-top: 5px !important;
  padding: 8px 0 !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
}

/* Force dropdown visibility when shown */
.nav-buttons-container .language-options.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Logo positioning - far beyond left edge (-65px margin) */
#logo-section {
  margin-left: -65px !important;
  margin-right: auto !important;
}

/* Header right nav positioning with 20px margin from right */
.header-right-nav {
  margin-right: 20px !important;
  margin-left: auto !important;
}

/* Force margins in all language contexts */
html[dir="rtl"] #logo-section,
body[dir="rtl"] #logo-section,
html[lang="ar"] #logo-section,
body[lang="ar"] #logo-section {
  margin-left: -65px !important;
  margin-right: auto !important;
}

html[dir="rtl"] .header-right-nav,
body[dir="rtl"] .header-right-nav,
html[lang="ar"] .header-right-nav,
body[lang="ar"] .header-right-nav {
  margin-right: 20px !important;
  margin-left: auto !important;
}

/* Responsive margins for mobile */
@media (max-width: 576px) {
  #logo-section,
  html[dir="rtl"] #logo-section,
  body[dir="rtl"] #logo-section,
  html[lang="ar"] #logo-section,
  body[lang="ar"] #logo-section {
    margin-left: -55px !important;
  }
  
  .header-right-nav,
  html[dir="rtl"] .header-right-nav,
  body[dir="rtl"] .header-right-nav,
  html[lang="ar"] .header-right-nav,
  body[lang="ar"] .header-right-nav {
    margin-right: 10px !important;
  }
}

/* Responsive margins for tablet */
@media (max-width: 768px) {
  #logo-section,
  html[dir="rtl"] #logo-section,
  body[dir="rtl"] #logo-section,
  html[lang="ar"] #logo-section,
  body[lang="ar"] #logo-section {
    margin-left: -60px !important;
  }
  
  .header-right-nav,
  html[dir="rtl"] .header-right-nav,
  body[dir="rtl"] .header-right-nav,
  html[lang="ar"] .header-right-nav,
  body[lang="ar"] .header-right-nav {
    margin-right: 15px !important;
  }
}

/* Cart Button - تحسين */
.cart-button {
  display: flex;
  align-items: center;
  min-width: 60px;
}

.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50px;
  color: #666666;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 45px;
}

.cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(230, 46, 55, 0.05) 0%, rgba(230, 46, 55, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-btn:hover {
  color: #e62e37;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 46, 55, 0.15);
  border: none;
}

.cart-btn:hover::before {
  opacity: 1;
}

.cart-btn i {
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #e62e37 0%, #dc3545 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(230, 46, 55, 0.3);
  border: 2px solid #ffffff;
}

/* User Menu - تحسين */
.user-menu {
  display: flex;
  align-items: center;
  min-width: 60px;
}

.user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50px;
  color: #666666;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  min-width: 45px;
}

.user-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(230, 46, 55, 0.05) 0%, rgba(230, 46, 55, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-btn:hover {
  color: #e62e37;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 46, 55, 0.15);
  border: none;
}

.user-btn:hover::before {
  opacity: 1;
}

.user-btn i {
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* Mobile Menu Toggle */
.navbar-toggler {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

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

.navbar-toggler.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Active State */
.nav-menu.active {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  padding: 80px 20px 20px;
}

.nav-menu.active .main-menu {
  background: #ffffff;
  border-radius: 50px;
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Header Notifications */
.header-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.header-notification.success {
  background: #28a745;
  color: #ffffff;
}

.header-notification.error {
  background: #dc3545;
  color: #ffffff;
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 200px;
  padding: 8px 0;
  margin-top: 5px;
}

.dropdown-item {
  padding: 8px 16px;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item a {
  color: #333333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.dropdown-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 8px 0;
}

.navbar-toggler {
  cursor: pointer;
  padding: 5px;
}

.navbar-toggler span {
  width: 25px;
  height: 3px;
  background: #666666;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 50px;
}

/* Responsive Design */
@media (max-width: 991px) {
  .header-navigation.header-main-section {
    padding: 15px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  
  .header-navigation.header-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
  }
  
  .header-navigation.header-main-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 46, 55, 0.02) 0%, rgba(230, 46, 55, 0.01) 100%);
    z-index: -1;
  }
  
  .header-navigation .container-fluid {
    padding: 0 20px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-toggler {
    display: block;
  }
  
  .header-right-nav {
    margin-left: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    min-width: auto;
  }
  
  .right-nav-tool {
    gap: 12px;
    width: auto;
    justify-content: flex-end;
  }

  .lang-dropdown {
    width: 65px;
    height: 40px;
    min-width: 65px;
    border-radius: 50px;
    padding: 0 12px;
  }

  .cart-btn,
  .user-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50px;
  }

  /* Language dropdown for medium screens */
  .language-options {
    z-index: 99999 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    min-width: 140px !important;
    margin-top: 10px !important;
    padding: 10px 0 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  [dir="rtl"] .logo-text-container {
    align-items: center;
    text-align: center;
    margin-top: 6px;
    justify-content: center;
    width: 100%;
  }

  [dir="ltr"] .logo-text-container {
    align-items: center;
    text-align: center;
    margin-top: 6px;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .header-navigation.header-main-section {
    padding: 12px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  }
  
  .header-navigation.header-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
  }
  
  .header-navigation.header-main-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 46, 55, 0.03) 0%, rgba(230, 46, 55, 0.015) 100%);
    z-index: -1;
  }
  
  .header-navigation .container-fluid {
    padding: 0 15px;
  }
  
  .logo-main {
    font-size: 20px;
  }
  
  .logo-sub {
    font-size: 10px;
  }
  
  .logo-arabic {
    font-size: 8px;
  }
  
  [dir="rtl"] .logo-text-container {
    align-items: center;
    text-align: center;
    margin-top: 4px;
    justify-content: center;
    width: 100%;
  }

  [dir="ltr"] .logo-text-container {
    align-items: center;
    text-align: center;
    margin-top: 4px;
    justify-content: center;
    width: 100%;
  }
  
  .right-nav-tool {
    gap: 10px;
    width: auto;
    justify-content: flex-end;
  }
  
  .header-right-nav {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    min-width: auto;
  }

  .right-nav-tool {
    gap: 8px;
    width: auto;
    justify-content: flex-end;
  }

  .lang-dropdown {
    width: 60px;
    height: 35px;
    min-width: 60px;
    border-radius: 50px;
    padding: 0 10px;
  }

  .cart-btn,
  .user-btn {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50px;
  }

  /* Language dropdown for small screens */
  .language-options {
    z-index: 99999 !important;
    position: absolute !important;
    top: 100% !important;
    right: auto !important;
    left: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    min-width: 120px !important;
    margin-top: 10px !important;
    padding: 10px 0 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .lang-dropdown i,
  .cart-btn i,
  .user-btn i {
    font-size: 14px;
  }
}

/* RTL Support */
[dir="rtl"] .logo-text-container {
  align-items: center;
  text-align: center;
  margin-top: 8px; /* مسافة توسيط للوجو في اللغة العربية */
  justify-content: center;
  width: 100%;
}

[dir="rtl"] .main-menu ul {
  flex-direction: row-reverse;
  justify-content: flex-end;
  text-align: right;
}

[dir="rtl"] .main-menu .menu-item {
  margin-left: 0;
  margin-right: 0;
}

[dir="rtl"] .main-menu .menu-item a {
  text-align: right;
}

[dir="rtl"] .header-right-nav {
  /* order: -1; - Removed to prevent conflicts with fixed column layout */
}

[dir="rtl"] .site-branding {
  /* order: 1; - Removed to prevent conflicts with fixed column layout */
  display: flex;
  justify-content: center;
  align-items: center;
}

[dir="rtl"] .nav-menu {
  /* order: 0; - Removed to prevent conflicts with fixed column layout */
  display: flex;
  justify-content: flex-end;
}

[dir="rtl"] .primary-menu {
  flex-direction: row-reverse;
}

/* LTR Support - للغة الإنجليزية */
[dir="ltr"] .logo-text-container {
  align-items: center;
  text-align: center;
  margin-top: 8px; /* مسافة توسيط للوجو في اللغة الإنجليزية */
  justify-content: center;
  width: 100%;
}

[dir="ltr"] .main-menu ul {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
}

[dir="ltr"] .main-menu .menu-item {
  margin-left: 0;
  margin-right: 0;
}

[dir="ltr"] .main-menu .menu-item a {
  text-align: left;
}

[dir="ltr"] .header-right-nav {
  /* order: 1; - Removed to prevent conflicts with fixed column layout */
}

[dir="ltr"] .site-branding {
  /* order: -1; - Removed to prevent conflicts with fixed column layout */
  display: flex;
  justify-content: center;
  align-items: center;
}

[dir="ltr"] .nav-menu {
  /* order: 0; - Removed to prevent conflicts with fixed column layout */
  display: flex;
  justify-content: flex-start;
}

[dir="ltr"] .primary-menu {
  flex-direction: row;
} 

/* Language Selector - تصميم جديد */
.language-selector {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 10000;
}

.lang-dropdown {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(230, 46, 55, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 140px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  /* Prevent event conflicts */
  pointer-events: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.lang-dropdown:focus {
  outline: 2px solid rgba(230, 46, 55, 0.5);
  outline-offset: 2px;
}

.lang-dropdown:hover {
  border-color: rgba(230, 46, 55, 0.4);
  box-shadow: 0 8px 30px rgba(230, 46, 55, 0.15);
  transform: translateY(-2px);
}

.lang-dropdown.active {
  border-color: rgba(230, 46, 55, 0.6);
  box-shadow: 0 12px 40px rgba(230, 46, 55, 0.2);
}

.lang-dropdown:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.lang {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  width: 100%;
}

.lang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e62e37 0%, #dc3545 100%);
  border-radius: 50%;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(230, 46, 55, 0.3);
  flex-shrink: 0;
}

.lang-dropdown:hover .lang-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(230, 46, 55, 0.4);
}

.lang-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.current-lang {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  flex: 1;
}

.arrow-icon {
  font-size: 10px;
  color: #666;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.lang-dropdown.active .arrow-icon {
  transform: rotate(180deg);
  color: #e62e37;
}

/* Language Options Dropdown */
.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(230, 46, 55, 0.1);
  border-radius: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  min-width: 180px;
  padding: 12px 0;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  pointer-events: auto;
}

.language-options.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  text-decoration: none;
  color: #555;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 1000;
  /* Ensure link behavior */
  display: block;
  width: 100%;
  box-sizing: border-box;
  /* Prevent event conflicts */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.language-option:hover {
  background: rgba(230, 46, 55, 0.05);
  color: #e62e37;
  padding-left: 25px;
  transform: translateX(5px);
  cursor: pointer;
  text-decoration: none;
}

.language-option:focus {
  outline: 2px solid rgba(230, 46, 55, 0.3);
  outline-offset: -2px;
  background: rgba(230, 46, 55, 0.05);
  text-decoration: none;
}

.language-option:active {
  transform: scale(0.98);
  background: rgba(230, 46, 55, 0.1);
  cursor: pointer;
  text-decoration: none;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 46, 55, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.language-option:hover::before {
  left: 100%;
}

.language-option.active {
  background: linear-gradient(135deg, #e62e37 0%, #dc3545 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(230, 46, 55, 0.3);
  cursor: pointer;
  text-decoration: none;
}

.language-option.active:hover {
  background: linear-gradient(135deg, #d63384 0%, #e62e37 100%);
  transform: translateX(5px);
  cursor: pointer;
  text-decoration: none;
}

.option-text {
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
}

.check-icon {
  font-size: 12px;
  opacity: 0.8;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.language-option:hover .check-icon {
  transform: scale(1.2);
}

/* Force visibility for debugging */
.language-options.debug {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: red !important;
  border: 3px solid yellow !important;
  z-index: 99999 !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  min-width: 180px !important;
  padding: 12px 0 !important;
  pointer-events: auto !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .lang-dropdown {
    min-width: 120px;
    padding: 6px 12px;
  }
  
  .current-lang {
    font-size: 13px;
    max-width: 60px;
  }
  
  .lang-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .language-options {
    min-width: 160px;
    right: -10px;
  }
}

/* Animation for dropdown items */
.language-option {
  animation: slideInFromTop 0.3s ease forwards;
  animation-delay: calc(var(--item-index) * 0.05s);
  opacity: 0;
  transform: translateY(-10px);
}

.language-options.show .language-option {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 

 