@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Open Sans", sans-serif;
}
body {
  line-height: 1.5;
}
.card-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px; /* Added padding for better spacing */
  /* -webkit-box-shadow: -12px 12px 22px 1px rgba(48, 48, 48, 1); */
  /* -moz-box-shadow: -12px 12px 22px 1px rgba(48, 48, 48, 1); */
  /* box-shadow: -12px 12px 22px 1px rgba(48, 48, 48, 1); */
}
img {
  width: 100%;
  display: block;
}
.img-display {
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.img-showcase {
  display: flex;
  width: 100%;
  transition: all 0.5s ease;
  padding: 0;
  margin: 0;
}
.img-showcase img {
  min-width: 100%;
}
.img-select {
  display: flex;
}
.img-item {
  margin: 0.3rem;
}
.img-item:hover {
  opacity: 0.8;
}
.product-content {
  padding: 2rem 1rem;
  overflow: auto; /* Ensure content is scrollable if necessary */
}
.product-title {
  font-size: 3rem;
  text-transform: capitalize;
  font-weight: 700;
  position: relative;
  color: #12263a;
  margin: 1rem 0;
}
.product-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 80px;
  background: #12263a;
}
.product-price {
  margin: 1rem 0;
  font-size: 1rem;
  font-weight: 700;
}
.product-price span {
  font-weight: 400;
}
.new-price span {
  color: #256eff;
}
.product-detail h2 {
  text-transform: capitalize;
  color: #12263a;
  padding-bottom: 0.6rem;
}
.product-detail p {
  font-size: 0.9rem;
  padding: 0.3rem;
  opacity: 0.8;
}
.product-detail ul {
  margin: 1rem 0;
  font-size: 0.9rem;
}
.product-detail ul li {
  margin: 0;
  list-style: none;
  background: url(./assets/images/checkedgreen.png) left center no-repeat;
  background-size: 18px;
  padding-left: 1.7rem;
  margin: 0.4rem 0;
  font-weight: 600;
  opacity: 0.9;
}
.product-detail ul li span {
  font-weight: 400;
}

.product-detail-title {
  font-weight: 600;
}

.product-detail-span {
  font-weight: 400;
}

.table-gap {
  margin-top: 30px;
}
.custom-table-container {
  max-height: 150px; /* Set your desired height */
  overflow-y: auto;
}
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
}
.custom-table th,
.custom-table td {
  border: 1px solid #ddd;
  padding: 2px;
  text-align: left;
  font-size: 0.9rem;
}
.custom-table th {
  background-color: #f2f2f2;
}

.download-button-wrapper {
  display: flex;
  justify-content: center; /* Horizontally centers the button */
  margin-top: 20px; /* Optional: Adds space above the button */
}

.download-button {
  margin: 10px;
  padding: 8px 15px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  border-radius: 10px;
  display: block;
  border: 0px;
  font-weight: 600;
  box-shadow: 0px 0px 14px -7px #f09819;
  background-image: linear-gradient(
    45deg,
    #ff512f 0%,
    #f09819 51%,
    #ff512f 100%
  );
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.download-button:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}

.download-button:active {
  transform: scale(0.95);
}

.floating-go-back-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #256eff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.floating-go-back-btn:hover {
  background-color: #1d4fe6;
}
@media screen and (min-width: 992px) {
  .card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.5rem;
  }
  .card-wrapper {
    height: auto; /* Changed from 100vh to auto */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to flex-start */
  }
  .product-imgs {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .product-content {
    padding-top: 0;
  }
}
