/* Card presentation is shared by home, shop and related-product lists.
   Keep RTL text, but explicitly anchor category left and color choices right. */
.colors-identity .product-card.product-card--fashion { display: flex; flex-direction: column; min-width: 0; }
.colors-identity .product-card.product-card--fashion .product-card-body {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 26px 30px 18px 72px;
  gap: 0; min-width: 0; padding: 10px 2px 0; text-align: right;
}
.colors-identity .product-card.product-card--fashion .product-card__title-row {
  grid-row: 2; order: 1; display: flex; align-items: center; min-width: 0; min-height: 0;
}
.colors-identity .product-card.product-card--fashion .product-card__title-row h3 {
  display: block; width: 100%; min-width: 0; min-height: 0; max-width: 100%; margin: 0; overflow: hidden;
  white-space: nowrap; overflow-wrap: normal; word-break: normal; text-overflow: ellipsis;
}
.colors-identity .product-card.product-card--fashion .product-card__title-row h3 a {
  display: block; max-width: 100%; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; overflow-wrap: normal; word-break: normal; transform: none;
}
.colors-identity .product-card.product-card--fashion .product-card__variant-row {
  grid-row: 1; order: 0; margin: 0;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  direction: rtl; width: 100%; min-width: 0; min-height: 22px; gap: 8px;
}
.colors-identity .product-card.product-card--fashion .product-card__variant-row .swatches {
  flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; justify-content: flex-start; margin: 0;
}
.colors-identity .product-card.product-card--fashion .product-card__design-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colors-identity .product-card.product-card--fashion .product-card__variant-row .product-card__category {
  display: block; flex: 0 1 auto; min-width: 0; max-width: 60%; margin: 0;
  margin-inline-start: auto; text-align: left; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; line-height: 1.8;
}
.colors-identity .product-card.product-card--fashion .product-card__meta {
  grid-row: 3; order: 2; min-height: 0; margin: 0; justify-content: flex-start;
}
.colors-identity .product-card.product-card--fashion .product-card__meta .product-card-rating { margin: 0; line-height: 18px; }
.colors-identity .product-card.product-card--fashion .product-card__commerce {
  grid-row: 4; order: 3; display: flex; align-items: flex-end; gap: 8px;
  direction: rtl; width: 100%; min-width: 0; margin: 0; padding: 7px 0 0;
  border-top: 1px solid var(--line, #e7dad5); justify-content: space-between;
}
.colors-identity .product-card.product-card--fashion .product-card__commerce .price {
  display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column;
  align-items: flex-start; justify-content: flex-end; align-self: stretch;
  margin: 0; direction: rtl; text-align: right;
}
.colors-identity .product-card.product-card--fashion .product-card__commerce .price > * {
  align-self: flex-start; text-align: right;
}
.colors-identity .product-card.product-card--fashion .product-card__commerce .price > span,
.colors-identity .product-card.product-card--fashion .product-card__commerce .price del { line-height: 18px; }
.colors-identity .product-card.product-card--fashion .product-card__commerce .price strong {
  display: block; max-width: 100%; line-height: 26px; white-space: nowrap; overflow-wrap: normal;
  font-size: clamp(11px, 1.1vw, 15px) !important;
}
.colors-identity .product-card.product-card--fashion .product-card__quick-add { align-self: flex-end; margin-bottom: 0; }

/* Every card reserves the same portrait stage, including missing/broken images.
   Contain preserves the complete garment/model; the stage is transparent rather
   than a gray inset. Source dimensions must never set the card's row height. */
.colors-identity .product-card.product-card--fashion:nth-child(n) .product-card__media { flex: 0 0 auto; width: 100%; }
.colors-identity .product-card.product-card--fashion:nth-child(n) .product-image {
  position: relative; display: block; width: 100%; height: auto !important;
  min-height: 0; aspect-ratio: 3 / 4; overflow: hidden;
}
.colors-identity .product-card.product-card--fashion:not(.product-card--tryon-garment):nth-child(n) .product-card__media,
.colors-identity .product-card.product-card--fashion:not(.product-card--tryon-garment):nth-child(n) .product-image,
.colors-identity .product-card.product-card--fashion:not(.product-card--tryon-garment):nth-child(n) .product-image :is(picture, img) {
  margin: 0; padding: 0 !important; border: 0; border-radius: 0 !important;
  background: transparent !important; background-image: none !important;
  box-shadow: none; filter: none; transform: none !important;
}
.colors-identity .product-card.product-card--fashion:nth-child(n) .product-image > picture {
  position: absolute; inset: 0; display: block; width: 100%; height: 100% !important;
}
.colors-identity .product-card.product-card--fashion:nth-child(n) .product-image > picture img {
  display: block; width: 100%; max-width: 100%; height: 100% !important;
  object-fit: contain !important; object-position: center;
}
.colors-identity .product-card.product-card--fashion .product-image__placeholder[hidden] { display: none !important; }
.colors-identity .product-card.product-card--fashion .product-image.is-image-unavailable > picture,
.colors-identity .product-card.product-card--fashion .product-image.is-image-unavailable > .product-image__hint { display: none !important; }
.colors-identity .product-card.product-card--fashion .product-image.is-single-view > .product-image__primary { opacity: 1 !important; }
.colors-identity .product-card.product-card--fashion .product-image.is-single-view > .product-image__hint { display: none; }
.colors-identity .product-card.product-card--fashion .product-image__placeholder {
  background: transparent; border-radius: 0; color: #746762;
}
.colors-identity .product-card.product-card--fashion:not(.product-card--tryon-garment):nth-child(n) .product-image::before,
.colors-identity .product-card.product-card--fashion:not(.product-card--tryon-garment):nth-child(n) .product-image::after {
  content: none; display: none;
}

@media (max-width: 1023px) {
  .colors-identity { --colors-mobile-header-height: 72px; }
  /* The former panel began at 8px and was covered by the sticky header. */
  .colors-identity .mobile-drawer {
    z-index: 110; inset: calc(var(--colors-mobile-header-height) + 8px) 8px 8px auto;
    display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: start;
    width: min(360px, calc(100% - 16px)); height: auto;
    max-height: calc(100dvh - var(--colors-mobile-header-height) - 16px);
    padding: 14px; overflow: hidden; box-sizing: border-box;
  }
  .colors-identity .mobile-drawer[hidden] { display: none; }
  .colors-identity .mobile-drawer > [data-colors-gradient-menu] { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .colors-identity .mobile-drawer__head { position: static; min-height: 50px; flex-shrink: 0; }
  .colors-identity .mobile-drawer nav { overflow: visible; }
  .colors-identity.menu-open::before { z-index: 105; }
}

@media (max-width: 768px) {
  .colors-identity { --colors-mobile-header-height: 64px; }
}

@media (max-width: 760px) {
  /* Full-bleed images without the inherited gray inset or rounded frame. */
  .colors-identity.colors-home .colors-slideshow,
  .colors-identity.colors-home .colors-slideshow__stage,
  .colors-identity.colors-home .colors-slideshow__slide,
  .colors-identity.colors-home .colors-slideshow__slide :is(a, picture, img) {
    width: 100%; max-width: 100%; margin-inline: 0; padding-inline: 0;
    border: 0; border-radius: 0 !important; box-shadow: none;
  }
  .colors-identity.colors-home .colors-slideshow__slide img { object-fit: cover; }
  .colors-identity.colors-home .colors-autumn.container { width: 100%; max-width: 100%; }
  .colors-identity.colors-home .colors-autumn__head { margin-inline: 12px; }
  .colors-identity.colors-home .colors-autumn-grid {
    max-width: 100%; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0;
    border-inline: 0; border-radius: 0; scrollbar-width: none;
  }
  .colors-identity.colors-home .colors-autumn-grid::-webkit-scrollbar { display: none; }
  .colors-identity .product-card.product-card--fashion,
  .colors-identity .product-card.product-card--fashion .product-card__media,
  .colors-identity .product-card.product-card--fashion .product-image,
  .colors-identity .product-card.product-card--fashion .product-image :is(picture, img) {
    border-radius: 0 !important; border: 0; box-shadow: none;
  }
  .colors-identity .product-card.product-card--fashion .product-card__variant-row { gap: 6px; }
  .colors-identity .product-card.product-card--fashion .product-card__variant-row .product-card__category { max-width: 55%; font-size: 10px !important; }
  .colors-identity .product-card.product-card--fashion .product-card__variant-row .swatches { gap: 5px; }
  .colors-identity .product-card.product-card--fashion .product-card__variant-row .swatches:not(.sizes) i { width: 13px; height: 13px; flex-shrink: 0; }
}
