/* ═══════════════════════════════════════════════════════
   PRINT SHOP — Fine Art Prints catalog
   Reference: 1920px → 1px = 0.05208vw
   Photo grid with alternating h-v / v-h / h-h / 3-col layouts
═══════════════════════════════════════════════════════ */

/* ── Page shell ── */
.ps-page {
  background: #F2F2F2;
  color: #303030;
}

.ps-col-card {
  animation: ps-card-rise 0.65s ease both;
}
@keyframes ps-card-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Filter pill active state — mirrors wallpapers.css wp-pill--active */
.mp-pill.wp-pill--active,
.mp-pill.wp-pill--active:hover {
  background: #303030;
  color: #F2F2F2;
}


/* ═══════════════════════════════════════════════════════
   PAGE HEADING
═══════════════════════════════════════════════════════ */

.ps-header {
  padding: 10.5vw 5.208vw 2.5vw;
}

.ps-heading {
  font-family: var(--font-ui);
  font-size: 1.875vw;
  font-weight: 400;
  color: #303030;
  text-align: left;
  line-height: 1.15;
  margin-bottom: 0.83vw;
}

.ps-subtitle {
  font-family: var(--font-display);
  font-size: 1.02vw;
  font-weight: 400;
  color: #303030;
  text-align: left;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════
   FILTER PILLS — reuses wp-pill / mp-pill from main-page.css
═══════════════════════════════════════════════════════ */

.ps-filters {
  padding: 0 5.208vw 3.5vw;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.833vw 1.25vw;
}


/* ═══════════════════════════════════════════════════════
   COLLECTION SECTIONS
═══════════════════════════════════════════════════════ */

.ps-sections {
  padding: 0 5.208vw 0;
}

.ps-collection {
  margin-bottom: 7.292vw;
}

.ps-collection--hidden {
  display: none;
}

/* ── Collection heading area ── */
.ps-collection__header {
  margin-bottom: 2.083vw;
}

.ps-collection__heading {
  font-family: var(--font-ui);
  font-size: 1.875vw;
  font-weight: 400;
  color: #303030;
  line-height: 1.1;
  margin-bottom: 0.417vw;
}

.ps-collection__tagline {
  font-family: var(--font-display);
  font-size: 1.02vw;
  font-weight: 400;
  color: #303030;
}


/* ═══════════════════════════════════════════════════════
   PHOTO ROWS
═══════════════════════════════════════════════════════ */

.ps-row {
  display: grid;
  gap: 2.344vw;
  margin-bottom: 2.344vw;
}

/* 2-col: wide(H) left + narrow(V) right — ratio 2:1 */
.ps-row--h-v {
  grid-template-columns: 2fr 1fr;
}

/* 2-col: narrow(V) left + wide(H) right — ratio 1:2 */
.ps-row--v-h {
  grid-template-columns: 1fr 2fr;
}

/* 2-col equal — two horizontal or two vertical */
.ps-row--h-h,
.ps-row--v-v {
  grid-template-columns: repeat(2, 1fr);
}

/* 3-col equal — three vertical / portrait photos */
.ps-row--v-v-v {
  grid-template-columns: repeat(3, 1fr);
}

/* Full-width — single panoramic/dramatic image */
.ps-row--full {
  grid-template-columns: 1fr;
}


/* Etudes h-v row: Moscow (landscape) + Spot (portrait) need extra height */
.ps-collection[data-id="etudes"] .ps-row--h-v .ps-photo__img-wrap,
.ps-collection[data-id="etudes"] .ps-row--v-h .ps-photo__img-wrap {
  height: 52vw;
}

/* ═══════════════════════════════════════════════════════
   PHOTO CELL
═══════════════════════════════════════════════════════ */

.ps-photo {
  display: flex;
  flex-direction: column;
}

/* ── Image container — height varies by row type ── */
.ps-photo__img-wrap {
  position: relative;
  width: 100%;
  background: #1c1c1c;
  overflow: hidden;
  flex-shrink: 0;
}

/* landscape rows: ~3:2 cells */
.ps-row--h-h .ps-photo__img-wrap {
  height: 30vw;
}

/* mixed portrait/landscape rows: taller to respect portrait proportions */
.ps-row--h-v .ps-photo__img-wrap,
.ps-row--v-h .ps-photo__img-wrap {
  height: 42vw;
}

/* two-column portrait rows: ~2:3 cells */
.ps-row--v-v .ps-photo__img-wrap {
  height: 62vw;
}

/* three-column portrait rows: ~2:3 cells (28.3vw × 44vw) */
.ps-row--v-v-v .ps-photo__img-wrap {
  height: 44vw;
}

/* full-width panoramic */
.ps-row--full .ps-photo__img-wrap {
  height: 44vw;
}

/* Per-product frame overrides — точечная корректировка окна показа.
   Kids / Rabbit II / Leviathan остаются landscape (100vw × 40vw ≈ 2.5:1),
   но заметно выше дефолтного full 29vw — меньше вертикального кропа.
   .ps-sections префикс нужен, чтобы обойти общее правило
   .ps-sections .ps-row--full .ps-photo__img-wrap { height: 29vw }
   ниже в файле (та же specificity (0,3,0), но source order там позже
   → без префикса перебивает). С .ps-sections специфичность (0,4,0). */
.ps-sections .ps-photo[data-id="bw_17_kids"] .ps-photo__img-wrap,
.ps-sections .ps-photo[data-id="bel_07_rabbit_2"] .ps-photo__img-wrap,
.ps-sections .ps-photo[data-id="north_05_leviathan"] .ps-photo__img-wrap,
.ps-sections .ps-photo[data-id="portrait_03_strange_story"] .ps-photo__img-wrap {
  height: 40vw;
}

.ps-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.ps-photo:hover .ps-photo__img {
  transform: scale(1.04);
}

/* ── Caption overlay — bottom-left of image, like wp-card + mp-ccard__label ── */
.ps-photo__meta {
  position: absolute;
  bottom: 0.83vw;
  left: 0.83vw;
  display: flex;
  flex-direction: column;
  gap: 0.26vw;
  pointer-events: none;
  z-index: 2;
}

.ps-photo__title {
  font-family: var(--font-ui);
  font-size: 1.0vw;
  font-weight: 400;
  color: rgba(242, 242, 242, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ps-photo__coll {
  font-family: var(--font-ui);
  font-size: 0.748vw;
  font-weight: 400;
  color: rgba(242, 242, 242, 0.65);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Hover shimmer — z-index 1 keeps it above the image but below the caption (z-index 2) */
.ps-photo__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.ps-photo:hover .ps-photo__img-wrap::after {
  background: rgba(0, 0, 0, 0.06);
}


/* ═══════════════════════════════════════════════════════
   BOTTOM CTA — More offers: Dynamic Wallpaper Collections
═══════════════════════════════════════════════════════ */

.ps-more {
  padding: 1.302vw 0 8.333vw;
  border-top: 0.052vw solid #DEDEDE;
}

.ps-more__heading {
  font-family: var(--font-display);
  font-size: 1.458vw;
  font-weight: 400;
  color: #303030;
  padding: 0 5.208vw;
  margin: 0 0 2.5vw;
}

/* Dots row — uses mp-dot from main-page.css */
/* gap slider→button = 4.167 ÷ 1.5 = 2.778vw */
.ps-more__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.294vw;
  padding: 2.083vw 5.208vw 2.778vw;
}

/* CTA button row */
.ps-more__cta {
  display: flex;
  justify-content: center;
}

/* ── Back to photo collections CTA — centered, main-page rhythm ── */
.ps-back-cta {
  padding: 2.604vw 0 0.781vw;
  display: flex;
  justify-content: center;
}


/* ═══════════════════════════════════════════════════════
   PHOTO POPUP MODAL — frame/interior mockup left column
   Overrides .pmod__main column widths; reuses all other
   pmod__ styles from product-modal.css
═══════════════════════════════════════════════════════ */

.pmod__main.psmod__main {
  grid-template-columns: 41.6vw 31vw;
  align-items: start;
}

/* Left column wrapper */
.psmod__frame-col {
  overflow: hidden;
}

/* White room wall background — fixed height so width increase doesn't change proportions */
.psmod__room {
  background: url('../../UI-UX/white-wall-with-gray-floor-product-background 1.png') center top / cover;
  width: 100%;
  height: 42.7vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vw 3.5vw 10vw;
  box-sizing: border-box;
}

/* Frame: thin dark border + natural wall shadow (no mat) */
.psmod__frame-wrap {
  border: 0.313vw solid #2D2D2D;
  box-shadow:
    0 0.3vw 1.5vw rgba(0, 0, 0, 0.2),
    0 0.1vw 0.3vw rgba(0, 0, 0, 0.12);
  overflow: hidden;      /* clips sub-pixel rounding gaps */
  background: #2D2D2D;   /* any 1px bleed matches border color, not white */
  line-height: 0;        /* kills inline baseline gap */
}

/* Photo inside frame — natural size capped to fit column; cursor signals clickable */
.psmod__photo {
  display: block;
  max-width: 26vw;
  max-height: 26vw;
  width: auto;
  height: auto;
  cursor: zoom-in;
}

/* Carousel cards in print-shop popup — scaled 20% smaller */
.psmod .pmod__ccard {
  width: 21.664vw !important;
}
.psmod .pmod__ccard-media {
  aspect-ratio: unset !important;
  height: 29.624vw !important;
}

/* Photo cards inside print-shop modal carousels */
.pmod__ccard-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pre-order note — same size and color as pmod__desc-text */
.psmod__order-note {
  font-family: var(--font-display);
  font-size: 1.25vw;
  font-weight: 400;
  color: #303030;
  line-height: 1.55;
  margin: 0 0 1.875vw;
}

/* WhatsApp / Telegram buttons — mp-pill base style (outlined, transparent bg) */
.psmod__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625vw;
  width: 100%;
  box-sizing: border-box;
  padding: 0.63vw 2.1vw;
  border-radius: 8.19vw;
  background: transparent;
  color: #303030;
  border: 0.08vw solid #303030;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.948vw;
  font-weight: 400;
  text-decoration: none;
  margin-bottom: 0.521vw;
  transition: background 0.25s ease, color 0.25s ease;
}

.psmod__social-btn:hover {
  background: #303030;
  color: #F2F2F2;
}

.psmod__social-btn svg {
  flex-shrink: 0;
  width: 1.25vw;
  height: 1.25vw;
}


/* ═══════════════════════════════════════════════════════
   PHOTO LIGHTBOX — fullscreen view on photo click
═══════════════════════════════════════════════════════ */

.psmod__lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.psmod__lightbox--open {
  display: flex;
}

.psmod__lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.psmod__lightbox-close {
  position: absolute;
  top: 1.5vw;
  right: 1.5vw;
  background: none;
  border: none;
  color: rgba(242, 242, 242, 0.85);
  font-size: 1.667vw;
  line-height: 1;
  cursor: pointer;
  padding: 0.5vw;
  transition: color 0.2s ease;
}

.psmod__lightbox-close:hover {
  color: #F2F2F2;
}


/* ═══════════════════════════════════════════════════════
   COLLECTION OVERVIEW GRID
   3-column landscape cards, 5.208vw side padding, 2.344vw gap
═══════════════════════════════════════════════════════ */

.ps-col-grid {
  padding: 10.5vw 5.208vw 4vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.563vw;
}

.ps-col-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.ps-col-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #1c1c1c;
}

.ps-col-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.ps-col-card:hover .ps-col-card__img {
  transform: scale(1.04);
}

.ps-col-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.ps-col-card:hover .ps-col-card__img-wrap::after {
  background: rgba(0, 0, 0, 0.06);
}

.ps-col-card__meta {
  position: absolute;
  bottom: 0.83vw;
  left: 0.83vw;
  z-index: 2;
  pointer-events: none;
}

.ps-col-card__name {
  font-family: var(--font-ui);
  font-size: 1.0vw;
  font-weight: 400;
  color: rgba(242, 242, 242, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}


/* ═══════════════════════════════════════════════════════
   OVERVIEW CTA
═══════════════════════════════════════════════════════ */

.ps-col-cta {
  padding: 0 0 8.333vw;
  display: flex;
  justify-content: center;
}


/* ═══════════════════════════════════════════════════════
   DETAIL — COLLECTION NAV CAROUSEL
   All 9 cards always visible; active card scales up with
   dark overlay removed; inactive cards dimmed by overlay
═══════════════════════════════════════════════════════ */

.ps-col-nav {
  overflow: hidden;
  padding: 9.375vw 0 2vw;
  /* Clip carousel to content margins — 3 cards peek on each side,
     outermost edges aligned with header nav text and right cart icon */
  clip-path: inset(0 5.208vw);
}

/* Inner sliding track — JS applies translateX */
.ps-col-nav__track {
  display: flex;
  gap: 1.04vw;
  will-change: transform;
}

.ps-col-nav__card {
  flex: 0 0 12.5vw;   /* 240px at 1920 → ~7 cards visible when centered */
  cursor: pointer;
  position: relative;
  transform: scale(0.94);
  transition: transform 0.5s ease;
}

.ps-col-nav__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  background: #1c1c1c;
}

/* Dark overlay on all inactive cards */
.ps-col-nav__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.ps-col-nav__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

/* Active card: full brightness, scaled up */
.ps-col-nav__card--active {
  transform: scale(1.04);
}

.ps-col-nav__card--active .ps-col-nav__img-wrap::after {
  opacity: 0;
}

/* Hover (non-active): lighten slightly */
.ps-col-nav__card:not(.ps-col-nav__card--active):hover .ps-col-nav__img-wrap::after {
  opacity: 0.5;
}

/* Collection name overlay — centered on card, visible on INACTIVE cards only.
   Fades out smoothly when the card becomes active (0.4s, same easing as overlay). */
.ps-col-nav__name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;                             /* above the dark ::after overlay */
  font-family: var(--font-ui);
  font-size: 1vw;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  text-align: center;
  pointer-events: none;
  padding: 0 0.5vw;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.ps-col-nav__card--active .ps-col-nav__name {
  opacity: 0;
}


/* ═══════════════════════════════════════════════════════
   COLLECTION HEADING
   Active collection name — centered, tight to carousel
═══════════════════════════════════════════════════════ */

.ps-col-heading {
  font-family: var(--font-ui);
  font-size: 1.875vw;
  font-weight: 400;
  color: #303030;
  line-height: 1.15;
  padding: 1.563vw 5.208vw 2.083vw;
  text-align: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.ps-col-heading--fading {
  opacity: 0;
}


/* ═══════════════════════════════════════════════════════
   PHOTO ROW HEIGHTS — ÷1.5 vs original, scoped to
   .ps-sections so overview/modal rows stay unchanged
═══════════════════════════════════════════════════════ */

.ps-sections .ps-row {
  gap: 1.563vw;
  margin-bottom: 1.563vw;
}

/* h-h: 2 equal landscape cols (~845px each at 1920) → 3:2 → 29vw */
.ps-sections .ps-row--h-h .ps-photo__img-wrap {
  height: 29vw;
}

/* h-v / v-h: 2fr+1fr split. Portrait col ~563px. Target 3:4 → h=563/0.75=751px≈39vw.
   At that height landscape (1127px) becomes 1127/751≈1.5:1 (3:2). Perfect. */
.ps-sections .ps-row--h-v .ps-photo__img-wrap,
.ps-sections .ps-row--v-h .ps-photo__img-wrap {
  height: 39vw;
}

/* v-v: 2 equal portrait cols (~845px each). Target 3:4 → h=845/0.75=1127px≈59vw */
.ps-sections .ps-row--v-v .ps-photo__img-wrap {
  height: 59vw;
}

/* v-v-v: 3 equal portrait cols (~553px each). Target 3:4 → h=553/0.75=737px≈38vw */
.ps-sections .ps-row--v-v-v .ps-photo__img-wrap {
  height: 38vw;
}

/* full: single panoramic image */
.ps-sections .ps-row--full .ps-photo__img-wrap {
  height: 29vw;
}

/* Etudes special: keep original proportion (52vw) for its mixed-ratio compositions */
.ps-sections .ps-collection[data-id="etudes"] .ps-row--h-v .ps-photo__img-wrap,
.ps-sections .ps-collection[data-id="etudes"] .ps-row--v-h .ps-photo__img-wrap {
  height: 45vw;
}

.ps-sections .ps-collection {
  margin-bottom: 5vw;
}
