.product-detail-page {
  min-height: 760px;
  padding: clamp(136px, 14vw, 168px) 0 clamp(78px, 9vw, 110px);
  background: #ffffff;
  color: #171717;
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 520px);
  gap: clamp(42px, 8vw, 92px);
  align-items: center;
}

.product-detail-media {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  min-height: clamp(360px, 45vw, 560px);
}

.product-detail-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
  max-height: 560px;
  overflow-y: auto;
  padding: 0.25rem;
  scrollbar-width: thin;
}

.product-detail-thumb {
  width: 88px;
  aspect-ratio: 1 / 0.78;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f2f2f2;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.product-detail-thumb:hover,
.product-detail-thumb:focus,
.product-detail-thumb.is-active {
  border-color: #050505;
  transform: translateY(-1px);
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-detail-stage {
  position: relative;
  min-width: 0;
  width: min(100%, 560px);
}

.product-detail-main-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: #f2f2f2;
}

.product-detail-main-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.product-detail-gallery-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #0f172a;
  border-radius: 50%;
  color: #0f172a;
  background: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.product-detail-gallery-control:hover,
.product-detail-gallery-control:focus {
  transform: translateY(-50%) scale(1.06);
}

.product-detail-gallery-control:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.product-detail-gallery-prev {
  left: 14px;
}

.product-detail-gallery-next {
  right: 14px;
}

.product-detail-info {
  display: grid;
  gap: 1.35rem;
  align-content: center;
}

.product-detail-category {
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #050505;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  padding: 0.5rem 0.78rem;
}

.product-detail-info h1 {
  margin: 0;
  color: #242424;
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  font-weight: 900;
  line-height: 1.08;
}

.product-detail-price {
  margin: 0;
  color: #050505;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.product-detail-description {
  max-width: 48ch;
  margin: 0;
  color: #232323;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
}

.product-detail-stock {
  margin: -0.2rem 0 0;
  color: #666666;
  font-size: 0.94rem;
  font-weight: 800;
}

.product-detail-stock.is-out-of-stock {
  width: fit-content;
  border-radius: 999px;
  color: #ffffff;
  background: #8a1f1f;
  line-height: 1;
  padding: 0.48rem 0.78rem;
}

.product-quantity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.product-quantity-label {
  color: #242424;
  font-weight: 900;
}

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 42px 52px 42px;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
  background: #ffffff;
}

.quantity-stepper button,
.quantity-stepper input {
  width: 100%;
  border: 0;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.quantity-stepper button {
  color: #050505;
  background: #f0f0f0;
}

.quantity-stepper button:hover,
.quantity-stepper button:focus {
  background: #e3e3e3;
}

.quantity-stepper input {
  appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.product-detail-actions {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.7rem;
}

.detail-action-primary,
.detail-action-secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  padding: 0.8rem 1.1rem;
}

.detail-action-primary {
  background: #050505;
  cursor: pointer;
}

.detail-action-primary:hover,
.detail-action-primary:focus {
  color: #ffffff;
  background: #1f1f1f;
}

.detail-action-primary.is-success {
  background: #0b73f6;
}

.detail-action-whatsapp {
  background: #0b73f6;
}

.detail-action-whatsapp:hover,
.detail-action-whatsapp:focus {
  color: #ffffff;
  background: #1fb85a;
}

.detail-action-primary.is-disabled,
.detail-action-primary:disabled {
  background: #8e8e8e;
  cursor: not-allowed;
  opacity: 0.82;
}

.cart-feedback {
  margin: -0.2rem 0 0;
  color: #0b73f6;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
}

.cart-feedback a {
  color: #050505;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-action-secondary {
  background: #8e8e8e;
}

.detail-action-secondary:hover,
.detail-action-secondary:focus {
  color: #ffffff;
  background: #727272;
}

.product-not-found {
  max-width: 620px;
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 0 auto;
  text-align: center;
}

.product-not-found h1 {
  margin: 0;
  color: #171717;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.product-not-found p {
  margin: 0;
  color: #666666;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .product-detail-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product-detail-media {
    grid-template-columns: 1fr;
    min-height: 320px;
  }

  .product-detail-thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .product-detail-thumb {
    width: 82px;
  }

  .product-detail-main-frame {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .product-detail-gallery-prev {
    left: 12px;
  }

  .product-detail-gallery-next {
    right: 12px;
  }

  .product-detail-info {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .product-detail-page {
    padding-top: 124px;
  }

  .product-detail-info h1 {
    font-size: 2rem;
  }

  .product-detail-actions {
    gap: 0.65rem;
  }

  .product-detail-main-frame {
    border-radius: 20px;
  }

  .product-detail-gallery-control {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .detail-action-primary,
  .detail-action-secondary {
    width: 100%;
  }
}
