/* --- Banner & layout --- */
.product-banner {
  width: 100%;
  height: 375px;
  background-repeat: no-repeat;
  background-size: cover;
}

#product-info {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

#product-info .row {
  margin-top: 40px;
  font-family: Jost;
}

#product-info #content {
  padding-bottom: 0;
}

#product-info h1 {
  color: #000;
  font-size: 44px;
  font-style: normal;
  font-weight: 700;
  line-height: 60px;
  text-transform: uppercase;
}

#product-info .row p {
  color: #666;
  font-feature-settings: 'liga' off, 'clig' off;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.24px;
  text-transform: capitalize;
  margin-bottom: 0;
}

#product-info .list-unstyled {
  margin-bottom: 0;
}

#product-info .image img {
  max-width: 100%;
  height: auto;
}

#productMainImageLink {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  line-height: 0;
}

#product-info .image #productMainImage {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.1s ease;
}

#product-info .image #productMainImage.is-fading {
  opacity: 0;
}

.product-image-thumbs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.product-image-thumbs {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.product-image-thumbs .product-image-thumb {
  flex: 0 0 auto;
  line-height: 0;
}

.product-image-thumbs .product-image-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.product-image-thumbs .product-image-thumb.is-active img,
.product-image-thumbs .product-image-thumb:hover img {
  border-color: #e04638;
}

.product-image-nav-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #e04638;
  background: transparent;
  color: #e04638;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-image-nav-btn:hover {
  background-color: #e04638;
  color: #fff;
}

.product-image-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.product-image-nav-btn:disabled:hover {
  background: transparent;
  color: #e04638;
}

/* --- Product description --- */
.product-des-container {
  background-color: #ededed;
  padding: 0 30px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

.product-des-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.product-des-item:last-child {
  border-bottom: none;
}

.product-des-label {
  color: #888888;
  font-size: 14px;
  font-weight: 400;
}

.product-des-value {
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* --- Quote buttons --- */
.product-quote-btn-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

.product-quote-btn-primary,
.product-quote-btn-secondary {
  flex: 1;
  max-width: 200px;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

.product-quote-btn-primary:hover,
.product-quote-btn-secondary:hover {
  opacity: 0.9;
}

.product-quote-btn-primary {
  background-color: #df4a3a;
  color: #fff;
}

.product-quote-btn-secondary {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}

/* --- Quote modal --- */
.product-quote-mask {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.product-quote-mask.is-visible {
  display: flex;
}

.product-quote-modal-box {
  background-color: #ededed;
  width: 90%;
  max-width: 650px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px 30px;
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  margin: auto;
}

.is-submitting > :not(.product-quote-submit-overlay) {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.product-quote-submit-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  border-radius: inherit;
  background: rgba(237, 237, 237, 0.45);
  backdrop-filter: blur(2px);
}

.is-submitting .product-quote-submit-overlay {
  display: flex;
}

.product-quote-submit-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: #000;
  border-radius: 50%;
  animation: product-quote-submit-spin 0.75s linear infinite;
}

.product-quote-submit-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.3px;
}

@keyframes product-quote-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.product-quote-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.product-quote-close:hover {
  opacity: 0.8;
}

.product-quote-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #000;
  letter-spacing: 1px;
}

.product-quote-desc {
  text-align: center;
  font-size: 14px;
  color: #333;
  margin: 0 0 30px 0;
}

.product-quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-quote-row {
  display: flex;
  flex-wrap: wrap;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
}

.product-quote-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-field-error {
  display: block;
  height: 20px;
  max-height: 20px;
  min-height: 20px;
  font-size: 12px;
  line-height: 20px;
  margin: 0 0 6px 0;
  color: #e2513e;
  visibility: hidden;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.has-error .contact-field-error {
  visibility: visible;
}

.has-error .product-quote-input,
.has-error .product-quote-textarea,
.has-error .home-form-input,
.has-error .home-form-textarea {
  border-color: #e2513e;
}

.product-quote-input,
.product-quote-select,
.product-quote-textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

.product-quote-select-wrapper {
  position: relative;
}

.product-quote-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
}

.product-quote-select-wrapper::after {
  content: '∨';
  font-size: 12px;
  color: #888;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.product-quote-model-select::after {
  display: none;
}

.product-quote-combobox {
  position: relative;
  min-width: 0;
}

.product-quote-combobox-input {
  width: 100%;
  padding-right: 30px;
}

.product-quote-combobox-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
  font-size: 12px;
}

.product-quote-combobox-list {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-quote-combobox-list.is-open {
  display: block;
}

.product-quote-combobox-option {
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.product-quote-combobox-option:hover,
.product-quote-combobox-option.is-highlighted {
  background-color: #f5f5f5;
}

.product-quote-combobox-option.is-hidden {
  display: none;
}

.product-quote-combobox-option.is-selected {
  font-weight: 700;
}

.product-quote-textarea {
  height: 120px;
  resize: none;
}

.product-quote-submit-btn {
  width: 100%;
  padding: 15px 0;
  background-color: transparent;
  border: 1px solid #df4a3a;
  color: #df4a3a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.product-quote-submit-btn:hover {
  background-color: #df4a3a;
  color: #fff;
}

/* --- Attribute section --- */
.product-attribute-section {
  background-color: #f4f4f4;
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #000;
  box-sizing: border-box;
  scroll-margin-top: 20px;
}

.product-attribute-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.product-attribute-main-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 15px 0;
}

.product-attribute-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.product-attribute-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 50px;
  align-items: flex-start;
  box-sizing: border-box;
}

.product-attribute-left {
  flex: 1.2;
  background-color: transparent;
  padding: 20px;
  box-shadow: none;
}

.product-attribute-image-wrapper {
  width: 100%;
}

.product-attribute-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.product-attribute-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-attribute-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.product-attribute-actions.is-hidden {
  display: none;
}

.product-attribute-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  background-color: #df4a3a;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  transition: background-color 0.2s;
}

.product-attribute-download-btn:hover {
  background-color: #c53e30;
}

.product-attribute-accordion {
  border-top: 1px solid #ccc;
}

.product-attribute-item {
  border-bottom: 1px solid #ccc;
}

.product-attribute-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: background-color 0.2s;
}

.product-attribute-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.product-attribute-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 5px;
  flex-shrink: 0;
}

.product-attribute-item.is-active .product-attribute-arrow {
  transform: rotate(-135deg);
}

.product-attribute-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.product-attribute-item.is-active .product-attribute-content {
  max-height: 500px;
}

.product-attribute-panel {
  padding: 5px 5px 20px 5px;
}

.product-attribute-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid #e5e5e5;
}

.product-attribute-row:last-child {
  border-bottom: none;
}

.product-attribute-label {
  color: #888;
  flex-shrink: 0;
}

.product-attribute-value {
  color: #000;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

/* --- Stacker gallery --- */
.product-stacker-section {
  background-color: #000;
  color: #fff;
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

/* --- Related products --- */
.product-related-section {
  padding: 60px 20px 40px;
  box-sizing: border-box;
  overflow-x: clip;
}

.product-related-inner {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.product-related-title {
  margin: 0 0 30px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.product-related-section #product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  --bs-gutter-x: 0;
}

.product-related-section #product-list > .col {
  width: 310px;
  flex: 0 0 310px;
  max-width: 310px;
  padding: 0;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .product-related-section #product-list {
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .product-related-section {
    padding-bottom: 460px;
  }

  .product-stacker-section:not(:has(+ .product-related-section)) {
    padding-bottom: 460px;
  }
}

.product-stacker-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.product-stacker-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

.product-stacker-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #fff;
}

.product-stacker-gallery {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-stacker-row-bottom {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.product-stacker-col-left {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.product-stacker-col-right {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  min-width: 0;
}

.product-stacker-img {
  width: 100%;
  display: block;
  background-color: #222;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.product-stacker-row-top .product-stacker-img-main {
  aspect-ratio: 1200 / 600;
}

.product-stacker-col-left .product-stacker-img {
  aspect-ratio: 400 / 300;
}

.product-stacker-col-right .product-stacker-img-tall {
  flex: 1;
  min-height: 0;
}

/* --- Mobile: max-width 1024px --- */
@media (max-width: 1024px) {
  .product-banner {
    height: 220px;
  }

  #product-info {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  #product-info .row {
    margin-top: 24px;
  }

  #product-info .row.mb-3 > .col-sm {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  #product-info h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .product-des-container {
    max-width: 100%;
    padding: 0 16px;
  }

  .product-quote-btn-container {
    flex-direction: column;
    max-width: 100%;
    padding: 20px 0;
    gap: 12px;
  }

  .product-quote-btn-primary,
  .product-quote-btn-secondary {
    max-width: 100%;
    width: 100%;
  }

  .product-quote-modal-box {
    width: calc(100% - 32px);
    max-width: 100%;
    padding: 32px 20px;
  }

  .product-quote-title {
    font-size: 28px;
  }

  .product-quote-row {
    flex-direction: column;
  }

  .product-quote-select-wrapper,
  .product-quote-combobox {
    width: 100%;
  }

  .product-attribute-section {
    padding: 40px 16px;
  }

  .product-attribute-header {
    margin-bottom: 30px;
  }

  .product-attribute-main-title {
    font-size: 24px;
  }

  .product-attribute-container {
    flex-direction: column;
    gap: 30px;
    max-width: 100%;
  }

  .product-attribute-left,
  .product-attribute-right {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .product-attribute-actions {
    justify-content: flex-start;
  }

  .product-attribute-download-btn {
    width: 100%;
    justify-content: center;
  }

  .product-attribute-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .product-attribute-value {
    text-align: left;
  }

  .product-stacker-section {
    padding: 40px 16px;
  }

  .product-stacker-section:not(:has(+ .product-related-section)) {
    padding-bottom: 40px;
  }

  .product-related-section {
    padding: 40px 16px;
  }

  .product-related-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .product-stacker-header {
    margin-bottom: 30px;
  }

  .product-stacker-title {
    font-size: 24px;
  }

  .product-stacker-desc {
    font-size: 13px;
  }

  .product-stacker-row-bottom {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .product-stacker-col-left,
  .product-stacker-col-right {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .product-stacker-col-right .product-stacker-img-tall {
    aspect-ratio: 800 / 620;
  }
}
