/* Tedy Furniture: one approved logo/name watermark at the top center of company product photos.
   Original product files and private/customer-uploaded photos are not changed. */
.tedy-product-photo,
.product-image-frame,
.compare-table .compare-photo,
.design-mini > .design-photo,
.media-preview > .gallery-product-photo,
.modal-hero > .product-modal-photo,
.owner-product-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Exactly one transparent logo-and-name asset per supported company-photo frame. */
.tedy-product-photo::before,
.product-image-frame::before,
.compare-table .compare-photo::before,
.design-mini > .design-photo::before,
.media-preview > .gallery-product-photo::before,
.modal-hero > .product-modal-photo::before,
.owner-product-photo::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 1.2%;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 3 / 2;
  background-image: url("tedy-approved-gold-logo-watermark-3d.webp?v=20261118-watermark5");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .96;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.48));
  pointer-events: none;
}

/* Main product detail and customer-photo gallery. */
.tedy-product-photo::before {
  width: clamp(42px, 18%, 360px);
}
.media-preview > .gallery-product-photo::before {
  width: clamp(38px, 16%, 168px);
}
.modal-hero > .product-modal-photo::before {
  width: clamp(40px, 17%, 190px);
}

/* Catalog and comparison previews scale the same single mark to their frame. */
.product-image-frame {
  width: 100%;
  aspect-ratio: 1.13;
  background: #15352e;
}
.product-image-frame::before {
  width: clamp(28px, 17%, 84px);
}
.product-image-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}
.compare-table .compare-photo {
  display: inline-block;
  width: 110px;
  height: 80px;
  vertical-align: middle;
}
.compare-table .compare-photo::before {
  width: 26px;
}
.compare-table .compare-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.design-mini > .design-photo {
  display: block;
  width: 100%;
  height: 78px;
}
.design-mini > .design-photo::before {
  width: clamp(24px, 20%, 46px);
}
.design-mini > .design-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Customer portal gallery and product modal. */
.media-preview > .gallery-product-photo {
  width: 100%;
  aspect-ratio: 1;
}
.media-preview > .gallery-product-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
}
.modal-hero > .product-modal-photo { display: block; }
.modal-hero > .product-modal-photo > img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.card-media.tedy-product-photo .floating { z-index: 5; }

/* Small owner thumbnails remain branded without hiding the furniture. */
.owner-product-photo {
  display: inline-block;
  flex: 0 0 76px;
  width: 76px;
  height: 60px;
  vertical-align: middle;
  border-radius: 9px;
}
.owner-product-photo::before {
  width: 18px;
  top: 1px;
}
.owner-product-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Remove the previous corner badge so the logo/name appears only once. */
.tedy-product-photo::after,
.product-image-frame::after,
.compare-table .compare-photo::after,
.design-mini .design-photo::after,
.owner-product-photo::after {
  content: none !important;
  display: none !important;
}

/* Supplied catalogue images already contain the approved company mark; do not overlay a second one. */
.tedy-product-photo.embedded-mark-source::before,
.compare-table .compare-photo.embedded-mark-source::before,
.product-image-frame.embedded-mark-source::before,
.design-mini > .design-photo.embedded-mark-source::before,
.media-preview > .gallery-product-photo.embedded-mark-source::before,
.modal-hero > .product-modal-photo.embedded-mark-source::before,
.owner-product-photo.embedded-mark-source::before {
  content: none !important;
  display: none !important;
}

/* The exact requested footer remains below the existing home content. */
.tedy-dashboard-footer {
  margin: 18px auto 10px;
  padding: 10px 12px;
  max-width: 720px;
  text-align: center;
  color: #e8c574;
  font: 600 clamp(12px, 2.5vw, 16px)/1.6 system-ui, sans-serif;
  letter-spacing: .01em;
  border-top: 1px solid rgba(232,197,116,.22);
  text-shadow: 0 1px 8px rgba(196,151,61,.18);
}

@media (max-width: 480px) {
  .tedy-product-photo::before {
    width: clamp(38px, 16%, 92px);
    top: 1%;
  }
  .product-image-frame::before {
    width: clamp(26px, 17%, 62px);
    top: 1%;
  }
  .media-preview > .gallery-product-photo::before {
    width: clamp(34px, 14%, 86px);
    top: 1%;
  }
  .modal-hero > .product-modal-photo::before {
    width: clamp(36px, 14%, 94px);
    top: 1%;
  }
}

/* Best-effort friction for company-owned photos; this cannot block screenshots. */
.tedy-product-photo img,
.product-image-frame img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.tedy-share-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#shareProductBtn { gap: 8px; }
