
/* ==========================================================================
   3. ASIDE  >  ALERT STRIP
   ========================================================================== */
.aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  width: 100%;
  flex: none;
  flex-grow: 0;
}

.alert {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  background: #cc9504;
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

.alert__container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.alert__icon {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}

.alert__text {
  flex: 1;
  min-width: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 1000px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex: none;
  padding: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
}
.alert__close:hover {
  opacity: 1;
}


/* ==========================================================================
   4. TOP SECTION  (header + rolling banner + category)
   ========================================================================== */
.top-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 10px 10px 10px;
  margin-top: 10px;
  gap: 20px;
  width: 100%;
  flex: none;
  flex-grow: 0;
  isolation: isolate;
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
  height: 100%;
  /* height: 94px; */
  background: #ffffff;
  flex: none;
  align-self: stretch;
  flex-grow: 0;
  z-index: 0;
}

.header__container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0 0;
  width: 100%;
  height: 94px;
  flex: none;
  align-self: stretch;
  flex-grow: 0;
}

.header__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 10px;
  width: 256px;
  height: 84px;
  flex: none;
  flex-grow: 0;
}

.header__title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.header__title {
  font-family: "Noto Sans KR", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.2px;
  vertical-align: middle;
  color: #333333;
  margin: 0;
  flex: none;
  flex-grow: 0;
}

.header__title-highlight {
  font-weight: 700;
  color: #e5b22e;
}

.header__buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 10px;
  width: 181px;
  height: 38px;
  flex: none;
  flex-grow: 0;
}

.btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  gap: 5px;
  height: 38px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
  white-space: nowrap;
  flex: none;
  flex-grow: 0;
}

.btn--primary {
  width: 92px;
  background: #333333;
  color: #e5b22e;
}

.btn--outline {
  width: 79px;
  background: transparent;
  border: 1px solid #898989;
  color: #333333;
}

.header__search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: none;
  border-radius: 0 0 0 9999px;
  cursor: pointer;
  flex: none;
  padding: 0;
}

/* --- Logged in header state ---------------------------------------------- */
.header__container--logged-in {
  /* display: none; */
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 0;
  width: 100%;
  max-width: 393px;
  height: 52px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.is-logged-in .header__container--logged-in {
  display: flex;
}

/* Logged-in header title typography */
body.is-logged-in .header__title {
  font-weight: 400;
}

body.is-logged-in .header__title-highlight {
  font-weight: 700;
  color: #cc9504;
}


.header__user {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 10px;
  cursor: pointer;
}

.header__container--logged-in .header__avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.header__container--logged-in .header__title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.header__subtitle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.2px;
  color: #333333;
}

.header__subtitle-arrow {
  width: 6px;
  height: 11px;
  --stroke-0: #898989;
}

.header__user-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6px;
  height: 9px;
}
/* ==========================================================================
   5. SECTION DIVIDER
   ========================================================================== */
.section-divider {
  width: 100%;
  height: 5px;
  background: #f5f5f5;
}
