:root {
  --vcpp-navy: #07172d;
  --vcpp-blue: #2874ee;
  --vcpp-blue-soft: #eef5ff;
  --vcpp-line: #d7e2f1;
  --vcpp-muted: #5f6f85;
  --vcpp-green: #087a43;
  --vcpp-green-soft: #eaf8f0;
}

body.single-product {
  background: #f7f9fc;
}

body.single-product main.woo-shell {
  width: min(1180px, calc(100% - 40px));
  padding-top: 48px;
}

body.single-product .woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(430px, 1fr);
  gap: 48px;
  align-items: start;
}

body.single-product .woocommerce div.product::before,
body.single-product .woocommerce div.product::after {
  display: none;
}

body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce div.product div.summary {
  float: none;
  width: 100%;
  margin: 0;
}

body.single-product .woocommerce div.product div.images {
  position: static;
  overflow: hidden;
  border: 1px solid var(--vcpp-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(11, 35, 66, .08);
}

body.single-product .woocommerce div.product div.summary {
  padding-top: 4px;
}

body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .upsells.products {
  grid-column: 1 / -1;
}

body.single-product div.product .summary .product_title {
  margin: 0 0 7px;
  font-size: clamp(38px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

body.single-product div.product .summary > .price {
  display: block;
  margin: 0 0 19px;
  color: var(--vcpp-blue);
  font-size: 22px;
  font-weight: 850;
}

/* The financing line was not part of the approved mock and adds visual noise. */
body.single-product #payment-method-message {
  display: none !important;
}

body.single-product .woocommerce-product-details__short-description {
  margin: 0 0 16px;
  color: #20314a;
  font-size: 15px;
  line-height: 1.55;
}

body.single-product .woocommerce-product-details__short-description p {
  margin: 0;
}

body.single-product .voyage-coa-lite-panel {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 0;
  gap: 7px;
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 1px solid #c9dcf7;
  border-radius: 9px;
  background: var(--vcpp-blue-soft);
  box-shadow: none;
}

body.single-product .voyage-coa-mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  font-size: 11px;
}

body.single-product .voyage-coa-lite-panel strong {
  font-size: 13px;
}

body.single-product .voyage-coa-lite-panel > div > span {
  display: none;
}

body.single-product .voyage-coa-link {
  align-self: center;
  margin-left: 4px;
  font-size: 11px;
}

body.single-product .vfo-bac-recommendation {
  margin: 0 0 19px !important;
  color: var(--vcpp-muted);
  font-size: 13px;
  font-weight: 600 !important;
}

body.single-product .vfo-bac-recommendation a {
  color: var(--vcpp-navy);
  font-weight: 750 !important;
  text-decoration: none;
}

body.single-product table.variations {
  margin-bottom: 7px;
}

body.single-product table.variations th.label,
body.single-product table.variations td.label {
  padding: 0 0 8px;
  font-size: 13px;
}

body.single-product .vp-strength-buttons {
  gap: 8px;
  margin: 0 0 7px;
}

body.single-product .vp-strength-option {
  min-width: 82px;
  min-height: 48px;
  padding: 10px 15px;
  border-radius: 11px;
  font-size: 14px;
  box-shadow: none;
}

body.single-product .vp-strength-option.is-selected {
  background: var(--vcpp-blue-soft);
  box-shadow: 0 0 0 2px rgba(40, 116, 238, .08);
}

body.single-product .vp-strength-option__stock {
  display: none;
}

body.single-product .vp-strength-option.is-out-of-stock {
  border-color: #e2b9b9;
  background: #fff5f5;
  color: #9e2b2b;
  cursor: not-allowed;
  opacity: .72;
}

body.single-product .vp-strength-option.is-out-of-stock .vp-strength-option__stock {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.1;
}

body.single-product a.reset_variations {
  color: var(--vcpp-muted);
  font-size: 11px;
}

body.single-product .woocommerce-variation.single_variation {
  margin: 2px 0 17px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--vcpp-line);
}

body.single-product .woocommerce-variation-description {
  display: none;
}

body.single-product .woocommerce-variation-price,
body.single-product .woocommerce-variation-availability {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

body.single-product .woocommerce-variation-price .price {
  color: var(--vcpp-navy) !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  letter-spacing: -.03em;
}

body.single-product .woocommerce-variation-availability {
  margin-left: 10px;
}

body.single-product .woocommerce-variation-availability .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #bfe7d1;
  border-radius: 999px;
  background: var(--vcpp-green-soft);
  color: var(--vcpp-green);
  font-size: 11px;
  font-weight: 800;
}

body.single-product .woocommerce-variation-availability .stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #18a460;
}

body.single-product .woocommerce-variation-availability .out-of-stock {
  border-color: #f0c9c9;
  background: #fff2f2;
  color: #a82828;
}

body.single-product .woocommerce-variation-availability .out-of-stock::before {
  background: #d73c3c;
}

/* Single-strength products receive the same decision flow as variations. */
body.single-product div.product.product-type-simple .summary > .price,
body.single-product div.product.product-type-simple .summary > p.stock {
  display: none !important;
}

body.single-product .vcpp-simple-selection {
  margin: 0 0 17px;
}

body.single-product .vcpp-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

body.single-product .vcpp-single-strength {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

body.single-product .vcpp-single-strength .vp-strength-option {
  cursor: default;
}

body.single-product .vcpp-selected-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--vcpp-line);
}

body.single-product .vcpp-selected-price {
  color: var(--vcpp-navy);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.03em;
}

body.single-product .vcpp-selected-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #bfe7d1;
  border-radius: 999px;
  background: var(--vcpp-green-soft);
  color: var(--vcpp-green);
  font-size: 11px;
  font-weight: 800;
}

body.single-product .vcpp-selected-stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #18a460;
}

body.single-product .vcpp-selected-stock.is-out-of-stock {
  border-color: #f0c9c9;
  background: #fff2f2;
  color: #a82828;
}

body.single-product .vcpp-selected-stock.is-out-of-stock::before {
  background: #d73c3c;
}

/* Simple products place stock outside the cart form. Match the variation pill. */
body.single-product div.product .summary > p.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px 9px;
  border: 1px solid #bfe7d1;
  border-radius: 999px;
  background: var(--vcpp-green-soft);
  color: var(--vcpp-green);
  font-size: 11px;
  font-weight: 800;
}

body.single-product div.product .summary > p.stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #18a460;
}

body.single-product div.product .summary > p.stock.out-of-stock {
  border-color: #f0c9c9;
  background: #fff2f2;
  color: #a82828;
}

body.single-product div.product .summary > p.stock.out-of-stock::before {
  background: #d73c3c;
}

body.single-product .vp-purchase-options {
  margin: 0 0 15px;
}

body.single-product .vp-purchase-options__heading {
  margin-bottom: 8px;
}

body.single-product .vp-purchase-options__heading strong {
  font-size: 15px;
}

body.single-product .vp-purchase-options__heading span,
body.single-product .vp-purchase-options__note {
  font-size: 10px;
}

body.single-product .vp-tier-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

body.single-product .vp-tier-card {
  min-height: 66px;
  gap: 4px;
  padding: 8px 6px;
  border-width: 1px;
  border-radius: 9px;
  box-shadow: none;
}

body.single-product .vp-tier-card.is-selected {
  border-width: 2px;
  box-shadow: none;
}

body.single-product .vp-tier-card__top {
  gap: 3px;
}

body.single-product .vp-tier-card__quantity {
  font-size: 10px;
}

body.single-product .vp-tier-card__badge {
  padding: 1px 4px;
  font-size: 8px;
}

body.single-product .vp-tier-card__price {
  font-size: 15px;
}

body.single-product .vp-purchase-options__note {
  margin-top: 5px;
}

body.single-product .woocommerce-variation-add-to-cart {
  align-items: stretch;
  gap: 10px;
}

/*
 * WooCommerce renders simple products differently from variable products.
 * Give simple products the same full-width discount panel and cart row.
 */
body.single-product div.product form.cart:not(.variations_form) {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

body.single-product div.product form.cart:not(.variations_form) .vp-purchase-options {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 4px;
}

body.single-product div.product form.cart:not(.variations_form) .quantity {
  grid-column: 1;
  margin: 0 !important;
}

body.single-product div.product form.cart:not(.variations_form) .single_add_to_cart_button {
  grid-column: 2;
  width: 100%;
  margin: 0 !important;
}

body.single-product .quantity .qty,
body.single-product button.single_add_to_cart_button {
  min-height: 52px;
  border-radius: 10px !important;
}

body.single-product button.single_add_to_cart_button {
  min-width: 220px;
  font-weight: 850;
}

body.single-product .product_meta {
  color: var(--vcpp-muted);
  font-size: 12px;
}

body.voyage-night-mode.single-product,
body.dark-mode.single-product {
  background: #071525;
}

body.voyage-night-mode.single-product .voyage-coa-lite-panel,
body.dark-mode.single-product .voyage-coa-lite-panel {
  background: #10243d;
  border-color: #2d527d;
}

body.voyage-night-mode.single-product .vfo-bac-recommendation a,
body.dark-mode.single-product .vfo-bac-recommendation a,
body.voyage-night-mode.single-product .woocommerce-variation-price .price,
body.dark-mode.single-product .woocommerce-variation-price .price,
body.voyage-night-mode.single-product .vcpp-selected-price,
body.dark-mode.single-product .vcpp-selected-price {
  color: #f3f7ff !important;
}

@media (max-width: 900px) {
  body.single-product main.woo-shell {
    width: min(100% - 32px, 760px);
    padding-top: 28px;
  }

  body.single-product .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.single-product .woocommerce div.product div.images {
    position: static;
  }

  body.single-product .woocommerce div.product div.summary {
    padding-top: 0;
  }

  body.single-product .woocommerce-tabs,
  body.single-product .related.products,
  body.single-product .upsells.products {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  body.single-product main.woo-shell {
    width: min(100% - 24px, 760px);
  }

  body.single-product div.product .summary .product_title {
    font-size: 36px;
  }

  body.single-product .vp-strength-option {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 72px;
  }

  body.single-product .vp-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.single-product .vp-tier-card {
    min-height: 60px;
  }

  body.single-product .woocommerce-variation-price .price {
    font-size: 29px !important;
  }

  body.single-product button.single_add_to_cart_button {
    min-width: 0;
    flex: 1;
  }

  body.single-product div.product form.cart:not(.variations_form) {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

