/**
 * Product Detail Page Styles
 * Madhav Plasto Mould - Individual product page layout
 */

/*--------------------------------------------------------------
# Keyframes
--------------------------------------------------------------*/
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/*--------------------------------------------------------------
# Product Hero Section
--------------------------------------------------------------*/
.product-hero {
  padding: 40px 0 60px;
}

.product-hero .product-hero-img {
  border-radius: 8px;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.1s both;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  aspect-ratio: 4/3;
}

.product-hero .product-hero-img:hover {
  transform: scale(1.02);
}

.product-hero .product-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-hero .product-hero-img:hover img {
  transform: scale(1.05);
}

.product-hero .product-hero-content h1,
.product-hero .features-item h1 {
  font-size: 26px;
  font-weight: 600;
  color: #001973;
  margin-bottom: 20px;
  line-height: 1.3;
}

.product-hero .product-hero-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-default);
}

.product-hero .features-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-hero .features-item ul li {
  padding-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-default);
}

.product-hero .features-item ul li:last-child {
  padding-bottom: 0;
}

.product-hero .features-item ul i {
  font-size: 20px;
  padding-right: 4px;
  color: var(--color-primary);
}

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

  .product-hero .product-hero-content h1,
  .product-hero .features-item h1 {
    font-size: 22px;
  }
}

/*--------------------------------------------------------------
# Technical Specifications Table
--------------------------------------------------------------*/
.product-specs {
  padding: 40px 0;
}

.product-specs .section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
}

.product-specs .table {
  border: 1px solid rgba(14, 29, 52, 0.1);
}

.product-specs .table thead th {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  padding: 14px 16px;
  border: none;
}

.product-specs .table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}

.product-specs .table tbody tr:nth-of-type(even) {
  background: rgba(72, 169, 166, 0.05);
}

.product-specs .table tbody tr:hover {
  background: rgba(72, 169, 166, 0.08);
}

/*--------------------------------------------------------------
# Key Features List
--------------------------------------------------------------*/
.product-features {
  padding: 40px 0;
}

.product-features .section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
}

.product-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-features ul li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
}

.product-features ul li i {
  font-size: 20px;
  margin-right: 12px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/*--------------------------------------------------------------
# Request a Quote Section (Above Footer)
--------------------------------------------------------------*/
.request-quote-section {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1a2d4a 100%);
  position: relative;
}

.request-quote-section .request-quote-content {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.request-quote-section .request-quote-form-wrap {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.request-quote-section .request-quote-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.request-quote-section .request-quote-content p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.request-quote-section .request-quote-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.request-quote-section .request-quote-content ul li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0;
  animation: fadeInLeft 0.5s ease forwards;
}

.request-quote-section .request-quote-content ul li:nth-child(1) { animation-delay: 0.3s; }
.request-quote-section .request-quote-content ul li:nth-child(2) { animation-delay: 0.4s; }
.request-quote-section .request-quote-content ul li:nth-child(3) { animation-delay: 0.5s; }

.request-quote-section .request-quote-content ul li i {
  font-size: 20px;
  margin-right: 12px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.request-quote-section .request-quote-content ul li:hover i {
  transform: scale(1.1);
}

.request-quote-section .request-quote-form-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.request-quote-section:hover .request-quote-form-wrap {
  transform: translateY(-4px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.2);
}

.request-quote-section .request-quote-form-wrap:focus-within {
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(72, 169, 166, 0.3);
}

.request-quote-section .request-quote-form-wrap .product-inquiry-form {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.request-quote-section .product-inquiry-form h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.request-quote-section .product-inquiry-form .form-control {
  border: 1px solid rgba(14, 29, 52, 0.15);
  padding: 14px 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
  outline: none;
}

.request-quote-section .product-inquiry-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(72, 169, 166, 0.25);
}

.request-quote-section .product-inquiry-form button[type="submit"] {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  width: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.request-quote-section .product-inquiry-form button[type="submit"]:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 169, 166, 0.4);
}

.request-quote-section .product-inquiry-form button[type="submit"]:active {
  transform: scale(0.98);
}

/* Loading, success and error messages - shown directly in form */
.request-quote-section .product-inquiry-form .loading,
.request-quote-section .product-inquiry-form .error-message,
.request-quote-section .product-inquiry-form .sent-message {
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 16px;
}

.request-quote-section .product-inquiry-form .loading.d-block,
.request-quote-section .product-inquiry-form .error-message.d-block,
.request-quote-section .product-inquiry-form .sent-message.d-block {
  display: block !important;
}

.request-quote-section .product-inquiry-form .loading {
  background: rgba(72, 169, 166, 0.1);
  color: var(--color-secondary);
}

.request-quote-section .product-inquiry-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin: 0 10px -5px 0;
  border: 3px solid var(--color-primary);
  border-top-color: transparent;
  animation: animate-loading 1s linear infinite;
}

.request-quote-section .product-inquiry-form .sent-message {
  background: #059652;
  color: #fff;
}

.request-quote-section .product-inquiry-form .error-message {
  background: #df1529;
  color: #fff;
}

@keyframes animate-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 991px) {
  .request-quote-section {
    padding: 50px 0;
  }
  .request-quote-section .request-quote-content {
    margin-bottom: 30px;
    text-align: center;
  }
  .request-quote-section .request-quote-content ul li {
    justify-content: center;
  }
  .request-quote-section .request-quote-form-wrap {
    padding: 30px 24px;
  }
}

/*--------------------------------------------------------------
# Related Products Slider - Full Redesign
--------------------------------------------------------------*/
.product-related.related-section-redesign {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, rgba(14, 29, 52, 0.02) 0%, #fff 100%);
  width: 100%;
  overflow: hidden;
}

.product-related .related-section-header {
  padding-bottom: 48px;
}

.product-related .related-header-inner {
  text-align: center;
  animation: fadeInDown 0.6s ease-out forwards;
}

.product-related .related-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.product-related .related-header-inner h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 16px 0;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
}

.product-related .related-header-inner h2:after {
  display: none;
}

.product-related .related-header-line {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto;
  border-radius: 2px;
}

.product-related .related-section-slider {
  width: 100%;
}

.product-related .swiper {
  padding: 20px 0 50px;
  overflow: visible;
}

.product-related .swiper-slide {
  height: auto;
}

.product-related .card {
  border: 1px solid rgba(14, 29, 52, 0.08);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.product-related .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.product-related .card .card-img {
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  aspect-ratio: 4/3;
}

.product-related .card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-related .card:hover .card-img img {
  transform: scale(1.05);
}

.product-related .card .card-body {
  padding: 24px;
}

.product-related .card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-related .card h3 a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-related .card h3 a:hover {
  color: var(--color-primary);
}

.product-related .card p {
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.6;
  color: rgba(14, 29, 52, 0.75);
}

.product-related .swiper-pagination {
  position: relative;
  margin-top: 24px;
}

.product-related .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.product-related .swiper-pagination-bullet-active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* Legacy section-header support (when not using redesign) */
.product-related .section-header {
  padding-bottom: 40px;
}
