/* Generated product detail pages (save-end-product.php output) — CSP-safe */

.mw-gen-main {
  background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8)), url('/assets/images/Industrial Image.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
  padding: 100px 0 !important;
}

.mw-gen-layout {
  width: calc(100% - 192px);
  margin: 0 96px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.mw-gen-primary {
  flex: 0 0 68%;
  background: rgba(10, 15, 30, 0.35);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 48px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  margin-top: 0;
}

.mw-gen-title {
  color: rgb(244, 67, 67);
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.mw-gen-title-model {
  font-size: 1.8rem;
  color: #ffffff;
}

.mw-gen-back {
  text-align: center;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.mw-gen-back a {
  color: #f44367;
  text-decoration: underline;
}

.mw-gen-hero {
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.mw-gen-hero-p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.mw-gen-h3 {
  color: rgb(244, 67, 67);
  margin-top: 25px;
  margin-bottom: 15px;
}

.mw-gen-ul {
  color: #ffffff;
  list-style: disc;
  padding-left: 1.25rem;
}

.mw-gen-li {
  color: #ffffff;
  margin-bottom: 8px;
}

.mw-gen-custom-inner {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mw-gen-custom-inner p {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
}

.mw-gen-custom-inner p.mw-gen-custom-note {
  font-size: 14px;
  line-height: 1.5;
}

.mw-gen-strong-hi {
  color: rgb(255, 255, 0);
}

.mw-gen-cta-center {
  text-align: center;
  margin-top: 20px;
}

.mw-gen-cta {
  background: linear-gradient(135deg, #f43f43 0%, #d32f2f 100%);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(244, 63, 67, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mw-gen-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 63, 67, 0.4);
}

.mw-gen-catalog {
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 8px;
}

.mw-gen-catalog strong {
  color: rgb(244, 67, 67);
}

.mw-gen-catalog-note {
  color: #ffffff;
  margin-top: 16px;
}

.mw-gen-doc-wrap {
  color: #ffffff;
  margin-bottom: 16px;
}

.mw-gen-doc-link {
  color: #4caf50;
  text-decoration: underline;
  display: block;
  margin-top: 4px;
}

#loginNotice.mw-gen-login-overlay {
  display: none;
}

.mw-gen-login-overlay .modal-content,
.mw-gen-login-content {
  position: relative;
}

.mw-gen-catalog strong,
.mw-gen-catalog-note strong {
  color: rgb(244, 67, 67);
}

#closeLoginNotice.mw-gen-login-dismiss {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.mw-gen-login-overlay .login-button {
  color: white;
  background-color: red;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
}

.mw-gen-sidebar {
  flex: 0 0 28%;
  background: rgba(10, 15, 30, 0.35);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  margin-top: 0;
}

.mw-gen-sidebar-title {
  color: rgb(244, 67, 67);
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.8rem;
}

.mw-gen-image-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mw-gen-product-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mw-gen-product-card:hover {
  background: rgba(180, 50, 50, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 50, 50, 0.3);
  border: 1px solid rgba(180, 50, 50, 0.6);
}

.mw-gen-thumb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.mw-gen-product-thumb {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  cursor: pointer;
}

.mw-gen-product-caption {
  color: #ffffff;
  font-weight: bold;
  margin: 0;
  font-size: 1rem;
}

#imageModalBackdrop {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#imageModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.95);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(244, 67, 67, 0.5);
}

.mw-gen-image-modal-inner {
  position: relative;
  width: 100%;
}

#closeImageModal {
  position: absolute;
  top: -10px;
  right: -10px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  background: rgba(244, 67, 67, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: none;
}

.mw-gen-modal-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

#modalImage {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

#prevImage,
#nextImage {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(244, 67, 67, 0.9);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 1001;
}

#prevImage {
  left: -60px;
}

#nextImage {
  right: -60px;
}

#imageCounter {
  text-align: center;
  color: white;
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
}

@media (max-width: 1024px) {
  .mw-gen-layout {
    flex-direction: column;
    width: calc(100% - 48px);
    margin: 0 24px;
  }

  .mw-gen-primary,
  .mw-gen-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }

  .mw-gen-sidebar {
    position: static;
    max-height: none;
  }

  #prevImage {
    left: 8px;
  }

  #nextImage {
    right: 8px;
  }
}
