/* Cjenik — Price tables, premium v2.
   Each .pc-group renders as a richly framed card with:
     · Large Fraunces italic ghost-number floating behind the head
       (CSS counter, no markup change required)
     · Centered head with eyebrow + Fraunces title + intro
     · Card body with subtle gradient + sage corner ornament + depth
     · Price rows with Fraunces italic numerals for premium feel
     · Sized 3-tile grids with dramatic serif pricing
     · Mint legend for wound sizes, callout notes, and a final
       disclaimer that anchors the whole section. */

.pc-tables{
  position:relative;
  /* clip (not hidden) keeps the decorative orbs contained without creating
     a scroll container, which would break the sticky jump nav inside. */
  overflow:hidden;
  overflow:clip;
  background:var(--cream);
  padding:30px 0 100px;
  counter-reset:pcgroup;
}

/* Soft sage glow in the top-right corner. */
.pc-tables::before{
  content:"";
  position:absolute;
  top:-180px;right:-220px;
  width:520px;height:520px;
  border-radius:50%;
  background:radial-gradient(circle, var(--mint-50), transparent 70%);
  opacity:.7;
  pointer-events:none;
}
/* Faint mint orb in the bottom-left for visual rhythm. */
.pc-tables::after{
  content:"";
  position:absolute;
  bottom:-200px;left:-180px;
  width:440px;height:440px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(94,155,148,.15), transparent 72%);
  pointer-events:none;
}

.pc-tables .wrap{position:relative;z-index:1}

/* --- Sticky jump-to-category nav (markup at the top of tables.php) ---- */
.pc-jump{
  position:sticky;
  top:88px;                /* fixed 80px header + breathing room; mirrored in cjenik.js */
  z-index:60;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  max-width:960px;
  margin:0 auto 56px;
  padding:8px;
  border-radius:28px;
  transition:background .28s ease, box-shadow .28s ease;
}
/* Frosted backdrop appears only while the bar is pinned, so content
   scrolling underneath stays readable. */
.pc-jump.is-stuck{
  background:rgba(243,237,225,.92);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 16px 36px -24px rgba(10,42,39,.35);
}
.pc-jump-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 18px 11px 12px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
  font-family:"Hanken Grotesk",sans-serif;
  font-size:.88rem;font-weight:600;
  color:var(--pine);
  text-decoration:none;
  transition:background .22s ease, border-color .22s ease, color .22s ease, transform .2s ease;
}
.pc-jump-pill:hover{
  background:var(--mint-50);
  border-color:var(--mint);
  color:var(--teal);
  transform:translateY(-2px);
}
.pc-jump-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;
  border-radius:50%;
  background:var(--mint-50);
  color:var(--teal);
  font-size:.74rem;font-weight:800;
  letter-spacing:.02em;
  flex:none;
}
.pc-jump-pill:hover .pc-jump-num{
  background:var(--teal);color:#fff;
}
/* Scrollspy highlight — the group currently in view. */
.pc-jump-pill.is-active{
  background:var(--teal);
  border-color:var(--teal);
  color:#fff;
}
.pc-jump-pill.is-active .pc-jump-num{
  background:rgba(255,255,255,.18);
  color:#fff;
}

/* --- Group (one per category) ----------------------------------------- */
.pc-group{
  max-width:960px;
  margin:0 auto 88px;
  position:relative;
  counter-increment:pcgroup;
  /* Adds to the global scroll-padding-top so anchored groups land
     below the pinned jump nav instead of underneath it. */
  scroll-margin-top:72px;
}
.pc-group:last-of-type{margin-bottom:56px}

/* Centered head with a giant Fraunces italic ghost number behind it. */
.pc-group-head{
  text-align:center;
  max-width:680px;
  margin:0 auto 38px;
  position:relative;
  padding-top:50px;
}
.pc-group-head::before{
  content:counter(pcgroup, decimal-leading-zero);
  position:absolute;
  top:-10px;left:50%;
  transform:translateX(-50%);
  font-family:"Fraunces",serif;
  font-style:italic;
  font-weight:300;
  font-size:clamp(5.5rem, 9vw, 8rem);
  line-height:1;
  letter-spacing:-.04em;
  color:rgba(94,155,148,.13);
  pointer-events:none;
  user-select:none;
  z-index:0;
}
.pc-group-head > *{position:relative;z-index:1}

.pc-group-head .eyebrow{
  display:inline-flex;
  align-items:center;
  font-family:"Hanken Grotesk",sans-serif;
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--sage);
}
.pc-group-head .eyebrow::before,
.pc-group-head .eyebrow::after{
  content:"";
  display:inline-block;
  width:26px;height:1.5px;
  background:var(--sage);
  margin:0 12px;
}
.pc-group-head h2{
  font-family:"Fraunces",serif;
  font-size:clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight:300;
  color:var(--pine);
  margin:14px 0 12px;
  line-height:1.14;
  letter-spacing:-.018em;
}
.pc-group-head h2 em{color:var(--teal);font-weight:400;font-style:italic}
.pc-group-head p{
  color:var(--ink-soft);
  font-size:1rem;
  line-height:1.6;
  margin:0 auto;
  max-width:54ch;
}

/* --- Card (holds the list + subtitles) -------------------------------- */
.pc-card{
  position:relative;
  background:linear-gradient(168deg, var(--paper) 0%, #f9f4e7 100%);
  border:1px solid var(--line);
  border-radius:24px;
  padding:38px 42px 36px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 36px 70px -42px rgba(10,42,39,.22),
    0 8px 20px -14px rgba(10,42,39,.08);
  overflow:hidden;
}
/* Decorative sage quadrant in the top-right corner. */
.pc-card::before{
  content:"";
  position:absolute;
  top:-90px;right:-90px;
  width:220px;height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(94,155,148,.12), transparent 70%);
  pointer-events:none;
}
/* Sage accent rail down the left edge. */
.pc-card::after{
  content:"";
  position:absolute;
  top:40px;bottom:40px;left:0;
  width:3px;
  background:linear-gradient(180deg, var(--sage-300), var(--mint));
  border-radius:0 3px 3px 0;
}

.pc-card-subtitle{
  position:relative;
  font-family:"Fraunces",serif;
  font-size:1.22rem;
  font-weight:400;
  color:var(--pine);
  margin:32px 0 14px;
  padding-bottom:12px;
  letter-spacing:-.008em;
}
/* Two-tone underline accent on each subtitle. */
.pc-card-subtitle::after{
  content:"";
  position:absolute;
  left:0;bottom:0;
  width:48px;height:2px;
  background:linear-gradient(90deg, var(--teal), var(--sage-300));
  border-radius:2px;
}
.pc-card-subtitle:first-child{margin-top:0}

.pc-card-note{
  margin:-6px 0 16px;
  font-size:.9rem;
  color:var(--ink-soft);
  line-height:1.55;
  font-style:italic;
}

/* --- List of rows ----------------------------------------------------- */
.pc-list{
  list-style:none;
  padding:0;margin:0 0 8px;
}
.pc-list--compact .pc-row{padding:11px 0}

.pc-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 14px 14px 14px;
  margin:0 -14px;
  border-radius:10px;
  border-bottom:1px solid var(--line);
  font-family:"Hanken Grotesk",sans-serif;
  transition:background .22s ease;
}
/* Cancel bottom border on the last row so the list doesn't look "cut". */
.pc-list .pc-row:last-child{border-bottom:none}

/* Hover highlight — soft cream tint so the row being read stands out. */
.pc-row:hover{
  background:rgba(207,226,221,.18);
}

.pc-row-name{
  flex:1 1 auto;
  font-size:.98rem;
  font-weight:500;
  color:var(--pine);
  line-height:1.48;
}
.pc-row-name b{font-weight:700}

.pc-row-tag{
  display:inline-block;
  margin-left:8px;
  padding:3px 10px;
  border-radius:999px;
  background:var(--mint-50);
  color:var(--teal);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.04em;
  vertical-align:1px;
  white-space:nowrap;
}

/* Premium price — Fraunces italic numerals, no heavy pill. */
.pc-row-price{
  flex:none;
  display:inline-flex;
  align-items:baseline;
  justify-content:flex-end;
  min-width:96px;
  font-family:"Fraunces",serif;
  font-style:italic;
  font-weight:400;
  font-size:1.45rem;
  letter-spacing:-.015em;
  color:var(--teal);
  font-variant-numeric:tabular-nums;
  line-height:1;
}

/* Feature row — promoted item with a soft tinted background. */
.pc-row--feature{
  background:linear-gradient(180deg, rgba(207,226,221,.42), rgba(207,226,221,.18));
  margin:8px -14px;
  padding:18px 18px;
  border-radius:14px;
  border-bottom:1px solid transparent !important;
  position:relative;
}
.pc-row--feature::before{
  content:"";
  position:absolute;
  top:0;bottom:0;left:0;
  width:3px;
  background:var(--teal);
  border-radius:0 3px 3px 0;
}
.pc-row--feature:hover{
  background:linear-gradient(180deg, rgba(207,226,221,.55), rgba(207,226,221,.25));
}
.pc-row--feature .pc-row-price{
  color:var(--pine);
  font-weight:500;
}

/* --- Split row (mala + velika prices side by side) -------------------- */
.pc-row--split{align-items:center}
.pc-row-split{
  flex:none;
  display:grid;
  grid-template-columns:repeat(2, minmax(96px,1fr));
  gap:10px;
}
.pc-split-cell{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  background:var(--mint-50);
  border:1px solid rgba(94,155,148,.18);
  color:var(--teal);
  line-height:1.1;
  min-width:96px;
  transition:background .22s ease, transform .22s ease;
}
.pc-split-cell:hover{
  transform:translateY(-2px);
}
.pc-split-cell b{
  font-family:"Hanken Grotesk",sans-serif;
  font-style:normal;
  font-size:.66rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--sage);
  margin-bottom:5px;
}
.pc-split-cell span{
  font-family:"Fraunces",serif;
  font-style:italic;
  font-weight:400;
  font-size:1.25rem;
  letter-spacing:-.01em;
  color:var(--teal);
  font-variant-numeric:tabular-nums;
}

/* Differentiate mala vs velika so the eye can scan. */
.pc-split-cell:nth-child(2){
  background:rgba(94,155,148,.22);
  border-color:rgba(94,155,148,.3);
}

/* --- Sized 3-tile grid (do 2cm / 2-4cm / >4cm) ------------------------ */
.pc-sized{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:8px 0 26px;
}
.pc-size-cell{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:22px 16px;
  border-radius:16px;
  background:linear-gradient(180deg, var(--mint-50), rgba(207,226,221,.35));
  border:1px solid var(--mint);
  text-align:center;
  font-family:"Hanken Grotesk",sans-serif;
  position:relative;
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pc-size-cell::after{
  content:"";
  position:absolute;
  top:-30px;right:-30px;
  width:80px;height:80px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(94,155,148,.18), transparent 70%);
  pointer-events:none;
}
.pc-size-cell:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 36px -22px rgba(31,91,84,.32);
  border-color:var(--sage-300);
}
.pc-size-label{
  font-size:.76rem;font-weight:700;
  color:var(--sage);
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:10px;
}
.pc-size-price{
  font-family:"Fraunces",serif;
  font-style:italic;
  font-size:1.85rem;
  font-weight:400;
  color:var(--teal);
  font-variant-numeric:tabular-nums;
  letter-spacing:-.02em;
  line-height:1;
}

/* --- Legend (mala / velika rana definition) --------------------------- */
.pc-legend{
  display:flex;flex-wrap:wrap;gap:14px;
  margin:0 0 24px;
  padding:14px 18px;
  background:linear-gradient(180deg, rgba(94,155,148,.08), rgba(94,155,148,.02));
  border-radius:14px;
  border:1px dashed rgba(94,155,148,.32);
}
.pc-legend-pill{
  display:inline-flex;align-items:center;gap:10px;
  font-family:"Hanken Grotesk",sans-serif;
  font-size:.86rem;font-weight:700;
  color:var(--pine);
}
.pc-legend-pill small{
  font-weight:500;
  color:var(--ink-soft);
  margin-left:4px;
}
.pc-legend-pill .dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--sage-300);
  box-shadow:0 0 0 3px rgba(156,196,189,.32);
}
.pc-legend-pill--velika .dot{
  background:var(--teal);
  box-shadow:0 0 0 3px rgba(31,91,84,.24);
}

/* --- Inline note callout inside a card (e.g. "po dogovoru") ----------- */
.pc-note{
  display:flex;align-items:flex-start;gap:16px;
  margin-top:28px;
  padding:18px 20px;
  background:linear-gradient(180deg, rgba(94,155,148,.12), rgba(94,155,148,.04));
  border:1px solid rgba(94,155,148,.22);
  border-radius:14px;
}
.pc-note svg{
  width:24px;height:24px;
  color:var(--teal);
  flex:none;margin-top:1px;
}
.pc-note b{
  display:block;
  font-family:"Hanken Grotesk",sans-serif;
  font-size:.96rem;font-weight:700;
  color:var(--pine);
  margin-bottom:3px;
}
.pc-note span{
  display:block;
  font-size:.9rem;
  color:var(--ink-soft);
  line-height:1.55;
}

/* --- Global closing disclaimer ---------------------------------------- */
.pc-disclaimer{
  max-width:960px;
  margin:8px auto 0;
  display:flex;align-items:flex-start;gap:20px;
  padding:28px 32px;
  background:linear-gradient(168deg, var(--paper) 0%, #f9f4e7 100%);
  border:1px solid var(--line);
  border-left:4px solid var(--teal);
  border-radius:20px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 22px 50px -36px rgba(10,42,39,.22);
}
.pc-disclaimer-ic{
  width:48px;height:48px;
  border-radius:14px;
  background:var(--mint-50);
  color:var(--teal);
  flex:none;
  position:relative;
}
.pc-disclaimer-ic svg{
  position:absolute;top:50%;left:50%;
  width:24px;height:24px;
  transform:translate(-50%,-50%);
}
.pc-disclaimer-body b{
  display:block;
  font-family:"Fraunces",serif;
  font-size:1.15rem;
  font-weight:400;
  color:var(--pine);
  margin-bottom:6px;
  letter-spacing:-.005em;
}
.pc-disclaimer-body p{
  margin:0;
  font-size:.95rem;
  line-height:1.62;
  color:var(--ink-soft);
}

/* --- Responsive ------------------------------------------------------- */
@media(max-width:640px){
  /* One scrollable row instead of wrapping — keeps the pinned bar a
     constant height; cjenik.js centres the active pill in view. */
  .pc-jump{
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    margin-bottom:44px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .pc-jump::-webkit-scrollbar{display:none}
  .pc-jump-pill{flex:none;font-size:.82rem;padding:9px 14px 9px 10px}
}
@media(max-width:760px){
  .pc-group{margin-bottom:64px}
  .pc-group-head{padding-top:42px}
  .pc-group-head::before{font-size:5.5rem;top:-6px}

  .pc-card{padding:28px 24px 26px;border-radius:20px}

  .pc-row{
    flex-wrap:wrap;
    gap:10px;
    padding:14px 12px;
    margin:0 -12px;
  }
  .pc-row-name{flex:1 1 100%}
  .pc-row-price{
    min-width:0;
    font-size:1.3rem;
    justify-content:flex-start;
  }
  .pc-row--feature{margin:8px -10px;padding:14px 12px}

  .pc-row-split{
    width:100%;
    grid-template-columns:repeat(2,1fr);
  }
  .pc-sized{grid-template-columns:repeat(3,1fr);gap:8px}
  .pc-size-cell{padding:16px 8px}
  .pc-size-price{font-size:1.5rem}
  .pc-size-label{font-size:.7rem;margin-bottom:6px}

  .pc-legend{flex-direction:column;align-items:flex-start;gap:10px}

  .pc-disclaimer{
    flex-direction:column;
    gap:16px;
    padding:22px 22px;
  }
}
@media(max-width:480px){
  .pc-group-head::before{font-size:4.5rem}
  .pc-card{padding:22px 18px}
  .pc-card-subtitle{font-size:1.08rem}
  .pc-row-name{font-size:.92rem}
  .pc-row-price{font-size:1.2rem}
  .pc-sized{grid-template-columns:1fr;gap:10px}
  .pc-size-cell{flex-direction:row;justify-content:space-between;padding:14px 18px}
  .pc-size-label{margin-bottom:0;font-size:.74rem}
  .pc-size-price{font-size:1.35rem}
}
