/* Cjenik usluga i proizvoda (/cjenik.html) */

.pl-hero { min-height: auto; padding: calc(var(--nav-h) + 8rem) 0 3.5rem; }
.pl-hero .svc-hero-subtitle { max-width: 760px; }

.pl-section { padding: 1rem 0 5rem; }
.pl-container { display: grid; gap: 1.5rem; }

.pl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.pl-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.pl-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem 1.5rem;
  margin: 0 0 1.25rem;
}
.pl-meta div { min-width: 0; }
.pl-meta dt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
}
.pl-meta dd { margin: .15rem 0 0; color: var(--text-primary); overflow-wrap: anywhere; }
.pl-meta a, .pl-file-list a, .pl-archive a { color: #c4b5fd; }

.pl-lead { margin: 0; color: var(--text-secondary); line-height: 1.65; max-width: 80ch; }

.pl-files p { margin: 0 0 1rem; color: var(--text-secondary); }
.pl-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pl-file-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.pl-file-list a { font-weight: 600; text-decoration: none; }
.pl-file-list a:hover { text-decoration: underline; }
.pl-file-list span { font-size: .8rem; color: var(--text-secondary); overflow-wrap: anywhere; }

.pl-archive { margin-top: 1.25rem; color: var(--text-secondary); font-size: .9rem; }
.pl-archive summary { cursor: pointer; color: var(--text-primary); }
.pl-archive ul { margin: .75rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.pl-archive li span { margin-left: .4rem; font-size: .8rem; }

.pl-part {
  margin: 1.5rem 0 0;
  padding: .85rem 1.1rem;
  font-family: var(--font-head);
  font-size: 1.45rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(6,182,212,.12));
  border: 1px solid rgba(124,58,237,.35);
}

.pl-group h3 {
  margin: 0 0 .75rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.pl-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,.015);
}
.pl-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pl-table th, .pl-table td {
  padding: .85rem .9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.pl-table tbody tr:last-child > * { border-bottom: 0; }
.pl-table thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}
.pl-table thead th span { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; }
.pl-table .pl-num { text-align: right; white-space: nowrap; }
.pl-table .pl-unit { white-space: nowrap; color: var(--text-secondary); }
.pl-table .pl-price { font-weight: 700; color: var(--text-primary); font-size: 1rem; }

.pl-name { font-weight: 400; min-width: 16rem; }
.pl-name strong { color: var(--text-primary); }
.pl-note { display: block; margin-top: .3rem; color: var(--text-secondary); font-size: .86rem; line-height: 1.5; }
.pl-code { display: block; margin-top: .3rem; color: var(--text-muted); font-size: .75rem; }
.pl-badge {
  display: inline-block;
  margin-left: .35rem;
  padding: .05rem .5rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(124,58,237,.18);
  border: 1px solid rgba(124,58,237,.35);
  vertical-align: middle;
}
.pl-ref, .pl-sale {
  display: block;
  margin-top: .25rem;
  font-size: .75rem;
  font-weight: 500;
  white-space: normal;
  color: var(--text-secondary);
  max-width: 14rem;
  margin-left: auto;
}
.pl-sale { color: var(--amber); }

.pl-notes ol { margin: 0; padding-left: 1.2rem; color: var(--text-secondary); display: grid; gap: .45rem; line-height: 1.6; }

/* Phones: every row becomes a card with labelled values */
@media (max-width: 720px) {
  .pl-card { padding: 1.15rem; }
  .pl-table-wrap { border: 0; background: none; overflow: visible; }
  .pl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pl-table, .pl-table tbody, .pl-table tr, .pl-table th, .pl-table td { display: block; width: 100%; }
  .pl-table tr {
    margin-bottom: .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.02);
    overflow: hidden;
  }
  .pl-table tbody tr:last-child > *, .pl-table th, .pl-table td { border-bottom: 1px solid var(--border); }
  .pl-table tr > *:last-child { border-bottom: 0; }
  .pl-name { min-width: 0; }
  .pl-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .15rem 1rem;
    text-align: right;
    padding: .6rem .9rem;
  }
  .pl-table td::before {
    content: attr(data-label);
    text-align: left;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: normal;
  }
  .pl-ref, .pl-sale { flex-basis: 100%; max-width: none; text-align: right; }
}

@media print {
  #header, #footer, .pl-hero .svc-hero-bg, .pl-hero .svc-hero-top, #chatbot-icon, #chatbot-container, #backToTop, .skip-link { display: none !important; }
  body, .pl-card, .pl-table-wrap, .pl-part { background: #fff !important; color: #000 !important; }
  .pl-hero { padding: 0; }
  .pl-card, .pl-table-wrap, .pl-table th, .pl-table td, .pl-part { border-color: #ccc !important; }
  .pl-note, .pl-ref, .pl-code, .pl-meta dt, .pl-lead, .pl-notes ol, .pl-table thead th, .pl-unit { color: #333 !important; }
  .pl-table tr { break-inside: avoid; }
  a { color: #000 !important; }
}
