/* Mouna Graphics - Products Page Styles */

html, body {
  overflow-x: hidden;
  width: 100%;
}

.page-heading {
  padding: 120px 0 60px 0;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  text-align: center;
}

.page-heading h6 {
  color: #ff695f;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.page-heading h2 {
  font-size: 48px;
  font-weight: 800;
  color: #2a2a2a;
}

.page-heading h2 em {
  font-style: normal;
  color: #ff695f;
}

.product-nav {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px;
  border-radius: 100px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: auto;
  max-width: 95%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-nav:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) translateY(-5px);
}

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

.product-nav {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 3px;
  flex-wrap: nowrap;
}

.product-nav ul li a {
  color: #2a2a2a;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 100px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  border: 1px solid transparent;
  white-space: nowrap;
}

.product-nav ul li a:hover {
  color: #ff695f;
  background: rgba(255, 105, 95, 0.05);
}

.product-nav ul li a.active {
  color: #fff;
  background: linear-gradient(145deg, #ff695f, #ff8b84);
  box-shadow: 0 8px 20px rgba(255, 105, 95, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.product-section .container {
  position: relative;
  z-index: 2;
}

/* Identical Blob Layering from Homepage */
.product-section .services-left-dec, 
.product-section .services-right-dec, 
.product-section .portfolio-left-dec, 
.product-section .pricing-right-dec, 
.product-section .pricing-left-dec, 
.product-section .contact-left-dec {
  position: absolute !important;
  z-index: 0 !important;
  max-width: 400px;
}

.product-intro-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  height: 550px;
  z-index: 2;
}

.product-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding-left: 30px;
}

.alt-layout .product-content {
  padding-left: 0;
  padding-right: 30px;
}

.product-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 25px;
}

.product-content h2 em {
  font-style: normal;
  color: #ff695f;
}

.product-content p {
  font-size: 16px;
  line-height: 28px;
  color: #4a4a4a;
  margin-bottom: 30px;
}

.product-content .main-blue-button,
.product-content .main-blue-button-hover {
  margin-bottom: 28px;
}

.heat-transfer-card {
  height: 350px;
}

.product-gallery {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  position: relative;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  height: 350px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.5) translate(0, 50px);
  filter: blur(10px);
}

.gallery-item.active {
  opacity: 1;
  transform: scale(1) translate(0, 0);
  filter: blur(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alt-layout .row {
  flex-direction: row-reverse;
}

@media (max-width: 991px) {
  .product-intro-img {
    height: 350px;
    margin-bottom: 30px;
  }

  .product-content {
    padding-left: 0;
  }

  .alt-layout .product-content {
    padding-right: 0;
  }

  .alt-layout .row {
    flex-direction: column-reverse;
  }

  .alt-layout .product-content {
    margin-bottom: 34px;
  }

  .product-content .main-blue-button,
  .product-content .main-blue-button-hover {
    margin-bottom: 36px;
  }

  .product-nav {
    bottom: 15px;
  }

  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-item {
    height: 250px;
  }

  .product-section {
    padding: 60px 0;
  }

  .page-heading h2 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .product-nav {
    bottom: 12px;
    padding: 5px;
    max-width: 98%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .product-nav ul {
    justify-content: flex-start;
    gap: 3px;
    flex-wrap: nowrap;
  }

  .product-nav ul li a {
    font-size: 11px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .product-intro-img {
    height: 280px;
  }

  .heat-transfer-row .col-6 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .heat-transfer-card {
    height: 280px;
    margin-bottom: 18px;
  }

  .product-content h2 {
    font-size: 26px;
  }

  .product-section {
    padding: 40px 0;
  }

  .page-heading {
    padding: 105px 0 40px 0;
  }

  .page-heading h2 {
    font-size: 26px;
  }
}

@media (max-width: 575px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .heat-transfer-card {
    height: 240px;
  }

  .product-nav ul li a {
    font-size: 10px;
    padding: 7px 10px;
    letter-spacing: 0.3px;
  }
}

/* Machinery Page Refinements */
.machine-spec-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.machine-spec-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.machine-spec-list li i {
  color: #ff695f;
  margin-top: 5px;
}

.fast-output-badge {
  display: inline-block;
  background: linear-gradient(145deg, #ff695f, #ff8b84);
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}
