/*=========================================================
                HEADER CSS
=========================================================*/

/*=========================================================
                TOP ANNOUNCEMENT BAR
=========================================================*/

.top-announcement-bar {
  background: var(--heading-color);
  border-bottom: none;
  padding: 6px 0;
  font-size: 13px;
  overflow: hidden;
}

.announcement-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.announcement-left,
.announcement-center,
.announcement-right {
  display: flex;
  align-items: center;
}

.announcement-left span,
.announcement-center span {
  color: var(--pure-white);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.announcement-left i {
  color: #ff4f9a;
  margin-right: 8px;
}

.announcement-right a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: 0.35s;
}

.announcement-right a:hover {
  color: var(--pure-white);
}

/*=========================================================
                    MAIN HEADER
=========================================================*/

.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

/*=========================================================
                        NAVBAR
=========================================================*/
.navbar {
  min-height: 80px;
  padding: 0;
}

/*=========================================================
                        LOGO
=========================================================*/

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-image {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: all 0.35s ease;
}

.logo-image:hover {
  transform: scale(1.02);
}

.logo-placeholder {
  width: 180px;
  height: 60px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading-color);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  font-family: 'Playfair Display', serif;
  transition: all 0.35s ease;
}

.logo-placeholder:hover {
  border-color: var(--heading-color);
  background: var(--pure-white);
}

/*=========================================================
                    NAVIGATION
=========================================================*/

.navbar-nav {
  gap: 25px;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  color: var(--heading-color);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  padding: 28px 4px !important;
  transition: all 0.35s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.main-header .nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: 0.35s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/*=========================================================
                    HEADER ICONS
=========================================================*/

.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-icon {
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  outline: none;
  border-radius: 50%;
  background: transparent;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
}

.header-icon:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.header-icon i {
  font-size: 18px;
}

/*=========================================================
                        CART COUNT
=========================================================*/

.cart-count {
  position: absolute;

  top: -3px;

  right: -2px;

  width: 20px;

  height: 20px;

  border-radius: 50%;

  background: #ff4f9a;

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 11px;

  font-weight: 600;
}

/*=========================================================
                    LOGIN BUTTON
=========================================================*/

.login-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  text-decoration: none;

  padding: 12px 28px;

  margin-left: 8px;

  border-radius: 4px;

  background: var(--heading-color);

  color: var(--pure-white);

  font-weight: 500;
  
  text-transform: uppercase;
  
  font-size: 13px;
  
  letter-spacing: 1px;

  transition: all 0.35s ease;
}

.login-button:hover {
  background: var(--primary-color);

  color: var(--pure-white);

  transform: translateY(-2px);

  box-shadow: 0 8px 25px rgba(244, 91, 154, 0.3);
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.account-avatar:hover {
  opacity: 0.85;
  color: #fff;
}

/*=========================================================
                    MOBILE BUTTON
=========================================================*/

.mobile-menu-button {
  border: none;

  box-shadow: none !important;

 color: var(--heading-color);

  font-size: 24px;
}

.mobile-menu-button:focus {
  box-shadow: none;
}

/*=========================================================
                RESPONSIVE HEADER
=========================================================*/

/*==============================
        LARGE DEVICES
==============================*/

@media (max-width: 1199.98px) {
  .navbar-nav {
    gap: 15px;
  }

  .nav-link {
    font-size: 14px;
    padding: 26px 4px !important;
  }

  .logo-image {
    height: 60px;
  }

  .logo-placeholder {
    width: 160px;
    height: 56px;
  }

  .login-button {
    padding: 10px 22px;
  }
}

/*==============================
        TABLET & MOBILE
==============================*/

@media (max-width: 991.98px) {
  .announcement-wrapper {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .navbar {
    min-height: 72px;
    padding: 10px 0;
  }

  .logo-image {
    height: 60px;
  }

 #mainNavbar {
  margin-top: 15px;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

  .navbar-nav {
    gap: 0;
    margin-bottom: 20px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-link::after {
    display: none;
  }

  .header-icons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .login-button {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}

/*==============================
        MOBILE
==============================*/

@media (max-width: 767.98px) {
  .top-announcement-bar {
    padding: 10px 0;
  }

  .announcement-left span,
  .announcement-center span,
  .announcement-right a {
    font-size: 12px;
  }

  .logo-image {
    height: 50px;
  }

  .logo-placeholder {
    width: 145px;
    height: 52px;
    font-size: 16px;
    letter-spacing: 2px;
  }

  .header-icon {
    width: 38px;
    height: 38px;
  }

  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

/*==============================
        SMALL MOBILE
==============================*/

@media (max-width: 575.98px) {
  .logo-placeholder {
    width: 130px;

    height: 48px;
  }

  .announcement-wrapper {
    gap: 6px;
  }

  .announcement-left span,
  .announcement-center span,
  .announcement-right a {
    font-size: 12px;
  }

  .header-icons {
    gap: 12px;
  }

  .header-icon {
    width: 40px;

    height: 40px;
  }
}


/*navbar*/
.dropdown-menu {
  z-index: 3000 !important;
}

.header-icons,
.main-navbar,
.main-header {
  overflow: visible !important;
}

/*=========================================================
        MOBILE-ONLY HEADER ICONS
=========================================================*/

.mobile-header-icons {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1199.98px) {
  .mobile-header-icons {
    display: flex;
  }

  .header-icons {
    display: none;
  }
}

/*=========================================================
            SEARCH OVERLAY
=========================================================*/

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.96);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: 0.4s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-overlay-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.search-overlay-close:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.search-overlay-inner {
  width: 90%;
  max-width: 700px;
  text-align: center;
}

.search-overlay-form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 16px;
}

.search-overlay-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

.search-overlay-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-overlay-form button {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: 0.3s;
}

.search-overlay-form button:hover {
  color: var(--primary-color);
}

.search-overlay-suggestions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-overlay-suggestions span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.search-overlay-suggestions a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  transition: 0.3s;
}

.search-overlay-suggestions a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

body.search-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .search-overlay-form input {
    font-size: 18px;
  }
}
