/**
 * START - Header Component Styles - By INFXO
 */
.am-header-wrapper,
.am-header-wrapper * {
  box-sizing: border-box;
}

.am-header-wrapper ul,
.am-header-wrapper li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.am-header-wrapper {
  width: 100%;
  position: relative;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(113, 18, 64, 0.05);
  border-bottom: 1px solid rgba(113, 18, 64, 0.07);
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
}

.am-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. Top Bar */
.am-topbar {
  background: #5d0c32;
  color: #ffffff;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.am-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
}

.am-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.am-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #f8fafc;
}

.am-topbar-sep {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
  user-select: none;
}

.am-topbar-icon {
  width: 14px;
  height: 14px;
  color: #fde047;
  flex-shrink: 0;
}

.am-topbar-phone {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.am-topbar-phone:hover {
  color: #4ade80;
}

.am-topbar-phone-icon {
  width: 14px;
  height: 14px;
  color: #4ade80;
  flex-shrink: 0;
}

.am-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.am-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.am-social-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.am-social-btn:hover {
  background: #711240;
  transform: translateY(-2px);
}

.am-social-svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.am-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.am-lang-switcher a {
  color: #ffffff;
  text-decoration: none;
}

.am-lang-switcher .active {
  color: #fde047;
}

.am-lang-switcher .sep {
  opacity: 0.4;
}

.am-globe-icon {
  width: 12px;
  height: 12px;
  color: #cbd5e1;
}

/* 2. Main Navigation Bar */
.am-main-header {
  background: #ffffff;
  padding: 12px 0;
}

.am-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand Section */
.am-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.am-brand-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.am-logo-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #711240;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(113, 18, 64, 0.12);
  flex-shrink: 0;
}

.am-seal-text-top {
  font-size: 14px;
  font-weight: 900;
  color: #711240;
  line-height: 1;
}

.am-seal-text-sub {
  font-size: 6.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.am-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.am-brand-title {
  font-size: 22px;
  font-weight: 900;
  color: #711240;
  line-height: 1;
  letter-spacing: 0.5px;
}

.am-brand-tagline {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  margin-top: 3px;
  line-height: 1.1;
  white-space: nowrap;
}

/* Navigation Menu */
.am-nav-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

.am-nav-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.am-nav-item {
  position: relative !important;
  list-style: none !important;
}

.am-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  text-decoration: none !important;
  padding: 14px 2px !important;
  transition: color 0.2s ease !important;
  white-space: nowrap !important;
}

.am-nav-link:hover,
.am-nav-item.active .am-nav-link {
  color: #711240 !important;
}

.am-chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
  color: #94a3b8;
}

.am-nav-item:hover .am-chevron {
  transform: rotate(180deg);
  color: #711240;
}

/* 3. Luxury Clean Mega Dropdown */
.am-mega-menu {
  position: absolute;
  top: 100%;
  right: -120px;
  width: 620px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 60px -12px rgba(113, 18, 64, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.am-mega-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.am-nav-item:hover .am-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.am-mega-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

.am-mega-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
}

.am-mega-card:hover {
  background: #fffbfe !important;
  border-color: #fbcfe8 !important;
  box-shadow: 0 8px 20px -4px rgba(113, 18, 64, 0.08) !important;
  transform: translateY(-2px) !important;
}

.am-dept-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.am-badge-or {
  background: #fdf2f8;
  color: #9d174d;
  border: 1px solid #fce7f3;
}

.am-badge-icu {
  background: #047857;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.25);
}

.am-badge-us {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.am-badge-nicu {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.am-dept-info {
  display: flex;
  flex-direction: column;
}

.am-dept-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.am-mega-card:hover .am-dept-title {
  color: #711240;
}

.am-dept-desc {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.45;
}

/* 4. Actions: Search Button & Quote Button */
.am-actions-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Strong Search Trigger Button */
.am-search-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #711240 !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.am-search-btn:hover {
  background: #711240 !important;
  border-color: #711240 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.am-search-btn svg,
.am-search-btn svg.am-search-svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  fill: none !important;
}

.am-search-btn svg circle,
.am-search-btn svg line {
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  fill: none !important;
}

.am-btn-price {
  background: #711240;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 4px 14px rgba(113, 18, 64, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  border: none;
}

.am-btn-price:hover {
  background: #560a2f;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(113, 18, 64, 0.4);
  color: #ffffff;
}

.am-price-tag-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 5. AJAX Search Modal Popup */
.am-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.am-search-modal-content {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  padding: 30px;
  position: relative;
  direction: rtl;
  text-align: right;
  transform: translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.am-search-close-btn {
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;
  right: auto !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #64748b !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.am-search-close-btn:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
  transform: rotate(90deg) !important;
}

.am-search-close-btn svg {
  stroke: currentColor !important;
  display: block !important;
}

.am-search-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #711240;
  margin: 0 0 6px 0;
}

.am-search-modal-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 18px 0;
}

.am-search-form-wrap {
  position: relative;
}

.am-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.am-search-input:focus {
  border-color: #711240;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(113, 18, 64, 0.1);
}

.am-search-submit-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
}

/* 6. WoodMart-Style Product Results Cards */
.am-ajax-results {
  margin-top: 18px;
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  display: none;
}

.am-ajax-results.active {
  display: block;
}

.am-search-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  border: 1px solid transparent !important;
  margin-bottom: 6px !important;
}

.am-search-card:hover {
  background: #fdf5f8 !important;
  border-color: #fce7f3 !important;
}

.am-search-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.am-search-card-thumb {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.am-search-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.am-search-card-thumb-empty {
  font-size: 13px;
  font-weight: 900;
  color: #711240;
}

.am-search-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.am-search-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.am-search-card:hover .am-search-card-title {
  color: #711240;
}

.am-search-card-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.am-search-card-cat {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.am-search-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.am-search-card-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #711240;
  white-space: nowrap;
}

.am-search-card-action {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
}

/* Footer view all link */
.am-search-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.am-search-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #711240;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  background: #fdf2f6;
  transition: all 0.2s ease;
}

.am-search-view-all:hover {
  background: #711240;
  color: #ffffff;
}

.am-search-state-msg {
  text-align: center;
  padding: 24px 10px;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .am-nav-list {
    gap: 16px !important;
  }
  .am-nav-link {
    font-size: 13.5px !important;
  }
  .am-mega-menu {
    width: 540px;
  }
}

@media (max-width: 1024px) {
  .am-nav-wrap {
    display: none !important;
  }
  .am-topbar-inner {
    font-size: 11px;
  }
}
/**
 * END - Header Component Styles - infxo.com
 */