/* ======================
   HEADER BASE
===================== */
.telecom-header {
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ======================
   ROW STRUCTURE
===================== */
.header-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

/* FIRST ROW */
.header-top {
  justify-content: space-between;
  padding: 5px 0;
}

/* SECOND ROW */
.header-bottom {
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ======================
   LOGO
===================== */
.logo img {
  width: 100%;
  max-width: 100px; /* maximum width */
  height: 50px;
}

/* ======================
   CENTER NAV
===================== */
.nav-center {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex: 1;
  margin-left: 120px; /* 👈 push slightly to the right */
}

.nav-center a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  line-height: 1.2;
  padding: 4px 0;
}

/* underline effect */
.nav-center a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #f68b1e;
  transition: width 0.3s ease;
}

.nav-center a:hover::after {
  width: 100%;
}

/* ======================
   RIGHT SIDE
===================== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ======================
   SEARCH BAR
===================== */
.search-form {
  width: 100%;
  max-width: 550px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #999;
}

.search-form input {
  flex: 1;
  padding: 12px 15px 12px 35px;
  border: none;
  outline: none;
  background: #f5f5f5;
}

.search-form button {
  background: #f68b1e;
  color: #040535;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
}

/* ======================
   ACCOUNT + DROPDOWN
===================== */
.account-dropdown {
  position: relative;
}

.account-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  width: 220px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.25s;
}

.dropdown-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 12px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

/* ======================
   CART
===================== */
.cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ======================
   THEME BUTTON
===================== */
.theme-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ======================
   MOBILE
===================== */
@media (max-width: 768px) {

  /* SHOW hamburger */
  .menu-toggle {
    display: block;
  }

  /* TOP ROW LAYOUT */
  .header-top {
    justify-content: space-between;
  }

  /* HIDE desktop nav */
  .nav-center {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--header-bg);

    flex-direction: column;
    align-items: flex-start;
    padding: 15px;

    gap: 15px;

    /* hidden state */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: 0.3s ease;
  }

  /* SHOW menu when active */
  .nav-center.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* NAV LINKS */
  .nav-center a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* REMOVE desktop spacing */
  .nav-center {
    margin-left: 0;
  }

  /* RIGHT SIDE (keep icons) */
  .nav-right {
    gap: 12px;
  }

  /* LOGO resize */
  .logo img {
    max-width: 80px;
    height: auto;
  }

  /* SEARCH */
  .header-bottom {
    padding: 10px;
  }

  .search-form {
    width: 100%;
  }
}
