/*
 * Texas Quality Furniture - Product information page
 * Scoped to #productInfo so other storefront pages are unaffected.
 */

#productInfo {
  max-width: 1500px;
  margin: 0 auto;
  color: #172b3a;
}

#productInfo-productName {
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(1.9rem, 2.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #102a43;
}

#productInfo-productPrevNextTop {
  margin: 0.75rem 0 1.25rem;
  text-align: center;
  /* Hide Zen Cart's raw text separators without hiding button labels. */
  font-size: 0;
}

#productInfo-productPrevNextTop * {
  font-size: 1rem;
}

/* The Bootstrap navigation template places dash separators inside this list. */
#productInfo-productPrevNextTop .navNextPrevList {
  font-size: 0;
  color: #fff !important;
}

#productInfo-productPrevNextTop .navNextPrevList a,
#productInfo-productPrevNextTop .navNextPrevList button,
#productInfo-productPrevNextTop .navNextPrevList .btn {
  font-size: 1rem;
}

#productQuestions a {
  display: inline-block;
  width: auto;
  border-radius: 5px;
  background: #102a43;
  border-color: #102a43;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#productQuestions a:hover,
#productQuestions a:focus {
  background: #1d4f73;
  border-color: #1d4f73;
  color: #fff;
}

#productQuestions {
  display: block;
  margin: 0 0 0.75rem;
}

#productInfo-displayRow {
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

#productInfo-displayColLeft,
#productInfo-displayColRight {
  padding-left: 1rem;
  padding-right: 1rem;
}

#productInfo-productMainImage {
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

#productInfo-productMainImage img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

#productInfo-productMainImage a {
  display: inline-block;
  margin-top: 0.65rem;
  color: #163f63;
}

#productInfo-productAdditionalImages > .p-3:only-child {
  display: none;
}

#productInfo-displayColRight .card {
  overflow: hidden;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(16, 42, 67, 0.06);
}

#productInfo-displayColRight .card-header {
  padding: 0.85rem 1rem;
  background: #f3f6f8;
  border-bottom: 1px solid #dbe3ea;
  color: #102a43;
  font-weight: 700;
}

#productsPriceTop-card-body,
#productsPriceBottom-card-body {
  background: #fff;
  text-align: center;
}

#productInfo-productDetails,
#productInfo-displayColRight .productDetails,
#productInfo-displayColRight #productDetailsList,
#productInfo-displayColRight .productDetailsList,
#productInfo-displayColRight > .list-group:first-child,
#productInfo-displayColRight > div:first-child {
  text-align: center;
}

#productsPriceTop-productPriceTopPrice,
#productsPriceBottom-productPriceBottomPrice {
  margin: 0;
  color: #102a43;
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  font-weight: 700;
}

#productAttributes {
  margin-bottom: 1rem;
}

#productAttributes .card-header {
  font-size: 1.15rem;
}

#productAttributes select,
#productAttributes input[type="text"] {
  min-height: 44px;
}

#addToCart-card {
  border-color: #102a43 !important;
}

#addToCart-card-header {
  background: #102a43 !important;
  border-bottom-color: #102a43 !important;
  color: #fff !important;
}

#cartAdd {
  padding: 1rem;
}

#cartAdd .form-control {
  min-height: 44px;
}

#cartAdd input[type="image"],
#cartAdd .btn,
#cartAdd button {
  min-height: 44px;
}

#productInfo-productDescription {
  margin: 1.5rem 1rem 2rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: #fff;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(16, 42, 67, 0.05);
  font-size: 1.05rem;
  line-height: 1.7;
}

#productInfo-productDescription p:last-child,
#productInfo-productDescription ul:last-child,
#productInfo-productDescription ol:last-child {
  margin-bottom: 0;
}

#productInfo-productDescription h2,
#productInfo-productDescription h3,
#productInfo-productDescription h4,
#productInfo-productDescription strong {
  color: #102a43;
}

#productInfo-productDescription li {
  margin-bottom: 0.3rem;
}

#productInfo-productDateAdded,
#productInfo-productDateAvailable {
  margin: 1.5rem 0;
  color: #52697a;
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  #productInfo-productName {
    margin-top: 1rem;
    font-size: 1.85rem;
  }

  #productInfo-displayColLeft,
  #productInfo-displayColRight {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  #productInfo-displayRow {
    margin-bottom: 0.5rem;
  }

  #productInfo-displayColLeft {
    margin-bottom: 0 !important;
  }

  #productInfo-productMainImage {
    padding: 0.65rem;
  }

  #productInfo-displayColRight {
    margin-top: 0.75rem;
  }

  #productInfo-displayColRight .card {
    margin-bottom: 0.75rem !important;
  }

  #productQuestions {
    margin-bottom: 0.75rem;
  }

  #productQuestions a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
  }

  #productInfo-productDescription {
    margin: 0.75rem 0.75rem 1.5rem;
    padding: 1.1rem;
    font-size: 1rem;
  }

}
