@charset "UTF-8";

.yamm-product[data-product-domain="fashion"] .yamm-product-summary__purchase,
.yamm-product[data-product-domain="leather"] .yamm-product-summary__purchase {
  margin-top: clamp(58px, 4.6vw, 68px);
}

.yamm-linked-colors {
  width: 100%;
  margin: 0 0 20px;
}

.yamm-linked-colors__header {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--yamm-font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.yamm-linked-colors__strip {
  display: flex;
  align-items: stretch;
  gap: 7px;
  width: 100%;
  overflow: hidden;
}

.yamm-linked-colors__chip,
.yamm-linked-colors__more {
  flex: 0 0 calc((100% - 28px) / 5);
  width: calc((100% - 28px) / 5);
  max-width: 72px;
  min-width: 54px;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #f7f7f7;
  color: #111;
  box-sizing: border-box;
  overflow: hidden;
  text-decoration: none;
}

.yamm-linked-colors__chip.is-current { border-color: #111; }

.yamm-linked-colors__thumb,
.yamm-linked-colors__thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.yamm-linked-colors__thumb img {
  object-fit: contain;
  background: #f7f7f7;
}

.yamm-linked-colors__more {
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: var(--yamm-font-ui);
  font-size: 15px;
  line-height: 1;
}

.yamm-linked-colors__chip:hover,
.yamm-linked-colors__chip:focus-visible,
.yamm-linked-colors__more:hover,
.yamm-linked-colors__more:focus-visible {
  border-color: rgba(0,0,0,.32);
  outline: 0;
}

html.yamm-color-sheet-open,
body.yamm-color-sheet-open { overflow: hidden !important; }

.yamm-color-sheet {
  position: fixed;
  z-index: 2147482000;
  inset: 0;
  pointer-events: none;
}

.yamm-color-sheet[hidden] { display: none; }
.yamm-color-sheet.is-open { pointer-events: auto; }

.yamm-color-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0,0,0,.64);
  opacity: 0;
  cursor: default;
  transition: opacity 240ms ease;
}

.yamm-color-sheet.is-open .yamm-color-sheet__backdrop { opacity: 1; }

.yamm-color-sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(50vw, 760px);
  min-width: 620px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
  box-shadow: -18px 0 42px rgba(0,0,0,.08);
  transform: translate3d(100%,0,0);
  transition: transform 280ms cubic-bezier(.22,.61,.36,1);
}

.yamm-color-sheet.is-open .yamm-color-sheet__panel { transform: translate3d(0,0,0); }

.yamm-color-sheet__header {
  flex: 0 0 auto;
  min-height: 104px;
  padding: 30px 64px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.yamm-color-sheet__header h2 {
  margin: 0;
  font-family: var(--yamm-font-ui);
  font-size: 21px;
  font-weight: 400;
}

.yamm-color-sheet__close {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-family: var(--yamm-font-ui);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.yamm-color-sheet__close:hover,
.yamm-color-sheet__close:focus-visible { background: #f6f6f6; outline: 0; }

.yamm-color-sheet__scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 64px 48px;
  overflow: auto;
  overscroll-behavior: contain;
}

.yamm-color-sheet__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 26px 18px;
}

.yamm-color-sheet__item {
  min-width: 0;
  color: #111;
  text-decoration: none;
  font-family: var(--yamm-font-ui);
  font-size: 15px;
}

.yamm-color-sheet__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 12px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #f7f7f7;
  overflow: hidden;
}

.yamm-color-sheet__item.is-current .yamm-color-sheet__thumb { border-color: #111; }
.yamm-color-sheet__thumb img { width: 100%; height: 100%; object-fit: contain; }
.yamm-color-sheet__item small { display: block; margin-top: 3px; color: #8b8b8b; font-size: 13px; }

.yamm-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.yamm-product-card__price-row {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.yamm-product-card__price-row .yamm-product-card__price { margin-top: 0; }

.yamm-product-card__swatches {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 16px;
  white-space: nowrap;
}

.yamm-product-card__swatch {
  --yamm-card-swatch: #777;
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 50%;
  background: var(--yamm-card-swatch);
  box-sizing: border-box;
  text-decoration: none;
}

.yamm-product-card__swatch.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: #111;
}

.yamm-product-card__swatch:hover,
.yamm-product-card__swatch:focus-visible { transform: scale(1.08); outline: 0; }

.yamm-product-card__swatch-more {
  color: #222;
  font-family: var(--yamm-font-body);
  font-size: 11px;
  line-height: 13px;
}

@media (max-width: 980px) {
  .yamm-product[data-product-domain="fashion"] .yamm-product-summary__purchase,
  .yamm-product[data-product-domain="leather"] .yamm-product-summary__purchase { margin-top: 48px; }

  .yamm-linked-colors__chip,
  .yamm-linked-colors__more { max-width: none; min-width: 0; }

  .yamm-color-sheet__panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-width: 0;
    height: min(82dvh, 760px);
    transform: translate3d(0,100%,0);
    border-radius: 18px 18px 0 0;
  }
  .yamm-color-sheet__header { min-height: 78px; padding: 20px 22px 14px; }
  .yamm-color-sheet__scroll { padding: 0 18px 26px; }
  .yamm-color-sheet__grid { gap: 20px 12px; }
}

@media (max-width: 620px) {
  .yamm-product[data-product-domain="fashion"] .yamm-product-summary__purchase,
  .yamm-product[data-product-domain="leather"] .yamm-product-summary__purchase { margin-top: 42px; }
  .yamm-linked-colors { margin-bottom: 18px; }
  .yamm-linked-colors__header { font-size: 13px; }
  .yamm-product-card__swatches { gap: 5px; }
  .yamm-product-card__swatch { width: 12px; height: 12px; flex-basis: 12px; }
  .yamm-product-card__swatch-more { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .yamm-color-sheet__panel,
  .yamm-color-sheet__backdrop { transition: none; }
}
