.product {
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.75rem, 3.6vw, 3.25rem);
  background: var(--sand);
  color: #fff;
  text-shadow: var(--white-text-shadow);
}

.product-olive {
  background: #6a5e40;
  color: #fff;
}

.product :focus-visible { outline-color: #fff; }

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .3rem .55rem;
  margin-bottom: clamp(1.25rem, 2.75vw, 2.5rem);
  font-size: clamp(.875rem, 1.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.product-breadcrumb a { text-decoration: none; }
.product-breadcrumb h1 { font: inherit; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 705fr) minmax(0, 448fr);
  gap: clamp(1.75rem, 3.8vw, 3.5rem);
}

.product-photo, .product-thumbnails a {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #b9a996;
}

.product-photo { cursor: zoom-in; }

.product-photo span {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: .45rem .65rem;
  background: rgb(22 20 18 / .88);
  color: #fff;
  font-size: .875rem;
  line-height: 1.35;
  text-shadow: none;
}

.product-photo img, .product-thumbnails img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo img { object-fit: contain; }

.product-photo:is([data-crop="camel"], [data-crop="crema"]) img,
.product-thumbnails :is([data-crop="camel"], [data-crop="crema"], [data-crop="detalle-crema"]) img {
  inset: -86.77% auto auto -29.34%;
  width: 158.59%;
  height: 186.85%;
  max-width: none;
  object-fit: fill;
}

.product-photo[data-crop="oliva"] img,
.product-thumbnails [data-crop="oliva"] img {
  inset: .05% auto auto -21.53%;
  width: 121.64%;
  height: 99.95%;
  max-width: none;
  object-fit: fill;
}

.product-photo[data-crop="arena"] img,
.product-thumbnails :is([data-crop="arena"], [data-crop="detalle-movimiento"]) img {
  inset: -97.12% auto auto -10.04%;
  width: 187.79%;
  height: 221.25%;
  max-width: none;
  object-fit: fill;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.25rem, .5vw, .5rem);
  margin-top: clamp(.25rem, .5vw, .5rem);
}

.product-thumbnails img { object-fit: cover; }

.product-thumbnails [data-crop="detalle-lateral"] img {
  inset: -86.77% auto auto -.14%;
  width: 158.59%;
  height: 186.85%;
  max-width: none;
  object-fit: fill;
}

.product-summary {
  align-self: end;
  padding-bottom: clamp(1rem, 7.5vw, 7rem);
}

.product h2, .product-related h2 {
  margin-bottom: .65rem;
  font-size: clamp(.875rem, 1.39vw, 1.25rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.product p {
  max-width: 35rem;
  font-size: clamp(1rem, 1.39vw, 1.25rem);
  font-weight: 600;
  line-height: 1;
}

.product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-block: 1.5rem;
}

.product-variant {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .4rem;
  padding: .375rem .55rem;
  border: 1px solid transparent;
  font-size: .875rem;
  line-height: 1.35;
  text-decoration: none;
}

.product-variant[aria-current], .product-variant:hover {
  border-color: currentColor;
}

.product-variant::before {
  width: .8rem;
  aspect-ratio: 1;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--tone);
  content: "";
}

.tone-camel { --tone: #af7d50; }
.tone-oliva { --tone: #4d4d30; }
.tone-arena { --tone: #c19c70; }
.tone-crema { --tone: #e8d9c4; }

.product-cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1rem;
}

.product-add {
  min-height: 2.75rem;
  padding: .45rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: clamp(.875rem, 1.39vw, 1.25rem);
  font-weight: 600;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: .24em;
  text-shadow: inherit;
  cursor: pointer;
}

.product-add::before { content: "+\00a0 "; }
.product-add:disabled { opacity: .55; cursor: default; }
.product-cart-actions [hidden] { display: none; }
.product-cart-actions .text-link { text-decoration: none; }

.product .product-cart-status {
  margin-top: .65rem;
  min-height: 1.25em;
  font-size: .875rem;
  font-weight: 600;
}

.product-details {
  --detail-lift: clamp(5.5rem, 10.8vw, 9.6875rem);
  position: relative;
  min-height: calc(min(83.333vw, 75rem) - var(--detail-lift));
  margin-top: clamp(2.75rem, 6.25vw, 5.625rem);
}

.product-detail-copy {
  display: grid;
  width: min(54.62%, 41.375rem);
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.product-detail-copy dl {
  margin: 0 0 .55rem;
  font-size: clamp(1rem, 1.39vw, 1.25rem);
  font-weight: 600;
  line-height: 1;
}
.product-detail-copy dl div { display: flex; flex-wrap: wrap; gap: .25rem .8rem; }
.product-detail-copy dd { margin: 0; font-variant-numeric: tabular-nums; }
.product-detail-copy dt { min-width: 5.5rem; font-weight: 600; }

.product-cutout {
  position: absolute;
  inset-block-start: calc(-1 * var(--detail-lift));
  inset-inline-end: calc((100% - var(--page-width)) / 2 - min(9.444vw, 8.5rem));
  width: min(55.556vw, 50rem);
  max-width: none;
  height: auto;
}

.product-related {
  padding-block: clamp(2.5rem, 7vw, 6rem);
  background: var(--stone);
}

.product-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.375rem, 1vw, .875rem);
  margin-top: 1rem;
}

.product-related-grid a {
  display: grid;
  align-content: start;
  gap: .65rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.product-related-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-related-texture img { object-position: 28% center; }

.product-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 45rem) {
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .product-summary { padding-bottom: 0; }
  .product p { line-height: 1.3; }
  .product-details { min-height: 0; }
  .product-detail-copy { width: 100%; }
  .product-cutout { position: static; width: min(87%, 23rem); margin: 1.5rem auto 0; }
}
