:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #6c6c75;
  --line: #e3e1da;
  --accent: #f0441f;
  --accent-ink: #ffffff;
  --accent-soft: #fff0ea;
  --urgent: #d42a1c;
  --warn-bg: #fff4cc;
  --warn-ink: #735600;
  --coupon-bg: #fffaf6;
  --track: #e9e7e0;
  --fresh: #12805c;
  --fresh-soft: #e3f5ec;
  --promo-bg: #f6f5f1;
  --promo-ink: #5a4bd1;
  --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 6px 20px rgb(0 0 0 / 4%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #111113;
    --surface: #1b1b1f;
    --ink: #ececf0;
    --muted: #9b9ba5;
    --line: #2d2d34;
    --accent: #ff6a48;
    --accent-ink: #1b1b1f;
    --accent-soft: #2c1a14;
    --urgent: #ff7366;
    --warn-bg: #30290f;
    --warn-ink: #f1d272;
    --coupon-bg: #201b19;
    --track: #232328;
    --fresh: #4fd39b;
    --fresh-soft: #13281f;
    --promo-bg: #202024;
    --promo-ink: #a99cff;
    --shadow: none;
    color-scheme: dark;
  }
}

/* 오른쪽 위 해·달 버튼으로 고른 어두운 화면 (위 기기 설정과 같은 색) */
:root[data-theme='dark'] {
  --bg: #111113;
  --surface: #1b1b1f;
  --ink: #ececf0;
  --muted: #9b9ba5;
  --line: #2d2d34;
  --accent: #ff6a48;
  --accent-ink: #1b1b1f;
  --accent-soft: #2c1a14;
  --urgent: #ff7366;
  --warn-bg: #30290f;
  --warn-ink: #f1d272;
  --coupon-bg: #201b19;
  --track: #232328;
  --fresh: #4fd39b;
  --fresh-soft: #13281f;
  --promo-bg: #202024;
  --promo-ink: #a99cff;
  --shadow: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui,
    sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 헤더 */

.top {
  padding: 36px 0 18px;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* 아이콘 버튼: ☰ 메뉴, 해·달(화면 모드), 서랍 닫기 */
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--track);
}

.menu-block,
.drawer-head {
  display: none;
}

.theme-btn {
  margin-left: 4px;
}

.theme-btn:not([data-mode='dark']) .icon-sun,
.theme-btn[data-mode='dark'] .icon-moon {
  display: none;
}

/* 오른쪽 위: 최근 업데이트 / 다음 업데이트 */
.updated {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.updated:empty {
  display: none;
}

.updated-last {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.updated-last::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fresh);
  box-shadow: 0 0 0 3px var(--fresh-soft);
  content: '';
}

.updated-last.stale::before {
  background: var(--muted);
  box-shadow: none;
}

h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

/* 로고: 쿠폰 모양 마크 + "크리딜" (딜만 강조색) */
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.logo-word {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.logo-word em {
  color: var(--accent);
  font-style: normal;
}

.sub {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.search:focus-within {
  border-color: var(--accent);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

/* 새로 올라온 할인 */

.fresh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.fresh:empty {
  display: none;
}

.fresh-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.fresh-text strong {
  color: var(--fresh);
}

.fresh-text.quiet {
  color: var(--muted);
  font-weight: 500;
}

.fresh-toggle {
  flex: none;
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--fresh);
  border-radius: 999px;
  background: transparent;
  color: var(--fresh);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  cursor: pointer;
}

.fresh-toggle:hover,
.fresh-toggle[aria-pressed='true'] {
  background: var(--fresh);
  color: var(--surface);
}

.new-badge {
  flex: none;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--fresh-soft);
  color: var(--fresh);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 16px;
}

.offer-name .new-badge {
  margin-left: 6px;
  vertical-align: 2px;
}

/* 곧 마감 */

.urgent:empty {
  display: none;
}

.section-title {
  margin: 4px 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.urgent-scroll {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  padding: 2px 0 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.urgent-item {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 2px;
  width: 148px;
  padding: 0 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.urgent-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 6px;
  background: var(--track);
}

.urgent-item span {
  padding: 0 10px;
}

.urgent-when {
  color: var(--urgent);
  font-size: 12px;
  font-weight: 700;
}

.urgent-brand {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.urgent-pct {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

/* 레이아웃: 왼쪽 사이드바(분류·보기) + 오른쪽 피드 */

.layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.side {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* 분류가 많아 화면보다 길면 사이드바 안에서 스크롤 */
  max-height: calc(100vh - 32px);
  padding-bottom: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.side-title {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cats,
.sorts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat,
.sort,
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.cat:hover,
.sort:hover,
.toggle:hover {
  background: var(--track);
}

.cat {
  justify-content: space-between;
}

.cat:disabled {
  opacity: 0.35;
  cursor: default;
}

.cat:disabled:hover {
  background: none;
}

.cat-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.cat[aria-pressed='true'],
.cat[aria-pressed='true']:hover {
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.cat[aria-pressed='true'] .cat-count {
  color: inherit;
  opacity: 0.7;
}

.side-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch {
  position: relative;
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.15s;
}

.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
  content: '';
  transition: transform 0.15s;
}

.toggle[aria-pressed='true'] .switch {
  background: var(--accent);
}

.toggle[aria-pressed='true'] .switch::after {
  transform: translateX(12px);
}

.sorts {
  margin-top: 6px;
}

.sort {
  color: var(--muted);
}

.sort::before {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  content: '';
}

.sort[aria-pressed='true'] {
  color: var(--ink);
  font-weight: 700;
}

.sort[aria-pressed='true']::before {
  border-color: var(--accent);
  background: var(--accent);
}

.count {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* 딜 목록: 한 줄 = 한 브랜드 */

.feed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.deal + .deal {
  border-top: 1px solid var(--line);
}

/* 썸네일 | 본문 | 오른쪽(바로 쓰기·펼치기) 한 줄 */
.deal-row {
  display: grid;
  grid-template-areas: 'thumb body side';
  /* 오른쪽 칸 폭을 고정해서 줄마다 D-day·버튼 위치가 같게 */
  grid-template-columns: 120px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
}

.deal.open .deal-row,
.deal-row:hover {
  background: var(--coupon-bg);
}

.thumb {
  position: relative;
  grid-area: thumb;
  align-self: start;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--track);
  text-decoration: none;
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.deal-body {
  display: flex;
  grid-area: body;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.deal-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.deal-brand {
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-cat {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}

.dday {
  flex: none;
  margin-left: auto;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.dday.urgent {
  color: var(--urgent);
}

.dday.muted {
  color: var(--muted);
  font-weight: 600;
}

.deal-product {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-benefit {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 마감일 없이 일주일이 넘은 할인: 글자만 흐리게 (썸네일은 YouTube 정책상 그대로) */
.deal.stale .deal-body,
.deal.stale .deal-side {
  opacity: 0.55;
}

.deal.stale .deal-row:hover .deal-body,
.deal.stale .deal-row:hover .deal-side,
.deal.stale.open .deal-body,
.deal.stale.open .deal-side {
  opacity: 1;
}

.pct {
  display: inline-block;
  margin-right: 6px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  vertical-align: 1px;
}

.pct.soft {
  background: var(--accent-soft);
  color: var(--accent);
}

.deal-side {
  display: flex;
  grid-area: side;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.more-note {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

/* 펼치기 화살표 */
.expand {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.expand:hover {
  background: var(--track);
}

.expand::before {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.deal.open .expand::before {
  margin-top: 3px;
  transform: rotate(-135deg);
}

/* 코드 · 버튼 */

.code-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  border: 1.5px dashed var(--accent);
  border-radius: 10px;
  background: var(--coupon-bg);
}

.code-chip code {
  max-width: 120px;
  min-width: 0;
  padding: 3px 8px;
  overflow: hidden;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy {
  flex: none;
  align-self: stretch;
  padding: 0 9px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* 링크: 눈에 띄되 무겁지 않은 테두리 버튼 */
.go {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.go:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.copy.done {
  background: var(--ink);
  color: var(--bg);
}

/* 쿠팡 추천 칸 (광고): 유튜버 할인 줄과 한눈에 구분되게 바탕·이미지 모양·버튼을 다르게 */
.promo {
  padding: 12px 14px 10px;
  border-top: 1px solid var(--line);
  background: var(--promo-bg);
}

.promo + .deal {
  border-top: 1px solid var(--line);
}

.promo-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.promo-img {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.promo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 이미지가 없을 때: 쇼핑백 그림 */
.promo-bag {
  width: 26px;
  height: 22px;
  border: 2px solid var(--muted);
  border-radius: 3px 3px 6px 6px;
  position: relative;
}

.promo-bag::before {
  position: absolute;
  top: -9px;
  left: 6px;
  width: 10px;
  height: 8px;
  border: 2px solid var(--muted);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  content: '';
}

.promo-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.promo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--promo-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.promo-sample {
  padding: 0 5px;
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  line-height: 16px;
}

.promo-title {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-price {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.promo-go {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

a.promo-go:hover {
  opacity: 0.85;
}

.promo-notice {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.promo-banner iframe,
.promo-placeholder {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
}

.promo-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* 펼친 상세 */

.deal-detail {
  display: flex;
  flex-direction: column;
  padding: 0 14px 6px;
  background: var(--coupon-bg);
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.offer p {
  margin: 0;
  overflow-wrap: anywhere;
}

.offer-name {
  font-size: 14px;
  font-weight: 700;
}

.offer-benefit {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.offer-cond {
  color: var(--muted);
  font-size: 13px;
}

/* 펼친 상세의 유튜버 정보: 이름·구독자 수 크게, 영상 날짜·링크는 그 아래 */
.offer-creator {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
}

.creator-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 15px;
}

.creator-name .yt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.creator-name .subs {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.creator-meta {
  color: var(--muted);
  font-size: 13px;
}

.creator-meta a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.creator-meta .warn {
  color: var(--warn-ink);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.offer-actions .code-chip code {
  max-width: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

details {
  color: var(--muted);
  font-size: 12px;
}

summary {
  cursor: pointer;
}

details p {
  margin-top: 6px !important;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--track);
}

.empty {
  padding: 48px 16px;
  color: var(--muted);
  text-align: center;
}

/* 맨 아래: 안내·약관·개인정보처리방침 */
.site-foot {
  margin-top: 32px;
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.site-foot p {
  max-width: 640px;
  margin: 0 auto 8px;
}

.site-foot a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
}

/* 개인정보처리방침 같은 글 페이지 */
.doc {
  max-width: 720px;
  padding-top: 32px;
  padding-bottom: 64px;
  font-size: 15px;
  line-height: 1.7;
}

.doc h1 {
  margin: 16px 0 4px;
  font-size: 26px;
}

.doc h2 {
  margin: 28px 0 6px;
  font-size: 17px;
}

.doc p {
  margin: 0 0 10px;
}

.doc a {
  text-underline-offset: 3px;
}

.doc-date {
  color: var(--muted);
  font-size: 13px;
}

/* 좁은 화면: 사이드바를 위쪽 가로 칩으로 */
@media (max-width: 860px) {
  .layout {
    display: block;
  }

  /* 헤더 첫 줄: [≡ 카테고리] ··· 로고(가운데) ··· [해·달]. 양쪽 버튼은 같은 모양, 둘째 줄은 최근 업데이트 */
  .top {
    padding-top: 16px;
  }

  .title-row {
    display: grid;
    grid-template-areas:
      'menu logo theme'
      'updated updated updated';
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px 8px;
  }

  .menu-block {
    display: inline-grid;
    grid-area: menu;
  }

  .title-row .logo {
    grid-area: logo;
    justify-self: center;
  }

  .title-row .logo-mark {
    width: 34px;
    height: 34px;
  }

  .title-row .logo-word {
    font-size: 26px;
  }

  .title-row .theme-btn {
    grid-area: theme;
    margin: 0;
  }

  .title-row .updated {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 10px;
    grid-area: updated;
    margin: 0;
    text-align: center;
  }

  .sub {
    text-align: center;
    text-wrap: balance;
  }

  .side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(300px, 84vw);
    max-height: none;
    padding: 14px 12px 24px;
    background: var(--bg);
    box-shadow: 8px 0 32px rgb(0 0 0 / 18%);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    visibility: hidden;
  }

  .side.open {
    transform: none;
    visibility: visible;
  }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 6px 10px;
  }

  .drawer-head .logo-word {
    font-size: 22px;
  }

  .backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgb(0 0 0 / 38%);
  }

  .backdrop[hidden] {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .cat,
  .sort,
  .toggle {
    padding: 10px 12px;
    font-size: 15px;
  }

  .urgent-scroll {
    margin: 0 -16px 18px;
    padding: 2px 16px 4px;
  }
}

/* 휴대폰: 오른쪽 칸을 본문 아래로 */
@media (max-width: 600px) {
  .theme-btn {
    order: 3;
    margin-left: auto;
  }

  .updated {
    order: 4;
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    margin-left: 0;
    text-align: left;
  }

  .deal-row {
    grid-template-areas:
      'thumb body'
      'thumb side';
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
    gap: 6px 10px;
    padding: 12px;
  }

  .deal-side {
    justify-content: flex-start;
  }

  .deal-side .expand {
    margin-left: auto;
  }

  .promo-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 6px 12px;
  }

  .promo-img {
    grid-row: span 2;
    width: 56px;
    height: 56px;
  }

  .promo-go {
    justify-self: start;
  }

  .deal-benefit {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
