/* Header (shared, unified) */
.hm-header {
  min-height: 50px; /* slightly shorter, tighter bar */
  background: #fff;
  border-bottom: 1px solid var(--hm-border);
  position: relative;
  z-index: 1000;
}

/* Center header content */
.hm-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand logo text */
.hm-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--hm-accent);
  text-decoration: none;
  white-space: nowrap;
}

/* Right-hand icon row */
.right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Generic icon wrapper */
.hm-icon {
  color: #444;
  display: inline-grid;
  place-items: center;
}

/* SVG icons (search, chat, heart, bell, cart, account) */
.hm-icon svg {
  width: 24px;   /* was 20px */
  height: 24px;  /* was 20px */
  stroke-width: 2;
  display: block;
}

/* Account icon + login badge */
.hm-account {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;   /* was 22px */
  height: 26px;  /* was 22px */
}

.hm-account svg {
  width: 24px;   /* was 20px */
  height: 24px;  /* was 20px */
  stroke-width: 2;
  display: block;
}

/* Status dot */
.hm-account-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #d1d5db;
}

.hm-account.is-logged-in .hm-account-badge {
  background: #16a34a;
}

.hm-account.is-logged-out .hm-account-badge {
  background: #d1d5db;
}

/* Hamburger button */
.hamburger {
  display: inline-grid;
  place-items: center;
  width: 34px;   /* was 30px */
  height: 34px;  /* was 30px */
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.hamburger svg {
  width: 24px;   /* was 20px */
  height: 24px;  /* was 20px */
  stroke-width: 2;
}

/* OLD initials avatar */
.hm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hm-border);
  background: #fff;
  color: #334155;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  background-size: cover;
  background-position: center;
}

/* Primary “Sell” button */
.hm-btn-primary {
  background: var(--hm-accent);
  color: #fff;
  border: 1px solid var(--hm-accent);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(153, 27, 27, 0.25);
  white-space: nowrap;
}

/* Left slide-out sheet */
.sheet {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(84vw, 340px);
  background: #fff;
  border-right: 1px solid var(--hm-border);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 1002;
  display: flex;
  flex-direction: column;
}

.sheet.open {
  transform: translateX(0);
}

.sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid var(--hm-border);
}

.sheet nav {
  display: grid;
  padding: 10px;
}

.sheet nav a {
  padding: 10px;
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  text-decoration: none;
  color: #1f2937;
}

.sheet nav a + a {
  margin-top: 8px;
}

.sheet .close {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hm-border);
  border-radius: 8px;
  background: #fff;
  color: #444;
  cursor: pointer;
}

/* Overlay */
#sheetOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1px);
  display: none;
  z-index: 1001;
}

#sheetOverlay.show {
  display: block;
}

/* Small screens */
@media (max-width: 640px) {
  .hm-header .wrap {
    padding: 0 6px;
  }

  .hm-brand {
    font-size: 18px;
    max-width: 80px;
    line-height: 1.1;
    white-space: normal;
  }

  .right {
    gap: 6px;
  }

  .hm-icon svg {
    width: 22px;   /* was 18px */
    height: 22px;  /* was 18px */
  }

  .hm-account {
    width: 24px;   /* was 20px */
    height: 24px;  /* was 20px */
  }

  .hm-account svg {
    width: 22px;   /* was 18px */
    height: 22px;  /* was 18px */
  }

  .hamburger {
    width: 30px;   /* was 26px */
    height: 30px;  /* was 26px */
  }

  .hamburger svg {
    width: 22px;   /* was 18px */
    height: 22px;  /* was 18px */
  }

  .hm-btn-primary {
    padding: 6px 12px;
    font-size: 13px;
  }
}
