/* ================= HEADER ================= */
#site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
}

#site-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

#site-header .brand .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* Right side: cart + socials + nav + burger */
#site-header .header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Cart */
#site-header .cart-link {
  position: relative;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
#site-header .cart-link svg {
  width: 22px;
  height: 22px;
}
#site-header .cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Social icons */
#site-header .social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
#site-header .social-icons a {
  color: var(--text);
  transition: .2s;
}
#site-header .social-icons a:hover {
  color: var(--accent);
}

/* Navigation */
#site-header .nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
#site-header .nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  display: block;
}
#site-header .nav a.btn {
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
}

/* Dropdown menus hidden by default */
.dropdown-menu,
.submenu-menu {
  display: none;
}

/* Desktop dropdown */
@media (min-width: 821px) {
  .dropdown {
    position: relative;
  }
 .dropdown-toggle {
  font-weight: 600;
  color: var(--accent) !important;
}
.dropdown-toggle:hover {
  text-decoration: underline;
}
  .dropdown-menu {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 220px;
    z-index: 1000;
    padding: 6px 0;
  }
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  .dropdown-menu li {
    position: relative;
  }
  .dropdown-menu a {
    padding: 8px 12px;
    color: var(--text);
    display: block;
  }
  .dropdown-menu a:hover {
    background: var(--accent);
    color: #fff;
  }

  /* Submenu products on left */
  .submenu-menu {
    position: absolute;
    top: 0;
    right: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 200px;
    padding: 6px 0;
  }
  .submenu:hover .submenu-menu {
    display: block;
  }
}

/* Burger */
#site-header .menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
#site-header .menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text);
  display: block;
}

/* Mobile */
@media (max-width: 820px) {
  #site-header .nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    position: absolute;
    top: 60px;
    right: 20px;
    z-index: 10;
  }
  #site-header .nav.active {
    display: flex;
  }
  #site-header .menu-toggle {
    display: flex;
  }

  /* Mobile dropdowns controlled by JS */
  .dropdown-menu,
  .submenu-menu {
    position: static;
    border: none;
    background: transparent;
    display: none;
  }
  .dropdown-menu.open,
  .submenu-menu.open {
    display: block;
    margin-left: 15px;
  }
}
/* Full category link inside submenu */
.full-category-link {
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 8px 12px;
  display: block;
  border-radius: 6px;
  margin: 6px 10px;
  text-align: center;
}
.full-category-link:hover {
  background: #c50510; /* darker red for hover */
  color: #fff;
}

/* Search Icon */
.search-icon {
  cursor: pointer;
  font-size: 18px;
  margin-left: 20px;
  color: #999;
}

.search-icon:hover {
  color: #e30613;
}

/* Popup Background */
.search-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Search Box */
.search-box {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 60%;
  max-width: 600px;
}
.search-box select,
.search-box input {
  padding: 8px;
  font-size: 14px;
}
.search-box button {
  background: #e30613;
  border: none;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}
.search-icon {
  cursor: pointer;
  margin-left: 15px;
  font-size: 18px;
  z-index: 10000; /* make sure it’s above header */
}
.search-popup {
  display: none;                /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.search-box {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 70%;
  max-width: 700px;
}
/* ================= Announcement Bar ================= */
.announcement-bar {
  background: #e30613; /* Sonit red */
  color: #fff;
  font-size: 0.85rem;       /* smaller text */
  font-weight: 500;
  text-align: center;
  padding: 4px 20px;        /* thinner padding */
  position: relative;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;    /* slightly tighter */
  line-height: 1.2;         /* reduces vertical space */
}

.announcement-bar span {
  flex: 1;
}

.announcement-bar .close-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;          /* slightly smaller icon */
  cursor: pointer;
  transition: 0.2s;
}

.announcement-bar .close-btn:hover {
  transform: translateY(-50%) scale(1.1);
  color: #ffd1d1;
}

/* Smooth fade-out when closing */
.announcement-bar.fade-out {
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s ease;
}

/* Sticks to top on scroll */
.announcement-bar {
  position: sticky;
  top: 0;
}


