/* Luxury jewellery catalogue overlay — scoped, does not affect site layout */
.jc-cat {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.jc-cat.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.jc-cat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.jc-cat-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1280px, calc(100% - 28px));
  height: calc(100dvh - 28px);
  margin: 14px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(18, 18, 18, 0.88), rgba(11, 11, 11, 0.94));
  border: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(212, 175, 55, 0.06);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  transform: scale(0.92) translate3d(0, 12px, 0);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  overflow: hidden;
}
.jc-cat.is-open .jc-cat-panel {
  transform: scale(1) translate3d(0, 0, 0);
  opacity: 1;
}
.jc-cat-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.65);
  color: #D4AF37;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.jc-cat-close:hover {
  transform: scale(1.06);
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.2);
}
.jc-cat-header {
  flex-shrink: 0;
  text-align: center;
  padding: 36px 56px 20px;
}
.jc-cat-header h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D4AF37;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}
.jc-cat-header p {
  margin: 0 auto;
  max-width: 520px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.jc-cat-divider {
  width: min(200px, 40%);
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}
.jc-cat-filters {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px 20px;
}
.jc-cat-filter {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.jc-cat-filter:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.35);
  color: #fff;
}
.jc-cat-filter.is-active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  border-color: rgba(212, 175, 55, 0.55);
  color: #D4AF37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}
.jc-cat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 28px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.25) transparent;
}
.jc-cat-body::-webkit-scrollbar { width: 6px; }
.jc-cat-body::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.25); border-radius: 6px; }
.jc-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.jc-cat-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0B0B0B;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.jc-cat.is-ready .jc-cat-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.jc-cat-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.jc-cat-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 175, 55, 0.1);
}
.jc-cat-card:hover::before { opacity: 1; }
.jc-cat-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.jc-cat-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.jc-cat-card:hover .jc-cat-card-media img { transform: scale(1.08); }
.jc-cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 11, 11, 0.35) 60%, rgba(11, 11, 11, 0.92) 100%);
  pointer-events: none;
}
.jc-cat-card-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  pointer-events: none;
}
.jc-cat-card-info h3 {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}
.jc-cat-card-info span {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D4AF37;
}
.jc-cat-card-view {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(11, 11, 11, 0.55);
  color: #D4AF37;
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.jc-cat-card:hover .jc-cat-card-view {
  transform: scale(1.08);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}
.jc-cat-card-view svg { width: 18px; height: 18px; }
.jc-cat-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding: 20px 8px 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}
.jc-cat-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.03em;
}
.jc-cat-feature-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #D4AF37;
  font-size: 13px;
  flex-shrink: 0;
}
.jc-cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: rgba(255, 255, 255, 0.45);
  font-family: Inter, sans-serif;
  font-size: 14px;
}
.jc-cat-viewer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.jc-cat-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.jc-cat-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.jc-cat-viewer-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.jc-cat-viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0 8px 12px;
}
.jc-cat-viewer-counter {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #D4AF37;
  letter-spacing: 0.06em;
}
.jc-cat-viewer-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.7);
  color: #D4AF37;
  font-size: 22px;
  cursor: pointer;
}
.jc-cat-viewer-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px;
}
.jc-cat-viewer-stage {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}
.jc-cat-viewer-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.jc-cat-viewer-img.is-active {
  opacity: 1;
  transform: scale(1);
}
.jc-cat-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(11, 11, 11, 0.75);
  color: #D4AF37;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.jc-cat-viewer-nav:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.2);
}
.jc-cat-viewer-nav:disabled { opacity: 0.3; cursor: not-allowed; transform: translateY(-50%); }
.jc-cat-viewer-nav svg { width: 20px; height: 20px; }
.jc-cat-viewer-prev { left: 12px; }
.jc-cat-viewer-next { right: 12px; }
@media (max-width: 1024px) {
  .jc-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .jc-cat-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jc-cat-header { padding: 32px 48px 16px; }
}
@media (max-width: 640px) {
  .jc-cat-panel { width: calc(100% - 16px); height: calc(100dvh - 16px); margin: 8px; border-radius: 14px; }
  .jc-cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .jc-cat-header { padding: 28px 20px 12px; }
  .jc-cat-header h2 { letter-spacing: 0.1em; }
  .jc-cat-body { padding: 0 16px 18px; }
  .jc-cat-filters { padding: 6px 12px 16px; gap: 8px; }
  .jc-cat-filter { padding: 8px 14px; font-size: 11px; }
  .jc-cat-features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .jc-cat-viewer-main { padding: 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .jc-cat, .jc-cat-panel, .jc-cat-card, .jc-cat-viewer-img, .jc-cat-filter, .jc-cat-close { transition: none !important; animation: none !important; }
  .jc-cat-card { opacity: 1; transform: none; }
}
