.hero {
  padding: 1.1rem 0 0.9rem;
  min-height: 0;
  display: block;
}

.nav-wide,
.hero-wide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(0.45rem, 1vw, 0.9rem);
}

.menu-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.menu-left {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: #fff6ef;
  font-size: clamp(2rem, 2.7vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-wordmark em {
  color: #e6a04e;
  font-style: normal;
}

.menu-location {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  text-decoration: none;
  color: #fff6ef;
  min-width: 0;
}

.menu-location svg {
  width: 25px;
  height: 25px;
  fill: #fff6ef;
  flex: 0 0 auto;
}

.menu-location-text {
  display: grid;
  line-height: 1.02;
}

.menu-location-text small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ead9cc;
}

.menu-location-text strong {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
}

.menu-right {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.search-top-wrap {
  width: clamp(260px, 32vw, 520px);
}

.search-top-wrap input {
  width: 100%;
  border: 1px solid #ffffff40;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  background: #fff9f5;
  color: #2f2824;
  font-size: 0.8rem;
}

.search-top-wrap input::placeholder {
  color: #6d6057;
}

.profile-top {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff6ef;
  text-decoration: none;
  font-size: clamp(0.88rem, 1.1vw, 1.05rem);
  font-weight: 800;
}

.profile-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.profile-top .profile-top-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.profile-top-photo {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #ffffff66;
  background: #2f2824;
  display: none;
  flex: 0 0 auto;
}

.profile-top.logged .profile-top-icon {
  display: none;
}

.profile-top.logged .profile-top-photo {
  display: block;
}

.notify-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff6ef;
  text-decoration: none;
}

.notify-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.hero-menu {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 2rem);
  flex-wrap: wrap;
}

.hero-menu a {
  text-decoration: none;
  color: #fff6ef;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 800;
  line-height: 1;
}

.hero-menu a.em {
  font-style: italic;
  font-weight: 900;
}

.hero-menu a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff6ef;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 1.12rem;
  line-height: 1;
  text-decoration: none;
}

.brand-pill span {
  color: #ffb080;
}

.hero .cart-link,
.hero .notify-link,
.hero-userchip,
.hero-logout-mini {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border: none;
  color: #fff6ef;
}

.hero .cart-link,
.hero .notify-link {
  padding: 0;
}

.hero .cart-link:hover,
.hero-logout-mini:hover {
  text-decoration: underline;
}

.hero-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Keep one standard header shape across all pages. */
.hero-bottom {
  display: none;
}

.hero-userchip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-userchip img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  border: none;
  background: #1a1512;
}

.hero-userchip strong {
  font-weight: 900;
  letter-spacing: 0.15px;
  font-size: 0.84rem;
}

.hero-logout-mini {
  cursor: pointer;
  font-weight: 900;
  font-size: 0.82rem;
  font-family: inherit;
}

.notify-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.notify-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 24px #2f211810;
}

.account-head {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.account-head img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.account-head strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.account-head span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.section-head {
  margin-top: 0.95rem;
}

.section-head h1 {
  font-size: clamp(1.35rem, 3.1vw, 1.9rem);
}

.section-head p {
  color: var(--muted);
  margin-top: 0.1rem;
}

.repo-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.repo-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem;
  display: grid;
  gap: 0.32rem;
  min-height: 108px;
  align-content: start;
  text-align: left;
  color: #1f1f1f;
  text-decoration: none;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.repo-card:hover {
  border-color: #d7c6bb;
  box-shadow: 0 8px 18px #2f211810;
}

.repo-card.active {
  border: 2px solid #1f1f1f;
  background: #fff;
  box-shadow: none;
}

.repo-card .icn {
  font-size: 0.92rem;
  font-weight: 900;
  color: #6e6761;
  line-height: 1;
}

.repo-card h3 {
  font-size: 1.02rem;
}

.repo-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.32;
}

.directory-nav {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.directory-nav a {
  border: 1px solid var(--line);
  background: #fff3e8;
  color: #2f2824;
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  font-weight: 900;
  font-size: 0.8rem;
  text-decoration: none;
}

.directory-nav a.active {
  background: #ffd7b8;
  border-color: #eac8bb;
}

.directory-content {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.85rem;
}

.orders-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.orders-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: #fffdfb;
}

.orders-group-head h3 {
  font-size: 1rem;
}

.orders-count {
  color: var(--muted);
  font-weight: 900;
  font-size: 0.85rem;
}

.orders-list {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
}

.orders-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem;
  background: #fff;
  display: grid;
  gap: 0.45rem;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
  display: grid;
  gap: 0.32rem;
}

.mini-head {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.order-top {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.order-id {
  font-weight: 900;
  letter-spacing: 0.25px;
}

.order-total {
  font-weight: 900;
  font-size: 1rem;
}

.order-mid {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.chip {
  font-weight: 900;
  font-size: 0.78rem;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: #fff3e8;
  border: 1px solid var(--line);
}

.chip.status-delivered {
  background: #e9fff1;
  border-color: #b9e3c8;
  color: #18663f;
}

.chip.status-progress {
  background: #fff3e8;
  border-color: var(--line);
  color: #8c3c26;
}

.chip.status-cancelled {
  background: #fff0f0;
  border-color: #f0baba;
  color: #8c2f2f;
}

.muted2 {
  color: var(--muted);
  font-size: 0.92rem;
}

details summary {
  cursor: pointer;
  font-weight: 900;
}

.items {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.55rem;
}

.item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.item img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.fav-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.fav-card img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.dir-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
}

.dir-link-btn.alt {
  background: #ffe3d2;
  color: #2f2824;
}

.dir-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .repo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .menu-left {
    justify-content: space-between;
  }

  .menu-right {
    justify-content: flex-start;
  }

  .search-top-wrap {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .repo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-userchip strong {
    max-width: 22ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .repo-grid {
    grid-template-columns: 1fr;
  }
}
