/* 04 의류 브랜드 쇼핑몰 · 3차
   방향: 히어로 없음. 신상품 4열 그리드가 첫 화면. 오프화이트 바탕, 짙은 녹색 포인트, 먹색 글자.
   서체: Pretendard 300~400, 상품명 500. */

:root {
  --bg: #F4F1EA;
  --paper: #FBFAF6;
  --ink: #23231F;
  --ink-2: #4E4D47;
  --green: #2D4A3C;
  --line: rgba(35, 35, 31, .14);
  --pad: clamp(20px, 3.9vw, 56px);
  --gap: clamp(14px, 1.7vw, 24px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.wrap { padding-inline: var(--pad); }
.skip {
  position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--bg);
  padding: 8px 12px; z-index: 10;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* 상단: 카테고리 텍스트 줄 + 우측 아이콘 2개 */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 40px; height: 64px; }
.mark { font-weight: 500; font-size: 15px; letter-spacing: .18em; }
.cats { display: flex; gap: 28px; font-size: 15px; font-weight: 400; color: var(--ink-2); flex: 1; }
.cats a { position: relative; padding: 4px 0; transition: color .2s ease; }
.cats a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.cats a:hover, .cats a[aria-current="page"] { color: var(--ink); }
.cats a:hover::after, .cats a[aria-current="page"]::after { transform: scaleX(1); }
.tools { display: flex; gap: 6px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 0;
  transition: transform .15s ease, color .2s ease;
}
.icon-btn:hover { color: var(--green); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0) scale(.96); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* 신상품 그리드: 첫 화면 */
.new { padding-top: 40px; padding-bottom: 96px; }
.new-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.new h1 { font-size: 40px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; }
.new-sub { font-size: 15px; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; margin-bottom: 28px; }
.chip {
  height: 36px; padding: 0 16px; font-size: 15px; font-weight: 400;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--paper);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--green); border-color: var(--green); color: var(--bg); }

.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap) var(--gap);
}
.item-link { display: block; transition: transform .25s ease; }
.item-link:hover { transform: translateY(-2px); }
.item-img { aspect-ratio: 4 / 5; overflow: hidden; background: #E8E3D7; }
.item-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.item-link:hover .item-img img { transform: scale(1.03); }
.item-meta { padding-top: 14px; display: grid; gap: 2px; }
.item-name { font-weight: 500; font-size: 16px; line-height: 1.4; }
.item-price { font-weight: 400; font-size: 15px; color: var(--ink-2); }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.sw {
  width: 12px; height: 12px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(35, 35, 31, .18);
}

/* 카테고리 */
.category { padding-bottom: 104px; }
.sec-head h2 { font-size: 24px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 14px; }
.cat-list { border-top: 1px solid var(--ink); }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center; padding: 22px 4px;
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; letter-spacing: -0.02em;
  transition: color .2s ease, padding-left .25s ease;
}
.cat-list a:hover { color: var(--green); padding-left: 14px; }
.cat-list .arrow { font-size: 22px; color: var(--green); transition: transform .25s ease; }
.cat-list a:hover .arrow { transform: translateX(6px); }

/* 룩북 한 장 */
.look { padding-bottom: 104px; }
.look-in { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); align-items: end; }
.look-text { align-self: start; padding-top: 8px; }
.look-text h2 { font-size: 24px; font-weight: 400; margin-bottom: 14px; }
.look-lead { font-size: 18px; font-weight: 300; line-height: 1.7; max-width: 26em; }
.look-fig { margin: 0; overflow: hidden; height: 720px; background: #E8E3D7; }
.look-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s ease; }
.look-fig:hover img { transform: scale(1.02); }
.text-link {
  display: inline-block; margin-top: 28px; font-size: 15px; font-weight: 500; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .35s ease, color .2s ease;
}
.text-link:hover { background-size: 100% 1px; color: var(--green); }

/* 배송·교환 */
.info { padding-bottom: 104px; }
.info-list { border-top: 1px solid var(--ink); }
.info-row { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-row dt { font-weight: 500; }
.info-row dd { font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--ink); }
.info-row dd a { border-bottom: 1px solid var(--line); }
.info-row dd a:hover { color: var(--green); border-color: var(--green); }
.chk { font-size: 15px; color: var(--ink-2); margin-left: 4px; white-space: nowrap; }

/* 푸터 */
.foot { background: var(--ink); color: #D9D5CA; padding: 56px 0 40px; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.foot-mark { font-weight: 500; font-size: 15px; letter-spacing: .18em; color: var(--bg); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; }
.foot-nav a { transition: color .2s ease; }
.foot-nav a:hover { color: var(--bg); }
.foot-small { font-size: 15px; color: #CFCAC0; }

/* 모바일 */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .look-in { grid-template-columns: 1fr; }
  .look-fig { height: auto; aspect-ratio: 4 / 5; }
  .info-row { grid-template-columns: 1fr; gap: 6px; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .top-in { gap: 14px; height: auto; padding-block: 14px; flex-wrap: wrap; }
  .cats { flex: 0 0 100%; flex-wrap: wrap; gap: 10px 18px; font-size: 15px; order: 3; }
  .new { padding-top: 24px; padding-bottom: 64px; }
  .new h1 { font-size: 30px; }
  .chips { margin-bottom: 20px; }
  .grid { gap: 22px 14px; }
  .item-name { font-size: 15px; }
  .category, .look, .info { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
