/* Functional Objects — product detail viewer */

body.lightbox-open {
  overflow: hidden;
}

.object-card[role="button"]:focus-visible {
  outline: 2px solid #d4a656;
  outline-offset: 5px;
}

.object-search-tags,
.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.object-search-tags {
  margin-top: 28px;
}

.object-search-tags span,
.lightbox-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(212, 166, 86, 0.2);
  border-radius: 999px;
  color: rgba(212, 166, 86, 0.82);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-lightbox {
  padding: 32px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.product-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-lightbox .lightbox-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  align-items: stretch;
  width: min(1240px, 94vw);
  height: min(760px, 88vh);
  max-width: none;
  max-height: none;
  overflow: hidden;
  border: 1px solid rgba(212, 166, 86, 0.24);
  border-radius: 28px;
  background: #090909;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.75);
}

.lightbox-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #030303;
}

.product-lightbox .lightbox-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-lightbox .lightbox-close {
  top: 20px;
  right: 20px;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 166, 86, 0.28);
  background: rgba(5, 5, 5, 0.9);
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.product-lightbox .lightbox-arrow {
  top: 50%;
  width: 42px;
  height: 94px;
  background: rgba(5, 5, 5, 0.76);
  color: #fff;
  font-size: 38px;
}

.product-lightbox .lightbox-prev { left: 18px; }
.product-lightbox .lightbox-next { right: 18px; }

.lightbox-count {
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(212, 166, 86, 0.28);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.lightbox-details {
  min-width: 0;
  overflow-y: auto;
  padding: 62px 54px 46px;
  background:
    radial-gradient(circle at 100% 0, rgba(212, 166, 86, 0.07), transparent 42%),
    #090909;
}

.lightbox-kicker {
  display: block;
  margin-bottom: 16px;
  color: #d4a656;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.lightbox-details h2 {
  max-width: 520px;
  margin: 0 0 36px;
  color: #fff;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.product-specs {
  margin: 0 0 30px;
}

.product-specs div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(212, 166, 86, 0.13);
}

.product-specs div:last-child {
  border-bottom: 1px solid rgba(212, 166, 86, 0.13);
}

.product-specs dt {
  padding-top: 2px;
  color: #d4a656;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-specs dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

.lightbox-description {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.lightbox-tags {
  margin: 0 0 20px;
}

.lightbox-note {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.6;
}

.product-enquiry {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #d4a656;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-enquiry span {
  transition: transform 0.25s ease;
}

.product-enquiry:hover span {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .product-lightbox {
    padding: 14px;
  }

  .product-lightbox.active {
    align-items: center;
    padding-top: 14px;
    overflow: auto;
  }

  .product-lightbox .lightbox-frame {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 44vh) auto;
    width: min(620px, 94vw);
    height: min(900px, 94vh);
    max-width: none;
    max-height: none;
    overflow-y: auto;
    border-radius: 20px;
  }

  .lightbox-visual {
    min-height: 260px;
  }

  .product-lightbox .lightbox-visual img {
    object-fit: cover;
  }

  .lightbox-details {
    overflow: visible;
    padding: 34px 26px 38px;
  }

  .lightbox-details h2 {
    margin-bottom: 24px;
    font-size: clamp(34px, 10vw, 48px);
  }

  .product-specs {
    margin-bottom: 24px;
  }

  .product-specs div {
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .lightbox-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .product-lightbox .lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
  }

  .product-lightbox .lightbox-arrow {
    height: 72px;
  }
}

@media (max-width: 480px) {
  .product-lightbox .lightbox-frame {
    grid-template-rows: 245px auto;
    width: 95vw;
    height: 95vh;
  }

  .lightbox-details {
    padding: 28px 22px 34px;
  }

  .lightbox-details h2 {
    font-size: 34px;
  }

  .product-specs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
