* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* nav */

#product {
  color: #ffc642;
  text-decoration: underline;
}

/* mobile */

#productDropdown {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

#productDropdown a {
  text-decoration: none;
}

/* nav end */

/* ---------------------  body --------------------- */

/* hero */
@media (max-width: 580px) {
  #hero {
    margin: 80px 0 20px 0;
  }
}
@media (min-width: 580px) and (max-width: 770px) {
  #hero {
    margin: 80px 0 20px 0;
  }
}

.hero {
  margin: 80px 0 20px 0;
}

.hero img {
  width: 100%;
}

/* Back Button Styles */
.back-btn-container {
  width: 85vw;
  margin: 20px auto 10px auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 60px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: #001f3f;
  border: 1.5px solid #001f3f;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.back-btn:hover {
  background-color: #001f3f;
  color: #ffffff;
  transform: translateX(-5px);
}

.back-btn svg {
  transition: transform 0.3s ease;
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

.item-code-heading {
  font-size: 24px;
  font-weight: 700;
  color: #001f3f;
  margin: 0;
  letter-spacing: -0.5px;
  border-left: 5px solid #0da574;
  padding-left: 15px;
  text-transform: uppercase;
}

@media (max-width: 580px) {
  .item-code-heading {
    font-size: 24px;
  }
  .back-btn-container {
     width: 95vw;
     margin: 15px auto;
  }
}

/* hero end */

/* product */

@media (max-width: 580px) {
  #producter {
    flex-direction: column !important;
    width: 90vw !important;
    gap: 30px !important;
    margin: 80px auto 40px auto !important;
  }

  .image-gallery {
    flex-direction: column !important;
    width: 100% !important;
    gap: 15px !important;
    padding: 10px !important;
  }

  .main-image-container {
    width: 100% !important;
    max-width: 320px !important;
    height: 280px !important;
    margin: 0 auto !important;
  }

  .thumbnail-container {
    flex-direction: row !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .thumbnail {
    width: 50px !important;
    height: 50px !important;
  }

  .Product_btns {
    width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .Product_btns .productBrochure,
  .Product_btns .requestQuote {
    justify-content: center !important;
    width: 100% !important;
    max-width: 260px !important;
  }

  .product-details {
    width: 100% !important;
  }

  .product-details h2 {
    font-size: 20px !important;
    margin-top: 16px !important;
  }

  .product-details p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .detailFeatures h2 {
    font-size: 18px !important;
  }

  .detailFeatures p {
    font-size: 14px !important;
  }

  /* Responsive Specs Table Wrapper */
  .tableBox {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 20px !important;
    border: 1px solid #e6e6e6;
  }

  #productTable {
    width: 90vw !important;
    margin: 40px auto !important;
  }

  #productTable .product-table {
    width: 100% !important;
    margin: 0 !important;
  }

  .product-table h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
  }

  .product-applications,
  .end {
    width: 90vw !important;
    margin: 30px auto !important;
  }

  .product-applications h2,
  .end h2 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
  }

  .product-applications li,
  .end p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

@media (min-width: 580px) and (max-width: 880px) {
  #producter {
    flex-direction: column !important;
    width: 90vw !important;
    gap: 40px !important;
    margin: 80px auto 40px auto !important;
  }

  .image-gallery {
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important;
    padding: 15px !important;
  }

  .main-image-container {
    width: 100% !important;
    max-width: 400px !important;
    height: 350px !important;
    margin: 0 auto !important;
  }

  .thumbnail-container {
    flex-direction: row !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .thumbnail {
    width: 60px !important;
    height: 60px !important;
  }

  .Product_btns {
    width: 100% !important;
    justify-content: center !important;
    gap: 20px !important;
  }

  .product-details {
    width: 100% !important;
  }

  .tableBox {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 20px !important;
    border: 1px solid #e6e6e6;
  }

  #productTable {
    width: 90vw !important;
    margin: 60px auto !important;
  }

  #productTable .product-table {
    width: 100% !important;
    margin: 0 !important;
  }

  .product-applications,
  .end {
    width: 90vw !important;
    margin: 40px auto !important;
  }
}

.product {
  width: 85vw;
  /* border: solid 1px red; */
  margin: auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 50px;
  color: #000810 !important;
  text-decoration: none !important;
}

.image-gallery {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  align-items: flex-start;
  margin: 0 auto;
  /* gap: 10px; */
  border: solid 1px #c8c8c8;
  padding: 20px;
  width: 100%;
}

.main-image-container {
  width: 400px;
  height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 1px solid #e1e1e1;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image-container:hover {
  transform: scale(1.25);
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border-color: #0da574;
}

.main-image-container img {
  max-width: 100%;
  max-height: calc(100% - 60px);
  transition: transform 0.1s ease-out;
  pointer-events: none; /* Let events fall through to container */
  object-fit: contain;
}

.thumbnail-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #007bff;
}

.Product_btns {
  /* border: solid 2px yellow; */
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.Product_btns .productBrochure {
  display: flex;
  width: 200px;
  height: 48px;
  padding: 16px 20px;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 31, 63, 1);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  cursor: pointer;
}

.Product_btns .requestQuote {
  display: flex;
  width: 200px;
  height: 48px;
  padding: 16px 20px;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 198, 49, 1);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  cursor: pointer;
}

.productCode {
  display: inline-flex;
  padding: 6px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #0da574;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.product-details h2 {
  margin-top: 24px;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
}

.product-details {
  /* border: solid 1px red; */
  width: 90%;
  margin: auto;
}

.product-details p {
  color: #4d5765;
  text-align: justify;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.detailFeatures p {
  margin: 0;
  padding: 0;
}

/* product end */

/* table product */

@media (max-width: 580px) {
  #productTable {
    width: 98%;
  }

  #productTable .product-table {
    width: 100%;
  }
}

@media (min-width: 580px) and (max-width: 880px) {
  #productTable {
    width: 90%;
  }

  #productTable .product-table {
    width: 100%;
  }
}

.product-table {
  /* border: solid 1px red; */
  width: 80.5vw;
  margin: auto;
  margin-bottom: 30px;
  margin-top: 100px;
}

.product-table h2 {
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 50px;
}

table {
  border-collapse: collapse; /* Ensures no double lines */
  width: 100%;
  /* max-width: 500px; */
  background: white;
}

th,
td {
  border: 1px solid #e6e6e6 !important;
  padding: 10px;
  text-align: left;
  width: 65%;
}

th {
  border: 1px solid #e6e6e6 !important;
  font-weight: bold;
  width: 35%;
}

/* table end */

@media (max-width: 580px) {
  #end {
    width: 100%;
  }

  #end div {
    width: 95%;
  }
}

@media (min-width: 580px) and (max-width: 880px) {
  #end {
    width: 100%;
  }

  #end div {
    width: 90%;
  }
}

.end {
  width: 76.5vw;
  margin: auto;
  margin-bottom: 300px;
  margin-top: 100px;
}

.downloadBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0da574;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 500;
}

.downloadBtn:hover {
  background-color: #0a8a61;
}

.downloadBtn img {
  filter: brightness(0) invert(1);
}

/* Supplies & Components Mobile Overrides */
@media (max-width: 580px) {
  .component-card {
    padding: 16px !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .component-card h3 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .component-card h4 {
    font-size: 13px !important;
  }

  .component-card p {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
  }

  .component-card table th {
    font-size: 11px !important;
    padding: 6px 8px !important;
  }

  .component-card table td {
    font-size: 11.5px !important;
    padding: 6px 8px !important;
  }

  #modelTabsContainer {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 10px !important;
    width: 100% !important;
  }

  .category-tab {
    flex-shrink: 0 !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
}
