/*
 * P10-SITE-1032
 * Desktop product-detail first-screen refinement.
 * Scope: desktop hero density, action hierarchy, and thumbnail consistency only.
 */
@media (min-width: 981px) {
  body.product-page-premium .premium-product-hero {
    min-height: 680px;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: clamp(32px, 4vw, 52px);
    padding-top: 64px;
    padding-bottom: 64px;
  }

  body.product-page-premium .premium-hero-copy,
  body.product-page-premium .premium-product-hero .product-gallery {
    align-self: start;
    min-width: 0;
  }

  body.product-page-premium .premium-product-hero h1 {
    font-size: clamp(38px, 3.15vw, 46px);
    line-height: 1.06;
    letter-spacing: -0.015em;
  }

  body.product-page-premium
    .premium-product-hero
    > div
    > p:not(.section-kicker) {
    font-size: 17px;
    line-height: 1.62;
  }

  body.product-page-premium
    .product-detail-hero
    .hero-actions:has(> [data-whatsapp-inline]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  body.product-page-premium
    .product-detail-hero
    .hero-actions:has(> [data-whatsapp-inline])
    > .button:first-child {
    grid-column: 1 / -1;
  }

  body.product-page-premium
    .product-detail-hero
    .hero-actions:has(> [data-whatsapp-inline])
    > .button {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding: 9px 14px;
    font-size: 13.5px;
    white-space: normal;
    text-align: center;
  }

  body.product-page-premium
    .product-detail-hero
    .hero-actions
    > .button-whatsapp {
    border-color: rgba(15, 127, 109, 0.34);
    background: rgba(255, 255, 255, 0.82);
    color: #0f6f61;
    box-shadow: none;
  }

  body.product-page-premium
    .product-detail-hero
    .hero-actions
    > .button-whatsapp:hover {
    border-color: rgba(15, 127, 109, 0.56);
    background: #f2faf7;
  }

  body.product-page-premium .product-gallery-main img {
    height: clamp(400px, 34vw, 480px);
    padding: 20px;
  }

  body.product-page-premium .product-gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 5);
    grid-template-columns: none;
    gap: 12px;
    margin-top: 2px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
  }

  body.product-page-premium .product-gallery-thumbs figure {
    min-width: 0;
    scroll-snap-align: start;
  }

  body.product-page-premium .product-gallery-thumbs img {
    width: 100%;
    min-width: 0;
    height: 88px;
    padding: 8px;
  }
}

@media (min-width: 981px) and (max-width: 1199px) {
  body.product-page-premium .premium-product-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1200px) {
  body.product-page-premium
    .product-detail-hero
    .hero-actions:has(> [data-whatsapp-inline]) {
    grid-template-columns:
      minmax(0, 1.25fr)
      minmax(0, 1fr)
      minmax(0, 0.72fr);
    gap: 8px;
  }

  body.product-page-premium
    .product-detail-hero
    .hero-actions:has(> [data-whatsapp-inline])
    > .button:first-child {
    grid-column: auto;
  }

  body.product-page-premium
    .product-detail-hero
    .hero-actions:has(> [data-whatsapp-inline])
    > .button {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
    white-space: nowrap;
  }
}
