/* ===== HEADER UPDATES - MATCHING DESIGN ===== */

/* Ensure header matches the design exactly */
.header-container {
  background: #ffffff;
  border-radius: 50px;
  margin: 0 20px;
  overflow: hidden;
  margin-top: 25px;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Header Top Bar - Dark Grey */
.header-top {
  background: #2c2c2c !important;
  color: #ffffff !important;
  padding: 20px 0 !important;
  border-radius: 50px 30px 0 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: 90px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out !important;
}

/* Sticky Top Header */
.header-top.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1001 !important;
  border-radius: 0 !important;
  background: rgba(44, 44, 44, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 50px;
  gap: 20px;
}

/* Contact Info Styling */
.header-contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
}

.contact-item i {
  display: none;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #e62e37;
}

/* Social Links Styling */
.header-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 1;
  margin-right: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border-radius: 0;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.social-link:hover {
  background: transparent;
  transform: translateY(-2px);
  color: #e62e37;
}

.social-link i {
  font-size: 1.1rem;
}

/* Main Navigation Bar */
.navbar {
  background: #f8f9fa !important;
  padding: 20px 0;
  border-bottom: none;
  border-radius: 50px;
  margin-top: -25px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease-in-out !important;
}

/* Sticky Main Navigation */
.navbar.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(248, 249, 250, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Body padding when headers are sticky */
body.header-sticky {
  padding-top: 160px !important; /* Adjust based on combined header height */
}

/* Responsive sticky behavior */
@media (max-width: 768px) {
  .navbar.sticky {
    top: 50px !important; /* Smaller offset for mobile */
  }
  
  body.header-sticky {
    padding-top: 130px !important; /* Smaller padding for mobile */
  }
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 30px;
}

/* Logo Styling */
.navbar-brand {
  position: relative;
  left: 0;
  top: 0;
  transform: none;
  z-index: 15;
  margin: 0;
  padding: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  order: 1;
}

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

.logo-main {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 2px;
}

.logo-main span:first-child {
  color: #e62e37;
}

.logo-main span:last-child {
  color: #e62e37;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.logo-arabic {
  font-size: 0.6rem;
  color: #333333;
  font-weight: 500;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
  order: 2;
  flex: 1;
}

.nav-item {
  margin: 0 2px;
  flex: 0 0 auto;
  text-align: center;
}

.nav-link {
  padding: 10px 12px;
  color: #333333;
  text-decoration: none;
  border-radius: 50px;
  background: transparent;
  transition: all 0.3s ease;
  display: block;
  white-space: nowrap;
  text-align: center;
  min-width: fit-content;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: #e62e37;
  background: rgba(230, 46, 55, 0.1);
  transform: translateY(-2px);
}

.nav-item.active .nav-link {
  color: #e62e37;
  background: rgba(230, 46, 55, 0.15);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(230, 46, 55, 0.2);
}

/* Header Right Section */
.header-right {
  position: relative;
  right: 0;
  top: 0;
  transform: none;
  z-index: 15;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  order: 3;
}

.header-utility-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Utility Icons */
.language-toggle,
.cart-link,
.user-icon .dropdown-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.language-toggle:hover,
.cart-link:hover,
.user-icon .dropdown-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #e62e37;
  transform: translateY(-2px);
}

/* Language Dropdown */
.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 150px;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  list-style: none;
  display: block;
}

.language-switcher {
  position: relative;
}

/* Language dropdown visibility states */
.language-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.language-dropdown.hide {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
}

/* Keep hover for fallback */
.language-switcher:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ensure language dropdown appears above hero section */
.language-dropdown {
  position: absolute;
  z-index: 9999 !important;
}

.language-option {
  display: block;
  padding: 10px 20px;
  color: #333333;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 50px;
  margin: 2px 8px;
  font-size: 14px;
}

.language-option:hover,
.language-option.active {
  background: rgba(230, 46, 55, 0.1);
  color: #e62e37;
}

/* Cart Icon */
.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e62e37;
  color: #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* User Icon Dropdown */
.user-icon .dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 200px;
  margin-top: 10px;
  list-style: none;
}

.dropdown-item {
  color: #333333;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  transition: all 0.3s ease;
  border-radius: 50px;
  margin: 2px 8px;
  font-size: 14px;
}

.dropdown-item:hover {
  background: rgba(230, 46, 55, 0.1);
  color: #e62e37;
}

/* Mobile Menu Button */
.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(0, 0, 0, 0.1);
}

.navbar-toggler .navbar-toggler-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.navbar-toggler .navbar-toggler-icon i {
  font-size: 1.2rem;
  color: #333333;
}

/* RTL Support */
[dir="rtl"] .navbar-brand {
  order: 3;
}

[dir="rtl"] .logo-text-container {
  align-items: flex-end;
}

[dir="rtl"] .header-right {
  right: auto;
  left: 0;
  order: 1;
}

/* RTL Support for Contact Info */
[dir="rtl"] .header-contact-info {
  flex-direction: row;
  direction: ltr;
}

[dir="rtl"] .contact-item {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .contact-link {
  direction: ltr;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 991px) {
  .header-top {
    min-height: 75px;
    padding: 15px 0 !important;
  }
  
  .navbar {
    margin-top: -20px;
    margin-bottom: 15px;
  }
  
  .header-contact-info {
    gap: 8px;
    margin-left: 15px;
  }
  
  .header-social-links {
    gap: 6px;
    margin-right: 15px;
  }
  
  .social-link {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
  }
  
  .social-link i {
    font-size: 0.95rem;
  }
  
  .navbar-brand .logo {
    height: 40px;
  }
  
  .logo-main {
    font-size: 1.6rem;
  }
  
  .logo-sub {
    font-size: 0.6rem;
  }
  
  .logo-arabic {
    font-size: 0.5rem;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .header-right {
    order: 2;
  }
  
  .navbar-toggler {
    display: block;
    order: 3;
  }
}

@media (max-width: 768px) {
  .header-top {
    min-height: 65px;
    padding: 12px 0 !important;
  }
  
  .navbar {
    margin-top: -18px;
    margin-bottom: 12px;
  }
  
  .header-top .container {
    padding: 0 35px;
    gap: 12px;
  }
  
  .header-contact-info {
    gap: 6px;
    margin-left: 12px;
  }
  
  .header-social-links {
    gap: 5px;
    margin-right: 12px;
  }
  
  .social-link {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
  }
  
  .social-link i {
    font-size: 0.85rem;
  }
  
  .navbar .container {
    padding: 0 20px;
  }
  
  .header-utility-icons {
    gap: 8px;
    padding: 6px 12px;
  }
  
  .language-toggle,
  .cart-link,
  .user-icon .dropdown-toggle {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .navbar-brand .logo {
    height: 35px;
  }
  
  .logo-main {
    font-size: 1.4rem;
  }
  
  .logo-sub {
    font-size: 0.5rem;
  }
  
  .logo-arabic {
    font-size: 0.4rem;
  }
}

@media (max-width: 480px) {
  .header-top {
    min-height: 55px;
    padding: 10px 0 !important;
  }
  
  .navbar {
    margin-top: -15px;
    margin-bottom: 10px;
  }
  
  .header-top .container {
    padding: 0 25px;
    gap: 8px;
  }
  
  .header-contact-info {
    gap: 4px;
    margin-left: 8px;
  }
  
  .header-social-links {
    gap: 4px;
    margin-right: 8px;
  }
  
  .social-link {
    width: 27px;
    height: 27px;
    background: transparent;
    border: none;
  }
  
  .social-link i {
    font-size: 0.75rem;
  }
  
  .navbar-brand .logo {
    height: 30px;
  }
  
  .logo-main {
    font-size: 1.2rem;
  }
  
  .logo-sub {
    font-size: 0.4rem;
  }
  
  .logo-arabic {
    font-size: 0.3rem;
  }
  
  .header-utility-icons {
    gap: 6px;
    padding: 4px 8px;
  }
  
  .language-toggle,
  .cart-link,
  .user-icon .dropdown-toggle {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/* Ensure proper spacing and alignment */
.header-container {
  margin-top: 25px;
}

.header-top {
  border-radius: 50px 30px 0 0;
}

.navbar {
  border-radius: 50px;
}

/* Fix any potential conflicts */
.navbar-nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-nav .nav-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-nav .nav-link {
  margin: 0;
  padding: 12px 16px;
}

/* Remove bullets from all dropdowns and lists */
.dropdown-menu,
.language-dropdown,
.user-icon .dropdown-menu,
.nav-menu,
.navbar-nav {
  list-style: none !important;
}

.dropdown-menu li,
.language-dropdown li,
.user-icon .dropdown-menu li,
.nav-menu li,
.navbar-nav li {
  list-style: none !important;
}

.dropdown-menu::before,
.dropdown-menu::after,
.language-dropdown::before,
.language-dropdown::after,
.user-icon .dropdown-menu::before,
.user-icon .dropdown-menu::after {
  display: none !important;
}

/* Ensure no bullets in any navigation elements */
.nav-item,
.nav-link,
.dropdown-item {
  list-style: none !important;
}

/* Additional rules to ensure no bullets anywhere */
* {
  list-style-type: none;
}

ul, ol {
  list-style: none !important;
  list-style-type: none !important;
}

ul li, ol li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Override any Bootstrap or other framework list styles */
.list-unstyled {
  list-style: none !important;
}

.navbar-nav,
.dropdown-menu,
.language-dropdown,
.user-icon .dropdown-menu {
  list-style: none !important;
  list-style-type: none !important;
}

.navbar-nav li,
.dropdown-menu li,
.language-dropdown li,
.user-icon .dropdown-menu li {
  list-style: none !important;
  list-style-type: none !important;
} 