:root {
  --nemo-pd-red: #d10b18;
  --nemo-pd-red-dark: #a80711;
  --nemo-pd-ink: #111417;
  --nemo-pd-steel: #5d6972;
  --nemo-pd-line: #d9dfe2;
  --nemo-pd-soft: #f4f6f7;
  --nemo-pd-white: #fff;
}

.nemo-pd-main {
  color: var(--nemo-pd-ink);
  background: var(--nemo-pd-white);
}

.nemo-pd-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.nemo-pd-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--nemo-pd-steel);
  font-size: 13px;
}

.nemo-pd-breadcrumb a {
  min-height: 44px;
  color: var(--nemo-pd-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nemo-pd-layout {
  display: grid;
  grid-template-areas: "gallery identity";
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: start;
  gap: clamp(52px, 7vw, 92px);
}

.nemo-pd-identity {
  grid-area: identity;
  position: sticky;
  top: 118px;
}

.nemo-pd-eyebrow {
  margin: 0 0 12px;
  color: var(--nemo-pd-red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nemo-pd-identity h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: .98;
  letter-spacing: -.045em;
}

.nemo-pd-purpose {
  max-width: 620px;
  margin-top: 24px;
  color: var(--nemo-pd-steel);
  font-size: 18px;
  line-height: 1.55;
}

.nemo-pd-purpose p {
  margin: 0;
}

.nemo-pd-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  border-top: 2px solid var(--nemo-pd-ink);
}

.nemo-pd-facts > div {
  min-width: 0;
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--nemo-pd-line);
}

.nemo-pd-facts > div:nth-child(odd) {
  padding-right: 18px;
  border-right: 1px solid var(--nemo-pd-line);
}

.nemo-pd-facts > div:nth-child(even) {
  padding-left: 18px;
}

.nemo-pd-facts dt {
  margin-bottom: 5px;
  color: var(--nemo-pd-red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nemo-pd-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.nemo-pd-commerce {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 24px;
}

.nemo-pd-price {
  color: var(--nemo-pd-red);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.nemo-pd-price del {
  color: var(--nemo-pd-steel);
  font-size: .55em;
}

.nemo-pd-stock {
  color: #246b3b;
  font-size: 14px;
  font-weight: 800;
}

.nemo-pd-purchase {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.nemo-pd-purchase form.cart {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  gap: 10px;
  margin: 0;
}

.nemo-pd-purchase .quantity {
  display: flex;
  min-height: 48px;
}

.nemo-pd-purchase input.qty {
  width: 76px;
  min-height: 48px;
  border: 1px solid var(--nemo-pd-line);
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
}

.nemo-pd-purchase button,
.nemo-pd-button,
.nemo-pd-dealer-link,
.nemo-pd-thumbnail,
.nemo-pd-section > summary,
.nemo-pd-link-list a {
  min-height: 44px;
}

.nemo-pd-purchase button.single_add_to_cart_button,
.nemo-pd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--nemo-pd-red);
  border-radius: 5px;
  color: var(--nemo-pd-white) !important;
  background: var(--nemo-pd-red) !important;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
}

.nemo-pd-main .nemo-pd-purchase button.single_add_to_cart_button,
.nemo-pd-main .nemo-pd-button {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.nemo-pd-purchase button.single_add_to_cart_button:hover,
.nemo-pd-button:hover {
  background: var(--nemo-pd-red-dark) !important;
}

.nemo-pd-button-outline {
  color: var(--nemo-pd-red) !important;
  background: var(--nemo-pd-white) !important;
}

/* "Buy now" now lives INSIDE the add-to-cart form (next to Add to cart), so it
   takes its own full-width row under the quantity + Add to cart pair. */
.nemo-pd-buy-now {
  width: 100%;
  grid-column: 1 / -1;
}

/* nemo-site.css styles every `form.cart button` on product routes with
   !important, which outranks `.nemo-pd-button:hover` now that Buy now is a
   button inside the form — restate the hover so it still darkens. */
.nemo-pd-purchase form.cart button.nemo-pd-buy-now:hover {
  background: var(--nemo-pd-red-dark) !important;
}

/* Variable products: variation pickers on their own row, then quantity plus
   Add to cart, then Buy now full width — the same rhythm as simple products
   (the two-column form grid used to squeeze all of it onto one line). */
.nemo-pd-purchase form.cart.variations_form {
  grid-template-columns: minmax(0, 1fr);
}

.nemo-pd-purchase .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.nemo-pd-purchase .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1 1 200px;
}

.nemo-pd-purchase .woocommerce-variation-add-to-cart .nemo-pd-buy-now {
  flex: 1 0 100%;
}

/* Variable products: WooCommerce disables purchasing until a variation is
   chosen — mirror that state on our button. */
.woocommerce-variation-add-to-cart-disabled .nemo-pd-buy-now {
  pointer-events: none;
  opacity: 0.4;
}

.nemo-pd-dealer-link {
  display: inline-flex;
  align-items: center;
  color: var(--nemo-pd-red);
  font-size: 14px;
  font-weight: 800;
}

.nemo-pd-alternate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nemo-pd-gallery {
  grid-area: gallery;
  min-width: 0;
}

.nemo-pd-main-media {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  margin: 0;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--nemo-pd-line);
  background: var(--nemo-pd-soft);
}

.nemo-pd-main-image {
  width: 100%;
  height: 100%;
  max-height: 570px;
  object-fit: contain;
}

.nemo-pd-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.nemo-pd-thumbnail {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--nemo-pd-line);
  border-radius: 4px;
  background: var(--nemo-pd-white);
  cursor: pointer;
}

.nemo-pd-thumbnail.is-active {
  border: 2px solid var(--nemo-pd-red);
}

.nemo-pd-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nemo-pd-details {
  margin-top: 88px;
  padding-top: 56px;
  border-top: 1px solid var(--nemo-pd-line);
}

.nemo-pd-details > h2 {
  max-width: 760px;
  margin: 0 0 32px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.nemo-pd-disclosures {
  border-top: 2px solid var(--nemo-pd-ink);
}

.nemo-pd-section {
  border-bottom: 1px solid var(--nemo-pd-line);
}

.nemo-pd-section > summary {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 52px 18px 4px;
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.nemo-pd-section > summary::-webkit-details-marker {
  display: none;
}

.nemo-pd-section > summary::after {
  position: absolute;
  right: 8px;
  content: "+";
  color: var(--nemo-pd-red);
  font-size: 28px;
  line-height: 1;
}

.nemo-pd-section[open] > summary::after {
  content: "−";
}

.nemo-pd-section-body {
  max-width: 860px;
  padding: 0 4px 28px;
  color: var(--nemo-pd-steel);
  font-size: 17px;
  line-height: 1.72;
}

.nemo-pd-section-body p,
.nemo-pd-section-body ul {
  margin: 0 0 18px;
}

.nemo-pd-section-body li + li {
  margin-top: 8px;
}

.nemo-pd-table-wrap {
  overflow-x: auto;
}

.nemo-pd-section table {
  width: 100%;
  border-collapse: collapse;
  color: var(--nemo-pd-ink);
  font-size: 15px;
}

.nemo-pd-section th,
.nemo-pd-section td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--nemo-pd-line);
  text-align: left;
  vertical-align: top;
}

.nemo-pd-section th {
  width: 36%;
  background: var(--nemo-pd-soft);
}

.nemo-pd-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nemo-pd-link-list a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--nemo-pd-line);
  color: var(--nemo-pd-ink);
  background: var(--nemo-pd-white);
  font-weight: 750;
  text-decoration: none;
}

.nemo-pd-review-list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nemo-pd-review {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--nemo-pd-line);
}

.nemo-pd-review-meta {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--nemo-pd-ink);
}

.nemo-pd-review-meta strong,
.nemo-pd-review-meta time {
  display: block;
}

.nemo-pd-review-meta time {
  margin-top: 2px;
  color: var(--nemo-pd-steel);
  font-size: 13px;
}

.nemo-pd-review-rating {
  color: var(--nemo-pd-red);
  letter-spacing: .08em;
}

.nemo-pd-review-copy {
  margin: 14px 0 0 60px;
}

.nemo-pd-reviews img.avatar,
.nemo-pd-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.nemo-pd-main :focus-visible {
  outline: 3px solid #1374d1;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .nemo-pd-container {
    width: min(100% - 30px, 1180px);
    padding: 30px 0 58px;
  }

  .nemo-pd-breadcrumb {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .nemo-pd-layout {
    grid-template-areas: "identity" "gallery";
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .nemo-pd-identity {
    position: static;
  }

  .nemo-pd-identity h1 {
    max-width: 100%;
    font-size: clamp(36px, 11vw, 46px);
    line-height: 1.02;
  }

  .nemo-pd-main .nemo-pd-identity h1 {
    font-size: clamp(36px, 11vw, 46px) !important;
  }

  .nemo-pd-purpose {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  .nemo-pd-facts {
    margin-top: 22px;
  }

  .nemo-pd-facts > div {
    padding-block: 12px;
  }

  .nemo-pd-facts dt {
    font-size: 12px;
  }

  .nemo-pd-facts dd {
    font-size: 14px;
  }

  .nemo-pd-price {
    font-size: 30px;
  }

  .nemo-pd-stock,
  .nemo-pd-dealer-link,
  .nemo-pd-purchase button.single_add_to_cart_button,
  .nemo-pd-button {
    font-size: 16px;
  }

  .nemo-pd-main .nemo-pd-purchase button.single_add_to_cart_button {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .nemo-pd-main .nemo-pd-price,
  .nemo-pd-main .nemo-pd-price .woocommerce-Price-amount {
    color: var(--nemo-pd-red) !important;
  }

  .nemo-pd-purchase form.cart {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .nemo-pd-main-media {
    padding: 18px;
  }

  .nemo-pd-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nemo-pd-details {
    margin-top: 52px;
    padding-top: 40px;
  }

  .nemo-pd-details > h2 {
    margin-bottom: 24px;
    font-size: 34px;
  }

  .nemo-pd-section > summary {
    min-height: 56px;
    padding-block: 14px;
    font-size: 17px;
  }

  .nemo-pd-section-body {
    padding-bottom: 24px;
    font-size: 16px;
    line-height: 1.7;
  }

  .nemo-pd-link-list {
    grid-template-columns: 1fr;
  }

  .nemo-pd-review-meta {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .nemo-pd-review-rating {
    grid-column: 2;
  }

  .nemo-pd-review-copy {
    margin-left: 0;
  }
}

@media (max-width: 340px) {
  .nemo-pd-facts,
  .nemo-pd-alternate-actions {
    grid-template-columns: 1fr;
  }

  .nemo-pd-facts > div:nth-child(n) {
    padding-inline: 0;
    border-right: 0;
  }

  .nemo-pd-purchase form.cart {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nemo-pd-main *,
  .nemo-pd-main *::before,
  .nemo-pd-main *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
 * Kit products (replacement-kits): list of kits table
 * ----------------------------------------------------------------------- */

.nemo-pd-kit-view .nemo-pd-identity {
  /* Sticky belongs to the two-column standard layout; here it would cover
     the kit table. */
  position: static;
  max-width: 900px;
  margin-bottom: 6px;
}

.nemo-pd-kit-view #nemo-pd-title {
  max-width: none; /* the 12ch cap belongs to the two-column layout */
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
}

.nemo-pd-kit-view .nemo-pd-purpose {
  color: var(--nemo-pd-steel, #5b6472);
  margin: 8px 0 26px;
  font-size: 16px;
}

.nemo-pd-kits .entry-content {
  overflow-x: auto;
}

.nemo-pd-kits table.responsive {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--nemo-pd-white, #fff);
  border: 1px solid var(--nemo-pd-line, #e3e6eb);
  border-radius: 12px;
  overflow: hidden;
}

.nemo-pd-kits table.responsive thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--nemo-pd-steel, #5b6472);
  background: var(--nemo-pd-soft, #f5f6f8);
  padding: 14px 18px;
  border-bottom: 1px solid var(--nemo-pd-line, #e3e6eb);
}

.nemo-pd-kits table.responsive thead th:nth-child(1) { width: 26%; }
.nemo-pd-kits table.responsive thead th:nth-child(3) { width: 90px; }
.nemo-pd-kits table.responsive thead th:nth-child(4) { width: 170px; }
.nemo-pd-kits table.responsive thead th:nth-child(5) { width: 150px; }

.nemo-pd-kits table.responsive td {
  align-content: center;
  padding: 20px 18px;
  border-bottom: 1px solid var(--nemo-pd-line, #e3e6eb);
  vertical-align: top;
  font-size: 15px;
}

/* Contain the image float inside its own cell so it cannot indent the first
   bullet of the info list when cells stack on mobile. */
.nemo-pd-kits table.responsive td:first-of-type {
  overflow: hidden;
}

.nemo-pd-kits table.responsive tbody tr:last-child td {
  border-bottom: 0;
}

/* First column: image beside name/SKU, no ragged float wrap. */
.nemo-pd-kits .kit-img {
  float: left;
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--nemo-pd-soft, #f5f6f8);
  border: 1px solid var(--nemo-pd-line, #e3e6eb);
  border-radius: 8px;
  margin: 0 14px 0 0;
}

.nemo-pd-kits .kit-name {
  margin: 2px 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nemo-pd-ink, #10151d);
  overflow: hidden; /* clears the floated image instead of wrapping under it */
}

.nemo-pd-kits .kit-sku {
  display: block;
  overflow: hidden;
  font-size: 12px;
  color: var(--nemo-pd-steel, #5b6472);
}

/* Info column: compact, quiet lists. */
.nemo-pd-kits td.kit-info {
  color: var(--nemo-pd-steel, #5b6472);
  font-size: 13.5px;
  line-height: 1.6;
}

.nemo-pd-kits td.kit-info ul {
  margin: 0 0 10px;
  padding-left: 16px;
}

.nemo-pd-kits td.kit-info li {
  margin: 0 0 2px;
}

.nemo-pd-kits td.kit-info p {
  margin: 0 0 4px;
}

.nemo-pd-kits td.kit-info p:last-child {
  margin-bottom: 0;
}

.nemo-pd-kits td.qty .input-text {
  width: 64px;
  padding: 9px 10px;
  border: 1px solid var(--nemo-pd-line, #e3e6eb);
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
}

.nemo-pd-kits td.price {
  font-weight: 700;
  font-size: 16px;
  color: var(--nemo-pd-ink, #10151d);
}

/* An empty kit label (variation without named attributes) collapses cleanly
   and the SKU line stands alone. */
.nemo-pd-kits .kit-name:empty {
  display: none;
}

/* Partner pricing lines (dealer/distributor — shown to admins and partner
   accounts). The legacy renderer prints them with inline flex/max-width
   styles sized for the old page; normalize them to fit the price column. */
.nemo-pd-kits td.price hr {
  margin: 10px 0 6px;
  border: 0;
  border-top: 1px solid var(--nemo-pd-line, #e3e6eb);
}

.nemo-pd-kits td.price p {
  display: block !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 4px 0 0;
  font-size: 12px !important;
  font-weight: 600;
  color: var(--nemo-pd-steel, #5b6472);
  line-height: 1.5;
}

.nemo-pd-kits td.price p span {
  display: block;
  font-size: 13px;
}

.nemo-pd-kits .single_add_to_cart_button {
  display: block;
  width: 100%;
  background: var(--nemo-pd-red, #bc0000);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nemo-pd-kits .single_add_to_cart_button:hover {
  background: var(--nemo-pd-red-dark, #9b0000);
}

@media (max-width: 860px) {
  .nemo-pd-kits table.responsive,
  .nemo-pd-kits table.responsive tbody,
  .nemo-pd-kits table.responsive tr,
  .nemo-pd-kits table.responsive td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .nemo-pd-kits table.responsive thead {
    display: none;
  }

  .nemo-pd-kits table.responsive tr {
    border-bottom: 1px solid var(--nemo-pd-line, #e3e6eb);
    padding: 16px 0;
  }

  .nemo-pd-kits table.responsive tr:last-child {
    border-bottom: 0;
  }

  .nemo-pd-kits table.responsive td {
    border-bottom: 0;
    padding: 6px 16px;
  }

  .nemo-pd-kits td.qty .input-text {
    width: 88px;
  }

  .nemo-pd-kits .single_add_to_cart_button {
    width: auto;
    padding: 12px 22px;
  }
}
