@font-face {
  font-family: "MyFont";
  src: url("../_font/Roboto-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "MyFont-Light";
  src: url("../_font/Roboto-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "2nd-Brigade";
  src: url("../_font/2nd-Brigade.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "MyFont", Arial, sans-serif;
}

h1 {
  font-family: "2nd-Brigade", sans-serif;
}

.item-detail-page {
  --item-x-padding: clamp(16px, 2.4vw, 40px);
  width: 100%;
  padding: 16px var(--item-x-padding) 64px;
}

.item-detail-nav {
  max-width: 1280px;
  margin: 0 auto 14px;
}

.item-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #555;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.item-back-link:hover,
.item-back-link:focus-visible {
  background: #fff;
  color: #111;
  outline: none;
  transform: translateY(-1px);
}

.wrap-item-dtail {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.72fr);
  gap: clamp(20px, 3vw, 38px);
  max-width: 1280px;
  margin: 0 auto 48px;
}

/* Grid/flex minimum content sizes must not become page widths. */
.wrap-carousel,
.wrap-detail,
.detail-inner,
.item-creator-card span,
.item-related-card {
  min-width: 0;
}

.item-detail-page {
  overflow-wrap: anywhere;
}

.item-creator-card {
  max-width: 100%;
}

.item-creator-card img,
.item-size-chart-link img {
  flex-shrink: 0;
}

.item-detail-page a:focus-visible,
.item-detail-page button:focus-visible {
  outline: 3px solid #345b78;
  outline-offset: 3px;
}

.item-skeleton {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #eeeeee 25%, #f7f7f7 40%, #eeeeee 65%);
  background-size: 220% 100%;
  animation: item-skeleton-pulse 1.1s ease-in-out infinite;
}

.item-skeleton-title {
  width: min(320px, 80%);
  height: 30px;
}

.item-skeleton-price {
  width: 150px;
  height: 22px;
}

.item-skeleton-copy {
  width: min(430px, 95%);
  height: 72px;
  border-radius: 14px;
}

.item-skeleton-image {
  width: 76%;
  height: 76%;
  border-radius: 18px;
}

.item-skeleton-thumb {
  width: 100%;
  height: 70px;
  border-radius: 12px;
}

@keyframes item-skeleton-pulse {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.carousel {
  --item-thumb-size: 84px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carousel-loading {
  pointer-events: none;
}

.carousel-view {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #ececec;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  touch-action: pan-y;
  user-select: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

.carousel-view.is-gesture-active {
  cursor: grabbing;
}

.carousel.is-video-active .carousel-view {
  touch-action: auto;
  user-select: auto;
}

.carousel-main-wrap {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ececec;
}

.carousel-main {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.item-carousel-video {
  flex: 0 0 100%;
  background: #111;
}

.carousel.is-video-active .carousel-main-wrap {
  background: #111;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.54);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.carousel-arrow:hover {
  background: rgba(20, 20, 20, 0.7);
}

.carousel-arrow:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.carousel-arrow[hidden] {
  display: none;
}

.carousel-arrow:focus-visible,
.carousel-thumb:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.carousel-arrow.prev {
  left: 14px;
}

.carousel-arrow.next {
  right: 14px;
}

.carousel-thumbs-shell {
  --item-thumb-gap: 10px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.carousel-thumbs-shell[hidden] {
  display: none;
}

.carousel-thumbs {
  display: flex;
  gap: var(--item-thumb-gap);
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  overscroll-behavior-inline: contain;
}

.carousel-thumbs--center {
  justify-content: safe center;
}

.carousel-thumbs::-webkit-scrollbar {
  display: none;
}

.carousel-thumbs.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.carousel-thumb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #555;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 12px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
}

.carousel-thumb-nav:hover:not(:disabled),
.carousel-thumb-nav:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  transform: translateY(calc(-50% - 1px));
}

.carousel-thumb-nav:disabled {
  opacity: 0.28;
  cursor: default;
  transform: translateY(-50%);
}

.carousel-thumb-nav.is-hidden {
  display: none;
  pointer-events: none;
}

.carousel-thumb-nav.prev {
  left: 8px;
}

.carousel-thumb-nav.next {
  right: 8px;
}

.carousel-thumb {
  flex: 0 0 var(--item-thumb-size);
  width: var(--item-thumb-size);
  position: relative;
  background: #f2f3f5;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-width: 0;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.88;
  transition:
    transform 0.14s ease,
    opacity 0.14s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.carousel-thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-thumb-video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #111;
}

.carousel-thumb-video__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.carousel-thumb-video__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
}

.carousel-thumb-video__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.carousel-thumb-video__play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.carousel-thumb-video__badge {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 1;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.carousel-thumb.is-active {
  opacity: 1;
  border-color: rgba(34, 34, 34, 0.72);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.09);
}

.carousel-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.carousel-counter[hidden] {
  display: none;
}

.carousel-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.item-image-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  color: #666;
  text-align: center;
}

.item-image-state strong {
  display: block;
  color: #222;
  font-size: 18px;
}

.item-image-state span {
  display: block;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
}

.wrap-detail {
  align-self: start;
  position: sticky;
  top: 88px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.detail-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.detail-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #62666d;
  background: #ececec;
  padding: 6px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.item-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -6px -6px -6px 0;
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #272727;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.item-share-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item-share-button:hover {
  background: #f4f4f4;
  border-color: #c9c9c9;
}

.item-share-button:active {
  transform: scale(0.96);
}

.item-share-button:focus-visible {
  outline: 3px solid rgba(28, 92, 168, 0.28);
  outline-offset: 2px;
}

.item-name {
  margin: 0;
  font-family: "MyFont", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #161616;
  line-height: 1.08;
}

.item-garment-name {
  margin-top: 4px;
  color: #666;
  font-size: 13px;
}

.item-creator {
  color: #6c6c6c;
  font-size: 14px;
  font-weight: 650;
}

.item-creator-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #333;
  text-decoration: none;
}

.item-creator-card img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #eeeeee;
}

.item-creator-card:hover,
.item-creator-card:focus-visible {
  color: #000;
  text-decoration: underline;
  outline: none;
}

.item-creator-card--static {
  cursor: default;
}

.item-creator-card--static:hover,
.item-creator-card--static:focus-visible {
  color: #333;
  text-decoration: none;
}

.item-price {
  font-size: 18px;
  font-weight: 760;
  color: #111;
}

.item-price-note,
.item-cta-helper {
  color: #747474;
  font-size: 13px;
  line-height: 1.45;
}

.item-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  padding-bottom: 6px;
}

.item-family-picker[hidden],
.item-size-chart[hidden] {
  display: none;
}

.item-family-picker fieldset {
  min-width: 0;
  margin: 4px 0;
  padding: 0;
  border: 0;
}

.item-family-picker legend,
.item-size-chart h2 {
  margin: 0 0 8px;
  color: #222;
  font-size: 13px;
  font-weight: 750;
}

.item-family-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 2px 2px 6px;
}

.item-family-option {
  min-width: 150px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  color: #222;
  text-decoration: none;
}

.item-family-option.is-loading {
  opacity: .58;
  pointer-events: none;
}

.item-family-option.is-selected {
  border-color: #1f1f1f;
  background: #f5f5f5;
}

.item-family-option:focus-visible {
  border-color: #1f1f1f;
  outline: none;
  box-shadow: none;
}

.item-family-option img {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  object-position: center top;
  background: #eee;
}

.item-family-option span:not(.item-family-option-check) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.item-family-option strong {
  overflow: hidden;
  color: #222;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-family-option small {
  color: #676767;
  font-size: 12px;
}

.item-family-option-check {
  color: #222;
  font-size: 14px;
  font-weight: 800;
}

.item-size-chart {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.item-size-chart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.item-size-chart-link:focus-visible {
  outline: 1px solid #1f1f1f;
  outline-offset: 2px;
}

.item-size-chart-link img {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
  background: #eee;
}

.item-customize-btn,
.item-sticky-cta-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #202020;
  color: #fff;
  font-size: 16px;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.item-customize-btn:hover,
.item-sticky-cta-btn:hover {
  background: #333;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.item-customize-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.item-customize-btn::after,
.item-sticky-cta-btn::after {
  content: "\2192";
  font-size: 20px;
  line-height: 1;
}

.feature-desc {
  font-family: "MyFont", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
  white-space: pre-line;
}

.wrap-features {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #eeeeee;
}

.feature-icon img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}

.wrap-detail.is-error {
  border: 1px solid #eeeeee;
}

.item-related {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 10px;
}

.item-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.item-related-head h2 {
  margin: 0;
  color: #171717;
  font-size: 22px;
  line-height: 1.2;
}

.item-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.item-related-status {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  color: #747474;
  font-size: 13px;
  text-align: center;
}

.item-related-sentinel {
  width: 100%;
  height: 1px;
}

.item-related-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-top: 8px;
}

.item-related-load-more,
.item-related-explore {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #efefef;
  color: #222;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    transform 0.16s ease;
}

.item-related-load-more:hover,
.item-related-load-more:focus-visible,
.item-related-explore:hover,
.item-related-explore:focus-visible {
  background: #e2e2e2;
  outline: none;
  transform: translateY(-1px);
}

.item-related-empty {
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  color: #6f6f6f;
  text-align: center;
  font-size: 14px;
}

.item-related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.item-related-card:hover,
.item-related-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  outline: none;
}

.item-related-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

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

.item-related-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 14px 15px;
}

.item-related-name {
  width: min(100%, 24ch);
  color: #202020;
  font-size: 15px;
  font-weight: 740;
  line-height: 1.28;
}

.item-related-price {
  color: #202020;
  font-size: 14px;
  font-weight: 700;
}

.item-related-family-count {
  color: #696969;
  font-size: 12px;
  line-height: 1.35;
}

.item-related-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.item-sticky-cta {
  display: none;
}

@media (max-width: 980px) {
  .wrap-item-dtail {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 38px;
  }

  .wrap-detail {
    position: static;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .wrap-detail {
    position: static;
  }
}

@media (max-width: 640px) {
  /* The existing fixed CTA must not cover the last footer link. */
  .item-public-page .site-shell {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .item-back-link,
  .item-creator-card,
  .item-related-load-more,
  .item-related-explore {
    min-height: 44px;
  }

  .item-detail-page {
    padding: 12px 14px 96px;
  }

  .wrap-item-dtail {
    gap: 18px;
  }

  .carousel-view,
  .wrap-detail,
  .item-image-state {
    border-radius: 18px;
  }

  .carousel-thumbs-shell {
    width: 100%;
  }

  .carousel {
    --item-thumb-size: 60px;
  }

  .carousel-thumb-nav {
    display: none;
  }

  .wrap-detail {
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .item-name {
    font-size: 24px;
  }

  .item-customize-btn {
    width: 100%;
  }

  .wrap-features {
    margin-top: 28px;
  }

  .item-related-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .item-related-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .item-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    justify-content: center;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 244, 244, 0.88);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
  }

  .item-sticky-cta[hidden] {
    display: none !important;
  }

  .item-sticky-cta-btn {
    width: min(100%, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .item-share-button {
    transition: none;
  }

  .item-skeleton {
    animation: none;
  }

  .carousel-thumbs {
    scroll-behavior: auto;
  }

  .carousel-arrow,
  .carousel-thumb,
  .carousel-thumb-nav {
    transition: none;
  }
}
