/**
 * Neo Compounds — single product (PDP / quick-view layout)
 */

.neo-compounds.single-product #secondary,
.neo-compounds.single-product .widget-area,
.neo-compounds.single-product .storefront-breadcrumb,
.neo-compounds.single-product .woocommerce-breadcrumb,
.neo-compounds.single-product .woocommerce-product-gallery__trigger {
  display: none !important;
}

.neo-compounds.single-product .content-area,
.neo-compounds.single-product .site-main {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.neo-pdp-crumb {
  background: #fff;
  border-bottom: 1px solid var(--neo-border);
}

.neo-pdp-crumb__inner {
  max-width: var(--neo-max);
  margin: 0 auto;
  padding: 22px var(--neo-pad);
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--neo-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neo-muted);
  flex-wrap: wrap;
}

.neo-pdp-crumb__inner a {
  color: var(--neo-muted);
  text-decoration: none;
}

.neo-pdp-crumb__inner a:hover {
  color: var(--neo-blue);
}

.neo-pdp-crumb__inner .is-current {
  color: var(--neo-navy);
}

.neo-pdp {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px var(--neo-pad) 0;
}

.neo-pdp__panel {
  background: #fff;
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-modal);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.05fr);
}

.neo-pdp__media {
  position: relative;
  min-height: 420px;
  max-height: 560px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(30, 91, 216, 0.55) 0%, rgba(11, 26, 48, 0.2) 42%, transparent 70%),
    var(--neo-navy);
}

.neo-pdp__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 58%;
  padding: 10% 8% 8%;
  box-sizing: border-box;
  display: block;
}

.neo-pdp__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--neo-error);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 11px;
  border-radius: var(--neo-pill);
  z-index: 1;
}

.neo-pdp__soon {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--neo-warn-bg);
  color: var(--neo-warn-text);
  font-family: var(--neo-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--neo-pill);
  z-index: 1;
}

.neo-pdp__body {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: none;
  justify-self: stretch;
}

.neo-pdp__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--neo-navy);
  line-height: 1.15;
}

.neo-pdp__price {
  font-size: 26px;
  font-weight: 700;
  color: var(--neo-blue);
}

.neo-pdp__price del {
  color: var(--neo-faint);
  font-weight: 600;
  margin-right: 8px;
  font-size: 0.75em;
}

.neo-pdp__price ins {
  text-decoration: none;
}

.neo-pdp__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--neo-body);
  text-wrap: pretty;
}

.neo-pdp__ruo {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--neo-muted);
  text-wrap: pretty;
}

.neo-pdp__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.neo-pdp__chip {
  font: inherit;
  font-family: var(--neo-font-mono);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--neo-pill);
  border: 1px solid var(--neo-border-input);
  background: #fff;
  color: var(--neo-navy);
  cursor: pointer;
  text-decoration: none;
}

.neo-pdp__chip:hover {
  border-color: var(--neo-navy);
}

.neo-pdp__chip.is-active,
.neo-pdp__chip:checked + label,
.neo-pdp__variations .active {
  background: var(--neo-navy);
  border-color: var(--neo-navy);
  color: #fff;
}

.neo-pdp__stock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--neo-navy);
}

.neo-pdp__stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neo-green);
  box-shadow: 0 0 0 4px rgba(155, 216, 74, 0.22);
}

.neo-pdp__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.neo-pdp__qty {
  display: flex;
  align-items: center;
  height: 56px;
  border: 1px solid var(--neo-border-input);
  border-radius: var(--neo-pill);
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}

.neo-pdp__qty button {
  width: 48px;
  height: 56px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  color: var(--neo-navy);
}

.neo-pdp__qty button:hover {
  background: var(--neo-fill);
}

.neo-pdp__qty input.qty {
  width: 48px;
  min-width: 28px;
  border: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--neo-navy);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

.neo-pdp__qty input.qty::-webkit-outer-spin-button,
.neo-pdp__qty input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.neo-pdp__cart .single_add_to_cart_button,
.neo-pdp__cta {
  flex: 1;
  min-width: 180px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  height: 56px;
  border-radius: var(--neo-pill);
  border: 0;
  background: var(--neo-navy);
  color: #fff !important;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
}

.neo-pdp__cart .single_add_to_cart_button:hover,
.neo-pdp__cta:hover {
  background: var(--neo-blue);
  color: #fff !important;
}

.neo-pdp__cta.is-disabled,
.neo-pdp__cart .single_add_to_cart_button:disabled {
  background: var(--neo-fill) !important;
  color: var(--neo-faint) !important;
  cursor: not-allowed;
}

/* Restyle Woo form.cart insides */
.neo-pdp__cart form.cart {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

.neo-pdp__cart .quantity {
  margin: 0;
  float: none;
}

/* Chips replace Woo variation dropdowns */
.neo-pdp__cart .variations,
.neo-pdp__cart .woocommerce-variation-description,
.neo-pdp__cart .reset_variations {
  display: none !important;
}

.neo-pdp__cta--select,
.neo-pdp__cart .single_add_to_cart_button.neo-pdp__cta--select {
  opacity: 0.72;
  cursor: not-allowed;
}

.neo-pdp__var-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  width: 100%;
}

.neo-pdp__lab {
  font-size: 14px;
  font-weight: 700;
  color: var(--neo-navy);
  border-bottom: 2px solid var(--neo-green);
  align-self: flex-start;
  padding-bottom: 3px;
  text-decoration: none;
}

.neo-pdp__lab:hover {
  color: var(--neo-blue);
}

.neo-pdp__footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--neo-border);
  background: var(--neo-bg);
  padding: 40px 44px 44px;
  display: grid;
  /* Prefer side-by-side so Storage / Synonyms / notice mono stay on fewer lines. */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px 40px;
  align-items: start;
}

.neo-pdp__section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.neo-pdp__section-label {
  font-family: var(--neo-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neo-blue);
  white-space: nowrap;
}

.neo-pdp__section-line {
  flex: 1;
  height: 1px;
  background: var(--neo-border-input);
}

.neo-specs {
  display: flex;
  flex-direction: column;
}

.neo-specs__head {
  padding: 18px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--neo-navy);
  border-bottom: 1px solid var(--neo-border-input);
}

.neo-specs__note {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--neo-border);
  font-size: 14px;
  line-height: 1.55;
  color: var(--neo-body);
}

.neo-specs__bullet {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  flex-shrink: 0;
  background: var(--neo-green);
  transform: rotate(45deg);
}

.neo-specs__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--neo-border);
  font-size: 14px;
  line-height: 1.5;
}

.neo-specs__k {
  color: var(--neo-muted);
  font-weight: 600;
}

.neo-specs__v {
  font-family: var(--neo-font-mono);
  font-size: 13px;
  color: var(--neo-navy);
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
  text-wrap: pretty;
}

.neo-specs__v sub {
  font-size: 0.72em;
  line-height: 0;
}

.neo-notice p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--neo-body);
  text-wrap: pretty;
}

.neo-notice__mono {
  font-family: var(--neo-font-mono) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.55 !important;
  color: var(--neo-muted) !important;
}

@media (min-width: 900px) {
  .neo-notice__mono {
    white-space: nowrap;
  }
}

.neo-pdp__related {
  max-width: var(--neo-max);
  margin: 0 auto;
  padding: 56px var(--neo-pad) 104px;
}

.neo-pdp__related-title {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neo-navy);
}

@media (max-width: 860px) {
  .neo-pdp__panel {
    grid-template-columns: 1fr;
  }

  .neo-pdp__media {
    min-height: 320px;
    max-height: 420px;
  }

  .neo-pdp__body {
    max-width: none;
    padding: 32px 24px;
  }

  .neo-pdp__footer {
    padding: 28px 22px 32px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .neo-specs__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .neo-notice__mono {
    white-space: normal;
  }
}

/* -------------------------------------------------------------------------
   Quick-view modal (Details +)
   ------------------------------------------------------------------------- */

html.neo-qv-open,
body.neo-qv-open {
  overflow: hidden;
}

.neo-qv {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.neo-qv[hidden] {
  display: none !important;
}

.neo-qv__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 48, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.neo-qv__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--neo-radius-modal);
  /* Wider than v0.3.6 so Composition / Storage / Synonyms / Important Notice wrap less. */
  max-width: min(1360px, calc(100vw - 48px));
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-shadow: 0 32px 80px -24px rgba(11, 26, 48, 0.45);
  outline: none;
}

.neo-qv__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--neo-border);
  background: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--neo-navy);
}

.neo-qv__close:hover {
  border-color: var(--neo-navy);
}

.neo-qv__loading {
  padding: 72px 32px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--neo-muted);
}

.neo-qv__grid {
  display: grid;
  /* Design is ~equal cols; bias text/buy a bit wider so vial does not starve the column. */
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.3fr);
}

.neo-qv__media {
  min-height: 400px;
  max-height: 520px;
}

.neo-qv__body,
.neo-qv__body.neo-pdp__body {
  padding: 48px 48px 36px;
  max-width: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.neo-qv__body .neo-pdp__desc {
  max-width: none;
  text-wrap: pretty;
}

.neo-qv__footer {
  grid-column: 1 / -1;
}

.neo-qv__footer.neo-pdp__footer {
  padding: 40px 44px 44px;
  gap: 36px 40px;
}

.neo-qv__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.neo-qv__related {
  border-top: 1px solid var(--neo-border);
  padding: 28px 32px 36px;
  background: #fff;
}

.neo-qv__related-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neo-navy);
}

.neo-qv__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

@media (max-width: 800px) {
  .neo-qv {
    padding: 12px;
  }

  .neo-qv__dialog {
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .neo-qv__grid {
    grid-template-columns: 1fr;
  }

  .neo-qv__media {
    min-height: 280px;
    max-height: 360px;
  }

  .neo-qv__body {
    max-width: none;
    padding: 28px 22px 24px;
  }

  .neo-qv__footer.neo-pdp__footer {
    padding: 28px 22px 32px;
  }
}
