/*
 * SD shop-the-look.
 *
 * Measured on the reference at 1440 (docs/reference-spec.md):
 *   block   1130 x 755.8
 *   image   548 x 730.7, object-fit: cover
 *   thumbs  165 x 165
 *   button  179.9 x 48, black
 * At 390 the two columns stack, image first.
 */

.sd-look {
  display: grid;
  grid-template-columns: 548fr 560fr;
  gap: 22px;
  align-items: start;
}
.sd-look--image-right .sd-look__media { order: 2; }

.sd-look__media {
  margin: 0;
  background: var(--sd-image-bg);
  aspect-ratio: 548 / 731;
}
.sd-look__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-look__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Measured on the reference's shop_the_look heading ("PUMA"):
   14.04px / 700 / 17px line-height / #4c4d4f. */
.sd-look__heading {
  margin: 0 0 2px;
  font-size: var(--sd-fs-h3-tight);
  font-weight: var(--sd-fw-card);
  line-height: 17px;
  letter-spacing: var(--sd-tracking);
  color: var(--sd-text);
}

.sd-look__item {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 16px;
  align-items: center;
}

.sd-look__thumb {
  display: block;
  width: 165px;
  height: 165px;
  background: var(--sd-image-bg);
}
.sd-look__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sd-look__body { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }

.sd-look__title {
  color: var(--sd-text);
  font-size: var(--sd-fs-base);
  line-height: 18px;
}
.sd-look__title:hover { text-decoration: none; }

.sd-look__price { font-weight: var(--sd-fw-card); color: var(--sd-text); }
.sd-look__price del { font-weight: var(--sd-fw-card); text-decoration: line-through; }
.sd-look__price ins { color: var(--sd-sale); text-decoration: none; margin-left: 5px; }

.sd-look__button { min-width: 180px; margin-top: 3px; }

@media (max-width: 767px) {
  .sd-look { grid-template-columns: 1fr; gap: 16px; }
  .sd-look--image-right .sd-look__media { order: 0; }
  /* Measured: the reference's mobile block is 1284 tall, which its 150px
     thumbnails account for — not the 120 a naive shrink would use. */
  .sd-look__item { grid-template-columns: 150px 1fr; gap: 12px; }
  .sd-look__thumb { width: 150px; height: 150px; }
  .sd-look__button { min-width: 0; width: 100%; }
}
