/* ════════════════════════════════════════
   레이아웃
════════════════════════════════════════ */
.news-layout {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 60px;
}
.news-main { min-width: 0; }

/* ════════════════════════════════════════
   소식 탭
════════════════════════════════════════ */
.news-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 6px;
}
.news-tab {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.news-tab:hover { color: #333; }
.news-tab.active {
  color: var(--color-purple);
  border-bottom-color: var(--color-purple);
  font-weight: 700;
}

/* ════════════════════════════════════════
   공지사항 컨테이너
════════════════════════════════════════ */
.notice-container {}
.notice-heading {
  font-size: 32px;
  font-weight: 300;
  color: #222;
  margin-top: 10px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

/* 필터 바 */
.notice-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid #222;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  margin-bottom: 0;
  gap: 12px;
  flex-wrap: wrap;
}
.notice-filter__cats {
  display: flex;
  gap: 4px;
}
.notice-filter__cat {
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  background: #f0f0f0;
  transition: all 0.2s;
  font-weight: 500;
}
.notice-filter__cat:hover { background: #e0e0e0; color: #333; }
.notice-filter__cat.active {
  background: var(--color-purple);
  color: #fff;
}
.notice-filter__search {
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-filter__select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  background: #fff;
  font-family: var(--font-main);
}
.notice-filter__input {
  padding: 7px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  width: 220px;
  font-family: var(--font-main);
}
.notice-filter__input:focus {
  outline: none;
  border-color: var(--color-purple);
}
.notice-filter__btn {
  padding: 5px 5px;
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  transition: background 0.2s;
  justify-content: center;
}
.notice-filter__btn:hover { background: var(--color-purple); }

/* 글 목록 */
.notice-list {
  list-style: none;
}
.notice-row {
  border-bottom: 1px solid #f0f0f0;
}
.notice-row--pinned {
  background: #fafafa;
}
.notice-row__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  transition: background 0.15s;
}
.notice-row__link:hover { background: #f8f4ff; }
.notice-row__title {
  flex: 1;
  font-size: 15px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-row__date,
.notice-row__views {
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}
.notice-empty {
  padding: 60px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

/* ════════════════════════════════════════
   페이지네이션
════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
  background: #f5f5f5;
  transition: all 0.2s;
  padding: 0 8px;
}
.page-btn:hover { background: #e8e0ff; color: var(--color-purple); }
.page-btn.active {
  background: var(--color-purple);
  color: #fff;
  font-weight: 700;
}
.page-btn--arrow { font-size: 16px; }
.page-btn.disabled {
  color: #ccc;
  background: #f5f5f5;
  cursor: default;
  pointer-events: none;
}

/* ════════════════════════════════════════
   공지사항 상세
════════════════════════════════════════ */
.notice-detail__header {
  border-bottom: 1px solid #ddd;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notice-detail__title {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  line-height: 1.5;
}
.notice-detail__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #aaa;
}
.notice-detail__body {
  padding: 32px 8px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  min-height: 300px;
  border-bottom: 1px solid #eee;
}
.notice-detail__header-img {
  display: block;
  width: 100%;
  margin-bottom: 24px;
}
.notice-detail__footer {
  padding: 20px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.btn-back {
  padding: 10px 28px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  transition: all 0.2s;
}
.btn-back:hover { border-color: #888; color: #222; }

/* .news-side, .side-news → base.css로 이동 */

/* ════════════════════════════════════════
   의상 소식
════════════════════════════════════════ */
.shop-status-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
}
.shop-status-tab {
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.shop-status-tab:hover { color: #333; }
.shop-status-tab.active {
  color: var(--color-purple);
  border-bottom-color: var(--color-purple);
  font-weight: 700;
}

.shop-grid {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.shop-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.shop-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 0.3;
  overflow: hidden;
  background: #f5f5f5;
}
.shop-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card__status {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.shop-card__status--판매중 {
  background: var(--color-purple);
  color: #fff;
}
.shop-card__status--판매종료 {
  background: #999;
  color: #fff;
}
.shop-card__soldout {
  position: absolute;
  bottom: 16%;
  right: 4%;
  height: 50%;
  width: auto;
  display: block;
  pointer-events: none;
  transform: rotate(-15deg);
  z-index: 2;
}
.shop-card__status--판매예정 {
  background: var(--color-orange);
  color: #fff;
}

.shop-card__info {
  padding: 12px 14px;
}
.shop-card__name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-card__type {
  font-size: 11px;
  color: #aaa;
  font-weight: 500;
}
.shop-card__dates {
  font-size: 12px;
  color: #888;
}

.shop-empty {
  padding: 80px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

/* ════════════════════════════════════════
   의상 소식 상세
════════════════════════════════════════ */
.shop-detail {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 20px 0 40px;
}
.shop-detail__img-wrap {
  flex: 1 1 0;
  min-width: 0;
  max-width: 550px;
}
.shop-detail__img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.shop-detail__info {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.shop-detail__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-detail__name {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}
.shop-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}
.shop-detail__row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.shop-detail__label {
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
  white-space: nowrap;
  width: 64px;
  flex-shrink: 0;
}
.shop-detail__value {
  font-size: 14px;
  color: #333;
}

/* ════════════════════════════════════════
   아이템 등장 확률
════════════════════════════════════════ */
.shop-detail__drop {
  border-top: 1px solid #eee;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shop-detail__drop-title {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.drop-grade {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drop-grade__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}
.drop-grade__label--전설 { background: #ede9fe; color: #7c3aed; }
.drop-grade__label--희귀  { background: #fef3c7; color: #d97706; }
.drop-grade__label--고급  { background: #dbeafe; color: #2563eb; }
.drop-grade__label--일반  { background: #f3f4f6; color: #6b7280; }
.drop-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.drop-item {
  display: grid;
  grid-template-columns: 1fr 1fr 38px;
  gap: 6px;
  padding: 5px 4px;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}
.drop-item:last-child { border-bottom: none; }
.drop-item--header {
  padding: 2px 4px 4px;
  border-bottom: 1px solid #e5e7eb;
}
.drop-item--header span {
  font-size: 10px;
  color: #bbb;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.drop-item__male,
.drop-item__female {
  font-size: 12px;
  color: #444;
  line-height: 1.4;
  word-break: keep-all;
}
.drop-item__rate {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  text-align: right;
}

/* CKEditor 본문 내 이미지 원본 비율 유지 */
.notice-detail__body img {
  max-width: 100%;
  height: auto !important;
}

/* ════════════════════════════════════════
   공통 아티클 (이벤트 상세 등)
════════════════════════════════════════ */
.news-article {
  display: flex;
  flex-direction: column;
}

.news-article__banner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.news-article__banner img {
  width: 100%;
  height: auto;
  display: block;
}

.news-article__header {
  border-bottom: 1px solid #ddd;
  padding: 10px 8px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-article__title {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  line-height: 1.5;
}
.news-article__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #aaa;
}

.news-article__content {
  padding: 32px 8px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  min-height: 200px;
  border-bottom: 1px solid #eee;
}
.news-article__content img {
  max-width: 100%;
  height: auto !important;
}

.news-article__footer {
  padding: 20px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.meta-icon { width: 16px; height: 16px; vertical-align: middle; }
