body {
  background: #f4f6f9;
  margin: 0;
}

@media (max-width: 640px) {
  body {
    background: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

/* MAIN PRODUCT LAYOUT */
.product-container {
  max-width: 1200px;
  width: 90%;
  margin: 50px auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(230, 238, 250, 0.95), rgba(250, 246, 239, 0.96)) !important;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
}

@media (max-width: 640px) {
  .product-container {
    width: 100%;
    margin: 0;
    padding: 14px;
    border: none;
    border-radius: 0;
    background: #ffffff !important;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 18px 0;
  }

  .top-header .container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo img {
    height: 68px;
    max-width: 100%;
  }

  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .info-box {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  .info-box i {
    font-size: 22px;
  }

  .info-box span {
    font-size: 12px;
  }

  .info-box p {
    font-size: 13px;
  }

  .btn-inquiry {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
  }

  .topbar-wrapper {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    gap: 8px;
  }

  .topbar-left,
  .topbar-right {
    justify-content: center;
  }

  .company-strip,
  .company-text,
  .help-text,
  .language-box {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .product-topbar {
    padding: 12px 0 8px;
  }

  .product-topbar-flex {
    gap: 10px;
    
  }

  .back-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
  }

  .product-list-nav {
  
    width: 100%;
    gap: 8px;
    padding-bottom: 6px;
    margin-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    
    scroll-snap-type: x proximity;
  }

  .product-list-nav::-webkit-scrollbar {
    display: none;
  }

  .product-nav-link {
    min-width: 0;
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 12px;
    max-width: min(220px, 72vw);
    overflow: hidden;
    text-overflow: ellipsis;
    scroll-snap-align: start;
  }

  .product-container,
  .description-box,
  .extra-box,
  .image-section {
    min-width: 0;
    overflow-x: hidden;
  }
}

#title {
  text-align: center;
  margin-bottom: 34px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  #title {
    text-align: left;
    font-size: 22px;
    margin-bottom: 16px;
  }
}

.product-row1 {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: clamp(28px, 5vw, 56px);
}

@media (max-width: 640px) {
  .product-row1 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .product-row1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-nav-link {
    min-width: min(150px, 78vw);
  }
}

.image-section {
  width: 100%;
  margin: 0;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 14px 36px rgba(17, 24, 39, 0.08);
}

@media (max-width: 640px) {
  .image-section {
    margin: 0;
    padding: 8px;
    border: none;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
  }
}

.product-details {
  min-width: 0;
  padding-top: 4px;
}

@media (max-width: 640px) {
  .product-details {
    padding-top: 0;
  }
}

.product-details h2 {
  margin-bottom: 15px;
}

.product-row .product-img img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.product-row {
  flex-wrap: nowrap;
}

.product-row .product-img {
  flex: 0 0 min(420px, 100%);
  max-width: 420px;
  width: 100%;
}

.product-row .product-content {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 991px) {
  .product-row {
    flex-wrap: wrap;
  }

  .product-row .product-img,
  .product-row .product-content {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* IMAGES */
.small-images {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (max-width: 640px) {
  .small-images {
    gap: 8px;
    margin-bottom: 12px;
  }
}

.small-images img {
  width: 86px;
  min-width: 86px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  cursor: pointer;
  opacity: 0.68;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  transition: 0.25s ease !important;
}

@media (max-width: 640px) {
  .small-images img {
    width: 60px;
    min-width: 60px;
    height: 50px;
    border-radius: 8px;
  }
}

.small-images img.active {
  opacity: 1;
  border-color: #ff9800;
  box-shadow: 0 8px 18px rgba(255, 152, 0, 0.25);
}

.thumb {
  width: 80px;
  height: 70px;
  object-fit: contain;
  object-position: center;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  background: #fff;
}

.thumb:hover {
  opacity: 1;
}

.main-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: var(--selected-image-ratio, 4 / 3);
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
}

.main-image-box.portrait-image {
  width: min(100%, 460px);
  margin: 0 auto;
}

@media (max-width: 640px) {
  .main-image-box {
    aspect-ratio: var(--selected-image-ratio, 1 / 1);
    min-height: 0;
    max-height: 100%;
    border-radius: 12px;
    background: #f8f9fa;
  }

  .main-image-box.portrait-image {
    width: min(100%, 360px);
  }
}

#mainImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: none;
  padding: 8px;
}

@media (max-width: 640px) {
  #mainImage {
    object-fit: contain;
    transform: none;
    padding: 0;
  }
}

@media (max-width: 768px) {
  #mainImage {
    padding: 8px;
  }
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  transition: 0.25s ease !important;
  z-index: 2;
}

@media (max-width: 640px) {
  .arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

.arrow:hover {
  background: #ff9800;
}

.left {
  left: 15px;
}

.right {
  right: 15px;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
}

td {
  border: 1px solid #ccc;
  padding: 10px;
}

td:first-child {
  width: 40%;
  font-weight: bold;
}

.feature-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 18px;
  color: #111827;
}

@media (max-width: 640px) {
  .feature-title {
    font-size: 18px;
    margin: 8px 0 12px;
    text-align: left;
  }
}

.feature-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  table-layout: fixed;
}

.feature-table tr {
  border-bottom: 1px solid #eee;
}

.feature-table td:first-child {
  width: 36%;
  padding: 18px 16px;
  background: #b8ecf0;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.feature-table td:last-child {
  padding: 18px 18px;
  color: #111827;
  background: rgba(255,255,255,0.46);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

.feature-table tr:hover {
  background: #f5955179;
}

/* BUTTON */
.enquiry-btn {
  margin-top: 20px;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  background: #1e3a8a;
  color: white;
  cursor: pointer;
}

@media (max-width: 991px) {
  .product-container {
    width: 94%;
    margin: 30px auto;
    padding: 18px;
  }

  .product-row1 {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .image-section,
  .product-details {
    width: 100%;
    max-width: 100%;
  }

  .image-section {
    margin: 15px 0 0;
  }

  .main-image-box {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .product-container {
    width: 92%;
    margin: 32px auto;
  }

  #title {
    margin-bottom: 24px;
  }

  .main-image-box {
    aspect-ratio: var(--selected-image-ratio, 16 / 11);
    min-height: 0;
    max-height: none;
    background: #f8fafc;
  }

  #mainImage {
    object-fit: contain;
    transform: none;
    background: #f8fafc;
  }

  .feature-title {
    text-align: center;
  }

  .product-description-section,
  .product-extra {
    padding: 56px 0;
  }
}

@media (max-width: 576px) {
  .product-container {
    width: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 0;
    background: #ffffff !important;
    border: none;
    box-shadow: none;
  }

  #title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .product-row1 {
    gap: 12px;
  }

  .image-section {
    padding: 8px;
    border-radius: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .small-images {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .small-images img,
  .thumb {
    width: 54px;
    min-width: 54px;
    height: 44px;
    border-radius: 6px;
  }

  .main-image-box {
    aspect-ratio: var(--selected-image-ratio, 1 / 1);
    border-radius: 10px;
    min-height: 0;
    background: #f9f9f9;
  }

  .arrow {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .left {
    left: 8px;
  }

  .right {
    right: 8px;
  }

  .feature-title {
    font-size: 16px;
    margin: 6px 0 10px;
    text-align: left;
  }

  td,
  .feature-table td:first-child,
  .feature-table td:last-child {
    padding: 8px;
    font-size: 13px;
  }

  td:first-child,
  .feature-table td:first-child {
    width: 42%;
  }
}

@media (max-width: 480px) {
  .feature-table,
  .feature-table tbody,
  .feature-table tr,
  .feature-table td {
    display: block;
    width: 100%;
  }

  .feature-table tr {
    margin-bottom: 8px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }

  .feature-table td,
  .feature-table td:first-child,
  .feature-table td:last-child {
    width: 100%;
    border: none;
    padding: 8px 10px;
  }

  .feature-table td:first-child {
    background: #b8ecf0;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
  }

  .feature-table td:last-child {
    background: #ffffff;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 10px;
  }

  .feature-table tr:hover {
    background: #fff;
  }

  .applications-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .application-card {
    padding: 16px 12px;
  }

  .application-card i {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .application-card h4 {
    font-size: 14px;
  }

  .product-buttons {
    gap: 8px;
    flex-direction: column;
  }

  .whatsapp-product-btn,
  .catalogue-btn {
    min-width: 0;
    max-width: none;
    width: 100%;
    font-size: 14px;
    padding: 12px 16px;
  }
}

@media (max-width: 380px) {
  td,
  .feature-table td:first-child,
  .feature-table td:last-child {
    padding: 8px;
    font-size: 13px;
  }
}
/* ================= DESCRIPTION ================= */

.product-description-section,
.applications-section,
.product-video-section {
  padding: 76px 0;
  background: #fff;
}

@media (max-width: 640px) {
  .product-description-section,
  .applications-section,
  .product-video-section {
    padding: 20px 16px;
    background: #ffffff;
  }
}

.section-heading-box {
  max-width: 1000px;
  margin: 0 auto 28px;
  text-align: center;
}

.description-box {
  max-width: 1000px;
  margin: auto;
  background: linear-gradient(135deg, #ffffff, #f5f8fb);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.07);
}

@media (max-width: 640px) {
  .description-box {
    background: #ffffff;
    padding: 16px;
    border: none;
    border-radius: 10px;
    box-shadow: none;
    margin: 0;
  }
}

.description-box p {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  color: #444;
  text-align: center;
}

@media (max-width: 640px) {
  .description-box p {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    color: #555;
  }
}

.product-extra {
  padding: 76px 0 90px;
  background: #f4f6f9;
}

@media (max-width: 640px) {
  .product-extra {
    padding: 24px 0;
    background: #ffffff;
  }
}

.extra-box {
  margin-bottom: 46px;
}

@media (max-width: 640px) {
  .extra-box {
    margin-bottom: 20px;
  }
}

.extra-box h2 {
  margin-bottom: 24px;
  color: #111827;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 640px) {
  .extra-box h2 {
    font-size: 18px;
    margin-bottom: 14px;
    text-align: left;
  }
}

/* ================= APPLICATIONS ================= */

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 22px;
  margin-top: 0;
}

.application-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 18px;
  padding: 30px 22px;
  text-align: center;
  transition: 0.4s ease;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.application-card:hover {
  transform: translateY(-6px);
  background: #00229099;
  border-color: rgba(255, 152, 0, 0.45);
  color: #111827;
}

.application-card i {
  font-size: 42px;
  margin-bottom: 18px;
  color: #ff9800;
}

.application-card h4 {
  font-size: 21px;
  font-weight: 700;
  margin: 0;
}

/* ================= VIDEO ================= */

.video-box {
  max-width: 950px;
  margin: auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.1);
}

@media (max-width: 640px) {
  .video-box {
    border-radius: 10px;
    border: none;
    box-shadow: none;
    margin: 0;
  }
}

.video-box video,
#productVideo {
  width: 100%;
  display: block;
  max-height: 560px;
  border-radius: 22px;
  background: #111827;
  object-fit: cover;
}

/* ================= BUTTONS ================= */

.product-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 35px;
  justify-content: center;
}

@media (max-width: 640px) {
  .product-buttons {
    gap: 10px;
    margin-top: 16px;
    flex-direction: column;
  }
}

.whatsapp-product-btn,
.catalogue-btn {
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 420px;
  text-align: center;
  padding: 16px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: 0.4s ease;
}

@media (max-width: 640px) {
  .whatsapp-product-btn,
  .catalogue-btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }
}

.whatsapp-product-btn {
  background: #25D366;
  color: white;
}

.catalogue-btn {
  background: #111;
  color: white;
}

.whatsapp-product-btn:hover,
.catalogue-btn:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .description-box {
    padding: 28px;
  }

  .description-box p {
    font-size: 18px;
  }

  .application-card h4 {
    font-size: 20px;
  }

}
/* ================= PRODUCT TOPBAR ================= */

.product-topbar {
  padding: 30px 0 10px;
}

@media (max-width: 640px) {
  .product-topbar {
    padding: 12px 14px;
  }
}

.product-topbar-flex {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

@media (max-width: 640px) {
  .product-topbar-flex {
    gap: 10px;
  }
}

/* BACK BUTTON */

.back-btn {
  width: fit-content;
  border: none;
  background: #111;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

@media (max-width: 640px) {
  .back-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
  }
}

.back-btn:hover {
  background: orange;
  transform: translateX(-4px);
}

/* PRODUCT LIST */

.product-list-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 10px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .product-list-nav {
    gap: 8px;
    padding-bottom: 6px;
    margin-top: 0;
  }
}

.product-list-nav::-webkit-scrollbar {
  height: 8px;
}

.product-list-nav::-webkit-scrollbar-track {
  background: transparent;
}

.product-list-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

/* LINKS */

.product-nav-link {
  padding: 12px 22px;
  border-radius: 40px;
  background: white;
  border: 2px solid #111;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  flex: 0 0 auto;
  min-width: 170px;
  text-align: center;
  scroll-snap-align: start;
  white-space: normal;
}

@media (max-width: 640px) {
  .product-nav-link {
    padding: 8px 14px;
    font-size: 12px;
    min-width: 120px;
  }
}

.product-nav-link:hover {
  background: orange;
  border-color: orange;
  color: white;
}

/* ACTIVE PRODUCT */

.active-product {
  background: #002292;
  color: white;
}

/* MOBILE */

@media (max-width: 768px) {

  .product-list-nav {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .product-nav-link {
    min-width: 160px;
    padding: 10px 18px;
    font-size: 14px;
  }

}

.product-list-nav {
  scrollbar-width: thin;
}

@media (max-width: 768px) {
  .product-description-section,
  .product-extra {
    padding: 56px 0;
  }

  .description-box {
    padding: 28px;
  }

  .description-box p {
    font-size: 18px;
  }

  .application-card h4 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .applications-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .application-card {
    padding: 24px 18px;
  }

  .product-buttons {
    gap: 14px;
  }

  .whatsapp-product-btn,
  .catalogue-btn {
    min-width: 0;
    max-width: none;
    width: 100%;
    font-size: 16px;
  }
}

/* ================= CONSISTENCY PASS ================= */
.product-container,
.description-box,
.application-card,
.video-box {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

#title,
.feature-title,
.section-heading-box h2,
.extra-box h2,
.application-card h4 {
  color: #111827;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.description-box p {
  color: #5f6675;
  line-height: 1.65;
}

.back-btn,
.product-nav-link,
.whatsapp-product-btn,
.catalogue-btn,
.enquiry-btn {
  border-radius: 999px;
  font-weight: 700;
}

.product-nav-link {
  border-color: rgba(17, 24, 39, 0.18);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

@media (max-width: 768px) {
  #title {
    font-size: clamp(25px, 7vw, 34px);
  }

  .feature-title,
  .section-heading-box h2,
  .extra-box h2 {
    font-size: clamp(24px, 6.5vw, 32px);
  }
}
