/* CTPL product catalogue interaction — v22 */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 24px;
  cursor: pointer;
  outline: none;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(52, 227, 224, .46);
  background: linear-gradient(145deg, rgba(52, 227, 224, .085), rgba(255, 255, 255, .045));
  box-shadow: 0 20px 44px rgba(0, 0, 0, .22);
}

.product-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(52, 227, 224, .24),
    0 20px 44px rgba(0, 0, 0, .22);
}

.product-card h4 {
  font-size: 1.28rem;
  line-height: 1.34;
}

.product-card p {
  color: #bed0cc;
  font-size: 1rem;
  line-height: 1.68;
}

.product-code {
  font-size: .76rem;
}

.product-card .tag-row {
  margin-top: 20px;
}

.product-card .tag {
  padding: 7px 10px;
  font-size: .75rem;
}

.product-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 21px;
  color: var(--teal-bright);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .025em;
}

.product-card-action span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(52, 227, 224, .27);
  border-radius: 50%;
  transition: transform .22s ease, background .22s ease;
}

.product-card:hover .product-card-action span,
.product-card:focus-visible .product-card-action span {
  transform: translate(2px, -2px);
  background: rgba(52, 227, 224, .11);
}

.hero-copy,
.section-head > p,
.group-title p,
.cta-box p {
  font-size: 1.05rem;
}

.material-layer b {
  font-size: 1.02rem;
}

.material-layer span {
  font-size: .88rem;
  line-height: 1.45;
}

.filter-btn {
  font-size: .86rem;
}

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 13, 14, .82);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.product-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(860px, calc(100dvh - 56px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 2%, rgba(52, 227, 224, .12), transparent 30%),
    linear-gradient(145deg, #0b292b, #06191a 68%);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .52);
  transform: translateY(18px) scale(.985);
  transition: transform .26s cubic-bezier(.2, .72, .28, 1);
}

.product-modal-backdrop.is-open .product-modal {
  transform: translateY(0) scale(1);
}

.product-modal-close {
  position: sticky;
  top: 16px;
  z-index: 4;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 16px 16px -60px auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(4, 22, 23, .86);
  color: #fff;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.product-modal-close:hover,
.product-modal-close:focus-visible {
  border-color: rgba(52, 227, 224, .55);
  background: rgba(25, 167, 166, .2);
  transform: rotate(5deg);
  outline: none;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
  min-height: 650px;
}

.product-modal-info {
  padding: 34px;
  border-right: 1px solid rgba(255, 255, 255, .11);
}

.product-modal-image-wrap {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  background: #0a2324;
}

.product-modal-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 16, 17, .5), transparent 55%);
  pointer-events: none;
}

.product-modal-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 285px;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.product-modal-image-wrap:hover .product-modal-image {
  transform: scale(1.035);
}

.product-visual-label {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(4, 22, 23, .75);
  color: #d8e7e4;
  font-size: .7rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.product-modal-family {
  margin: 25px 0 10px;
  color: var(--teal-bright);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.product-modal-title {
  margin: 0;
  padding-right: 42px;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.product-modal-code {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(52, 227, 224, .22);
  border-radius: 999px;
  background: rgba(52, 227, 224, .075);
  color: var(--teal-bright);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .07em;
}

.product-modal-description {
  margin: 20px 0 0;
  color: #c1d2cf;
  font-size: 1.06rem;
  line-height: 1.72;
}

.product-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.product-modal-tags .tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #d4e1df;
  font-size: .76rem;
  font-weight: 800;
}

.selection-note {
  margin: 22px 0 0;
  padding: 15px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 13px 13px 0;
  background: rgba(216, 182, 106, .07);
  color: #bdccc9;
  font-size: .89rem;
  line-height: 1.6;
}

.product-enquiry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 40px 40px;
}

.product-enquiry-head {
  margin-bottom: 23px;
}

.product-enquiry-head .eyebrow {
  margin-bottom: 10px;
}

.product-enquiry-head h3 {
  margin: 0 0 9px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  letter-spacing: -.035em;
}

.product-enquiry-head p {
  margin: 0;
  color: #b5c7c3;
  font-size: .98rem;
  line-height: 1.62;
}

.product-enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.product-enquiry-field {
  display: grid;
  gap: 7px;
}

.product-enquiry-field.full {
  grid-column: 1 / -1;
}

.product-enquiry-field label {
  color: #dce8e6;
  font-size: .82rem;
  font-weight: 800;
}

.product-enquiry-field input,
.product-enquiry-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font: inherit;
  font-size: .96rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.product-enquiry-field textarea {
  min-height: 94px;
  resize: vertical;
}

.product-enquiry-field input::placeholder,
.product-enquiry-field textarea::placeholder {
  color: #78908c;
}

.product-enquiry-field input:focus,
.product-enquiry-field textarea:focus {
  border-color: rgba(52, 227, 224, .65);
  background: rgba(52, 227, 224, .055);
  box-shadow: 0 0 0 3px rgba(52, 227, 224, .1);
}

.product-enquiry-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 1px solid var(--teal-bright);
  border-radius: 999px;
  background: var(--teal-bright);
  color: #041718;
  cursor: pointer;
  font-size: .91rem;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-enquiry-submit:hover,
.product-enquiry-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(52, 227, 224, .16);
  outline: none;
}

.product-enquiry-note {
  margin: 12px 4px 0;
  color: #8fa4a0;
  font-size: .76rem;
  line-height: 1.5;
}

.product-enquiry-status {
  min-height: 20px;
  margin-top: 9px;
  color: var(--teal-bright);
  font-size: .8rem;
  font-weight: 800;
}

body.product-modal-open {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-info {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
  }

  .product-enquiry {
    padding-top: 36px;
  }
}

@media (max-width: 700px) {
  .product-card {
    min-height: 0;
    padding: 23px;
  }

  .product-card h4 {
    font-size: 1.24rem;
  }

  .product-card p {
    font-size: .98rem;
  }

  .hero-copy,
  .section-head > p,
  .group-title p,
  .cta-box p {
    font-size: 1rem;
  }

  .product-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .product-modal {
    width: 100%;
    max-height: 94dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 25px 25px 0 0;
  }

  .product-modal-close {
    top: 12px;
    margin: 12px 12px -56px auto;
  }

  .product-modal-info,
  .product-enquiry {
    padding: 24px 20px 28px;
  }

  .product-modal-image-wrap,
  .product-modal-image {
    min-height: 220px;
  }

  .product-modal-title {
    padding-right: 0;
    font-size: 2.15rem;
  }

  .product-modal-description {
    font-size: 1rem;
  }

  .product-enquiry-grid {
    grid-template-columns: 1fr;
  }

  .product-enquiry-field.full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card-action span,
  .product-modal-backdrop,
  .product-modal,
  .product-modal-image,
  .product-modal-close,
  .product-enquiry-submit {
    transition: none !important;
  }
}
