/* Content protection – deterrent layer (forms remain usable) */

html,
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

input,
textarea,
select,
option,
[contenteditable="true"],
.p-contact-form,
.p-contact-form * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

img,
.p-site-logo,
.p-footer-logo img {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  pointer-events: none;
}

a img,
button img {
  pointer-events: none;
}

@media print {
  html,
  body {
    display: none !important;
  }
}

#devtools-lock {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.97);
  color: #fff;
  text-align: center;
}

#devtools-lock.is-active {
  display: flex;
}

#devtools-lock .p-devtools-lock__box {
  max-width: 420px;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

#devtools-lock .p-devtools-lock__title {
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
}

#devtools-lock .p-devtools-lock__text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.p-copy-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  z-index: 2147483645;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #004c99, #0066cc);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 76, 153, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.p-copy-notice.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

body.p-protection-blur #wrap {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

/* Light watermark on product / content images (logo & icons excluded) */
.p-product-page .post-content p:has(> img:not(.p-site-logo)),
.p-product-page .blog-img,
.p-product-page .bxslider-slide,
.p-product-page .product-card figure,
.p-product-page .p-product-gallery__item,
.p-home-products .p-product-card__media {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.p-product-page .post-content p:has(> img:not(.p-site-logo))::after,
.p-product-page .blog-img::after,
.p-product-page .bxslider-slide::after,
.p-product-page .product-card figure::after,
.p-product-page .p-product-gallery__item::after,
.p-home-products .p-product-card__media::after {
  content: "© IND Process Control";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(11px, 2.5vw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 48px,
    rgba(0, 76, 153, 0.06) 48px,
    rgba(0, 76, 153, 0.06) 96px
  );
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.p-product-page .post-content img:not(.p-site-logo),
.p-product-page .blog-img img,
.p-product-page .bxslider-slide img {
  display: block;
  max-width: 100%;
  height: auto;
}
