:root {
  --byz-d-red: #e72819;
  --byz-d-red-hover: #ed3838;
  --byz-d-ink: #111111;
  --byz-d-white: #ffffff;
  --byz-d-soft: #f2f2f2;
  --byz-d-line: #ececec;
  --byz-d-muted: #555555;
  --byz-d-yellow: #ffd91d;
  --byz-d-bar-h: 34px;
  --byz-d-nav-h: 125px;
  --byz-d-hero-h: 768px;
  --byz-d-max: 1360px;
  --byz-d-shadow: rgba(17, 17, 17, 0.16);
  --byz-d-dialog-backdrop: rgba(17, 17, 17, 0.56);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--byz-d-white);
  color: var(--byz-d-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  line-height: 1.5;
  word-break: keep-all;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--byz-d-ink);
  outline-offset: 3px;
}

.d-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  min-height: 44px;
  padding: 12px 16px;
  transform: translateY(-140%);
  background: var(--byz-d-white);
  font-weight: 800;
}

.d-skip:focus {
  transform: translateY(0);
}

.d-campaign {
  position: relative;
  z-index: 90;
  height: var(--byz-d-bar-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  background: var(--byz-d-red);
  color: var(--byz-d-ink);
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.d-header {
  position: fixed;
  top: var(--byz-d-bar-h);
  left: 0;
  z-index: 80;
  width: 100%;
  height: var(--byz-d-nav-h);
  color: var(--byz-d-ink);
  transition: background-color 180ms ease, top 180ms ease, box-shadow 180ms ease;
}

.d-header.is-scrolled {
  top: 0;
  background: var(--byz-d-white);
  box-shadow: 0 1px 0 var(--byz-d-line);
}

.d-nav-main {
  width: min(var(--byz-d-max), calc(100% - 80px));
  height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.d-primary-nav,
.d-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.d-primary-nav a,
.d-compare-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.d-primary-nav a:hover,
.d-compare-link:hover {
  color: var(--byz-d-red-hover);
}

.d-brand {
  justify-self: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.d-brand img {
  width: 170px;
  height: auto;
}

.d-actions {
  justify-content: flex-end;
}

.d-icon-button,
.d-dialog-head button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.d-icon-button:hover,
.d-dialog-head button:hover {
  background: var(--byz-d-red);
}

.d-icon-button svg,
.d-dialog-head svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.d-mobile-only {
  display: none;
}

.d-category-rail {
  width: min(var(--byz-d-max), calc(100% - 80px));
  height: 43px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.d-category-rail::-webkit-scrollbar {
  display: none;
}

.d-category-rail button {
  min-width: 68px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.d-category-rail button:hover,
.d-category-rail button[aria-pressed="true"] {
  border-bottom-color: var(--byz-d-red);
}

.d-hero {
  position: relative;
  height: var(--byz-d-hero-h);
  min-height: 680px;
  overflow: hidden;
  background: var(--byz-d-soft);
}

.d-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.d-hero-copy {
  position: absolute;
  left: max(40px, calc((100vw - var(--byz-d-max)) / 2));
  bottom: 76px;
  z-index: 2;
  max-width: 650px;
}

.d-hero-copy > p,
.d-section-heading > div > p,
.d-fit-lead > p,
.d-about > p:first-child {
  margin: 0 0 10px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.d-hero h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.d-hero-copy > strong {
  margin-top: 18px;
  display: block;
  font-size: 28px;
  font-weight: 800;
}

.d-hero-links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.d-solid-link,
.d-text-link,
.d-about > a,
.d-quick-view > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.d-solid-link {
  padding: 0 22px;
  background: var(--byz-d-ink);
  color: var(--byz-d-white);
}

.d-solid-link:hover {
  background: var(--byz-d-red);
  color: var(--byz-d-ink);
}

.d-text-link {
  border-bottom: 2px solid var(--byz-d-ink);
}

.d-text-link svg,
.d-about > a svg {
  width: 16px;
  height: 16px;
}

.d-ai-stamp {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 10px;
  background: var(--byz-d-ink);
  color: var(--byz-d-white);
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.d-color-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--byz-d-ink);
  color: var(--byz-d-white);
}

.d-color-index a {
  min-height: 146px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-content: center;
  column-gap: 14px;
  border-right: 1px solid var(--byz-d-muted);
}

.d-color-index a:nth-child(2) {
  background: var(--byz-d-red);
  color: var(--byz-d-ink);
}

.d-color-index a:nth-child(3) {
  background: var(--byz-d-yellow);
  color: var(--byz-d-ink);
}

.d-color-index a:hover strong {
  text-decoration: underline;
}

.d-color-index span {
  grid-row: 1 / 3;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
}

.d-color-index strong {
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  line-height: 1.1;
}

.d-color-index small {
  margin-top: 8px;
  font-size: 12px;
}

.d-lookbook,
.d-shop {
  width: min(var(--byz-d-max), calc(100% - 80px));
  margin: 0 auto;
  padding: 104px 0;
}

.d-section-heading {
  margin-bottom: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.d-section-heading h2,
.d-fit h2,
.d-about h2 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.d-section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--byz-d-muted);
  font-size: 14px;
}

.d-look-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(260px, 390px));
  gap: 12px;
}

.d-look-grid a {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: var(--byz-d-soft);
}

.d-look-grid a:first-child {
  grid-row: 1 / 3;
}

.d-look-grid a:last-child {
  grid-column: 2 / 4;
}

.d-look-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.d-look-grid a:hover img {
  transform: scale(1.02);
}

.d-look-grid span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  background: var(--byz-d-white);
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.d-shop {
  width: 100%;
  max-width: none;
  padding-right: 40px;
  padding-left: 40px;
  background: var(--byz-d-soft);
}

.d-shop-heading {
  width: min(var(--byz-d-max), 100%);
  margin-right: auto;
  margin-left: auto;
}

.d-product-grid {
  width: min(var(--byz-d-max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 18px;
}

.d-product-card {
  min-width: 0;
  display: block;
}

.d-product-card[hidden] {
  display: none;
}

.d-product-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--byz-d-white);
}

.d-product-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.d-product-card:hover figure img {
  transform: scale(1.025);
}

.d-product-card figure span {
  position: absolute;
  left: 8px;
  top: 8px;
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  background: var(--byz-d-ink);
  color: var(--byz-d-white);
  font-family: Montserrat, sans-serif;
  font-size: 9px;
  font-weight: 800;
}

.d-product-card > div {
  padding: 14px 2px 0;
}

.d-product-card small {
  color: var(--byz-d-red);
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.d-product-card h3 {
  margin: 6px 0 4px;
  font-size: 15px;
  line-height: 1.3;
}

.d-product-card p,
.d-product-card strong {
  margin: 0;
  color: var(--byz-d-muted);
  font-size: 12px;
  font-weight: 500;
}

.d-product-card strong {
  margin-top: 5px;
  display: block;
  color: var(--byz-d-ink);
  font-weight: 800;
}

.d-fit {
  padding: 110px max(40px, calc((100vw - var(--byz-d-max)) / 2));
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 90px;
  background: var(--byz-d-yellow);
}

.d-fit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.d-fit-list > div {
  min-height: 170px;
  padding: 24px 28px 24px 0;
  border-top: 2px solid var(--byz-d-ink);
}

.d-fit-list > div:nth-child(odd) {
  margin-right: 32px;
}

.d-fit-list span {
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.d-fit-list h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.d-fit-list p {
  margin: 0;
  font-size: 14px;
}

.d-about {
  min-height: 520px;
  padding: 94px max(40px, calc((100vw - var(--byz-d-max)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--byz-d-red);
  color: var(--byz-d-ink);
}

.d-about h2 {
  max-width: 930px;
  font-size: 68px;
}

.d-about > p:last-of-type {
  max-width: 600px;
  margin: 28px 0 0;
  font-size: 16px;
}

.d-about > a {
  align-self: flex-start;
  margin-top: 28px;
  border-bottom: 2px solid var(--byz-d-ink);
}

.d-footer {
  padding: 72px max(40px, calc((100vw - var(--byz-d-max)) / 2));
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  background: var(--byz-d-ink);
  color: var(--byz-d-white);
}

.d-footer-brand img {
  width: 160px;
}

.d-footer h2 {
  margin: 0 0 14px;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
}

.d-footer p,
.d-footer a {
  margin: 0 0 8px;
  display: block;
  color: var(--byz-d-line);
  font-size: 12px;
  line-height: 1.7;
}

.d-footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.d-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0 26px 28px;
  border: 2px solid var(--byz-d-ink);
  border-radius: 0;
  background: var(--byz-d-white);
  color: var(--byz-d-ink);
}

.d-dialog::backdrop {
  background: var(--byz-d-dialog-backdrop);
}

.d-dialog-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--byz-d-line);
}

.d-dialog-head h2 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
}

.d-dialog nav {
  padding-top: 18px;
}

.d-dialog nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--byz-d-line);
  font-family: Montserrat, sans-serif;
  font-weight: 800;
}

.d-dialog label {
  margin: 22px 0 8px;
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.d-dialog input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--byz-d-ink);
  border-radius: 0;
}

.d-quick-view > img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  margin-top: 20px;
  background: var(--byz-d-soft);
}

.d-quick-view > a {
  margin-top: 18px;
  padding: 0 18px;
  background: var(--byz-d-ink);
  color: var(--byz-d-white);
}

@media (max-width: 1100px) {
  .d-nav-main,
  .d-category-rail,
  .d-lookbook {
    width: calc(100% - 48px);
  }

  .d-primary-nav {
    gap: 10px;
  }

  .d-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .d-look-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .d-look-grid a:last-child {
    grid-column: auto;
  }

  .d-fit {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 820px) {
  :root {
    --byz-d-nav-h: 112px;
    --byz-d-hero-h: 700px;
  }

  .d-campaign {
    padding: 0 12px;
    justify-content: center;
    font-size: 9px;
  }

  .d-campaign span:last-child {
    display: none;
  }

  .d-header,
  .d-header.is-scrolled {
    top: var(--byz-d-bar-h);
    background: var(--byz-d-white);
    box-shadow: 0 1px 0 var(--byz-d-line);
  }

  .d-nav-main {
    width: calc(100% - 20px);
    height: 64px;
    grid-template-columns: 88px 1fr 88px;
    gap: 0;
  }

  .d-mobile-only {
    display: inline-grid;
  }

  .d-primary-nav,
  .d-compare-link {
    display: none;
  }

  .d-brand img {
    width: 126px;
  }

  .d-actions {
    gap: 0;
  }

  .d-category-rail {
    width: 100%;
    height: 48px;
    padding: 0 10px;
    justify-content: flex-start;
    background: var(--byz-d-white);
    border-top: 1px solid var(--byz-d-line);
  }

  .d-category-rail button {
    flex: 0 0 auto;
  }

  .d-hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .d-hero > img {
    height: 470px;
    flex: 0 0 470px;
    object-position: 68% center;
  }

  .d-hero-copy {
    position: static;
    width: 100%;
    max-width: none;
    padding: 20px 18px 22px;
    background: var(--byz-d-red);
  }

  .d-hero h1 {
    font-size: 52px;
  }

  .d-hero-copy > strong {
    margin-top: 10px;
    font-size: 20px;
  }

  .d-hero-links {
    margin-top: 16px;
  }

  .d-ai-stamp {
    top: 124px;
    right: 8px;
    bottom: auto;
  }

  .d-color-index {
    grid-template-columns: 1fr;
  }

  .d-color-index a {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid var(--byz-d-muted);
  }

  .d-lookbook,
  .d-shop {
    width: 100%;
    padding: 72px 16px;
  }

  .d-section-heading {
    display: block;
  }

  .d-section-heading h2,
  .d-fit h2 {
    font-size: 32px;
  }

  .d-section-heading > p {
    margin-top: 16px;
  }

  .d-look-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 320px repeat(2, 230px);
    gap: 8px;
  }

  .d-look-grid a:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .d-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 10px;
  }

  .d-product-card h3 {
    font-size: 13px;
  }

  .d-product-card p,
  .d-product-card strong {
    font-size: 11px;
  }

  .d-fit {
    padding: 72px 16px;
  }

  .d-fit-list {
    grid-template-columns: 1fr;
  }

  .d-fit-list > div:nth-child(odd) {
    margin-right: 0;
  }

  .d-about {
    min-height: 430px;
    padding: 72px 16px;
  }

  .d-about h2 {
    font-size: 42px;
  }

  .d-footer {
    padding: 60px 16px;
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
