/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 50;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 🔥 magic */
  align-items: center;
  background: #000;
  color: #fff;
  padding: 8px 16px;
}

/* Center text PERFECTLY */
.announcement-text {
  grid-column: 2;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  animation: blink 2.5s infinite;
  white-space: nowrap;
}

/* Language always right */
.lang-switcher {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 6px;
}
.lang-btn {
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

/* Hover */
.lang-btn:hover {
  color: #b91c1c;
}

/* ACTIVE LANGUAGE 🔥 */
.lang-btn.active {
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .lang-switcher {
    display: none;
  }
}


/* Currency always left */
.currency-switcher {
  justify-self: start;
  display: flex;
  gap: 6px;
}

.currency-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

/* Hover */
.currency-btn:hover {
  color: #b91c1c;
}

/* ACTIVE CURRENCY 🔥 */
.currency-btn.active {
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .currency-switcher {
    display: none;
  }
}

html[dir="rtl"] .announcement-bar {
  direction: rtl;
}


/* ===== SOCIAL BAR ===== */
.social-bar {
    background: linear-gradient(to right, #b91c1c, #fee2e2, #ffffff);
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    display: flex;
    justify-content: center;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: #000;
}

/* ===== MAIN HEADER ===== */
.header-main {
    padding: 0px 20px;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Burger */
.burger {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Desktop / Mobile helpers */
.desktop-only {
  display: flex;
}
.mobile-only {
  display: none;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.mobile-menu {
  width: 280px;
  height: 100%;
  background: #fff;
  padding: 20px;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
}

/* Mobile icons */
.mobile-icons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}

.header-logo {
    height: 80px;
    cursor: pointer;
}

.search-wrapper {
    width: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}

.search-box{
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem; /* py-3 pl-12 pr-4 */
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb; /* gray-200 */
  color: #1f2937; /* gray-800 */
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Placeholder */
.search-input::placeholder {
  color: #9ca3af; /* gray-400 */
}

/* Focus */
.search-input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Icon */
.search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #6b7280; /* gray-500 */
  pointer-events: none;
}

@media (max-width: 768px) {
    .search-wrapper {
        display: none;
    }
}

/* ===== ICONS ===== */
.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    @media (max-width: 768px) {
        display: none;
    }
}

.admin-link {
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.admin-link:hover {
    background: linear-gradient(to right, #dbeafe, #eff6ff, #ffffff);
}

.admin-icon {
    width: 20px;
    height: 20px;
}

/* ===== SPACER ===== */
.header-spacer {
    height: 140px;
}

/* ===== ANIMATION ===== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}


/* ===== RTL SUPPORT ===== */
html[dir="rtl"] .header-container {
  flex-direction: row-reverse;
}

html[dir="rtl"] .search-wrapper {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

html[dir="rtl"] .mobile-menu {
  animation: slideInRTL 0.25s ease;
}

@keyframes slideInRTL {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
/* END OF FILE */
/* ===== MOBILE MENU HEADER ===== */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.menu-title {
  font-size: 16px;
  font-weight: 700;
  padding: 5px 5px;
}

/* ===== MOBILE SEARCH ===== */
.mobile-search {
  margin-bottom: 10px;
}

/* ===== MOBILE ACTIONS ===== */
.mobile-actions {
  display: flex;
  justify-content: space-between; /* spread evenly */
  align-items: center;
  gap: 12px;
  width: 100%;
}

.action-btn {
  display: flex;
  flex-direction: column; /* icon on top, text below */
  align-items: center;
  border-radius: 8px;
  justify-content: center;
  padding: 8px 6px;
  cursor: pointer;
}

/* Optional: hover / active */
.action-btn:hover {
  background: transparent;
  border: none;
}

.action-btn svg {
  width: 22px;
  height: 22px;
}

/* ===== MOBILE LANGUAGE ===== */
.mobile-lang-switcher {
  margin-top: auto;
}

.lang-title {
  font-size: 14px;
  font-weight: 600;
  padding: 5px 5px;
  margin-bottom: 10px;
}

.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-around;
}

/* Override lang buttons ONLY inside mobile menu */
.mobile-lang-switcher .lang-btn {
  background: #eee;
  color: #000;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.mobile-lang-switcher .lang-btn.active {
  background: #000;
  color: #fff;
}


/* ===== MOBILE CURRENCIES ===== */
.mobile-currency-switcher {
  margin-top: auto;
  padding-top: 16px;
}

.currency-title {
  font-size: 14px;
  font-weight: 600;
  padding: 5px 5px;
  margin-bottom: 10px;
}

.currency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-around;
}

/* Override currency buttons ONLY inside mobile menu */
.mobile-currency-switcher .currency-btn {
  background: #eee;
  color: #000;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.mobile-currency-switcher .currency-btn.active {
  background: #000;
  color: #fff;
}

.currency-title {
  font-size: 14px;
  font-weight: 600;
  padding: 5px 5px;
  margin-bottom: 10px;
}

.currency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-around;
}

/* ===== PAGES NAVIGATION MOBILE HEADER ===== */

.mobile-pages-switcher {
  padding-top: 16px;
}

/* Nav container */
.mobile-pages-switcher nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Links */
.mobile-pages-switcher a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  background: #f7f7f7;
  transition: all 0.2s ease;
}

/* Hover / tap effect */
.mobile-pages-switcher a:hover,
.mobile-pages-switcher a.router-link-active {
  background: #111;
  color: #fff;
}

/* Press effect */
.mobile-pages-switcher a:active {
  transform: scale(0.97);
}

/* RTL support */
:dir(rtl) .mobile-pages-switcher {
  text-align: right;
}


/* ===== BURGER ANIMATION (OPTIONAL NICE TOUCH) ===== */
.burger {
  transition: transform 0.2s ease;
}

.burger:active {
  transform: scale(0.95);
}

/* ===== RTL SUPPORT ===== */
html[dir="rtl"] .mobile-menu {
  animation: slideInRtl 0.25s ease;
}

@keyframes slideInRtl {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.burger-icon {
  stroke: #000;
  stroke-width: 2;
  stroke-linecap: round;
  transition: all 0.25s ease;
}

/* Hover effect */
.burger:hover .burger-icon {
  stroke: #111;
}

/* Pressed */
.burger:active .burger-icon {
  transform: scale(0.95);
}
