.custom-catalog-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -8px 0 24px;
  padding: 14px 18px;
  border-left: 4px solid var(--custom-accent);
  background: #fff;
  color: #555;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .04);
}

.custom-catalog-notice i {
  color: var(--custom-accent);
  font-size: 18px;
}

.custom-catalog-notice a {
  color: var(--custom-ink);
  font-weight: 800;
  text-decoration: underline;
}

.custom-card__footer--catalog {
  align-items: center;
}

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

.custom-card,
.custom-card__body {
  min-width: 0;
}

.custom-card {
  overflow: hidden;
}

.custom-card__view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

a.custom-card__view:hover {
  color: var(--custom-accent);
}

.custom-colors-preview {
  border-top: 1px solid #eee;
}

.custom-colors-preview--card {
  margin: 0 0 15px;
  padding-top: 12px;
}

.custom-colors-preview--detail {
  margin: 0 0 22px;
  padding: 17px;
  border: 1px solid var(--custom-line);
  background: #fff;
}

.custom-colors-preview__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.custom-colors-preview__head strong {
  color: var(--custom-ink);
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.custom-colors-preview__head span {
  color: #999;
  font-size: 9px;
}

.custom-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-color-swatches--detail {
  flex-wrap: wrap;
  overflow: visible;
  padding: 2px;
}

.custom-color-swatch,
.custom-color-more {
  position: relative;
  isolation: isolate;
  contain: paint;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d9d6d0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}

.custom-color-swatch__image {
  position: absolute;
  inset: 2px;
  display: block;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  padding: 1px;
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
}

.custom-color-swatch:hover,
.custom-color-swatch.is-active {
  border-color: var(--custom-accent);
  box-shadow: 0 0 0 2px rgba(238, 59, 47, .16);
}

.custom-color-swatches--detail .custom-color-swatch {
  width: 52px;
  height: 52px;
}

.custom-color-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--custom-ink);
  font-size: 10px;
  font-weight: 800;
}

.custom-color-more:hover {
  border-color: var(--custom-accent);
  color: var(--custom-accent);
}

.custom-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #666;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.custom-back:hover {
  color: var(--custom-accent);
}

.custom-detail__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 42px;
  width: 100%;
  margin-bottom: 28px;
  padding: 8px 0 27px;
  border-bottom: 1px solid var(--custom-line);
}

.custom-detail__header h1 {
  margin-bottom: 0;
}

.custom-detail__header .custom-detail__price {
  margin: 0;
  white-space: nowrap;
}

.custom-detail--catalog .custom-detail__intro {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.custom-detail--catalog .custom-detail__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.custom-detail--catalog .custom-detail__visual,
.custom-detail--catalog .custom-detail__panel,
.custom-detail--catalog .custom-colors-preview {
  min-width: 0;
}

.custom-detail--catalog .custom-detail__visual {
  display: block;
  align-self: start;
  min-height: 0;
  height: auto;
}

.custom-detail--catalog .custom-detail__panel {
  padding-top: 0;
}

.custom-detail--catalog .custom-colors-preview--detail {
  margin-top: 0;
}

.custom-detail__media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 620px;
  overflow: hidden;
}

.custom-detail--catalog .custom-detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 18px 28px 8px;
  object-fit: contain;
  object-position: center top;
}

.custom-selected-color {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  gap: 3px 14px;
  padding: 17px 22px;
  border-top: 1px solid var(--custom-line);
  background: #fff;
}

.custom-selected-color span {
  grid-row: 1 / 3;
  align-self: center;
  color: #999;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.custom-selected-color strong {
  color: var(--custom-ink);
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
}

.custom-selected-color small {
  color: #888;
  font-size: 10px;
}

.custom-worn-photo {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  padding: 4px 9px 4px 4px;
  border: 1px solid var(--custom-line);
  background: #fff;
  color: var(--custom-ink);
  cursor: pointer;
}

.custom-worn-photo img {
  display: block;
  width: 42px;
  height: 42px;
  padding: 0;
  object-fit: cover;
}

.custom-worn-photo b {
  font-size: 10px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.custom-worn-photo:hover,
.custom-worn-photo.is-active {
  border-color: var(--custom-accent);
}

.custom-quantity-pricing {
  margin-top: 28px;
  border: 1px solid var(--custom-line);
  background: #fff;
}

.custom-quantity-pricing__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--custom-line);
}

.custom-quantity-pricing__head span {
  display: block;
  margin-bottom: 4px;
  color: var(--custom-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.custom-quantity-pricing__head h2 {
  margin: 0;
  font-size: 17px;
}

.custom-quantity-pricing__head small {
  color: #888;
  font-size: 9px;
  text-align: right;
}

.custom-quantity-pricing__notice {
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--custom-line);
  border-left: 3px solid var(--custom-accent);
  background: #faf9f7;
  color: #444;
  font-size: 11px;
  font-weight: 700;
}

.custom-quantity-pricing table {
  width: 100%;
  border-collapse: collapse;
}

.custom-quantity-pricing th,
.custom-quantity-pricing td {
  padding: 11px 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.custom-quantity-pricing thead th {
  color: #999;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.custom-quantity-pricing tbody th {
  color: #555;
  font-size: 12px;
}

.custom-quantity-pricing tbody td {
  color: var(--custom-ink);
  font-size: 15px;
  font-weight: 800;
}

.custom-quantity-pricing__over th,
.custom-quantity-pricing__over td {
  color: var(--custom-accent) !important;
}

.custom-readonly-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--custom-line);
}

.custom-readonly-section h2 {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.custom-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.custom-size-list span {
  min-width: 42px;
  padding: 8px 10px;
  border: 1px solid var(--custom-line);
  background: #fff;
  color: #333;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.custom-catalog-notice--detail {
  margin: 24px 0 18px;
  box-shadow: none;
}

.custom-variants {
  padding: 68px 0;
  background: var(--custom-paper);
}

.custom-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.custom-color-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #ebe8e2;
}

.custom-color-card__sample {
  display: grid;
  place-items: center;
  isolation: isolate;
  contain: paint;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 28px;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.custom-color-card__sample img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.custom-color-card__sample:hover {
  outline: 2px solid var(--custom-accent);
  outline-offset: -2px;
}

.custom-color-card div {
  padding: 12px 14px;
  border-top: 1px solid #eee;
}

.custom-color-card strong,
.custom-color-card small {
  display: block;
}

.custom-color-card strong {
  overflow: hidden;
  color: var(--custom-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-color-card small {
  margin-top: 3px;
  color: #999;
  font-size: 9px;
}

@media (max-width: 991px) {
  .custom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .custom-color-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .custom-detail__media {
    height: 500px;
  }
}

@media (max-width: 767px) {
  .custom-catalog-notice {
    align-items: flex-start;
  }

  .custom-color-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .custom-detail--catalog .custom-detail__grid {
    grid-template-columns: 1fr;
  }

  .custom-detail__header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .custom-detail__header .custom-detail__price {
    white-space: normal;
  }

  .custom-selected-color {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .custom-worn-photo {
    grid-column: 1 / 3;
    grid-row: 3;
    justify-self: start;
    margin-top: 8px;
  }

  .custom-quantity-pricing__head {
    display: block;
  }

  .custom-quantity-pricing__head small {
    display: block;
    margin-top: 7px;
    text-align: left;
  }

  .custom-detail__media {
    height: 460px;
  }
}
