/* ===== Product Details Page ===== */
.wm-product-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #f9fafb;
}

.wm-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border-radius: 8px;
  color: #1a3a5f;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.wm-back-btn:hover {
  background: #f0f4f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wm-product-details-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* Gallery Section */
.wm-product-gallery {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.wm-main-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 1/1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.wm-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.wm-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.wm-thumbnail {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.wm-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wm-thumbnail:hover img {
  transform: scale(1.05);
}

.wm-thumbnail.active {
  border-color: #2ec4b6;
  box-shadow: 0 0 0 2px rgba(46, 196, 182, 0.2);
}

/* Details Section */
.wm-product-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.wm-product-header {
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f4f8;
}

.wm-product-category {
  display: inline-block;
  font-size: 0.85rem;
  padding: 6px 15px;
  background: linear-gradient(
    135deg,
    rgba(46, 196, 182, 0.1) 0%,
    rgba(26, 58, 95, 0.1) 100%
  );
  color: #2ec4b6;
  border-radius: 50px;
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wm-product-header h1 {
  font-size: 2.2rem;
  color: #1a3a5f;
  margin: 0 0 15px 0;
  line-height: 1.3;
  font-weight: 700;
}

.wm-product-origin {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
}

.wm-product-origin i {
  color: #2ec4b6;
  font-size: 1.1rem;
}

.wm-product-description {
  color: #475569;
  line-height: 1.8;
  font-size: 1.1rem;
}

.wm-product-highlights {
  background: rgba(46, 196, 182, 0.03);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(46, 196, 182, 0.1);
}

.wm-product-highlights h4 {
  color: #1a3a5f;
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.wm-product-highlights h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2ec4b6, #1a3a5f);
  border-radius: 3px;
}

.wm-product-highlights ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.wm-product-highlights li {
  margin-bottom: 12px;
  color: #475569;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
  padding-left: 32px;
}

.wm-product-highlights li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: #2ec4b6;
  font-size: 1.2rem;
}

.wm-product-specs {
  margin-top: 15px;
}

.wm-product-specs h4 {
  color: #1a3a5f;
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.wm-product-specs h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2ec4b6, #1a3a5f);
  border-radius: 3px;
}

.wm-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wm-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 10px;
  background: rgba(241, 245, 249, 0.5);
  border-radius: 8px;
}

.wm-spec-item i {
  color: #2ec4b6;
  margin-top: 4px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.wm-product-logistics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.wm-logistics-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.wm-logistics-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.wm-logistics-item i {
  font-size: 1.6rem;
  color: #2ec4b6;
  width: 50px;
  height: 50px;
  background: rgba(46, 196, 182, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wm-logistics-item div {
  display: flex;
  flex-direction: column;
}

.wm-logistics-item span {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.wm-logistics-item strong {
  font-size: 1.1rem;
  color: #1a3a5f;
  margin-top: 5px;
  font-weight: 600;
}

.wm-product-certifications {
  margin-top: 20px;
}

.wm-product-certifications h5 {
  color: #475569;
  font-size: 1.1rem;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.wm-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wm-cert-badge {
  background: rgba(46, 196, 182, 0.1);
  color: #2ec4b6;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid rgba(46, 196, 182, 0.2);
}

/* Action Buttons */
.wm-product-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #f0f4f8;
}

.wm-pdf-download,
.wm-contact-sales,
.wm-request-quote {
  flex: 1;
  padding: 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
}

.wm-pdf-download {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.wm-pdf-download:hover {
  background: #f8fafc;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.wm-contact-sales {
  background: rgba(26, 58, 95, 0.05);
  color: #1a3a5f;
  border: 1px solid rgba(26, 58, 95, 0.1);
}

.wm-contact-sales:hover {
  background: rgba(26, 58, 95, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.wm-request-quote {
  background: linear-gradient(135deg, #2ec4b6, #1a3a5f);
  color: white;
  border: none;
}

.wm-request-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 196, 182, 0.3);
}

/* ===== Navigation Bar ===== */
.wm-navbar {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wm-nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wm-logo img {
  height: 42px;
  width: auto;
  transition: transform 0.3s ease;
}

.wm-logo:hover img {
  transform: rotate(-5deg);
}

.wm-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a3a5f;
  background: linear-gradient(135deg, #1a3a5f, #2ec4b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wm-quote-btn {
  background: linear-gradient(135deg, #2ec4b6, #1a3a5f);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(46, 196, 182, 0.2);
  display: inline-block; /* Ensures proper width handling */
  text-align: center; /* Centers text for all widths */
  white-space: nowrap; /* Prevents text wrapping */
}

.wm-quote-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 196, 182, 0.3);
}

/* ===== Footer ===== */
.wm-footer {
  background: #1a3a5f;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.wm-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 50px;
}

.wm-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.wm-footer-logo img {
  height: 42px;
  width: auto;
}

.wm-footer-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.wm-footer-about {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 25px;
}

.wm-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.wm-footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  color: #fff;
}

.wm-footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #2ec4b6;
  border-radius: 3px;
}

.wm-footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wm-footer-column li {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.wm-footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.wm-footer-column a:hover {
  color: #fff;
  transform: translateX(5px);
}

.wm-footer-column i {
  margin-right: 10px;
  color: #2ec4b6;
  width: 20px;
  text-align: center;
}

.wm-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.wm-social-links {
  display: flex;
  gap: 20px;
}

.wm-social-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.wm-social-links a:hover {
  color: #2ec4b6;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .wm-product-details-content {
    padding: 30px;
  }

  .wm-footer-content {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .wm-product-details-content {
    grid-template-columns: 1fr;
  }

  .wm-product-logistics {
    grid-template-columns: 1fr 1fr;
  }

  .wm-product-actions {
    flex-direction: column;
  }

  .wm-footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wm-product-details-container {
    padding: 20px 15px 40px;
  }

  .wm-product-details-content {
    padding: 25px;
    gap: 30px;
  }

  .wm-product-header h1 {
    font-size: 1.8rem;
  }

  .wm-specs-grid {
    grid-template-columns: 1fr;
  }

  .wm-product-logistics {
    grid-template-columns: 1fr;
  }

  .wm-footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .wm-footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .wm-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }

  .wm-product-header h1 {
    font-size: 1.6rem;
  }

  .wm-product-description,
  .wm-product-highlights li,
  .wm-spec-item {
    font-size: 1rem;
  }

  .wm-nav-content {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .wm-logo span {
    font-size: 1.1rem;
  }

  .wm-quote-btn {
    width: auto; /* Allows button to shrink to content */
    min-width: 160px; /* Ensures minimum tap target size */
    padding: 12px 20px; /* Slightly reduced padding */
    font-size: 0.95rem; /* Slightly smaller font */
  }
}

/* For very small devices */
@media (max-width: 400px) {
  .wm-quote-btn {
    width: 100%; /* Full width on tiny screens */
    display: block; /* Makes it a block element */
  }
}
