@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

#pdfViewer {
  max-width: 100%;
  height: 100%;
  object-fit: contain;  /* Ensure that the content is scaled properly */
  background: #fff; /* Ensure the background isn't making the text invisible */
}


#pdfModal {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 0;
}

#pdfContainer {
  background: #fff;
  display: flex;
  flex-direction: row;
  width: 90%;
  height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  padding: 10px;
}

#pdfPanZoom {
  flex: 3;
  background: #f0f0f0; /* Light gray background */
  overflow: auto; /* Allow scrolling if needed */
  cursor: grab;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pdfPanZoom:active {
  cursor: grabbing;
}

#pdfViewer {
  max-width: 100%;
  height: 100%;
  object-fit: contain; /* Scale the PDF to fit inside the container */
}

.controls-panel {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: #fff;
  border-left: 2px solid #ddd; /* Subtle separator between the PDF and controls */
}

/* Zoom + Pagination Controls */
.zoom-controls,
.pdf-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zoom-controls button,
.pdf-controls button {
  padding: 10px;
  font-size: 16px;
  background: #ffd400; /* Bright yellow background */
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.zoom-controls button:hover,
.pdf-controls button:hover {
  background: #e0c400; /* Slightly darker yellow on hover */
}

.zoom-controls span,
.pdf-controls span {
  text-align: center;
  font-weight: bold;
  color: #333; /* Dark text for clarity */
}

/* Close Button */
#closeModalBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.fa-window-close {
  font-size: 28px;
  color: #ff0000; /* Red close button */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #pdfContainer {
    flex-direction: column;
    width: 95%;
    height: 95vh;
  }

  #pdfPanZoom {
    flex: 1;
    height: 70%;  /* Adjusted height ratio to avoid cutting off content */
    overflow: auto;  /* Allow scrolling if content overflows */
  }

  .controls-panel {
    flex: none;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
    gap: 10px;
  }

  .zoom-controls,
  .pdf-controls {
    flex-direction: row;  /* Adjust controls layout for mobile */
  }
}


* {
  font-family: "Montserrat", serif;
}

.faq-item h3 {
  text-align: left;
}

/* Product titlebar */
.products-titlebar li:last-child {
  font-weight: 700;
}
h1 {
  font-size: 1.5rem;
}
.products-titlebar {
  margin-top: 120px;
  background-color: #ffd400;
  padding: 20px;
}

.products-titlebar ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.products-titlebar img {
  height: 15px;
}

.products-titlebar li {
  list-style: none;
}

.products-titlebar a {
  text-decoration: none;
  color: #000;
  font-size: 1.125rem;
  text-wrap: nowrap;
}

/* product-banner */
:root {
  --primary-color: #ffd400;
  --text-color: #333;
  --background-color: #f9f9f9;
}

/* Product Section */
.product-list-content {
  max-width: 1200px;
  margin: auto;
  padding: 40px 0px;
}

/* Title at Top */
.product-title {
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  color: var(--text-color);
  padding: 15px;
  /* background: var(--primary-color); */
  /* border-radius: 10px 10px 0px 0px; */
  width: fit-content;
}
.product-title {
  border-left: 4px solid #ffd400;
  padding-left: 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #333; /* or a darker shade of your complementary color */
  margin-bottom: 20px;
  position: relative;
  animation: fadeInLeft 0.6s ease-in-out;
}

/* Optional subtle animation */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.product-image {
  animation: breatheZoom 6s ease-in-out infinite;
}

@keyframes breatheZoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* Product Banner */
.product-banner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Left Image */
.product-banner img {
  width: 50%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

/* Right Content */
.product-banner-content {
  width: 50%;
  text-align: left;
}

/* Product Description */
.product-description {
  display: flex;
  align-items: start;
  gap: 30px;
  background: #fff;
  padding: 20px;
  /* border-radius: 0px 0px 10px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

/* Left Text */
.product-description-content {
  width: 60%;
}

.product-description h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.product-description p {
  font-size: 1.125rem;
  color: var(--text-color);
  line-height: 1.6;
  text-align: justify;
  margin-top: 10px;
  font-weight: 500;
}

/* Right Image */
.product-description img {
  width: 30%; /* Ensure the image scales responsively */
  height: auto;
  object-fit: cover;
  max-width: 100%;
  margin-top: 15px;
}

/* FAQ Section */

.faq-header {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  background: #ffd400;
  padding: 20px;
}

.faq-header h1 {
  cursor: pointer;
  font-size: 1.5rem;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  position: relative;
}

/* Active FAQ Item */
.faq-header h1.active {
  background: #333; /* Dark background */
  color: white;
  transform: scale(1.1); /* Slightly enlarge active heading */
}

/* Hover effect */
.faq-header h1:hover {
  color: #fff;
  background: #555;
}

/* Animation for smooth switch */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.faq-header h1.active {
  animation: fadeInScale 0.3s ease-out;
}

.faq-section {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 0px 0px 10px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* .faq-header {
    display: flex;
    gap: 20px;
    cursor: pointer;
    background: #FFD400;
    padding: 10px;
    text-align: center;
} */

.faq-item li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-family: "Open Sans", sans-serif;
  color: #333;
  list-style: none;
}

.faq-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background-color: #ffd400;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 212, 0, 0.5);
}

.faq-content .faq-item {
  display: none;
  padding: 15px;
}

.faq-content .faq-item.active {
  display: block;
  text-align: justify;
}

a:focus,
button:focus {
  outline: none;
  border: none; /* In case the button has a border that shows on focus */
}

.download-btn {
  text-decoration: none; /* Ensure no underline on the link */
}

.download-btn button {
  margin-top: 10px;
  display: flex;
  align-items: center;
  background: #ffd400;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  width: 350px;
  margin-bottom: 10px;
  text-decoration: none;
}

.download-btn button img {
  width: 25px;
  margin-right: 10px;
}

.download-btn a {
  text-decoration: none;
}

.quote-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffd400;
  color: #000;
  font-size: 0.875rem;
  padding: 15px 25px;
  border-radius: 50px;
  border: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.quote-button:hover {
  background-color: #e6bf00;
}

/* Related Products */
.related-products h2 {
  font-size: 2rem;
  text-transform: uppercase;
  text-align: center;
  font-weight: 800;
  margin: 40px 0;
  color: #ffd400;
}

.related-products {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 100px;
  margin-bottom: 100px;
}

.related-products-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-product {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures spacing between image and title */
  align-items: center;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  height: 100%; /* Ensure all cards have the same height */
}

/* Ensures the image container takes up available space */
.image-container {
  flex-grow: 1;
  display: flex;
  align-items: center; /* Center the image */
  justify-content: center;
  width: 100%;
}

.related-product img {
  width: 250px;
  height: 250px; /* Fixed height for all images */
  object-fit: cover; /* Ensure consistent image scaling */
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  transition: transform 0.3s ease;
}

.related-product h1 {
  font-size: 1.25rem;
  color: #000;
  margin-top: 15px;
  font-weight: bold;
  transition: color 0.3s ease;
  font-weight: 700;
}

.related-product a {
  text-decoration: none;
}

/* Hover effects */
.related-product:hover {
  transform: translateY(-5px); /* Slightly lift the card */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.related-product:hover img {
  transform: scale(1.05); /* Slightly zoom the image */
}

/* Media queries for responsiveness */
@media (max-width: 1024px) {
  .product-description p {
    font-size: 0.8rem;
  }

  .header-row h1 {
    font-size: 1rem;
    text-wrap: nowrap;
  }

  .product-content p {
    font-size: 0.8rem;
  }

  .product-content li {
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .products-titlebar a {
    font-size: 0.75rem;
  }
  .product-description img {
    width: 50%;
  }

  .faq-section {
    width: 100%;
    overflow: hidden;
  }

  .faq-header {
    flex-direction: column;
    justify-content: start;
    gap: 20px;
  }

  .faq-header h1 {
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .product-list-content {
    padding: 20px;
  }

  .products-titlebar li {
    font-size: 0.875rem;
  }

  /* Make banner full-width */
  .product-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .product-banner img {
    width: 100%;
    max-height: 300px;
    border-radius: 10px 10px 0 0;
  }

  .product-banner-content {
    font-size: 0.875rem;
  }

  .product-banner-content {
    width: 100%;
    padding: 15px;
  }

  /* Stack description with better alignment */
  .product-description {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px;
  }

  .product-description-content {
    width: 100%;
  }

  .product-description img {
    margin-top: 15px;
  }

  .product-title {
    font-size: 1.75rem;
    padding: 10px;
  }

  .product-description h1 {
    font-size: 1.5rem;
  }

  .product-description p {
    font-size: 0.875rem;
  }
}

/* Consolidated Media Queries */
@media (max-width: 768px) {
  .download-btn button {
    max-width: 250px;
    font-size: 0.875rem;
  }

  .related-product h1 {
    font-size: 0.8rem;
  }

  .related-products-list {
    display: grid;
    gap: 10px; /* Space between cards */
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    width: 100%; /* Ensure full width of the parent */
  }

  .related-products-list img {
    max-width: 6rem;
  }

  .related-product {
    max-width: 150px;
  }

  .related-products {
    margin-top: 40px; /* Adjust this value as needed */
    margin-bottom: 40px; /* Adjust this value as needed */
  }

  .related-products h2 {
    font-size: 1.25rem;
  }

  .related-product img {
    max-width: 100%; /* Prevent stretching and maintain aspect ratio */
    height: 150px; /* Set the desired height */
    object-fit: cover; /* Ensure the image covers the area without stretching */
    overflow: visible;
  }

  .related-products h2 {
    text-align: center;
    margin-bottom: 50px;
  }

  .related-products {
    width: 100%;
    padding: 0;
    margin: 0;
    margin-bottom: 50px;
  }

  .related-product {
    height: 250px;
    width: 200px;
  }

  .related-products-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
  }

  .related-products img {
    width: 180px;
  }

  .product-image img {
    width: auto;
    height: 100%;
  }

  .quote-button {
    font-size: 14px; /* Smaller text */
    padding: 10px 12px; /* Smaller padding */
  }
}

@media (max-width: 480px) {
  .product-content p {
    font-size: 0.7rem;
    font-weight: 500;
  }

  .products-titlebar a {
    font-size: 0.65rem;
  }

  .quote-button {
    font-size: 12px; /* Even smaller text on very small screens */
    padding: 8px 10px; /* Even smaller padding */
  }
}
@media (min-width: 1200px) {
  .related-product img {
    overflow: visible;
    padding-bottom: 40px;
    height: 350px;
  }
  .related-product{
    padding: 80px;
  }
}
