:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #ebebeb;
  --line-strong: #e0e0e0;
  --fill: #ededed;
  --bg: #ffffff;
  --gutter: 48px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  font-weight: 400;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

button,
input,
select {
  font-family: inherit;
  color: var(--ink);
}

button {
  cursor: pointer;
}

h1,
h2,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted {
  color: var(--muted);
}

/* 공통 요소 */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.section-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.tap {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.link-line {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
}

.link-line:hover {
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  height: 56px;
  border: 0;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.btn-primary:hover {
  color: #ffffff;
}

.btn-outline {
  height: 52px;
  padding: 0 48px;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-size: 13px;
}

.btn-text {
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
}

.placeholder {
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}

.message {
  padding: 96px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* 헤더 */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 40px;
}

.brand {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.32em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 36px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-util {
  display: flex;
  gap: 0 24px;
  font-size: 13px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle,
.cart-link__icon {
  display: none;
}

/* 푸터 */

.site-footer {
  margin-top: 200px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer__brand {
  color: var(--ink);
  letter-spacing: 0.32em;
}

.site-footer__simple {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}

.site-footer__full {
  padding-top: 64px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
  line-height: 1.9;
}

.site-footer__full .site-footer__brand {
  font-size: 14px;
}

.footer-main {
  flex: 2 1 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
}

.footer-col__title {
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-legal {
  flex: 1 1 100%;
}

.newsletter {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  max-width: 360px;
}

.newsletter label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.newsletter input {
  height: 40px;
  border: 0;
  border-bottom: 1px solid #bdbdbd;
  padding: 0;
  font-size: 13px;
  background: transparent;
  outline-offset: 4px;
}

.newsletter button {
  padding: 0 4px;
}

/* 상품 카드 · 그리드 */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 64px 28px;
}

.product-grid--lg {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 88px 32px;
}

.product-grid--sm {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 48px 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card__image {
  aspect-ratio: 3 / 4;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.swatches {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* 홈 */

.hero {
  padding-top: 64px;
}

.hero__image {
  aspect-ratio: 16 / 8;
}

.hero__body {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.home-section {
  padding-top: 160px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head a {
  font-size: 13px;
  color: var(--muted);
}

.lookbook {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}

.lookbook__image {
  flex: 1 1 420px;
  aspect-ratio: 4 / 5;
  background: #dcd1be;
}

.lookbook__body {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 0 16px;
}

.lookbook__title {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.4;
}

.lookbook__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 360px;
}

.about {
  padding-top: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.about__text {
  max-width: 560px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.8;
}

.about a {
  font-size: 13px;
  color: var(--muted);
}

/* 상품 목록 */

.page-main {
  padding-top: 96px;
}

.page-title {
  font-size: 32px;
  font-weight: 300;
}

.page-title__count {
  font-size: 15px;
  color: var(--muted);
}

.subnav {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 14px;
}

.subnav a {
  color: var(--muted);
}

.subnav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.toolbar {
  margin-top: 40px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 13px;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.toolbar select {
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 13px;
}

.listing {
  margin-top: 56px;
}

.load-more {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* 상품 상세 */

.product-main {
  padding-top: 56px;
}

.product {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
  align-items: flex-start;
}

.gallery {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery__main {
  aspect-ratio: 4 / 5;
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery__row > * {
  aspect-ratio: 3 / 4;
  font-size: 12px;
}

.buy {
  flex: 1 1 340px;
  max-width: 100%;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.buy__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.buy__name {
  font-size: 24px;
  font-weight: 400;
}

.buy__price {
  font-size: 15px;
}

.buy__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.option {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
}

.option__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option__head a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.color-options {
  display: flex;
  gap: 14px;
}

.color-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px #d6d6d6;
}

.color-btn[aria-pressed="true"] {
  box-shadow: 0 0 0 1px var(--ink);
}

.size-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.size-btn {
  height: 48px;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.size-btn[aria-pressed="true"] {
  border-color: var(--ink);
}

.buy__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buy__actions .btn-text {
  color: var(--muted);
}

.accordion {
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.accordion details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.accordion summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "＋";
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion p {
  margin-top: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.related {
  padding-top: 180px;
}

.related .section-title {
  margin-bottom: 28px;
}

.related .product-card {
  gap: 14px;
}

/* 장바구니 */

.cart {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
  align-items: flex-start;
}

.cart__items {
  flex: 999 1 560px;
  min-width: 0;
  border-top: 1px solid var(--ink);
}

.cart-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cart-item__image {
  width: 104px;
  flex: none;
  aspect-ratio: 3 / 4;
}

.cart-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  min-width: 160px;
}

.cart-item__name {
  font-size: 14px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.qty button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}

.qty span {
  width: 36px;
  text-align: center;
}

.cart-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 14px;
}

.cart-item__side .btn-text {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.summary {
  flex: 1 1 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
}

.summary .section-title {
  margin-bottom: 8px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
}

.summary__total {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
  align-items: baseline;
}

.summary__total span:last-child {
  font-size: 20px;
}

.summary .btn-primary {
  margin-top: 16px;
}

.summary__note {
  color: var(--muted);
  text-align: center;
}

/* 모바일 (시안 05 홈 모바일 기준) */

@media (max-width: 720px) {
  :root {
    --gutter: 24px;
  }

  .site-header__inner {
    height: auto;
    min-height: 64px;
    padding: 10px 8px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 0;
  }

  .site-header__inner--simple {
    display: flex;
    padding: 10px 24px;
  }

  .menu-toggle {
    display: flex;
  }

  .brand {
    font-size: 15px;
    padding-left: 0.32em;
    text-align: center;
  }

  .site-header__inner--simple .brand {
    padding-left: 0;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    padding: 8px 16px 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-util {
    grid-column: 3;
    grid-row: 1;
  }

  .site-util .util-link,
  .cart-link__text {
    display: none;
  }

  .cart-link {
    width: 44px;
    justify-content: center;
  }

  .cart-link__icon {
    display: block;
  }

  .eyebrow {
    font-size: 11px;
  }

  .section-title {
    font-size: 12px;
  }

  .link-line {
    font-size: 13px;
  }

  .site-footer {
    margin-top: 120px;
    font-size: 11px;
  }

  .site-footer__full {
    padding-top: 40px;
    padding-bottom: 48px;
    gap: 32px 40px;
  }

  .product-grid,
  .product-grid--lg,
  .product-grid--sm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 14px;
  }

  .product-card,
  .related .product-card {
    gap: 12px;
  }

  .product-card__info {
    gap: 4px;
    font-size: 12px;
  }

  .swatches {
    gap: 5px;
  }

  .swatch {
    width: 9px;
    height: 9px;
  }

  .hero {
    padding-top: 0;
  }

  .hero__image {
    aspect-ratio: 4 / 5;
    margin: 0 calc(var(--gutter) * -1);
    font-size: 12px;
  }

  .hero__body {
    margin-top: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero__text {
    gap: 10px;
  }

  .hero__title {
    font-size: 26px;
  }

  .home-section {
    padding-top: 104px;
  }

  .section-head {
    align-items: center;
    margin-bottom: 12px;
  }

  .section-head a {
    font-size: 12px;
  }

  .lookbook {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .lookbook__image {
    flex: none;
    width: 100%;
  }

  .lookbook__body {
    flex: none;
    padding: 0;
  }

  .lookbook__title {
    font-size: 22px;
  }

  .about {
    padding: 120px 8px 0;
    gap: 16px;
  }

  .about__text {
    font-size: 16px;
  }

  .page-main {
    padding-top: 56px;
  }

  .page-title {
    font-size: 26px;
  }

  .listing {
    margin-top: 40px;
  }

  .load-more {
    margin-top: 72px;
  }

  .product-main {
    padding-top: 0;
  }

  .product {
    gap: 16px;
  }

  .gallery {
    flex-basis: 100%;
    margin: 0 calc(var(--gutter) * -1);
  }

  .related {
    padding-top: 104px;
  }

  .cart {
    margin-top: 40px;
    gap: 48px;
  }

  .cart__items {
    flex-basis: 100%;
  }

  .cart-item {
    gap: 16px;
  }

  .cart-item__image {
    width: 88px;
  }
}
