/* Bagley catalogue cards borrow the MMO shop layout and keep the existing flip interaction. */
.catalogue-section { padding: clamp(30px, 4vw, 58px) 0 clamp(60px, 7vw, 100px); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; min-width: 0; height: 440px; border: 0; background: transparent; perspective: 1300px; }
.product-card-inner { position: relative; width: 100%; height: 100%; }
.product-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 0;
  background: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-origin: center;
  transition: transform .36s cubic-bezier(.22, .72, .24, 1);
  will-change: transform;
}
.product-card-face::before,
.product-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.product-card-face::before { background: var(--line); transition: background-color .25s ease; }
.product-card-face::after {
  inset: 1px;
  /* The 90% surface wash leaves the terrain artwork at about 10% strength. */
  background:
    linear-gradient(#15191ae6, #15191ae6),
    url("/assets/topography-panel-products.svg") var(--card-terrain-position, center) / auto 100% no-repeat,
    #171b1c;
}
.product-card-face > * { position: relative; z-index: 1; }
.product-card-face > .product-card-top-line {
  position: absolute;
  top: 0;
  left: 12px;
  right: 1px;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(224,202,158,.96) 0%, rgba(199,170,121,.88) 54%, rgba(199,170,121,.45) 82%, transparent 100%);
  box-shadow: 0 2px 8px rgba(199,170,121,.28);
}
.product-card:hover .product-card-face::before,
.product-card:focus-within .product-card-face::before { background: #786746; }
.product-card:nth-child(1) { --card-terrain-position: 8% center; }
.product-card:nth-child(2) { --card-terrain-position: 48% center; }
.product-card:nth-child(3) { --card-terrain-position: 92% center; }
.product-card-front { transform: rotateY(0deg); pointer-events: auto; }
.product-card-back { transform: rotateY(-180deg); pointer-events: none; }
@media (hover: none) and (pointer: coarse) {
  .product-card-front { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
}
.product-card-back::after {
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(224,202,158,.018) 22px 23px),
    linear-gradient(145deg, #1b1d1d, #121516 80%);
}
.product-card.is-flipped .product-card-front { transform: rotateY(180deg); pointer-events: none; }
.product-card.is-flipped .product-card-back { transform: rotateY(0deg); pointer-events: auto; }
.product-card-back-head {
  color: var(--brass-hover);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.product-card-media {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 148px;
  margin: 12px 0 10px;
}
.product-card-media::before,
.product-card-media::after {
  content: "";
  position: absolute;
  width: 146px;
  aspect-ratio: 1;
  border: 1px solid #a98b5930;
  border-radius: 50%;
  pointer-events: none;
}
.product-card-media::before { background: radial-gradient(circle, #a98b5924, transparent 70%); }
.product-card-media::after { width: 180px; border-color: #a98b5912; }
.product-card .product-image {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  aspect-ratio: 1;
  overflow: visible;
  background: transparent;
}
.product-card .product-image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px #0009); }
.product-card .product-placeholder-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  background: linear-gradient(145deg, #39382f, #171b1c 70%);
  box-shadow: 0 12px 24px #0008;
}
.product-card .product-placeholder-preview::before { display: none; }
.product-card .product-placeholder-mark { align-self: center; color: #d7c29b; font-size: 54px; line-height: 1; }
.product-card:nth-child(2) .product-placeholder-preview { background: linear-gradient(145deg, #30342f, #171b1c 70%); }
.product-card:nth-child(3) .product-placeholder-preview { background: linear-gradient(145deg, #303239, #171b1c 70%); }
.product-card-front-copy { min-height: 74px; text-align: center; }
.product-card-front-copy h3 { margin: 0; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; }
.product-card-front-copy p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.product-card-front-copy--title-only {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(34px, 5vw, 70px) 12px 28px;
}
.product-card-front-copy--title-only h3 {
  max-width: 11ch;
  font-size: clamp(36px, 3.4vw, 48px);
  text-wrap: balance;
}
.product-card-status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product-card-status span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-card-status strong { color: var(--text); font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-size: 15px; font-weight: 700; text-align: right; text-transform: uppercase; }
.product-flip,
.product-unflip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 28px;
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.product-flip span,
.product-unflip span { color: var(--brass-hover); font-size: 17px; line-height: 1; }
.product-flip:hover,
.product-unflip:hover { color: var(--text); }
.product-card-back h3 { margin: 22px 0 12px; font-size: 30px; line-height: 1.05; }
.product-card-description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.product-card-details { max-height: 48px; overflow: hidden; margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.product-card-details li { margin-bottom: 4px; }
.product-card-details li::marker { color: var(--brass); }
.product-card-facts { margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.product-card-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #a98b5920; }
.product-card-facts dt { color: var(--muted); font-size: 12px; }
.product-card-facts dd { margin: 0; color: var(--text); font-size: 12px; font-weight: 700; text-align: right; }
.product-card-back .product-modal-open { align-self: flex-start; width: auto; min-width: 190px; max-width: 100%; min-height: 44px; margin-top: auto; cursor: pointer; }
.product-unflip { margin-top: 10px; }
.product-dialog-open { overflow: hidden; }
.product-dialog {
  width: min(640px, calc(100vw - 32px));
  max-width: 640px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--brass) var(--surface);
}
.product-dialog::-webkit-scrollbar-track { background: var(--surface); }
.product-dialog::backdrop { background: #000d; }
.product-dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  height: 50px;
  background: linear-gradient(180deg, var(--surface) 70%, transparent);
}
.product-dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 8px 10px;
  border: 1px solid var(--line);
  background: #080c0d;
  color: var(--text);
  font-size: 21px;
  cursor: pointer;
}
.product-dialog-close:hover { color: var(--brass-hover); border-color: var(--brass); }
.product-dialog-shell { min-width: 0; }
.product-dialog-copy { min-width: 0; padding: 0 clamp(26px, 4vw, 40px) clamp(28px, 4vw, 40px); }
.product-dialog-copy h2 { margin-bottom: 14px; font-size: clamp(36px, 5vw, 50px); overflow-wrap: anywhere; }
.product-dialog-copy > p:not(.eyebrow) { margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.product-dialog-copy .product-dialog-details-heading { margin: 22px 0 9px; color: var(--brass-hover); font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.product-dialog-details { margin-top: 0; padding-left: 20px; color: var(--muted); }
.product-dialog-details li { margin-bottom: 6px; }
.product-dialog-copy .small-note { margin: 16px 0; }
.product-dialog-contact { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.product-dialog-contact .eyebrow { margin-bottom: 8px; }
.product-dialog-contact > p:not(.eyebrow) { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.product-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-dialog-actions .button { flex: 1 1 190px; min-width: 0; }
.product-dialog-actions .button:disabled { text-align: left; }
.product-dialog-contact .small-note { margin-bottom: 0; }
@media (max-width: 850px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-dialog-open { overflow: hidden; }
  .product-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
}
@media (max-width: 650px) {
  .catalogue-section { padding-top: 26px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { height: auto; }
  .product-card-inner { display: grid; height: auto; }
  .product-card-face { position: relative; inset: auto; grid-area: 1 / 1; min-height: 440px; padding: 20px; }
  .product-card-description { display: block; overflow: visible; -webkit-line-clamp: unset; }
  .product-card-facts { margin-top: 12px; }
  .product-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .product-dialog-toolbar { height: 46px; }
  .product-dialog-copy { padding: 0 20px 24px; }
  .product-dialog-copy h2 { font-size: clamp(32px, 9vw, 44px); }
  .product-dialog-details { margin-block: 12px; font-size: 14px; }
  .product-dialog-contact { margin-top: 16px; padding-top: 16px; }
  .product-dialog-actions { flex-direction: column; }
  .product-dialog-actions .button { flex-basis: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card-face { transition: none; }
}

.enquiry-dialog {
  width: min(580px, calc(100vw - 24px));
  max-width: 580px;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: #191d1e;
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--brass) #191d1e;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.enquiry-dialog::backdrop { background: #000d; }
.enquiry-dialog-inner {
  position: relative;
  padding: clamp(28px, 5vw, 44px);
  background: linear-gradient(#1b1f1fea, #1b1f1eea), url("/assets/topography-panel-products.svg") center / cover no-repeat;
}
.enquiry-dialog-close { position: absolute; top: 10px; right: 10px; z-index: 4; margin: 0; }
.enquiry-dialog .eyebrow { margin-bottom: 10px; }
.enquiry-dialog h2 { max-width: calc(100% - 28px); margin: 0 0 14px; font-size: clamp(38px, 6vw, 52px); }
.enquiry-intro { max-width: 45ch; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.enquiry-intro strong { color: var(--text); }
.enquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.enquiry-fields label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: var(--brass-hover);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.enquiry-fields label:nth-child(3),
.enquiry-fields .enquiry-message { grid-column: 1 / -1; }
.enquiry-fields input,
.enquiry-fields textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #0e1112;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: none;
  resize: vertical;
}
.enquiry-fields input:focus-visible,
.enquiry-fields textarea:focus-visible { border-color: var(--brass-hover); box-shadow: 0 0 0 1px var(--brass-hover); }
.enquiry-fields textarea { min-height: 96px; max-height: 220px; }
.enquiry-fields textarea::placeholder { color: #928e85; }
.enquiry-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.enquiry-privacy, .enquiry-pending { color: var(--muted); font-size: 12px; line-height: 1.5; }
.enquiry-privacy { margin: 18px 0; }
.enquiry-pending { margin: 12px 0 0; }
.enquiry-status { margin: 0 0 14px; color: #e4b4a6; font-size: 13px; }
.enquiry-status:empty { display: none; }
.enquiry-status.is-success {
  padding: 16px;
  border-left: 2px solid var(--brass-hover);
  background: rgba(169, 139, 85, .09);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.enquiry-submit { min-width: 190px; }
.enquiry-verification { margin: 0 0 16px; min-height: 65px; }
.enquiry-dialog.is-submitted .enquiry-intro,
.enquiry-dialog.is-submitted .enquiry-fields,
.enquiry-dialog.is-submitted .enquiry-privacy,
.enquiry-dialog.is-submitted .enquiry-verification,
.enquiry-dialog.is-submitted .enquiry-submit,
.enquiry-dialog.is-submitted .enquiry-pending { display: none; }
@media (max-width: 520px) {
  .enquiry-dialog-inner { padding: 28px 22px; }
  .enquiry-fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .enquiry-fields label:nth-child(3),
  .enquiry-fields .enquiry-message { grid-column: auto; }
  .enquiry-submit { width: 100%; }
}
