/* === MAIN HEADER === */

.header {
  background-color: #0f0f0f;
  color: white;
  padding-left: 24px;
  padding-right: 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  border-bottom: 1px solid #222;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.08);
}

.header-left-section {
  width: 180px;
  flex-shrink: 0;
}

.header-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.header-link:hover {
  border: 1px solid #00d4ff;
  background-color: rgba(0, 212, 255, 0.1);
}

.logo {
  width: 110px;
  margin-top: 6px;
  filter: brightness(1.05);
}

.mobile-logo {
  display: none;
}

.header-middle-section {
  flex: 1;
  max-width: 850px;
  margin-left: 20px;
  margin-right: 20px;
  display: flex;
}

.search-bar {
  flex: 1;
  width: 0;
  font-size: 16px;
  height: 42px;
  padding-left: 18px;
  background-color: #1f1f1f;
  color: #e0e0e0;
  border: 1px solid #444;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  outline: none;
}

.search-bar::placeholder {
  color: #888;
}

.search-button {
  background-color: #00d4ff;
  border: none;
  width: 48px;
  height: 42px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: #00b8d4;
}

.search-icon {
  height: 22px;
  filter: brightness(0.1);
}

.header-right-section {
  width: 190px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.orders-link {
  color: white;
  text-decoration: none;
  line-height: 1.2;
}

.returns-text {
  display: block;
  font-size: 13px;
  opacity: 0.85;
}

.orders-text {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.cart-link {
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.cart-link:hover {
  background-color: rgba(0, 212, 255, 0.1);
}

.cart-icon {
  width: 48px;
}

.cart-text {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  margin-left: 4px;
}

.cart-quantity {
  background-color: #00d4ff;
  color: #000;
  font-size: 15px;
  font-weight: 700;

  position: absolute;
  top: 6px;
  left: 26px;
  
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

@media (max-width: 800px) {
  .header-left-section {
    width: unset;
  }
}


@media (max-width: 575px) {
  .logo {
    display: none;
  }

  .mobile-logo {
    display: block;
    height: 38px;
    margin-top: 6px;
  }

  .header {
    padding-left: 8px;
    padding-right: 8px;
  }

  .header-middle-section {
    margin-left: 0px;
    margin-right: 0px;
  }

  .cart-text {
    display: none;
  }


.header-right-section {
    width: unset;
    gap: 0px;
}

  .header-middle-section.active {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: #0f0f0f; 
    z-index: 1100;
    margin: 0;
    padding: 0 12px; 
    display: flex;
    align-items: center;
  }

  .header-middle-section.active .search-bar {
    flex: 1; 
    width: 100%;
    display: block; 
  }

  .header-middle-section.active .search-button {
    display: flex;
    flex-shrink: 0;
  }

}
