/* Product detail composition based on the Plastem Figma product reference. */

/* The native Hummingbird breadcrumb is rendered outside the Creative Elements
 * product template. Keep the template breadcrumb only to avoid displaying it twice. */
body.page-product main.wrapper > .breadcrumb__wrapper {
  display: none !important;
}

/* Keep a small, deliberate breathing space between the quantity/actions row
 * and the minimum-order notice on the product page. */
body.page-product .aw-product-info .aw-product-stock {
  margin-block-start: 16px !important;
}

body.page-product .aw-product-main,
body.page-product .aw-product-related {
  box-sizing: border-box !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc((100% - 100vw) / 2) !important;
  background: #ffffff !important;
}

body.page-product .aw-product-main {
  padding: 18px 0 74px !important;
}

body.page-product .aw-product-main > .elementor-container,
body.page-product .aw-product-related > .elementor-container {
  box-sizing: border-box !important;
  width: min(1800px, calc(100% - 96px)) !important;
  max-width: 1800px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.page-product .aw-product-main > .elementor-container > .elementor-row {
  display: grid !important;
  grid-template-columns: minmax(0, 42fr) minmax(0, 40fr) minmax(230px, 18fr) !important;
  column-gap: 42px !important;
  row-gap: 0 !important;
  align-items: start !important;
}

body.page-product .aw-product-main .elementor-column {
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.page-product .aw-product-main .elementor-widget-wrap {
  align-content: flex-start !important;
}

body.page-product .aw-product-breadcrumb {
  box-sizing: border-box !important;
  display: block !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 20px !important;
}

body.page-product .aw-product-breadcrumb .ce-breadcrumb {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  white-space: nowrap !important;
}

body.page-product .aw-product-breadcrumb .ce-breadcrumb::-webkit-scrollbar {
  display: none !important;
}

body.page-product .aw-product-breadcrumb .ce-breadcrumb .elementor-row {
  box-sizing: border-box !important;
  display: flex !important;
  width: max-content !important;
  min-width: 100% !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.page-product .aw-product-breadcrumb .ce-breadcrumb__item {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #6338ff !important;
  white-space: nowrap !important;
}

body.page-product .aw-product-breadcrumb .ce-breadcrumb__item > * {
  padding: 0 !important;
}

body.page-product .aw-product-breadcrumb .ce-breadcrumb__item:not(:last-child)::after {
  content: ">" !important;
  display: inline-block !important;
  margin: 0 10px !important;
  color: #6338ff !important;
  font: inherit !important;
  font-weight: 400 !important;
}

body.page-product .aw-product-breadcrumb a,
body.page-product .aw-product-breadcrumb span {
  color: #6338ff !important;
  font: inherit !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.page-product .aw-product-breadcrumb .ce-breadcrumb__item:last-child span {
  color: #3516b4 !important;
  font-weight: 700 !important;
}

body.page-product .aw-product-gallery,
body.page-product .aw-product-info,
body.page-product .aw-product-side {
  align-self: start !important;
}

body.page-product .aw-product-image .elementor-widget-container {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  height: 460px !important;
  min-height: 460px !important;
  align-items: center !important;
  justify-content: center !important;
}

body.page-product .aw-product-image a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
}

body.page-product .aw-product-image img {
  display: block !important;
  width: min(100%, 480px) !important;
  height: 460px !important;
  max-width: 480px !important;
  object-fit: contain !important;
}

body.page-product .codex-product-gallery-controls {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  pointer-events: none !important;
}

body.page-product .codex-product-gallery-controls[hidden] {
  display: none !important;
}

body.page-product .codex-product-gallery-arrow {
  position: absolute !important;
  top: 50% !important;
  display: inline-flex !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #101a44 !important;
  font-family: Arial, sans-serif !important;
  font-size: 31px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

body.page-product .codex-product-gallery-arrow--prev { left: 12px !important; }
body.page-product .codex-product-gallery-arrow--next { right: 12px !important; }

body.page-product .codex-product-gallery-arrow:hover,
body.page-product .codex-product-gallery-arrow:focus-visible {
  color: #6338ff !important;
  background: transparent !important;
}

body.page-product .codex-product-gallery-thumbnails {
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 24px auto 0 !important;
  padding: 0 !important;
  gap: 12px !important;
}

body.page-product .codex-product-gallery-thumbnail {
  box-sizing: border-box !important;
  display: flex !important;
  width: 88px !important;
  height: 72px !important;
  margin: 0 !important;
  padding: 5px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #ececf2 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  cursor: pointer !important;
}

body.page-product .codex-product-gallery-thumbnail.is-active,
body.page-product .codex-product-gallery-thumbnail:focus-visible {
  border-color: #6338ff !important;
  outline: 0 !important;
  box-shadow: 0 0 0 1px #6338ff !important;
}

body.page-product .codex-product-gallery-thumbnail img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.page-product .aw-product-attachments {
  margin-top: 30px !important;
}

body.page-product .aw-product-attachments .ce-product-attachments {
  display: block !important;
  width: 290px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

body.page-product .aw-product-attachments .ce-attachment {
  box-sizing: border-box !important;
  display: flex !important;
  width: 290px !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  align-items: center !important;
  gap: 12px !important;
  background: #be801c !important;
}

body.page-product .aw-product-attachments .elementor-icon-box-icon,
body.page-product .aw-product-attachments .elementor-icon-box-content {
  margin: 0 !important;
}

body.page-product .aw-product-attachments .elementor-icon-box-icon {
  flex: 0 0 auto !important;
}

body.page-product .aw-product-attachments .elementor-icon {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 16px !important;
}

body.page-product .aw-product-attachments .elementor-icon-box-title {
  display: block !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body.page-product .aw-product-attachments .elementor-icon-box-title a {
  color: inherit !important;
  text-decoration: none !important;
}

body.page-product .aw-product-attachments .elementor-icon-box-description {
  display: none !important;
}

body.page-product .aw-product-name {
  margin: 0 0 16px !important;
}

body.page-product .aw-product-name .ce-product-name,
body.page-product .aw-product-name .elementor-heading-title {
  display: block !important;
  max-width: 760px !important;
  margin: 0 !important;
  color: #6338ff !important;
  font-size: clamp(26px, 1.7vw, 34px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  white-space: normal !important;
  overflow: visible !important;
}

body.page-product .aw-product-name .ce-product-name a {
  color: inherit !important;
}

body.page-product .aw-product-meta {
  display: block !important;
  margin: 0 0 21px !important;
}

body.page-product .aw-product-meta .ce-product-meta {
  display: inline-flex !important;
  width: auto !important;
  min-height: 36px !important;
  align-items: center !important;
  gap: 0 !important;
  border: 1px solid #858585 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #5d5d5d !important;
  font-weight: 500 !important;
}

body.page-product .aw-product-meta .ce-product-meta__reference {
  display: inline-flex !important;
  min-height: 34px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
  border: 0 !important;
}

body.page-product .aw-product-meta .ce-product-meta__category {
  display: none !important;
}

body.page-product .aw-product-meta.codex-product-reference .elementor-widget-container > .ce-product-meta:not(.codex-reference-display) {
  display: none !important;
}

body.page-product .codex-reference-heart {
  color: #858585 !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

body.page-product .aw-product-meta .ce-product-meta__label {
  color: #777777 !important;
  font-weight: 500 !important;
}

body.page-product .aw-product-meta .ce-product-meta__value {
  color: #5d5d5d !important;
  font-weight: 800 !important;
}

body.page-product .aw-product-copy {
  max-width: 780px !important;
  margin: 0 0 21px !important;
  color: #101a44 !important;
  font-size: 13px !important;
  line-height: 1.28 !important;
  overflow: visible !important;
}

body.page-product .aw-product-copy p {
  margin: 0 !important;
  color: #101a44 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

body.page-product .aw-product-copy a,
body.page-product .aw-product-copy a span {
  color: #be801c !important;
  font-weight: 700 !important;
}

body.page-product .aw-product-price {
  margin: 0 0 12px !important;
}

body.page-product .aw-product-price .ce-product-prices {
  display: block !important;
  width: auto !important;
  line-height: 1 !important;
}

body.page-product .aw-product-price .codex-product-price-display {
  display: block !important;
  width: auto !important;
  line-height: 1 !important;
}

body.page-product .aw-product-price.codex-product-price .ce-product-prices {
  display: none !important;
}

body.page-product .aw-product-price .codex-price-line {
  display: inline-flex !important;
  min-height: 27px !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

body.page-product .aw-product-price .ce-product-price {
  display: inline-block !important;
  vertical-align: top !important;
}

body.page-product .aw-product-price .ce-product-price span:not(.screen-reader-text) {
  color: #be801c !important;
  font-size: 25px !important;
  line-height: 27px !important;
  font-weight: 900 !important;
}

body.page-product .aw-product-price .ce-tax-shipping-delivery-label {
  display: inline-block !important;
  position: relative !important;
  top: 4px !important;
  margin-left: 0 !important;
  color: #be801c !important;
  font-size: 8px !important;
  line-height: 10px !important;
  font-weight: 800 !important;
  vertical-align: top !important;
}

body.page-product .aw-product-price .codex-regular-price {
  display: inline-flex !important;
  min-height: 22px !important;
  margin: 2px 0 0 3px !important;
  padding: 2px 12px !important;
  align-items: center !important;
  border-radius: 13px !important;
  background: #d49122 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.page-product .aw-product-price .codex-regular-price span {
  color: inherit !important;
  font: inherit !important;
  text-decoration-line: line-through !important;
  text-decoration-thickness: 1px !important;
}

body.page-product .aw-product-price .codex-unit-price-label {
  display: block !important;
  margin: 0 !important;
  color: #101a44 !important;
  font-size: 10px !important;
  line-height: 13px !important;
  font-weight: 400 !important;
}

body.page-product .aw-product-info .aw-product-add,
body.page-product .aw-product-info .aw-product-quantity {
  display: inline-block !important;
  vertical-align: bottom !important;
}

body.page-product .codex-purchase-row {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: flex-end !important;
  gap: 13px !important;
}

body.page-product .aw-product-info .aw-product-quantity {
  width: 114px !important;
  margin: 0 13px 0 0 !important;
}

body.page-product .codex-purchase-row .aw-product-quantity {
  display: block !important;
  flex: 0 0 114px !important;
  width: 114px !important;
  margin: 0 !important;
}

body.page-product .aw-product-info .aw-product-quantity .elementor-widget-container {
  display: block !important;
}

body.page-product .codex-product-quantity-label {
  margin: 0 0 6px !important;
  color: #101a44 !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 800 !important;
}

body.page-product .aw-product-quantity .ce-product-quantity {
  box-sizing: border-box !important;
  display: flex !important;
  position: relative !important;
  width: 114px !important;
  height: 41px !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  border: 1px solid #d8d8e0 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

body.page-product .aw-product-quantity .ce-product-quantity input {
  box-sizing: border-box !important;
  flex: 0 0 79px !important;
  width: 79px !important;
  height: 39px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid #eeeeee !important;
  background: #ffffff !important;
  color: #5d5d5d !important;
  font-size: 14px !important;
  text-align: center !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

body.page-product .aw-product-quantity .ce-product-quantity input::-webkit-outer-spin-button,
body.page-product .aw-product-quantity .ce-product-quantity input::-webkit-inner-spin-button {
  margin: 0 !important;
  -webkit-appearance: none !important;
}

body.page-product .aw-product-quantity .ce-product-quantity__btn {
  position: absolute !important;
  right: 7px !important;
  z-index: 1 !important;
  display: flex !important;
  width: 14px !important;
  height: 11px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #7c7c86 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.page-product .aw-product-quantity .ce-product-quantity__plus {
  top: 6px !important;
}

body.page-product .aw-product-quantity .ce-product-quantity__minus {
  bottom: 6px !important;
}

body.page-product .aw-product-add {
  width: 192px !important;
  margin: 0 !important;
}

body.page-product .codex-purchase-row .aw-product-add {
  display: block !important;
  flex: 0 0 192px !important;
  width: 192px !important;
  margin: 0 !important;
}

body.page-product .aw-product-add .elementor-button {
  display: inline-flex !important;
  box-sizing: border-box !important;
  width: 192px !important;
  min-width: 192px !important;
  height: 41px !important;
  min-height: 41px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #6338ff !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

body.page-product .aw-product-add .elementor-button-content-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

body.page-product .aw-product-add .elementor-button-icon {
  display: inline-flex !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

body.page-product .aw-product-add .elementor-button-icon i {
  font-size: 18px !important;
  line-height: 1 !important;
}

body.page-product .aw-product-add .elementor-button-icon svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

body.page-product .aw-product-add .elementor-button-text {
  white-space: nowrap !important;
}

body.page-product .aw-product-add .elementor-button:hover,
body.page-product .aw-product-add .elementor-button:focus-visible {
  background: #5128e9 !important;
  color: #ffffff !important;
}

body.page-product .aw-product-stock {
  margin: 0 !important;
}

body.page-product .aw-product-stock-wrap {
  display: block !important;
  margin-top: 18px !important;
}

body.page-product .codex-product-minimum {
  display: inline-flex !important;
  min-height: 44px !important;
  margin: 0 0 17px !important;
  padding: 0 18px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 5px 17px rgba(16, 26, 68, 0.13) !important;
  color: #be801c !important;
  font-size: 12px !important;
  line-height: 17px !important;
  font-weight: 800 !important;
  text-align: center !important;
}

body.page-product .codex-product-stock {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #101a44 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

body.page-product .codex-product-stock .material-icons {
  font-size: 19px !important;
  line-height: 1 !important;
}

body.page-product .codex-product-stock--available .material-icons { color: #8bd400 !important; }
body.page-product .codex-product-stock--unavailable .material-icons { color: #ff4935 !important; }

body.page-product .codex-product-stock-alert {
  display: inline-block !important;
  margin: 5px 0 0 26px !important;
  color: #6338ff !important;
  font-size: 12px !important;
  line-height: 17px !important;
  text-decoration: underline !important;
}

body.page-product .aw-product-side {
  box-sizing: border-box !important;
  margin-top: 0 !important;
  transform: none !important;
  padding: 0 !important;
}

body.page-product .aw-product-side .aw-discount-title {
  display: none !important;
}

body.page-product .aw-product-side .codex-discount-table {
  width: 100% !important;
  margin: 0 !important;
}

body.page-product .codex-discount-table table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  color: #6a6a6a !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

body.page-product .codex-discount-table th {
  height: 41px !important;
  padding: 0 25px 10px !important;
  border-bottom: 1px solid #6338ff !important;
  color: #6338ff !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 800 !important;
  text-align: left !important;
  vertical-align: bottom !important;
  white-space: nowrap !important;
}

body.page-product .codex-discount-table th .codex-discount-heading {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  font-size: 15px !important;
  line-height: 18px !important;
  white-space: nowrap !important;
  text-align: center !important;
}

body.page-product .codex-discount-table th .codex-discount-unit {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1px 0 0 !important;
  color: #101a44 !important;
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
  text-align: inherit !important;
}

body.page-product .codex-discount-table th .codex-discount-unit--placeholder {
  visibility: hidden !important;
}

body.page-product .codex-discount-table th:last-child,
body.page-product .codex-discount-table td:last-child {
  text-align: left !important;
}

body.page-product .codex-discount-table th:first-child,
body.page-product .codex-discount-table td:first-child {
  width: 43% !important;
}

body.page-product .codex-discount-table th:last-child,
body.page-product .codex-discount-table td:last-child {
  width: 57% !important;
}

body.page-product .codex-discount-table th:last-child .codex-discount-heading {
  text-align: left !important;
}

body.page-product .codex-discount-table th:last-child .codex-discount-unit:not(.codex-discount-unit--placeholder) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

body.page-product .codex-discount-table td {
  height: 34px !important;
  padding: 0 25px !important;
  color: #6a6a6a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: left !important;
}

body.page-product .codex-discount-table tbody tr:nth-child(odd) td {
  background: #f0f4fb !important;
}

body.page-product .codex-discount-table tbody tr:nth-child(odd) td:first-child {
  border-radius: 8px 0 0 8px !important;
}

body.page-product .codex-discount-table tbody tr:nth-child(odd) td:last-child {
  border-radius: 0 8px 8px 0 !important;
}

body.page-product .aw-product-related {
  padding: 70px 0 95px !important;
}

body.page-product .aw-product-related .aw-products-dynamic .elementor-heading-title {
  margin: 0 0 58px !important;
  color: #be801c !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
  letter-spacing: .36em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

/* Related products use the same miniature composition as the homepage
 * carousel: title, reference, HT price and optional minimum quantity. */
body.page-product .aw-product-related .aw-products-dynamic .elementor-carousel-wrapper {
  box-sizing: border-box !important;
  width: calc(100% - 108px) !important;
  margin-left: 54px !important;
  margin-right: 54px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature__top,
body.page-product .aw-product-related .aw-products-dynamic .thumbnail-container {
  height: 220px !important;
  min-height: 220px !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature__image {
  width: 220px !important;
  height: 220px !important;
  max-width: 220px !important;
  max-height: 220px !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-flags,
body.page-product .aw-product-related .aw-products-dynamic .product-list-review,
body.page-product .aw-product-related .aw-products-dynamic .product-miniature__quickview-button,
body.page-product .aw-product-related .aw-products-dynamic .product-miniature__quickview-touch {
  display: none !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature__bottom {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 16px 8px 0 !important;
  gap: 2px !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature__infos {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  gap: 0 !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature__title {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  color: #101a44 !important;
  line-height: 17.5px !important;
  text-align: center !important;
}

body.page-product .aw-product-related .aw-products-dynamic .codex-product-reference {
  width: 100% !important;
  margin-top: 7px !important;
  color: #9b9b9b !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  text-align: center !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature__prices {
  display: block !important;
  width: 100% !important;
  margin-top: 2px !important;
  line-height: 19px !important;
  text-align: center !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature__price {
  color: #6436ff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 19px !important;
  text-align: center !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature__price sup {
  position: relative !important;
  top: -0.35em !important;
  margin-left: 2px !important;
  color: #6436ff !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.page-product .aw-product-related .aw-products-dynamic .codex-product-minimum {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #c88617 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 18px !important;
  text-align: center !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 35px !important;
  margin: 0 !important;
}

body.page-product .aw-product-related .aw-products-dynamic .codex-product-details {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 35px !important;
  padding: 7px 16px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #6436ff !important;
  box-shadow: 0 2px 5px rgba(100, 54, 255, .22) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .16s ease !important;
}

body.page-product .aw-product-related .aw-products-dynamic .product-miniature:hover .codex-product-details,
body.page-product .aw-product-related .aw-products-dynamic .product-miniature:focus-within .codex-product-details {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.page-product .aw-product-related .aw-products-dynamic .elementor-swiper-button-prev {
  left: 0 !important;
}

body.page-product .aw-product-related .aw-products-dynamic .elementor-swiper-button-next {
  right: 0 !important;
}

/* The Figma related-products strip spans the desktop canvas. The narrower
 * Elementor container pulls the five cards inward and makes the carousel
 * look underscaled, especially beside the full-width homepage carousel. */
@media (min-width: 992px) {
  body.page-product .aw-product-related > .elementor-container {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.page-product .aw-product-related > .elementor-container > .elementor-row,
  body.page-product .aw-product-related > .elementor-container > .elementor-row > .elementor-column,
  body.page-product .aw-product-related .aw-products-dynamic {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

/* On the 1536px desktop profile the shared canvas is a 1920px artboard
 * zoomed to 80%. Keep this strip on that artboard too; using 100vw here
 * would make it stop at the 1536px CSS viewport before the global scale. */
@media (min-width: 1450px) and (max-width: 1919px) {
  /* Match the listing breadcrumb on the 1920px artboard. The product
   * template is nested in the native 1320px content column, so re-anchor
   * only this breadcrumb to the artboard instead of changing the fiche. */
  body.page-product .aw-product-breadcrumb {
    position: relative !important;
    left: calc(50vw - 948px) !important;
    width: 1800px !important;
    min-width: 1800px !important;
    max-width: 1800px !important;
  }

  body.page-product .aw-product-breadcrumb .ce-breadcrumb {
    width: 1800px !important;
    min-width: 1800px !important;
    max-width: 1800px !important;
  }

  body.page-product .aw-product-related {
    box-sizing: border-box !important;
    position: relative !important;
    left: -312px !important;
    width: 1920px !important;
    min-width: 1920px !important;
    max-width: 1920px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.page-product .aw-product-related > .elementor-container {
    width: 1920px !important;
    min-width: 1920px !important;
    max-width: 1920px !important;
  }
}

@media (max-width: 767px) {
  body.page-product .aw-product-related .aw-products-dynamic .elementor-carousel-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.page-product .aw-product-related .aw-products-dynamic .product-miniature__top,
  body.page-product .aw-product-related .aw-products-dynamic .thumbnail-container {
    height: 185px !important;
    min-height: 185px !important;
  }

  body.page-product .aw-product-related .aw-products-dynamic .product-miniature__image {
    width: 185px !important;
    height: 185px !important;
    max-width: 185px !important;
    max-height: 185px !important;
  }
}

@media (max-width: 1199px) {
  body.page-product .aw-product-main > .elementor-container,
  body.page-product .aw-product-related > .elementor-container {
    width: calc(100% - 64px) !important;
  }

  body.page-product .aw-product-main > .elementor-container > .elementor-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 34px !important;
    row-gap: 0 !important;
  }

  body.page-product .aw-product-side {
    grid-column: 2 !important;
    margin-top: 72px !important;
  }
}

@media (max-width: 767px) {
  body.page-product .aw-product-main {
    padding: 14px 0 54px !important;
  }

  body.page-product .aw-product-main > .elementor-container,
  body.page-product .aw-product-related > .elementor-container {
    width: calc(100% - 32px) !important;
  }

  body.page-product .aw-product-main > .elementor-container > .elementor-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body.page-product .aw-product-breadcrumb {
    margin-bottom: 14px !important;
    font-size: 11px !important;
  }

  body.page-product .aw-product-image .elementor-widget-container,
  body.page-product .aw-product-image img {
    height: 320px !important;
    min-height: 320px !important;
  }

  body.page-product .aw-product-gallery,
  body.page-product .aw-product-info,
  body.page-product .aw-product-side {
    grid-column: auto !important;
  }

  body.page-product .aw-product-info {
    margin-top: 34px !important;
  }

  body.page-product .aw-product-side {
    margin-top: 42px !important;
  }

  body.page-product .aw-product-name .ce-product-name,
  body.page-product .aw-product-name .elementor-heading-title {
    font-size: 27px !important;
  }

  body.page-product .aw-product-related {
    padding: 54px 0 70px !important;
  }
}

/* Mobile product flow: bring the commercial information before the technical
 * attachment, while retaining the existing desktop composition unchanged. */
@media (max-width: 767px) {
  body.page-product .aw-product-gallery,
  body.page-product .aw-product-gallery > .elementor-column-wrap,
  body.page-product .aw-product-gallery > .elementor-column-wrap > .elementor-widget-wrap {
    display: contents !important;
  }

  body.page-product .aw-product-breadcrumb { order: 1 !important; }
  body.page-product .aw-product-image { order: 2 !important; }
  body.page-product .codex-product-gallery-thumbnails { order: 3 !important; }
  body.page-product .aw-product-info {
    order: 4 !important;
    margin-top: 24px !important;
  }
  body.page-product .aw-product-attachments {
    order: 5 !important;
    margin-top: 24px !important;
  }
  body.page-product .aw-product-side {
    order: 6 !important;
    margin-top: 34px !important;
  }

  body.page-product .aw-product-image .elementor-widget-container,
  body.page-product .aw-product-image img {
    height: 260px !important;
    min-height: 260px !important;
  }

  body.page-product .codex-product-gallery-thumbnails {
    margin-top: 16px !important;
    gap: 10px !important;
  }

  body.page-product .codex-product-gallery-thumbnail {
    width: 76px !important;
    height: 64px !important;
  }
}
