/* ============================================================
   Block: dl-segment-products — Vitrine layout
   3-kolumnowa siatka portretowych kart, środkowa staggered.
   ============================================================ */

/* --- Sekcja --- */
.seg-products {
  background: var(--paper);
  padding: var(--section-y) 0;
}

/* --- Nagłówek (bez zmian) --- */
.products-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.products-title {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.products-title em { font-style: italic; color: var(--karmel); font-weight: 300; }

/* --- Vitrine grid --- */
.vitrine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}

/* --- Karta --- */
.vcard {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--karmel) 16%, transparent);
  transition: border-color 0.3s ease;
}
.vcard:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
}

/* Stagger środkowej karty */
.vitrine-grid .vcard:nth-child(3n+2) {
  margin-top: clamp(36px, 5vw, 64px);
}

/* --- Foto area --- */
.vcard-photo {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: var(--espresso);
}
.vcard--cream .vcard-photo {
  background: var(--cream-200);
}
.vcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.vcard:hover .vcard-photo img {
  transform: scale(1.04);
}

/* Placeholder bez zdjęcia */
.vcard-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--gold) 30%, transparent);
}
.vcard--cream .vcard-ph {
  color: color-mix(in srgb, var(--karmel) 30%, transparent);
}

/* Ghost number */
.vcard-ghost {
  position: absolute;
  bottom: -18px;
  right: -6px;
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(72px, 11vw, 130px);
  line-height: 0.75;
  color: rgba(201, 162, 74, 0.09);
  pointer-events: none;
  user-select: none;
}
.vcard--cream .vcard-ghost {
  color: rgba(122, 74, 30, 0.08);
}

/* --- Treść --- */
.vcard-body {
  padding: clamp(18px, 2.5vw, 28px) clamp(18px, 2vw, 24px) clamp(22px, 3vw, 32px);
  background: var(--paper);
}

.vcard-cat {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--karmel);
  margin-bottom: 10px;
}

.vcard-name {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 72;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 clamp(10px, 1.5vw, 16px);
}

.vcard-tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 24;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.4;
  color: var(--espresso);
  margin: 0 0 clamp(8px, 1.2vw, 14px);
}

.vcard-desc {
  font-size: 14px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--espresso) 85%, transparent);
  margin: 0 0 clamp(14px, 1.8vw, 20px);
}

/* Specs chips */
.vcard-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.vcard-spec {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 0.5px solid color-mix(in srgb, var(--gold) 40%, transparent);
  color: color-mix(in srgb, var(--karmel) 85%, transparent);
}

/* CTA link */
.vcard-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--karmel);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 0.5px solid var(--karmel);
  transition: gap 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.vcard:hover .vcard-cta {
  gap: 14px;
  color: var(--gold);
  border-color: var(--gold);
}

/* Złota linia animowana */
.vcard-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.vcard:hover .vcard-line {
  transform: scaleX(1);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .vitrine-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 3vw, 24px);
  }
  .vitrine-grid .vcard:nth-child(3n+2) {
    margin-top: 0;
  }
  .vitrine-grid .vcard:nth-child(2n) {
    margin-top: clamp(28px, 4vw, 48px);
  }
}

@media (max-width: 560px) {
  .vitrine-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .vitrine-grid .vcard:nth-child(n) {
    margin-top: 0;
  }
  .products-head {
    grid-template-columns: 1fr;
  }
}
