/* ================================
   HEADER
   ================================ */
.header {
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
}

/* Left Group */
.header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo-icon {
  width: auto;
  height: 28px;
}

.header__logo-text {
  height: 18px;
  width: auto;
  display: none;
}

/* Mobile menu button */
.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
}

.header__menu-icon {
  width: 24px;
  height: 24px;
  stroke: var(--velvet-black);
}

/* Desktop Navigation */
.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 48px;
}

.header__nav-link {
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--velvet-black);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--imperial-purple);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__nav-link:hover {
  color: var(--imperial-purple);
}

.header__nav-link:hover::after {
  width: 100%;
}

/* Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__location {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--soft-gray);
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: 13px;
  color: var(--velvet-black);
  cursor: pointer;
  transition: background-color 0.2s ease;
  max-width: 180px;
}

.header__location-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header__location:hover {
  background-color: #eeeeec;
}

.header__location-icon {
  width: 12px;
  height: 12px;
  stroke: var(--velvet-black);
}

.header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
}

.header__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.header__icon-btn:hover .header__icon {
  opacity: 0.6;
}

/* Hide desktop-only actions on mobile */
.header__icon-btn--desktop {
  display: none;
}

/* ================================
   TABLET (768px+)
   ================================ */
@media (min-width: 768px) {
  .header__container {
    padding: 0 40px;
    height: 84px;
  }

  .header__menu-btn {
    display: none;
  }

  .header__logo-icon {
    height: 36px;
  }

  /* Keep logo text hidden at smaller tablet sizes */
  .header__logo-text {
    display: none;
  }

  .header__nav {
    display: block;
  }

  /* Reduced gap to prevent overlap */
  .header__nav-list {
    gap: 24px;
  }

  .header__location {
    font-size: 14px;
    padding: 10px 18px;
  }

  .header__actions {
    gap: 20px;
  }

  .header__icon-btn--desktop {
    display: flex;
  }
}

/* ================================
   SMALL DESKTOP (900px+)
   ================================ */
@media (min-width: 900px) {
  .header__container {
    padding: 0 60px;
  }

  /* Increase nav spacing slightly */
  .header__nav-list {
    gap: 28px;
  }

  .header__actions {
    gap: 24px;
  }
}

/* ================================
   MEDIUM DESKTOP (1100px+)
   ================================ */
@media (min-width: 1100px) {
  /* Show full logo at larger screens */
  .header__logo-text {
    display: block;
    height: 22px;
  }

  /* Increase nav spacing */
  .header__nav-list {
    gap: 36px;
  }
}

/* ================================
   LARGE DESKTOP (1280px+)
   ================================ */
@media (min-width: 1280px) {
  /* Full desktop spacing */
  .header__nav-list {
    gap: 48px;
  }
}
