/* ==========================================================================
   EL-MET Product Page Styles
   ========================================================================== */

/* HERO BANNER */
.prod-hero,
.prod-hero * {
  text-align: left !important;
}
.prod-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
}
.prod-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.prod-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.prod-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: left !important;
}
.prod-hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.prod-hero-sublabel {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}
.prod-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}
.prod-hero-highlight {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 600px;
}


/* SHARED SECTION LINE */


/* FEATURED MACHINE */
.prod-featured {
  padding: 120px 0;
  background: #fff;
}
.prod-featured-text {
  max-width: 700px;
  margin-bottom: 40px;
}
.prod-featured-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2D2727;
  margin-bottom: 16px;
}
.prod-featured-line {
  border: none;
  border-top: 2px solid #2164B9;
  width: 100%;
  margin: 0 0 20px;
}
.prod-featured-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}
.prod-featured-text strong {
  color: #2D2727;
  font-weight: 700;
}

/* MOSAIC LAYOUT */
.prod-featured-mosaic {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
}
.prod-mosaic-left {
  overflow: hidden;
  height: 476px;
}
.prod-mosaic-left img,
.prod-mosaic-left video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.prod-mosaic-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prod-mosaic-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.prod-mosaic-top img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.prod-mosaic-bottom {
  overflow: hidden;
}
.prod-mosaic-bottom img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* KEY FEATURES */


.prod-feat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prod-feat-card-body {
  padding: 28px;
}
.prod-feat-card-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2D2727;
  margin-bottom: 10px;
}
.prod-feat-card-body p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.prod-features a.prod-contact-btn,
.prod-features a.prod-contact-btn:visited,
.prod-features a.prod-contact-btn:link {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff !important;
  background: #2164B9;
  border: 1px solid #2164B9;
  text-decoration: none;
  transition: all 0.3s;
}
.prod-features a.prod-contact-btn:hover {
  background: #fff;
  color: #2164B9 !important;
}

/* CUSTOMISABLE CTA */
.prod-cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.prod-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.prod-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.prod-cta .container {
  position: relative;
  z-index: 1;
}
.prod-cta-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.prod-cta h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
}


/* MACHINE DETAILS */
.prod-details {
  padding: 120px 0;
  background: #fff;
}
.prod-details-header h3 {
  font-size: 32px;
  font-weight: 700;
  color: #2D2727;
  margin-bottom: 16px;
}
.prod-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.prod-details-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-details-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.prod-details-body p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}
.prod-details-note {
  margin-top: 30px;
  padding: 20px 24px;
  background: #f5f5f5;
  border-left: 3px solid #2D2727;
}
.prod-details-note strong {
  color: #2D2727;
}

/* PHOTO GALLERY */
.prod-gallery {
  padding: 120px 0;
  background: #f5f5f5;
}
.prod-gallery h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2D2727;
  margin-bottom: 16px;
}
.prod-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.prod-gallery-item {
  height: 260px;
  overflow: hidden;
  cursor: pointer;
}
.prod-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prod-gallery-item:hover img {
  transform: scale(1.06);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  
  .prod-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .prod-hero {
    height: 40vh;
    min-height: 280px;
    padding-bottom: 40px;
  }
  .prod-featured {
    padding: 50px 0;
  }
  .prod-featured-mosaic {
    grid-template-columns: 1fr;
  }
  .prod-mosaic-top img {
    height: 160px;
  }
  .prod-mosaic-bottom img {
    height: 200px;
  }
  
  
  .prod-cta {
    padding: 60px 0;
  }
  .prod-details {
    padding: 50px 0;
  }
  .prod-details-grid {
    grid-template-columns: 1fr;
  }
  .prod-details-img {
    min-height: 260px;
  }
  .prod-gallery {
    padding: 50px 0;
  }
  .prod-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .prod-gallery-item {
    height: 180px;
  }
}

/* SPECS TABLE */
.prod-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.prod-specs-table tr {
  border-bottom: 1px solid #eee;
}
.prod-specs-table td {
  padding: 14px 0;
  font-size: 16px;
  line-height: 1.6;
}
.prod-specs-table .spec-label {
  font-weight: 700;
  color: #2D2727;
  width: 45%;
  padding-right: 20px;
}
.prod-specs-table .spec-value {
  color: #555;
}


.prod-section-line {
  width: 100%;
  border: none;
  border-top: 2px solid #2164B9;
  margin: 0 0 20px;
}
/* ---- KEY FEATURES ---- */
.prod-features {
  padding: 70px 0;
  background: #f5f5f5;
}
.prod-features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.prod-features-left {
}
.prod-features-left h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}
.prod-features-left p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}
.prod-features-right {
  display: flex;
  flex-direction: column;
}
.prod-feat-item {
  padding: 32px 0;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.prod-feat-item-icon {
  width: 36px;
  height: 36px;
  color: #2164B9;
  flex-shrink: 0;
  margin-top: 2px;
}
.prod-feat-item-icon svg {
  width: 100%;
  height: 100%;
}
.prod-feat-item-text {
  flex: 1;
}
.prod-feat-item:last-child {
  border-bottom: 1px solid #ddd;
}
.prod-feat-item-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.prod-feat-item-text h4::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #2164B9;
  margin-top: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.prod-feat-item:hover .prod-feat-item-text h4::after {
  transform: scaleX(1);
}
.prod-feat-item-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .prod-features { padding: 60px 0; }
  .prod-features-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .prod-features-left {
    position: static;
  }
}

/* ---- INQUIRY BUTTON ---- */
.prod-inquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 32px;
  background: #2164B9;
  color: #fff;
  border: 2px solid #2164B9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  border-radius: 0;
}
.prod-inquiry-btn:hover {
  background: transparent;
  color: #2164B9;
}
.prod-features-left .prod-inquiry-btn {
  background: #2164B9;
  border-color: #2164B9;
  color: #fff;
}
.prod-features-left .prod-inquiry-btn:hover {
  background: transparent;
  color: #2164B9;
}
.prod-inquiry-btn svg {
  transition: transform 0.3s;
}
.prod-inquiry-btn:hover svg {
  transform: translateX(4px);
}

/* ---- INQUIRY MODAL ---- */
.inquiry-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.inquiry-modal.active {
  display: flex;
}
.inquiry-modal-content {
  background: #fff;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 32px 12px;
  position: relative;
  border-radius: 8px;
  animation: modalSlideUp 0.3s ease;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.inquiry-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  transition: color 0.2s;
}
.inquiry-modal-close:hover {
  color: #111;
}

.inquiry-modal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.inquiry-modal-product {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2164B9;
  margin-bottom: 16px;
}
.inquiry-modal-content .wpcf7 {
  margin: 0;
}
.inquiry-modal-content .contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.inquiry-modal-content .contact-form-field {
  margin-bottom: 10px;
}
.inquiry-modal-content .contact-form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 6px;
}
.inquiry-modal-content .contact-form-field input,
.inquiry-modal-content .contact-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  border-radius: 4px;
}
.inquiry-modal-content .contact-form-field input:focus,
.inquiry-modal-content .contact-form-field textarea:focus {
  border-color: #2164B9;
  outline: none;
}
.inquiry-modal-content .contact-form-field textarea {
  min-height: 60px;
  resize: vertical;
}
.inquiry-modal-content .contact-submit-btn {
  background: #2164B9;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  border-radius: 4px;
}
.inquiry-modal-content .contact-submit-btn {
  margin: 0 !important;
}
.inquiry-modal-content .wpcf7-form > p:last-of-type,
.inquiry-modal-content .wpcf7-form > div:last-of-type {
  margin-bottom: 0 !important;
}
.inquiry-modal-content .contact-submit-btn:hover {
  background: #1a4f8f;
}
.inquiry-modal-content .contact-form-full {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .inquiry-modal-content {
    padding: 32px 24px;
  }
  .inquiry-modal-content .contact-form-row {
    grid-template-columns: 1fr;
  }
}

/* ---- LIGHTBOX ---- */
.prod-gallery-item {
  cursor: pointer;
}
.prod-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}
.prod-lightbox.active {
  display: flex;
}
.prod-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  animation: lbFadeIn 0.3s ease;
  cursor: default;
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.prod-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
  z-index: 1;
}
.prod-lightbox-close:hover {
  opacity: 0.6;
}

.prod-hero .container {
  margin-left: max(24px, (100% - 1200px) / 2);
  margin-right: auto;
}
