.textile-product {
  padding-block: clamp(28px, 5vw, 72px);
}
.textile-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
}
.textile-back:hover {
  text-decoration: underline;
}
.textile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}
.textile-gallery .cofre-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.textile-gallery figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
.textile-gallery img {
  aspect-ratio: 4 / 3;
  background: #f2eee5;
  object-fit: contain;
}
.textile-gallery figcaption {
  padding: 6px 0;
  font-size: 12px;
  color: var(--body);
}
.textile-gallery .cofre-gallery-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.textile-gallery button {
  min-height: 44px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--terra);
  font-size: 13px;
}
.textile-gallery button[aria-pressed="true"] {
  background: var(--terra);
  color: white;
}
.textile-details h1 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
}
.textile-material, .textile-price {
  font-weight: 600;
}
.textile-price {
  margin-top: 20px;
}
.textile-details .shop-add {
  width: 100%;
  max-width: 320px;
  min-height: 44px;
}
@media (max-width: 740px) {
  .textile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.textile-format {
  display: grid;
  max-width: 320px;
  gap: 4px;
  margin-top: 18px;
}
.textile-format :is(select, input) {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
}

.textile-gallery.has-gallery-arrows {
  position: relative;
  container-type: inline-size;
}
.textile-gallery.has-gallery-arrows .cofre-gallery-track {
  scrollbar-width: none;
}
.textile-gallery.has-gallery-arrows .cofre-gallery-track::-webkit-scrollbar {
  display: none;
}
.textile-gallery .textile-gallery-arrow {
  position: absolute;
  top: 37.5cqw;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--terra);
  color: white;
  border: 1px solid var(--terra);
  font: 28px/1 sans-serif;
}
.textile-gallery-arrow[data-direction="previous"] {
  left: 8px;
}
.textile-gallery-arrow[data-direction="next"] {
  right: 8px;
}
