/* Premium luxury category catalogue — scoped to .pg-gallery / .pg-lightbox only */
.pg-gallery {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.pg-gallery.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Ambient scene ── */
.pg-gallery-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.pg-gallery-glow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: min(1100px, 140%);
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.09) 0%, transparent 68%);
  opacity: 0.85;
}
.pg-gallery-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.pg-gallery-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
  animation: pgParticleFloat 24s ease-in-out infinite;
}
.pg-gallery-particle:nth-child(3) { left: 10%; top: 20%; animation-delay: -2s; }
.pg-gallery-particle:nth-child(4) { left: 82%; top: 16%; animation-delay: -6s; animation-duration: 28s; }
.pg-gallery-particle:nth-child(5) { left: 22%; top: 72%; animation-delay: -4s; animation-duration: 26s; }
.pg-gallery-particle:nth-child(6) { left: 70%; top: 78%; animation-delay: -8s; }
.pg-gallery-particle:nth-child(7) { left: 48%; top: 10%; animation-delay: -11s; animation-duration: 30s; }
.pg-gallery-particle:nth-child(8) { left: 90%; top: 44%; animation-delay: -3s; animation-duration: 22s; }
@keyframes pgParticleFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.2; }
  50% { transform: translate3d(0, -8px, 0); opacity: 0.45; }
}

.pg-gallery-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ── Main panel ── */
.pg-gallery-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  background: linear-gradient(180deg, #0c0c0e 0%, #08080a 38%, #060608 100%);
  overflow: hidden;
  transform: translate3d(0, 18px, 0);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.pg-gallery.is-open .pg-gallery-panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.pg-gallery-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.72);
  color: #d4af37;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pg-gallery-close:hover {
  transform: scale(1.06);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.22);
}

/* ── Premium hero ── */
.pg-gallery-hero {
  position: relative;
  flex-shrink: 0;
  min-height: clamp(280px, 38vh, 420px);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.pg-gallery-hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pg-gallery-hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 8s ease;
}
.pg-gallery.is-open .pg-gallery-hero-cover-img {
  transform: scale(1.06);
}
.pg-gallery-hero-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, 0.35) 0%, rgba(6, 6, 8, 0.82) 55%, #08080a 100%),
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(212, 175, 55, 0.12), transparent 70%);
}
.pg-gallery-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: min(1200px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(32px, 4vw, 44px);
}
.pg-gallery-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}
.pg-gallery-breadcrumb a {
  color: rgba(232, 200, 114, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pg-gallery-breadcrumb a:hover { color: #f0d78c; }
.pg-gallery-breadcrumb .is-current { color: rgba(255, 255, 255, 0.78); }
.pg-gallery-title {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #f0efe8;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.pg-gallery-count {
  margin: 0 0 12px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4af37;
}
.pg-gallery-desc {
  margin: 0 0 24px;
  max-width: 620px;
  font-family: Inter, sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
}
.pg-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── Buttons ── */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.pg-btn--ghost {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pg-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
}
.pg-btn--gold {
  color: #0a0a0c;
  background: linear-gradient(135deg, #e8c872 0%, #d4af37 48%, #c9a227 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.28);
}
.pg-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.38);
}
.pg-btn--lg {
  padding: 14px 28px;
  font-size: 14px;
}

/* ── Body & grid ── */
.pg-gallery-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px) clamp(40px, 5vw, 64px);
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.25) transparent;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(212, 175, 55, 0.04), transparent 70%);
}
.pg-gallery-body::-webkit-scrollbar { width: 6px; }
.pg-gallery-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 6px;
}
.pg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Luxury product cards ── */
.pg-gallery-card {
  position: relative;
  border-radius: 22px;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease;
}
.pg-gallery.is-ready .pg-gallery-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.pg-gallery-card-inner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(165deg, rgba(32, 32, 38, 0.72) 0%, rgba(12, 12, 16, 0.92) 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(212, 175, 55, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.pg-gallery-card:hover .pg-gallery-card-inner {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(212, 175, 55, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pg-gallery-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.pg-gallery-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.pg-gallery-card:hover .pg-gallery-card-media img {
  transform: scale(1.1);
}
.pg-gallery-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 58%
  );
  transform: translateX(-120%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 2;
}
.pg-gallery-card:hover .pg-gallery-card-shine {
  transform: translateX(120%);
}
.pg-gallery-card-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 8, 0.42);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}
.pg-gallery-card-view span {
  padding: 10px 20px;
  border-radius: 100px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0efe8;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(8, 8, 10, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pg-gallery-card:hover .pg-gallery-card-view {
  opacity: 1;
}
.pg-gallery-card-foot {
  padding: 16px 18px 18px;
  text-align: center;
}
.pg-gallery-card-title {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}
.pg-gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Bottom CTA ── */
.pg-gallery-cta {
  max-width: 720px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: clamp(32px, 4vw, 44px) clamp(24px, 4vw, 40px);
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(165deg, rgba(28, 28, 34, 0.65), rgba(10, 10, 14, 0.88));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(212, 175, 55, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pg-gallery-cta-title {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  color: #f0efe8;
}
.pg-gallery-cta-text {
  margin: 0 0 24px;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Premium lightbox ── */
.pg-lightbox {
  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.4s ease, visibility 0.4s ease;
}
.pg-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pg-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 4, 0.94);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}
.pg-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 32px));
  height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
}
.pg-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 20px;
}
.pg-lightbox-counter {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}
.pg-lightbox-close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.72);
  color: #d4af37;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pg-lightbox-close:hover {
  transform: scale(1.06);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.2);
}
.pg-lightbox-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 16px;
}
.pg-lightbox-stage {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pg-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(212, 175, 55, 0.08);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.pg-lightbox-img.is-active {
  opacity: 1;
  transform: scale(1);
}
.pg-lightbox-nav {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.72);
  color: #d4af37;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.pg-lightbox-nav:hover:not(:disabled) {
  border-color: rgba(212, 175, 55, 0.55);
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.18);
}
.pg-lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pg-lightbox-nav svg {
  width: 22px;
  height: 22px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pg-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pg-gallery-hero { min-height: 260px; }
  .pg-gallery-hero-content { padding-bottom: 28px; }
  .pg-gallery-actions { flex-direction: column; align-items: stretch; }
  .pg-gallery-actions .pg-btn { width: 100%; justify-content: center; }
  .pg-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pg-gallery-body { padding-left: 16px; padding-right: 16px; }
  .pg-lightbox-main { grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .pg-lightbox-nav { width: 44px; height: 44px; }
  .pg-gallery-close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-gallery-particle { animation: none !important; }
  .pg-gallery-card,
  .pg-gallery-card-inner,
  .pg-gallery-card-media img,
  .pg-gallery-card-shine,
  .pg-gallery-panel,
  .pg-lightbox-img,
  .pg-gallery-hero-cover-img { transition: none !important; }
}
