.product-studio {
  display: grid;
  justify-items: center;
  align-content: center;
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0 0 1rem;
  padding: clamp(0.8rem, 3.25%, 1.45rem);
  border: 1px solid rgba(214, 166, 91, 0.35);
  border-radius: 0.85rem;
  background: #0a1529 url("boutique-studio.png") center / cover no-repeat;
  overflow: hidden;
}

.product-studio--dark::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 59% 52% at 50% 42%, rgba(195, 164, 130, 0.53), transparent 88%);
  content: "";
}

.studio-photo {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  max-width: 31rem;
  min-width: 0;
}

.studio-photo::before {
  position: absolute;
  bottom: 4%;
  left: 14%;
  width: 72%;
  height: 9%;
  background: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.58), transparent);
  content: "";
}

.studio-photo img {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  clip-path: var(--product-outline, none);
}

.studio-photo [data-studio-fabric="Noir"] {
  filter: grayscale(1) brightness(0.22) contrast(1.23);
}

.studio-photo [data-studio-fabric="Écru"] {
  filter: sepia(0.24) saturate(0.90) brightness(0.98);
}

.studio-photo .studio-print {
  position: absolute;
  top: var(--print-top);
  left: var(--print-left, 50%);
  width: var(--print-width);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

[data-studio-placement="front-center"] {
  --print-top: 37.8%;
  --print-width: 39.4%;
}

[data-studio-placement="front-pocket"] {
  --print-top: 28.3%;
  --print-left: 62.5%;
  --print-width: 13%;
}

[data-studio-placement="back-center"] {
  --print-top: 34.8%;
  --print-width: 29%;
}

[data-studio-placement="front-small-center"] {
  --print-top: 26.5%;
  --print-width: 12.6%;
}

[data-studio-placement="front-small-pocket"] {
  --print-top: 28.3%;
  --print-left: 62.5%;
  --print-width: 10.5%;
}

#products .item {
  display: flex;
  flex-direction: column;
}

#products .item button {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 851px) {
  #products > :nth-child(3n + 1):last-child {
    grid-column: 2;
  }
}

.studio-offer {
  display: grid;
  gap: 0.4rem;
  position: relative;
  padding: 0.45rem 0 0.55rem;
  color: #fff1d9;
  text-align: center;
}

.studio-offer[hidden] {
  display: none;
}

.studio-price {
  color: #ffdc85;
  font: 600 clamp(2.2rem, 4.15vw, 3.8rem) / 1.05 Cinzel, Georgia, serif;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-shadow: 0 0 0.45rem rgba(255, 173, 52, 0.32);
}

@supports (background-clip: text) {
  .studio-price {
    background-image: linear-gradient(
      177deg,
      #fff7d6 7%,
      #ffdd8c 24%,
      #fff4bb 38%,
      #eaa04a 50%,
      #cf7d21 55%,
      #f4b85a 66%,
      #ffe6a5 80%,
      #da8e29 100%
    );
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter:
      drop-shadow(0 1px 0 #9f4c10)
      drop-shadow(0 0 0.28rem rgba(255, 187, 64, 0.52))
      drop-shadow(0 0 0.85rem rgba(241, 126, 22, 0.31));
  }
}

@media (forced-colors: active) {
  .studio-price {
    background: none;
    color: CanvasText;
    text-shadow: none;
    filter: none;
  }
}

.studio-date {
  color: #f8e8cc;
  font-size: clamp(0.72rem, 1.3vw, 0.9rem);
  font-weight: 500;
  line-height: 1.35;
}

.hero-product {
  margin: 0;
}

.hero-product .studio-price {
  font-size: clamp(2.65rem, 5.3vw, 5rem);
}

.dialog-visual {
  width: min(100%, 20rem);
  margin: 1rem auto;
}

.dialog-visual .product-studio {
  margin-bottom: 0;
}

/* The classic shirt uses the reference silhouette in every color and view. */

[data-studio-cut="classic"],
[data-studio-product="C01"] {
  --product-outline: polygon(
    39.39% 5.02%, 40.83% 5.02%, 43.54% 5.66%, 46.57% 6.06%,
    50.00% 6.38%, 53.43% 6.14%, 56.30% 5.74%, 59.09% 5.02%,
    60.53% 5.02%, 61.80% 5.74%, 66.03% 7.50%, 71.77% 10.05%,
    76.95% 12.36%, 79.19% 13.48%, 81.18% 14.99%, 82.38% 17.30%,
    85.65% 23.76%, 89.79% 32.06%, 93.94% 39.63%, 91.31% 41.15%,
    87.16% 43.14%, 82.78% 45.06%, 78.95% 46.41%, 77.35% 46.49%,
    76.40% 45.22%, 75.60% 43.46%, 74.96% 41.87%, 74.72% 44.18%,
    74.16% 49.04%, 74.08% 54.47%, 74.40% 60.13%, 74.80% 65.95%,
    75.12% 73.29%, 75.84% 80.70%, 76.40% 88.76%, 76.79% 92.34%,
    76.40% 92.98%, 74.96% 93.62%, 72.33% 94.10%, 67.54% 94.74%,
    60.45% 95.06%, 50.00% 95.14%, 40.91% 95.06%, 33.49% 94.74%,
    28.47% 94.26%, 25.20% 93.62%, 23.68% 92.90%, 23.29% 92.26%,
    23.76% 88.36%, 24.40% 81.18%, 24.96% 74.24%, 25.12% 67.22%,
    25.52% 60.13%, 25.60% 54.31%, 25.44% 49.44%, 25.28% 43.86%,
    25.12% 41.87%, 24.40% 43.62%, 23.52% 45.45%, 22.81% 46.41%,
    21.53% 46.33%, 17.70% 44.98%, 13.40% 43.22%, 9.09% 41.23%,
    6.06% 39.63%, 10.05% 32.06%, 14.27% 23.60%, 17.46% 17.15%,
    18.66% 14.99%, 20.73% 13.40%, 23.05% 12.28%, 27.99% 10.05%,
    33.81% 7.50%, 37.96% 5.82%
  );
}

[data-studio-product="C07"] {
  --product-outline: polygon(
    41.38% 3.15%, 49.96% 3.41%, 55.70% 3.18%, 58.89% 3.21%,
    59.45% 3.41%, 59.95% 3.79%, 61.55% 6.34%, 63.73% 8.41%,
    79.39% 14.54%, 81.30% 15.50%, 83.94% 18.62%, 85.03% 20.30%,
    86.07% 22.29%, 93.51% 38.96%, 93.77% 39.67%, 93.81% 40.39%,
    94.52% 42.46%, 94.38% 42.64%, 92.30% 43.60%, 84.33% 46.71%,
    81.22% 47.69%, 78.67% 48.16%, 78.03% 47.92%, 77.17% 45.65%,
    76.85% 45.26%, 76.16% 43.74%, 75.96% 43.63%, 75.67% 43.74%,
    75.21% 49.88%, 75.29% 69.02%, 76.32% 77.23%, 76.64% 85.13%,
    76.57% 86.16%, 77.17% 93.02%, 76.75% 93.67%, 75.64% 94.28%,
    73.17% 94.98%, 66.63% 95.78%, 59.29% 96.18%, 52.83% 96.42%,
    48.05% 96.42%, 34.89% 95.70%, 27.15% 94.82%, 24.20% 94.08%,
    22.83% 93.34%, 22.57% 92.94%, 22.56% 92.15%, 23.51% 83.29%,
    23.44% 81.30%, 23.76% 77.55%, 24.15% 75.32%, 24.00% 70.30%,
    24.15% 68.06%, 24.23% 50.04%, 23.74% 43.58%, 23.48% 43.40%,
    23.20% 43.58%, 22.35% 45.02%, 21.41% 47.19%, 20.69% 47.29%,
    17.42% 46.39%, 13.60% 45.03%, 7.30% 42.48%, 5.09% 41.35%,
    5.95% 39.04%, 5.94% 38.64%, 6.16% 38.08%, 13.78% 21.65%,
    15.50% 18.86%, 18.38% 15.51%, 21.65% 13.98%, 36.03% 8.33%,
    38.05% 6.42%, 39.83% 3.69%, 40.31% 3.37%
  );
}

[data-studio-product="C08"] {
  --product-outline: polygon(
    41.31% 4.47%, 42.82% 4.31%, 49.68% 4.31%, 56.70% 4.31%,
    58.53% 4.39%, 59.65% 5.02%, 60.61% 6.30%, 62.12% 8.53%,
    63.40% 10.05%, 67.15% 11.56%, 71.53% 13.32%, 76.16% 15.23%,
    79.35% 16.35%, 81.02% 17.70%, 82.93% 19.86%, 85.25% 23.44%,
    87.80% 27.91%, 90.19% 33.57%, 92.82% 42.03%, 90.03% 43.62%,
    85.89% 45.53%, 81.50% 47.29%, 77.83% 48.09%, 76.56% 47.85%,
    76.00% 46.25%, 75.28% 44.26%, 74.64% 42.19%, 74.56% 45.30%,
    74.32% 51.12%, 74.16% 56.78%, 74.24% 62.44%, 74.40% 67.78%,
    74.64% 72.97%, 75.04% 78.63%, 75.44% 84.53%, 75.84% 89.39%,
    75.92% 92.82%, 75.68% 93.62%, 74.40% 94.18%, 72.01% 94.66%,
    67.62% 94.98%, 61.08% 95.30%, 50.16% 95.37%, 40.59% 95.30%,
    35.09% 94.98%, 30.22% 94.66%, 26.71% 94.26%, 24.80% 93.62%,
    23.92% 92.98%, 23.92% 91.63%, 24.24% 88.36%, 24.88% 82.62%,
    25.36% 76.56%, 25.76% 71.29%, 26.00% 65.47%, 26.08% 59.81%,
    26.00% 54.39%, 25.84% 48.72%, 25.68% 44.18%, 25.44% 42.19%,
    24.56% 45.06%, 23.84% 47.05%, 23.05% 48.09%, 21.53% 47.93%,
    18.58% 47.21%, 14.43% 45.61%, 10.29% 43.70%, 7.18% 42.19%,
    9.65% 35.41%, 11.88% 30.06%, 14.11% 25.12%, 16.11% 21.53%,
    18.10% 18.66%, 20.02% 16.51%, 23.21% 15.23%, 27.27% 13.40%,
    31.66% 11.64%, 36.36% 9.89%, 37.48% 8.93%, 38.68% 7.34%,
    40.03% 5.34%
  );
}

[data-studio-product="C09"] {
  --product-outline: polygon(
    49.75% 2.27%, 56.42% 2.38%, 60.65% 2.71%, 64.63% 3.43%,
    66.15% 4.09%, 66.80% 5.14%, 67.25% 6.74%, 67.68% 7.62%,
    68.85% 11.20%, 69.44% 12.56%, 69.54% 13.12%, 69.37% 14.07%,
    75.64% 16.96%, 77.71% 18.37%, 79.16% 19.90%, 82.11% 24.28%,
    82.24% 24.92%, 85.31% 32.26%, 87.22% 37.84%, 90.03% 48.37%,
    91.55% 55.70%, 92.35% 60.65%, 92.91% 66.55%, 93.07% 71.73%,
    92.90% 73.25%, 91.87% 78.11%, 91.89% 78.99%, 92.51% 80.82%,
    92.90% 82.58%, 92.90% 84.41%, 92.56% 85.69%, 92.00% 86.96%,
    91.59% 87.37%, 90.79% 87.63%, 90.22% 88.40%, 89.80% 92.07%,
    89.79% 93.66%, 89.67% 93.90%, 87.92% 94.03%, 87.52% 94.27%,
    84.33% 94.27%, 83.85% 93.97%, 82.34% 93.78%, 81.92% 93.58%,
    81.65% 90.15%, 81.31% 88.24%, 81.03% 87.68%, 79.96% 86.64%,
    79.74% 86.08%, 79.64% 84.73%, 78.97% 83.85%, 78.33% 82.66%,
    77.83% 80.42%, 77.82% 77.47%, 77.64% 76.36%, 76.75% 73.69%,
    76.04% 72.26%, 75.80% 72.11%, 75.53% 72.37%, 75.53% 74.28%,
    76.08% 80.26%, 76.16% 83.61%, 75.74% 85.93%, 75.02% 87.04%,
    74.67% 88.16%, 74.24% 92.70%, 73.88% 93.51%, 73.09% 93.86%,
    71.49% 94.15%, 59.29% 93.63%, 49.72% 93.47%, 40.47% 93.63%,
    31.22% 94.11%, 27.87% 94.02%, 26.67% 93.76%, 26.18% 93.50%,
    25.95% 93.26%, 25.76% 92.62%, 25.33% 88.24%, 24.90% 86.88%,
    24.26% 85.93%, 23.84% 83.77%, 23.92% 79.94%, 24.47% 73.96%,
    24.47% 72.29%, 24.20% 72.03%, 23.91% 72.21%, 23.15% 73.88%,
    22.28% 76.75%, 22.17% 80.58%, 21.67% 82.58%, 21.23% 83.53%,
    20.37% 84.86%, 20.06% 86.48%, 18.97% 87.68%, 18.69% 88.24%,
    18.27% 90.79%, 18.08% 93.58%, 17.66% 93.78%, 16.63% 93.89%,
    16.31% 94.18%, 15.03% 94.27%, 12.32% 94.26%, 11.92% 94.03%,
    10.33% 93.86%, 10.20% 93.66%, 10.12% 91.19%, 9.78% 88.40%,
    9.21% 87.63%, 8.41% 87.34%, 7.93% 86.88%, 7.20% 84.97%,
    7.02% 84.09%, 7.02% 82.89%, 7.18% 82.26%, 8.03% 80.42%,
    8.04% 80.10%, 7.41% 78.27%, 6.86% 75.80%, 6.46% 72.77%,
    6.37% 70.93%, 6.70% 69.02%, 7.80% 65.75%, 7.80% 64.23%,
    7.41% 62.24%, 7.41% 60.33%, 7.89% 57.14%, 9.73% 48.60%,
    11.72% 41.19%, 13.23% 36.40%, 15.25% 30.90%, 18.05% 24.04%,
    21.16% 19.50%, 22.37% 18.29%, 24.28% 17.00%, 30.55% 14.15%,
    30.46% 12.96%, 30.62% 12.40%, 30.99% 11.60%, 32.24% 7.78%,
    32.67% 6.98%, 32.72% 6.42%, 33.28% 4.90%, 33.93% 4.01%,
    34.49% 3.69%, 35.69% 3.35%, 40.07% 2.71%, 44.22% 2.38%
  );
}

[data-studio-product="C10"] {
  --product-outline: polygon(
    49.99% 7.62%, 51.56% 7.73%, 52.99% 8.27%, 53.37% 8.65%,
    53.54% 9.45%, 53.79% 9.70%, 57.38% 10.05%, 62.08% 10.84%,
    65.51% 11.82%, 69.82% 13.54%, 73.48% 15.58%, 76.04% 17.41%,
    77.55% 18.68%, 79.07% 20.20%, 81.41% 22.93%, 82.35% 23.64%,
    83.78% 25.64%, 83.99% 26.44%, 85.75% 29.47%, 87.38% 32.81%,
    88.97% 36.88%, 90.73% 42.54%, 92.27% 49.32%, 93.54% 59.45%,
    93.55% 61.04%, 93.27% 61.76%, 92.86% 62.06%, 89.11% 63.34%,
    88.86% 63.60%, 89.18% 65.11%, 89.60% 66.15%, 89.57% 67.03%,
    90.59% 75.24%, 90.76% 79.94%, 90.51% 82.18%, 90.09% 83.69%,
    89.61% 84.73%, 88.88% 85.70%, 87.44% 86.50%, 86.80% 86.69%,
    83.93% 86.69%, 82.97% 86.50%, 75.96% 83.16%, 71.65% 81.29%,
    68.78% 80.33%, 64.39% 79.13%, 59.93% 78.16%, 56.50% 77.60%,
    52.27% 77.20%, 49.08% 77.20%, 43.82% 77.44%, 40.55% 77.92%,
    37.04% 78.66%, 32.66% 79.85%, 29.70% 80.89%, 23.80% 83.40%,
    19.74% 85.39%, 16.87% 86.42%, 15.83% 86.68%, 14.15% 86.69%,
    12.24% 86.34%, 11.27% 85.77%, 10.19% 84.49%, 8.92% 80.02%,
    9.09% 75.24%, 10.04% 67.58%, 9.98% 67.03%, 9.43% 66.63%,
    9.33% 66.31%, 10.41% 65.22%, 10.90% 63.60%, 10.65% 63.34%,
    6.82% 62.01%, 6.28% 61.44%, 6.13% 60.57%, 6.62% 55.30%,
    7.41% 49.32%, 8.29% 44.78%, 9.03% 42.07%, 10.71% 36.64%,
    12.22% 32.89%, 13.46% 30.34%, 15.61% 26.59%, 16.01% 25.48%,
    17.41% 23.56%, 18.22% 22.99%, 20.67% 20.22%, 23.64% 17.49%,
    27.15% 15.10%, 30.10% 13.54%, 33.13% 12.30%, 36.80% 11.16%,
    42.78% 10.05%, 46.21% 9.70%, 46.46% 9.45%, 46.68% 8.65%,
    47.09% 8.27%, 48.68% 7.73%
  );
}
