/* 테마 색상: 관리자 페이지에서 변경 (js/theme.js 가 덮어씀) */
:root {
  --header-bg: #1f1f1f;
  --header-text: #ffffff;
  --page-bg: #ffffff;
  --text: #222222;
  --category-bg: #ffffff;
  --category-text: #222222;
  --category-active: #1f1f1f;
  --accent: #1f1f1f;

  /* 스크롤해도 위에 고정되는 상단바 높이 (아래에 붙는 요소들이 기준으로 씀) */
  --header-h: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

/* ---------- 헤더 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  color: var(--header-text);
}

.header__inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.header__user {
  position: absolute;
  right: 24px;
  font-size: 13px;
  font-weight: 700;
}

.header__member {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__mypage,
.header__logout {
  font-weight: 400;
  opacity: 0.75;
}

.header__login:hover,
.header__mypage:hover,
.header__logout:hover {
  opacity: 0.6;
}

/* ---------- 로그인 / 회원가입 페이지 ---------- */
.auth {
  display: flex;
  justify-content: center;
  padding: 72px 16px 80px;
}

.auth__logo {
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--text);
  margin-bottom: 64px;
}

.auth__panel {
  width: 100%;
  max-width: 360px;
}

.auth__tabs {
  display: flex;
  border-bottom: 1px solid #e3e3e3;
  margin-bottom: 24px;
}

.auth__tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #999;
}

.auth__tab:hover {
  color: #555;
}

.auth__tab.is-active {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--text);
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth__input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
}

.auth__input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth__error {
  min-height: 18px;
  font-size: 13px;
  color: #e03131;
}

.auth__submit {
  height: 50px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.auth__submit:hover {
  filter: brightness(0.85);
}

.auth__submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.auth__switch {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

.auth__switch a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- 대문 슬라이더 ---------- */
/* 대문 이미지(1920×450) 비율 그대로 — 화면 폭이 달라도 잘리지 않게 */
.hero {
  position: relative;
  aspect-ratio: 1920 / 450;
  background: #e5e5e5;
  overflow: hidden;
}

.hero__track {
  position: relative;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  background: #e5e5e5 center / cover no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* 첫 대문 이미지가 준비되기 전에는 화살표·번호를 숨김 */
.hero:not(.is-ready) .hero__arrow,
.hero:not(.is-ready) .hero__counter {
  visibility: hidden;
}

.hero__arrow--prev { left: 6px; }
.hero__arrow--next { right: 6px; }

.hero__arrow:hover {
  opacity: 0.6;
}

.hero__counter {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 48px;
  padding: 2px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--header-bg) 45%, transparent);
  color: var(--header-text);
  font-size: 10px;
  text-align: center;
}

/* ---------- 본문 ---------- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.category-bar {
  background: var(--category-bg);
  border-bottom: 1px solid #e3e3e3;
}

/* 상품 상세: 스크롤해도 상단바 바로 아래에 카테고리 고정 */
.category-bar--sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}

.category {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
}

.category__item {
  padding: 13px 0;
  width: 100px;
  font-size: 12px;
  font-weight: 700;
  margin: 0 3px;
  color: var(--category-text);
}

a.category__item {
  text-align: center;
}

.category__item:hover,
.category__item.is-active {
  color: var(--category-active);
  box-shadow: inset 0 -2px 0 var(--category-active);
}

.content {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

/* ---------- 사이드바 광고 ---------- */
.sidebar {
  flex: 0 0 180px;
}

.sidebar__ad {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  min-height: 600px;
  background: #e5e5e5;
  border: 1px solid #ddd;
  overflow: hidden;
}

.sidebar__ad-placeholder {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  color: #222;
}

.sidebar__ad .adsbygoogle {
  position: relative;
  z-index: 1;
}

/* 광고가 채워지면 플레이스홀더 숨김 */
.sidebar__ad:has(ins[data-ad-status="filled"]) .sidebar__ad-placeholder {
  display: none;
}

/* ---------- 본문·다운로드 안내 광고 ---------- */
/* 채울 광고가 없으면 AdSense 가 잡아 둔 빈 자리를 접음 */
.ad-box ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* 광고가 채워지기 전(승인 전·빈 광고)에는 '광고' 표시와 여백 없이 접혀 있음 */
.ad-box__label {
  display: none;
  margin-bottom: 4px;
  font-size: 11px;
  color: #999;
}

.ad-box:has(ins[data-ad-status="filled"]) {
  margin: 12px 0;
}

.ad-box:has(ins[data-ad-status="filled"]) .ad-box__label {
  display: block;
}

/* 인피드 광고는 사이드바가 숨는 좁은 화면에서만, 상품 줄 사이에 한 줄을 다 씀 */
.ad-box--feed {
  display: none;
  grid-column: 1 / -1;
}

.products > .ad-box--feed:has(ins[data-ad-status="filled"]) {
  margin: 0;
}

/* ---------- 상품 그리드 ---------- */
.products {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 긴 상품명·소개가 칸을 넓히지 않게 같은 폭으로 */
  gap: 14px 12px;
  align-content: start;
}

.products__empty {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.product {
  display: block;
  overflow: hidden; /* 이미지도 둥근 모서리를 따라 잘리게 */
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.product:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .product:hover {
    transform: none;
  }
}

.product__thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e5e5 center / cover no-repeat;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #333;
}

.product__info {
  padding: 10px 12px 12px;
  font-size: 14px;
  line-height: 1.8;
}

.product__title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.product__name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product__rating {
  flex-shrink: 0;
  font-weight: 400;
  color: #555;
}

.product__badge {
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 900;
}

.product__badge--free {
  background: linear-gradient(90deg, #ff0000, #ff8a00, #ffd400, #2ed100, #00b3ff, #5b3cff, #d100ff, #ff0000);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}

.product__badge--event {
  color: #ff0000;
  animation: event-blink 0.8s steps(1) infinite;
}

@keyframes event-blink {
  0% { color: #ff0000; }
  50% { color: #ff8a00; }
}

@media (prefers-reduced-motion: reduce) {
  .product__badge {
    animation: none;
  }
}

.product__desc {
  min-height: 1.8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 상품 상세 ---------- */
.pd {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

.pd__status {
  padding: 120px 0;
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: #888;
}

.pd__back {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
}

.pd__notice {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 4px;
  background: #fff4e6;
  font-size: 13px;
  color: #d9480f;
}

.pd__crumb {
  margin-bottom: 20px;
  font-size: 13px;
  color: #888;
}

.pd__crumb a:hover {
  text-decoration: underline;
}

.pd__top {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  border-top: 1px solid #e3e3e3;
}

/* 이미지 슬라이드 */
.gallery {
  padding: 32px 40px 32px 0;
}

.gallery__main {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f4f4f4;
  touch-action: pan-y;
  outline-offset: 2px;
}

.gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.gallery__img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.gallery__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 14px;
  color: #999;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #222;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }

.gallery__main:hover .gallery__arrow,
.gallery__arrow:focus-visible {
  opacity: 1;
}

.gallery__counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.gallery__counter b {
  color: #fff;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.gallery__thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  background: #f4f4f4;
  opacity: 0.6;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__thumb:hover,
.gallery__thumb.is-active {
  opacity: 1;
}

.gallery__thumb.is-active {
  border: 2px solid var(--accent);
}

/* 상품 정보 */
.pd__info {
  padding: 40px 0 32px 56px;
  border-left: 1px solid #e3e3e3;
}

.pd__name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}

.pd__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
}

.pd__rating .product__badge {
  margin-left: 6px;
}

.pd__star {
  color: #e03131;
}

.pd__muted {
  color: #888;
}

.pd__summary {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  word-break: keep-all;
}

.pd__price {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 900;
}

.pd__price--free {
  color: var(--accent);
}

.pd__rows {
  margin-top: 24px;
  border-top: 1px solid #e3e3e3;
  padding-top: 8px;
}

.pd__row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.pd__row dt {
  flex: 0 0 72px;
  color: #888;
}

.pd__row dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pd__actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e3e3e3;
}

.pd__actions--stack {
  flex-direction: column;
}

.pd__btn {
  flex: 1;
  min-height: 54px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}

.pd__btn:hover {
  border-color: #888;
}

.pd__btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pd__btn--primary:hover {
  border-color: var(--accent);
  filter: brightness(0.85);
}

.pd__btn:disabled {
  opacity: 0.5;
  cursor: default;
  filter: none;
}

.pd__message {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.pd__message--error {
  color: #e03131;
}

/* 다운로드 시작 후: 버튼 아래 상태 줄 + 광고 */
.dl-guide__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 13px;
  color: #555;
}

.dl-guide__reopen {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
}

/* 설치·실행 안내 창 */
.dl-modal {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.dl-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.dl-modal__title {
  font-size: 18px;
  font-weight: 700;
}

.dl-modal__desc,
.dl-modal__note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  word-break: keep-all;
}

.dl-modal__note {
  color: #d9480f;
}

.dl-modal__subtitle {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
}

.dl-modal__steps {
  margin-top: 8px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.dl-modal__steps li + li {
  margin-top: 6px;
}

.dl-modal__close {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
}

/* 상세 설명 */
.pd__detail {
  margin-top: 24px;
  border-top: 2px solid var(--text);
}

.pd__detail-title {
  padding: 18px 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #e3e3e3;
}

/* 블로그처럼 한 줄로 길게: 가운데 좁은 칸에 제목·본문·이미지를 차례로 */
.pd__content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0 20px;
}

.pd__heading {
  margin: 40px 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.pd__content > :first-child {
  margin-top: 0;
}

.pd__text {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.pd__heading.is-center,
.pd__text.is-center {
  text-align: center;
}

.pd__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 24px;
}

/* 관리자 편집기로 쓴 글: 편집기와 같은 모양 (quill.core.css 의 .ql-editor 를 페이지용으로 조정) */
.pd__rich.ql-editor {
  height: auto;
  padding: 0;
  overflow: visible;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
  cursor: auto;
}

.pd__rich.ql-editor > * {
  cursor: auto;
}

.pd__rich img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.pd__rich a {
  color: #1c7ed6;
  text-decoration: underline;
}

.pd__empty {
  padding: 40px 0;
  font-size: 14px;
  text-align: center;
}

.pd__rating-link:hover {
  text-decoration: underline;
}

/* 리뷰 */
.rv__body {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 0 20px;
}

.rv__summary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.rv__avg {
  font-size: 36px;
  font-weight: 900;
}

.rv__avg-stars,
.rv__item-stars {
  color: #e03131;
  letter-spacing: 1px;
}

.rv__avg-stars {
  font-size: 20px;
}

.rv__form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fafafa;
}

.rv__form-title {
  font-size: 15px;
  font-weight: 700;
}

.rv__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rv__star {
  font-size: 28px;
  line-height: 1;
  color: #ccc;
}

.rv__star.is-on {
  color: #e03131;
}

.rv__score {
  margin-left: 8px;
  font-size: 14px;
  color: #555;
}

.rv__input {
  min-height: 110px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

.rv__input:focus {
  outline: none;
  border-color: var(--accent);
}

.rv__form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rv__btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 24px;
  font-size: 14px;
}

.rv__gate {
  padding: 16px;
  border-radius: 4px;
  background: #f6f6f6;
  font-size: 14px;
  text-align: center;
  color: #555;
}

.rv__link {
  font-size: 13px;
  color: #555;
  text-decoration: underline;
}

.rv__link--danger {
  color: #e03131;
}

.rv__list {
  list-style: none;
  border-top: 1px solid #e3e3e3;
}

.rv__item {
  padding: 18px 4px;
  border-bottom: 1px solid #eee;
}

.rv__item.is-mine {
  background: #fcfcf5;
}

.rv__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.rv__name {
  font-weight: 700;
}

.rv__mine {
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--accent);
  font-size: 11px;
  color: #fff;
}

.rv__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .pd {
    padding: 16px 16px 60px;
  }

  .pd__heading {
    font-size: 20px;
  }

  .pd__text {
    font-size: 15px;
  }

  .pd__top {
    grid-template-columns: 1fr;
  }

  .gallery {
    padding: 20px 0 0;
  }

  .pd__info {
    padding: 24px 0;
    border-left: 0;
  }

  .gallery__arrow {
    opacity: 1;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- 푸터 ---------- */
.footer {
  margin-top: 40px;
  background: var(--header-bg);
  color: color-mix(in srgb, var(--header-text) 70%, transparent);
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 20px 32px;
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}

.footer__brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--header-text);
}

.footer__brand-en {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer__desc {
  margin-top: 6px;
}

.footer__contact a {
  margin-left: 6px;
  color: var(--header-text);
  text-decoration: underline;
}

.footer__copy {
  margin-top: 10px;
  font-size: 12px;
}

/* ---------- 반응형 ---------- */
/* 오른쪽 광고는 넓은 화면에서만 (상품 카드가 너무 좁아지지 않게) */
@media (max-width: 1200px) {
  .sidebar--right {
    display: none;
  }
}

/* 태블릿·모바일: 사이드바 광고 대신 상품 목록 사이에 인피드 광고 */
@media (max-width: 960px) {
  .sidebar {
    display: none;
  }

  .ad-box--feed {
    display: block;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 48px;
  }

  .header__inner {
    justify-content: flex-start;
    padding-left: 12px;
  }

  .logo {
    font-size: 20px;
  }

  .product__thumb {
    height: 160px;
  }

  .header__user {
    right: 12px;
    font-size: 11px;
  }

  .header__member {
    gap: 8px;
  }

  .container {
    padding: 0 12px 32px;
  }

  .category {
    margin: 0;
  }

  .category__item {
    width: auto;
    flex: 1;
    margin: 0;
  }

}

@media (max-width: 420px) {
  .products {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 로그인: 소셜 / 가입 완료 ---------- */
.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
  font-size: 12px;
  color: #999;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e3e3e3;
}

.auth__social {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
}

.auth__social--kakao {
  background: #fee500;
  color: #191919;
}

.auth__social--kakao:hover {
  filter: brightness(0.96);
}

.auth__done {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.auth__done .auth__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
