/* Product page custom layer
   This file must not override Journal3 layout, carousel, tabs, prices, or buttons.
   It only styles custom jx-* blocks and disabled option states. */

/* Disabled / out-of-stock options */
select.form-control option.option-out-of-stock {
  background: #f5f7fa;
  color: #8a94a3;
  text-decoration: line-through;
}

.radio.option-out-of-stock,
.checkbox.option-out-of-stock {
  opacity: .6;
}

label.option-disabled {
  cursor: not-allowed !important;
  user-select: none;
}

label.option-disabled .option-value {
  color: #8a94a3;
  text-decoration: line-through;
}

label.option-disabled .option-price {
  color: #667085 !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

label.option-disabled .push-option-image img {
  filter: grayscale(100%) opacity(.45);
}

label.option-disabled input[type="radio"],
label.option-disabled input[type="checkbox"] {
  cursor: not-allowed;
  opacity: .5;
}

.push-option .option-out-of-stock label.option-disabled {
  pointer-events: none;
}

/* Brand pill above product title */
#product-product .jx-brand-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1e58a8 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: inset 0 0 0 1px #dbeafe;
}

#product-product .jx-brand-pill i {
  color: #1d5fd1;
  font-size: 12px;
  line-height: 1;
}

#product-product .product-seo-heading-stack .title.page-title:before,
#product-product .product-seo-heading-stack .title.page-title:after,
#product-product .product-seo-heading-stack:before,
#product-product .product-seo-heading-stack:after {
  content: none !important;
  display: none !important;
}

#product-product .jx-review-pro-rating-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: inherit;
  text-decoration: none !important;
}

/* Subtle product image definition without changing Journal sizing */
#product-product .product-image {
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
}

#product-product .product-image img {
  border-radius: 10px;
}

/* Authenticity verification band */
#product-product .jx-auth-band {
  clear: both;
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(300px, 1.05fr) minmax(230px, .9fr);
  gap: 12px;
  width: 100%;
  margin: 16px 0;
}

#product-product .jx-auth-band__item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid #e3ebf6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 42, 85, .04);
}

#product-product .jx-auth-band__item > span:not(.jx-auth-band__qr) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eaf3ff 0%, #dbeafe 100%);
  color: #075ec5;
  font-size: 18px;
}

#product-product .jx-auth-band__item strong,
#product-product .jx-auth-band__item b {
  display: block;
  color: #0f2a55;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

#product-product .jx-auth-band__item small {
  display: block;
  margin-top: 5px;
  color: #52627a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

#product-product .jx-auth-band__serial {
  justify-content: center;
  gap: 12px;
  background: #fff;
}

#product-product .jx-auth-band__serial > strong {
  max-width: 130px;
  color: #1354a6;
  font-size: clamp(16px, 1.55vw, 22px);
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#product-product .jx-auth-band__qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid #cfdcec;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 29px;
  box-shadow: inset 0 0 0 3px #f8fafc;
}

/* Trust badges directly below price */
#product-product .jx-price-trust {
  width: 100%;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e7edf6;
}

#product-product .jx-price-trust__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

#product-product .jx-price-trust__status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

#product-product .jx-price-trust__status span:first-child {
  background: #ecfdf3;
  color: #15803d;
}

#product-product .jx-price-trust__status i {
  color: #0d57b7;
}

#product-product .jx-price-trust__status span:first-child i {
  color: #16a34a;
}

#product-product .jx-price-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e3ebf6;
  border-radius: 8px;
  background: #fff;
}

#product-product .jx-price-trust__grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 82px;
  padding: 13px 8px 11px;
  border-right: 1px solid #edf2f8;
  text-align: center;
}

#product-product .jx-price-trust__grid > div:last-child {
  border-right: 0;
}

#product-product .jx-price-trust__grid i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 7px;
  color: #0d57b7;
  font-size: 18px;
}

#product-product .jx-price-trust__grid strong {
  display: block;
  color: #0f2a55;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

#product-product .jx-price-trust__grid small {
  display: block;
  margin-top: 3px;
  color: #52627a;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

#product-product .jx-auth-band__guarantee {
  background: linear-gradient(180deg, #f1fff6 0%, #eafcf0 100%);
  border-color: #d7f4df;
}

#product-product .jx-auth-band__guarantee > span:not(.jx-auth-band__qr) {
  background: #dcfce7;
  color: #16a34a;
}

#product-product .jx-auth-band__guarantee strong {
  color: #13823f;
}

/* Review block placement only; Review Pro owns its inner design */
#product-product .jx-review-pro-anchor {
  clear: both;
  display: block;
  width: 100%;
  margin: 22px 0 28px;
}

#product-product .jx-review-pro-anchor:empty {
  display: none;
}

#product-product .jx-review-pro-anchor #reviews {
  display: block;
  width: 100%;
}

@media (max-width: 760px) {
  #product-product .jx-brand-pill {
    font-size: 12px;
    padding: 5px 9px;
  }
}

/* Journal product tabs visual layer */
#product-product .product_tabs {
  clear: both;
  margin: 0 0 22px;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

#product-product .product_tabs > .full-tabs-bg {
  display: none;
}

#product-product .product_tabs > .nav-tabs {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e8eef7;
  background: #fff;
}

#product-product .product_tabs > .nav-tabs > li {
  float: none;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  text-align: center;
}

#product-product .product_tabs > .nav-tabs > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin: 0;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #27364f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: inset -1px 0 0 #edf2f8;
}

#product-product .product_tabs > .nav-tabs > li:last-child > a {
  box-shadow: none;
}

#product-product .product_tabs > .nav-tabs > li.active > a,
#product-product .product_tabs > .nav-tabs > li > a:hover,
#product-product .product_tabs > .nav-tabs > li > a:focus {
  color: #0d57b7;
  box-shadow: inset 0 -3px 0 #1d6ee8, inset -1px 0 0 #edf2f8;
}

#product-product .product_tabs > .nav-tabs > li:last-child.active > a,
#product-product .product_tabs > .nav-tabs > li:last-child > a:hover,
#product-product .product_tabs > .nav-tabs > li:last-child > a:focus {
  box-shadow: inset 0 -3px 0 #1d6ee8;
}

#product-product .product_tabs > .tab-content {
  padding: 22px 26px;
  background: #fff;
  color: #25364f;
  font-size: 14px;
  line-height: 1.65;
}

#product-product .product_tabs .block-body,
#product-product .product_tabs .block-wrapper,
#product-product .product_tabs .block-content {
  background: transparent;
}

#product-product .product_tabs table {
  margin: 0;
  border-color: #e7edf6;
}

#product-product .product_tabs table td {
  padding: 9px 12px;
  border-color: #edf2f8;
  color: #334155;
  font-size: 13px;
}

#product-product .product_tabs table td:first-child {
  font-weight: 800;
  background: #f8fafc;
}

@media (max-width: 760px) {
  #product-product .product_tabs > .nav-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  #product-product .product_tabs > .nav-tabs > li {
    flex: 0 0 auto;
  }

  #product-product .product_tabs > .nav-tabs > li > a {
    min-width: 165px;
    min-height: 52px;
    padding: 0 10px;
    font-size: 13px;
  }

  #product-product .product_tabs > .tab-content {
    padding: 18px 14px;
  }
}

/* Related topics fixed below product reviews */
#product-product .jx-related-topics {
  clear: both;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #fff;
}

#product-product .jx-related-topics .tags-title {
  display: block;
  margin: 0 0 10px;
  color: #0f2a55;
  font-size: 15px;
  font-weight: 900;
}

#product-product .jx-related-topics h3 {
  margin: 0 0 10px;
  color: #0f2a55;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

#product-product .jx-related-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#product-product .jx-related-topics li {
  margin: 0;
  padding: 0;
}

#product-product .jx-related-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 8px 8px 0;
  padding: 6px 10px;
  border: 1px solid #e1e9f4;
  border-radius: 999px;
  background: #f8fbff;
  color: #1f4f8f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}

#product-product .jx-related-topics b {
  display: none;
}

/* Legal warning below product description */
#product-product .jx-legal-warning {
  clear: both;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  margin: 20px 0 0;
  padding: 18px 22px;
  border: 1px solid #f6c66b;
  border-radius: 8px;
  background: #fffaf0;
  color: #3f4654;
}

#product-product .jx-legal-warning > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #f59e0b;
  font-size: 24px;
}

#product-product .jx-legal-warning strong {
  display: block;
  margin: 0 0 4px;
  color: #9a5b00;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

#product-product .jx-legal-warning p {
  margin: 0;
  color: #3f4654;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 760px) {
  #product-product .jx-auth-band {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
    padding: 9px;
  }

  #product-product .jx-auth-band__item {
    min-height: 58px;
    padding: 9px 10px;
  }

  #product-product .jx-auth-band__serial {
    justify-content: flex-start;
  }

  #product-product .jx-auth-band__serial > strong {
    max-width: none;
    font-size: 15px;
  }

  #product-product .jx-auth-band__item > span:not(.jx-auth-band__qr) {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 16px;
  }

  #product-product .jx-auth-band__qr {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 24px;
  }

  #product-product .jx-price-trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #product-product .jx-price-trust__grid > div {
    min-height: 76px;
    border-right: 1px solid #edf2f8;
    border-bottom: 1px solid #edf2f8;
  }

  #product-product .jx-price-trust__grid > div:nth-child(2n) {
    border-right: 0;
  }

  #product-product .jx-price-trust__grid > div:last-child {
    border-bottom: 0;
  }

  #product-product .jx-legal-warning {
    padding: 15px 14px;
  }
}
