/* ============================================================
   OPHIR — Poznaj Kamienie
   /wp-content/themes/auriane-child/assets/css/poznaj-kamienie.css
   ============================================================ */

:root {
  --pk-serif:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --pk-sans:    'Montserrat', Arial, sans-serif;
  --pk-bg-hero: #f5f3f0;
  --pk-bg-sec:  #F3F1F0;
  --pk-text:    #1c1612;
  --pk-mid:     #4a3f35;
  --pk-light:   #6b5e52;
  --pk-btn:     #50301C;
  --pk-max:     1330px;
  --pk-pad:     16px;
  --gem-wa:     120px;
  --gem-ha:     118px;
  --gem-col:    140px;
  --o-size:     320px;
}

.pk-page { overflow-x: hidden; background: #fff; }
.pk-wrap {
  max-width: var(--pk-max);
  margin-inline: auto;
  padding-inline: var(--pk-pad);
  box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.pk-hero {
  position: relative;
  background-color: var(--pk-bg-hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 100px;
  padding-bottom: 72px;
}
.pk-hero:not(.pk-hero--has-bg) {
  background-image:
    radial-gradient(ellipse 110% 55% at 55% 25%, rgba(255,255,255,0.88) 0%, transparent 68%),
    radial-gradient(ellipse 70% 70% at 25% 65%,  rgba(210,205,198,0.45) 0%, transparent 60%);
}
.pk-hero__bg-overlay {
  position: absolute; inset: 0;
  background: rgba(245,243,240,0.72);
  pointer-events: none; z-index: 0;
}
.pk-hero .pk-wrap { position: relative; z-index: 1; }

/* Główny blok */
.pk-ring-hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Strzałki */
.pk-ring-hero__arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: transparent; border: none;
  cursor: pointer; padding: 0; color: #999;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
  margin-top: calc(var(--gem-ha) / 2);
  z-index: 2;
}
.pk-ring-hero__arrow svg   { width: 22px; height: 22px; }
.pk-ring-hero__arrow:hover { color: var(--pk-text); }

/* Centrum */
.pk-ring-hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 820px;
}

/* ── WIERSZ DIAMENTÓW ────────────────────────────────────── */
.pk-ring-hero__gems-row {
  width: 100%;
  height: calc(var(--gem-ha) + 8px);
  overflow: hidden;
  position: relative;
  z-index: 2;
  /* Fade boczny — sugeruje że slider się kręci */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
}

.pk-gems-track {
  display: flex;
  align-items: flex-end;
  height: 100%;
  /* JS ustawia transform: translateX i order na slotach */
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Każdy slot — stała szerokość, JS ustawia order */
.pk-gem-slot {
  flex-shrink: 0;
  flex-grow: 0;
  width: var(--gem-col);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  opacity: 0.45;
  /* opacity i scale lecą razem */
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.pk-gem-slot.slot-center { opacity: 1; }
.pk-gem-slot.slot-side1  { opacity: 0.82; }
.pk-gem-slot.slot-side2  { opacity: 0.55; }

/* Obrazek */
.pk-gem-slot__img {
  width: var(--gem-wa);
  height: var(--gem-ha);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.pk-gem-slot__img img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
  filter: none;
  transform: scale(0.72);
  transform-origin: bottom center;
  /* Zsynchronizowany z animacją tracka */
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.pk-gem-slot.slot-center .pk-gem-slot__img img {
  transform: scale(1);
}

/* Etykiety slotów — UKRYTE (usunięte z widoku) */
.pk-gem-slot__label {
  display: none;
}

/* ── PIERŚCIONEK O ───────────────────────────────────────── */
.pk-ring-hero__o {
  position: relative;
  width: var(--o-size); height: var(--o-size);
  margin-top: calc(var(--gem-ha) * -0.46);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 1; /* ZA diamentami */
}
.pk-ring-hero__o-img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  pointer-events: none;
}
.pk-ring-hero__o-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Nazwa w O — klikalny przycisk stylowany jak link */
.pk-ring-hero__name-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: transparent; border: none;
  padding: 6px 12px; cursor: pointer;
  font-family: var(--pk-serif);
  font-size: 1.5rem; font-weight: 400;
  color: var(--pk-btn);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.pk-ring-hero__name-btn span {
  display: block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s, opacity 0.3s, border-color 0.2s;
}
.pk-ring-hero__name-btn:hover span {
  color: var(--pk-text);
  border-bottom-color: var(--pk-text);
}

/* Tytuł i opis */
.pk-hero__text { text-align: center; max-width: 700px; margin: 44px auto 0; }
.pk-hero__title {
  font-family: var(--pk-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 400; line-height: 1.3;
  color: var(--pk-text); margin: 0 0 18px;
}
.pk-hero__desc {
  font-family: var(--pk-sans);
  font-size: 0.82rem; line-height: 1.9;
  color: var(--pk-light); margin: 0;
  max-width: 580px; margin-inline: auto;
}

/* ════════════════════════════════════════════════════════════
   SEKCJE KAMIENI
   ════════════════════════════════════════════════════════════ */
.pk-sections { background: #fff; padding: 40px var(--pk-pad); box-sizing: border-box; }
.pk-sections__inner { max-width: var(--pk-max); margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }

.pk-section {
  display: grid; grid-template-columns: 280px 1fr;
  align-items: center; background: var(--pk-bg-sec); min-height: 260px;
}
.pk-section__visual { display: flex; align-items: center; justify-content: center; padding: 40px 16px; align-self: stretch; }
.pk-section__o-wrap { position: relative; width: 210px; height: 250px; display: flex; align-items: flex-end; justify-content: center; }
.pk-section__diamond { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.pk-section__diamond img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 3px 12px rgba(0,0,0,0.14)); transition: transform 0.4s ease; }
.pk-section:hover .pk-section__diamond img { transform: translateY(-5px) scale(1.04); }
.pk-section__o-img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 175px; height: auto; object-fit: contain; opacity: 0.55; pointer-events: none; }
.pk-section__o-svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 175px; height: auto; opacity: 0.45; pointer-events: none; }

.pk-section__body { padding: 48px 64px 48px 24px; display: flex; flex-direction: column; gap: 14px; }
.pk-section__title { font-family: var(--pk-serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; color: var(--pk-text); margin: 0; line-height: 1.15; }
.pk-section__desc  { font-family: var(--pk-sans); font-size: 0.8rem; line-height: 1.9; color: var(--pk-mid); margin: 0; }

.pk-section__btn {
  display: inline-block; align-self: flex-start; margin-top: 10px;
  padding: 12px 26px; font-family: var(--pk-sans); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: #fff; background: var(--pk-btn); border: none; cursor: pointer;
  transition: background 0.22s;
}
.pk-section__btn:hover, .pk-section__btn.is-open { background: #3a2213; }

/* DRAWER */
.pk-drawer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1); background: #fff; margin-top: -20px; }
.pk-drawer.is-open { max-height: 640px; }
.pk-drawer__inner { padding: 28px 0 36px; border-top: 2px solid var(--pk-bg-sec); }
.pk-drawer__loading { text-align: center; font-family: var(--pk-sans); font-size: 0.8rem; color: var(--pk-light); padding: 24px; }
.pk-drawer__slider-wrap { display: flex; align-items: center; padding: 0 var(--pk-pad); max-width: var(--pk-max); margin-inline: auto; box-sizing: border-box; }
.pk-drawer__arrow { flex-shrink: 0; width: 38px; height: 38px; background: transparent; border: 1px solid #d0c8bf; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--pk-mid); padding: 0; transition: background 0.2s, color 0.2s; }
.pk-drawer__arrow:hover { background: var(--pk-btn); color: #fff; border-color: var(--pk-btn); }
.pk-drawer__arrow:disabled { opacity: 0.35; cursor: default; }
.pk-drawer__arrow svg { width: 16px; height: 16px; }
.pk-drawer__viewport { flex: 1; overflow: hidden; }
.pk-drawer__track { display: flex; list-style: none; margin: 0; padding: 0; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); will-change: transform; }

/* Karty produktów */
.pk-product-card { flex: 0 0 25%; box-sizing: border-box; padding: 0 10px; }
.pk-product-card__img-wrap { position: relative; background: #f8f7f5; aspect-ratio: 1/1; overflow: hidden; margin-bottom: 12px; display: block; }
.pk-product-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s; }
.pk-product-card__img-wrap img.pk-img-hover { position: absolute; inset: 0; opacity: 0; }
.pk-product-card__img-wrap:hover img.pk-img-main  { opacity: 0; }
.pk-product-card__img-wrap:hover img.pk-img-hover { opacity: 1; }
.pk-product-card__labels { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.pk-lbl { display: inline-block; padding: 2px 7px; font-family: var(--pk-sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.pk-lbl--sale { background: var(--pk-btn); }
.pk-lbl--featured { background: #b8903c; }
.pk-product-card__hover-btns { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; opacity: 0; transition: opacity 0.2s; z-index: 4; }
.pk-product-card__img-wrap:hover .pk-product-card__hover-btns { opacity: 1; }
.pk-product-card__wishlist { margin: 10px 10px 0 0; width: 32px; height: 32px; background: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--pk-mid); text-decoration: none; transition: color 0.2s; }
.pk-product-card__wishlist:hover { color: var(--pk-btn); }
.pk-product-card__add { width: 100%; padding: 10px; background: rgba(255,255,255,0.94); border: none; cursor: pointer; font-family: var(--pk-sans); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pk-text); text-align: center; text-decoration: none; display: block; transition: color 0.2s; }
.pk-product-card__add:hover { color: var(--pk-btn); }
.pk-product-card__cats { font-family: var(--pk-sans); font-size: 0.64rem; color: var(--pk-light); margin-bottom: 4px; }
.pk-product-card__cats a { color: inherit; text-decoration: none; }
.pk-product-card__cats a:hover { color: var(--pk-btn); }
.pk-product-card__title { font-family: var(--pk-sans); font-size: 0.82rem; font-weight: 600; color: var(--pk-text); margin: 0 0 6px; line-height: 1.3; }
.pk-product-card__title a { color: inherit; text-decoration: none; }
.pk-product-card__title a:hover { color: var(--pk-btn); }
.pk-product-card__price { font-family: var(--pk-sans); font-size: 0.86rem; font-weight: 700; color: var(--pk-text); line-height: 1.4; }
.pk-product-card__price del { font-weight: 400; font-size: 0.72rem; color: var(--pk-light); margin-right: 4px; }
.pk-product-card__price ins { text-decoration: none; color: #b03020; }

/* ════════════════════════════════════════════════════════════
   SEKCJA WSZYSTKICH KAMIENI (dół strony)
   ════════════════════════════════════════════════════════════ */
.pk-all-gems {
  background: #f9f9f9;
  padding: 48px var(--pk-pad) 64px;
  box-sizing: border-box;
}

/* Napis nad gridem */
.pk-all-gems__hint {
  text-align: center;
  font-family: var(--pk-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--pk-light);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.pk-all-gems__hint span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pk-all-gems__hint span::before,
.pk-all-gems__hint span::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.pk-all-gems__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  align-items: flex-end;
}

.pk-all-gem {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 8px 8px; background: transparent; border: none;
  cursor: pointer; width: 120px; transition: opacity 0.2s;
}
.pk-all-gem:hover { opacity: 0.78; }
.pk-all-gem__img { width: 80px; height: 72px; display: flex; align-items: flex-end; justify-content: center; }
.pk-all-gem__img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 7px rgba(0,0,0,0.13)); transition: transform 0.25s ease, filter 0.25s ease; }
.pk-all-gem:hover .pk-all-gem__img img { transform: translateY(-4px) scale(1.08); filter: drop-shadow(0 5px 14px rgba(0,0,0,0.20)); }
.pk-all-gem__label { font-family: var(--pk-sans); font-size: 0.66rem; color: var(--pk-light); text-align: center; white-space: nowrap; transition: color 0.2s; }
.pk-all-gem:hover .pk-all-gem__label { color: var(--pk-text); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --gem-col: 112px; --gem-wa: 96px; --gem-ha: 94px; --o-size: 270px; }
  .pk-section { grid-template-columns: 220px 1fr; }
  .pk-section__body { padding: 40px 40px 40px 16px; }
  .pk-product-card { flex: 0 0 33.333%; }
}
@media (max-width: 580px) {
  :root { --gem-col: 90px; --gem-wa: 82px; --gem-ha: 80px; --o-size: 230px; }
  .pk-hero { padding-top: 72px; }
  /* Na mobile: tylko 3 kamienie (ukryj slot-side2) */
  .pk-gem-slot.slot-side2 { opacity: 0 !important; pointer-events: none; }
  .pk-section { grid-template-columns: 1fr; }
  .pk-section__visual { padding: 36px 24px 8px; }
  .pk-section__o-wrap { width: 170px; height: 200px; }
  .pk-section__diamond { width: 90px; height: 90px; }
  .pk-section__o-img { width: 140px; }
  .pk-section__body { padding: 8px 28px 40px; text-align: center; align-items: center; }
  .pk-section__btn { align-self: center; }
  .pk-product-card { flex: 0 0 100%; }
  .pk-all-gem { width: 90px; }
  .pk-all-gem__img { width: 60px; height: 54px; }
}
