/* Detalle de producto: fondo oscuro, imagen completa y compra dentro del modal. */
.pdetail-overlay[hidden], .pdetail-overlay [hidden] { display: none !important; }
.pdetail-overlay {
  position: fixed; inset: 0; z-index: 2200; display: flex; align-items: center;
  justify-content: center; padding: 24px; background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px); box-sizing: border-box; color: #f7f8f3;
  font-family: Arial, Helvetica, sans-serif;
}
.pdetail-overlay *, .pdetail-overlay *::before, .pdetail-overlay *::after { box-sizing: border-box; }
.pdetail-panel {
  position: relative; width: 1120px; max-width: 100%; max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: #101310; border: 1px solid #353b30; border-radius: 16px;
  box-shadow: 0 30px 100px rgba(0,0,0,.6); outline: none; text-align: left;
  scrollbar-width: none;
}
.pdetail-panel::-webkit-scrollbar { display: none; }
/* Solo el detalle de escritorio se reduce un 10%. El límite de altura se calcula
   antes de aplicar el zoom para aprovechar el espacio real de la pantalla. */
@supports (zoom: .9) {
  @media (min-width: 761px) {
    .pdetail-panel {
      zoom: .9;
      max-height: calc(111.111111vh - 53.333333px);
      max-height: calc(111.111111dvh - 53.333333px);
    }
  }
}
.pdetail-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.pdetail-gallery { background: #090c09; display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 480px; border-radius: 16px 0 0 16px; }
.pdetail-gallery img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; border-radius: 4px; }
.pdetail-gallery p { color: #a9b19f; text-align: center; }
.pdetail-info { min-width: 0; padding: 40px 36px 30px; }
.pdetail-eyebrow { color: #d5ff00; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; line-height: 1.5; margin: 0 36px 14px 0; }
.pdetail-info h2 { color: #f7f8f3; font-size: clamp(28px,3vw,43px); line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: -.7px; overflow-wrap: anywhere; margin: 0 0 18px; }
.pdetail-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pdetail-specs span { color: #c6d0b7; background: #20261b; border: 1px solid #3e492d; border-radius: 5px; padding: 7px 10px; font-size: 12px; }
.pdetail-description { color: #b9c0b3; font-size: 15px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 24px; }
.pdetail-price { color: #d5ff00; font-size: 40px; line-height: 1.1; font-weight: 800; margin: 0 0 8px; letter-spacing: -1px; }
.pdetail-stock { color: #bac9a3; font-size: 13px; line-height: 1.5; margin: 0 0 22px; }
.pdetail-buy { margin: 0; padding: 0; }
.pdetail-buy > label { display: block; color: #c6cfbb; font-size: 12px; font-weight: 700; margin: 0 0 9px; }
.pdetail-buy-row { display: flex; gap: 12px; align-items: stretch; }
.pdetail-quantity { display: flex; width: 134px; flex: 0 0 134px; border: 1px solid #535d45; border-radius: 7px; overflow: hidden; }
.pdetail-quantity button { padding: 0; min-width: 36px; width: 36px; border: 0; border-radius: 0; background: #1e2519; color: #d5ff00; font-size: 20px; cursor: pointer; margin: 0; }
.pdetail-quantity input { min-width: 0; width: 60px; border: 0; border-radius: 0; padding: 0 2px; margin: 0; text-align: center; background: #101310; color: #fff; font-size: 16px; appearance: textfield; -moz-appearance: textfield; }
.pdetail-quantity input::-webkit-inner-spin-button, .pdetail-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdetail-add { flex: 1; min-width: 0; min-height: 48px; padding: 12px 15px; background: #d5ff00; color: #131b00; border: 1px solid #d5ff00; border-radius: 7px; font-size: 14px; font-weight: 800; cursor: pointer; margin: 0; }
.pdetail-overlay button:disabled { cursor: default; opacity: .42; }
.pdetail-overlay input:disabled { opacity: .55; }
.pdetail-message { color: #d5ff00; font-size: 13px; line-height: 1.5; margin: 12px 0; overflow-wrap: anywhere; }
.pdetail-message:empty { display: none; }
.pdetail-message[data-error="true"] { color: #ffb8a6; }
.pdetail-secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 15px; background: transparent; border: 1px solid #829c2b; border-radius: 7px; color: #d5ff00; text-decoration: none; font-size: 13px; font-weight: 700; cursor: pointer; margin: 0; text-align: center; }
.pdetail-secondary:hover { background: #222d13; color: #e5ff60; }
.pdetail-links { display: flex; gap: 10px; padding-top: 22px; margin-top: 22px; border-top: 1px solid #303729; }
.pdetail-links > * { flex: 1; }
#productModalRetry { margin-bottom: 18px; }
#productModalCart { margin-top: 4px; }
#productModalNotify { min-height: 44px !important; height: auto !important; background: #29351c !important; color: #d5ff00 !important; border: 1px solid #829c2b !important; box-shadow: none !important; border-radius: 7px !important; font-size: 14px !important; margin-top: 12px !important; }
.pdetail-share-url { width: 100%; margin-top: 12px; background: #181e12; color: #e7eecf; padding: 10px; border: 1px solid #829c2b; border-radius: 5px; }
.pdetail-footnote { color: #929c86; font-size: 11px; line-height: 1.6; margin: 18px 0 10px; }
.pdetail-source { color: #bac99d; font-size: 12px; text-underline-offset: 3px; }
.pdetail-close { position: sticky; float: right; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; padding: 0; margin: 0 12px -44px 0; background: #222b1f; border: 1px solid #566445; border-radius: 50%; color: #e5ff60; font-size: 29px; line-height: 1; cursor: pointer; }
.pdetail-overlay :focus-visible { outline: 3px solid #d5ff00; outline-offset: 3px; }
.product-image[role="button"]:focus-visible { outline: 3px solid #d5ff00; outline-offset: -4px; }
#notifyOverlay { z-index: 2201; }
@media (max-width: 760px) {
  .pdetail-overlay { padding: 12px; }
  .pdetail-panel { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .pdetail-layout { grid-template-columns: minmax(0,1fr); }
  .pdetail-gallery { border-radius: 12px 12px 0 0; padding: 22px; min-height: 200px; }
  .pdetail-gallery img { max-height: 330px; }
  .pdetail-info { padding: 25px 22px; }
  .pdetail-info h2 { font-size: 29px; }
  .pdetail-price { font-size: 36px; }
  .pdetail-eyebrow { margin-right: 0; font-size: 10px; }
  .pdetail-description { font-size: 14px; margin-bottom: 20px; }
  .pdetail-close { position: sticky; float: right; margin-bottom: -44px; margin-right: 12px; top: 12px; }
  .pdetail-buy-row { gap: 9px; }
  .pdetail-quantity { width: 120px; flex-basis: 120px; }
  .pdetail-quantity button { min-width: 34px; width: 34px; }
  .pdetail-quantity input { width: 52px; }
  .pdetail-add { padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 350px) {
  .pdetail-info { padding: 22px 16px; }
  .pdetail-buy-row { flex-wrap: wrap; }
  .pdetail-add { flex-basis: 100%; }
  .pdetail-quantity { height: 44px; }
}
