/* Catalogue cards match the premium invitation showcase on the home page.
   This file is included only by the three catalogue pages; the home page is untouched. */
#catalogGrid.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}
#catalogGrid .catalog-item.showcase-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(95, 59, 83, .10);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(67, 40, 63, .09);
  transition: transform .3s ease, box-shadow .3s ease;
}
#catalogGrid .catalog-item.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(67, 40, 63, .14);
}
#catalogGrid .catalog-preview.showcase-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(270px, 25vw, 320px);
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
/* Replace the old document/phone placeholders with the same soft arch used on home. */
#catalogGrid .catalog-preview.showcase-art::before {
  content: "";
  position: absolute;
  inset: 20px 7%;
  z-index: 0;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 180px 180px 22px 22px;
  background: transparent;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}
#catalogGrid .catalog-preview.showcase-art .catalog-file-type {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: rgba(255, 250, 247, .90);
  color: #53364f;
  box-shadow: 0 8px 18px rgba(67, 40, 63, .08);
  backdrop-filter: blur(12px);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.3;
}
#catalogGrid .catalog-preview.showcase-art--video .catalog-file-type {
  color: #fff;
  border-color: rgba(255, 255, 255, .48);
  background: rgba(44, 31, 46, .28);
}
#catalogGrid .catalog-preview.showcase-art--card {
  background: linear-gradient(135deg, #fae8e2 0%, #e6b5c0 100%);
}
#catalogGrid .catalog-preview.showcase-art--pdf {
  background: linear-gradient(140deg, #e8bfd0 0%, #8d6685 66%, #6e3f69 100%);
}
#catalogGrid .catalog-preview.showcase-art--video {
  background: linear-gradient(140deg, #f0dcd7 0%, #cfdbd2 55%, #add7d0 100%);
}
#catalogGrid .showcase-card-device {
  flex: 0 0 auto;
  width: 47%;
  height: 77%;
  max-width: 214px;
  max-height: 250px;
  min-height: 190px;
}
#catalogGrid .showcase-card-device .catalog-original-art {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0 !important;
  object-fit: contain;
  object-position: center;
  background: #fff9f1 !important;
  box-shadow: none;
}
#catalogGrid .showcase-pdf-phone,
#catalogGrid .showcase-video-device {
  flex: 0 0 auto;
  width: 138px;
  height: 258px;
  max-height: 84%;
  border: 5px solid #2a202c;
  border-radius: 29px;
  background: #fff5f2;
  box-shadow: 0 24px 40px rgba(51, 22, 47, .32);
  overflow: hidden;
  z-index: 1;
}
#catalogGrid .showcase-pdf-phone { transform: rotate(4deg); background: #fff8f1; }
#catalogGrid .showcase-pdf-screen {
  position: absolute;
  inset: 7px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#catalogGrid .showcase-pdf-screen::-webkit-scrollbar { display: none; width: 0; height: 0; }
#catalogGrid .showcase-pdf-track {
  width: 100%;
  animation: showcaseInvitationPdfScroll 24s linear infinite;
  will-change: transform;
}
#catalogGrid .showcase-pdf-group { display: flex; flex-direction: column; width: 100%; }
#catalogGrid .showcase-pdf-group img {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
}
#catalogGrid .showcase-video-device { transform: rotate(-4deg); background: #fff8f2; }
#catalogGrid .showcase-video-device .catalog-video-preview {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0;
  border-radius: 17px;
  object-fit: cover !important;
  background: #311d33 !important;
  transform: none;
}
#catalogGrid .showcase-content {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
}
#catalogGrid .showcase-content .tag {
  display: block;
  margin: 0 0 6px;
  color: #d66a78;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .10em;
  line-height: 1.5;
  text-transform: uppercase;
}
#catalogGrid .showcase-content .catalog-item-code {
  display: block;
  margin: 0 0 4px;
  color: #a98791;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
#catalogGrid .showcase-content h3 {
  margin: 4px 0 9px;
  color: #53364f;
  font: 600 clamp(1.16rem, 1.4vw, 1.42rem)/1.22 'Playfair Display', Georgia, serif;
  overflow-wrap: anywhere;
}
#catalogGrid .showcase-content p {
  flex: 1;
  margin: 0 0 16px;
  color: #817683;
  font-size: .91rem;
  line-height: 1.7;
}
#catalogGrid .showcase-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
  margin-top: auto;
  padding-top: 6px;
}
#catalogGrid .showcase-actions .btn {
  flex: 0 1 auto;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  font-size: .79rem;
  text-align: center;
  white-space: normal;
}
#catalogGrid .showcase-actions .btn:focus-visible {
  outline: 3px solid rgba(143, 90, 135, .38);
  outline-offset: 3px;
}
.catalog-custom-note {
  line-height: 1.7;
}
@media (max-width: 980px) {
  #catalogGrid.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  #catalogGrid .catalog-preview.showcase-art { height: 285px; }
  #catalogGrid .showcase-card-device { width: 48%; height: 76%; }
  #catalogGrid .showcase-content { padding: 21px; }
  #catalogGrid .showcase-content h3 { font-size: 1.28rem; }
}
@media (max-width: 620px) {
  #catalogGrid.catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 460px; margin-inline: auto; }
  #catalogGrid .catalog-item.showcase-card { border-radius: 24px; }
  #catalogGrid .catalog-preview.showcase-art { height: 280px; flex-basis: 280px; }
  #catalogGrid .showcase-card-device { width: 46%; height: 78%; min-height: 0; max-height: 236px; }
  #catalogGrid .showcase-card-back { width: 43%; height: 70%; }
  #catalogGrid .showcase-pdf-phone,
  #catalogGrid .showcase-video-device { width: 132px; height: 244px; max-height: 84%; }
  #catalogGrid .showcase-content { padding: 21px; }
  #catalogGrid .showcase-content h3 { font-size: 1.3rem; }
  #catalogGrid .showcase-content p { font-size: .9rem; line-height: 1.65; }
  #catalogGrid .showcase-actions { gap: 8px; }
}
@media (max-width: 380px) {
  #catalogGrid .catalog-preview.showcase-art { height: 250px; flex-basis: 250px; }
  #catalogGrid .showcase-card-device { width: 49%; height: 77%; }
  #catalogGrid .showcase-pdf-phone,
  #catalogGrid .showcase-video-device { width: 120px; height: 222px; }
  #catalogGrid .showcase-content { padding: 18px; }
  #catalogGrid .showcase-actions .btn { padding-inline: 12px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  #catalogGrid .catalog-item.showcase-card,
  #catalogGrid .catalog-item.showcase-card:hover { transition: none; transform: none; }
  #catalogGrid .showcase-pdf-track { animation: none !important; }
}


/* Alternating premium pastel preview backgrounds, matching the supplied reference. */
#catalogGrid .catalog-item:nth-child(6n + 1) .catalog-preview {
  background: linear-gradient(135deg, #fae8e2 0%, #e6b5c0 100%) !important;
}
#catalogGrid .catalog-item:nth-child(6n + 2) .catalog-preview {
  background: linear-gradient(140deg, #e8bfd0 0%, #8d6685 66%, #6e3f69 100%) !important;
}
#catalogGrid .catalog-item:nth-child(6n + 3) .catalog-preview {
  background: linear-gradient(140deg, #f0dcd7 0%, #cfdbd2 55%, #add7d0 100%) !important;
}
#catalogGrid .catalog-item:nth-child(6n + 4) .catalog-preview {
  background: linear-gradient(140deg, #e8bfd0 0%, #8d6685 66%, #6e3f69 100%) !important;
}
#catalogGrid .catalog-item:nth-child(6n + 5) .catalog-preview {
  background: linear-gradient(135deg, #fae8e2 0%, #e6b5c0 100%) !important;
}
#catalogGrid .catalog-item:nth-child(6n) .catalog-preview {
  background: linear-gradient(140deg, #f0dcd7 0%, #cfdbd2 55%, #add7d0 100%) !important;
}
