/* ============================================================
   CJENIK — fan shop + bazne cijene (tpl-cjenik.php)
   Zaseban stil, učitava se samo na stranici cjenika.
   ============================================================ */
.cjenik-page__lead {
  color: #EAF1FB;
  opacity: .8;
  font-size: 17px;
  margin: 14px 0 0;
}

.cjenik-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 26px;
}

.cjenik-page__csv {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #008232;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s;
}

.cjenik-page__csv:hover,
.cjenik-page__csv:focus-visible {
  background: #4FCA7E;
  color: #0A1422;
}

.cjenik-page__vat {
  color: #8195B4;
  font-size: 14px;
}

.cjenik-page__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.cjenik-page__toc a {
  padding: 8px 14px;
  border: 1px solid #1D3354;
  border-radius: 999px;
  color: #EAF1FB;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.cjenik-page__toc a:hover,
.cjenik-page__toc a:focus-visible {
  border-color: #4FCA7E;
  color: #4FCA7E;
}

.cjenik-cat {
  margin-bottom: 44px;
  scroll-margin-top: 110px;
}

.cjenik-cat__title {
  font-family: 'MADE Tommy', 'Chillax', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  margin: 0 0 6px;
}

.cjenik-cat__opis {
  color: #8195B4;
  font-size: 15px;
  margin: 0 0 16px;
}

.cjenik-cat__pdv {
  color: #8195B4;
  font-size: 14px;
  margin: 12px 0 0;
}

.cjenik-table {
  width: 100%;
  border-collapse: collapse;
  background: #14233D;
  border: 1px solid #1D3354;
  border-radius: 14px;
  overflow: hidden;
  color: #EAF1FB;
  font-size: 16px;
}

.cjenik-table th,
.cjenik-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid #1D3354;
  vertical-align: middle;
}

.cjenik-table tbody tr:last-child th,
.cjenik-table tbody tr:last-child td {
  border-bottom: 0;
}

.cjenik-table thead th {
  background: #0E1C32;
  color: #8195B4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cjenik-table tbody th {
  font-weight: 600;
  color: #fff;
}

.cjenik-table .is-num {
  text-align: right;
  white-space: nowrap;
  font-family: 'Oswald', sans-serif;
  font-variant-numeric: tabular-nums;
}

.cjenik-table__cijena {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.cjenik-table__bazna {
  color: #B9C7DC;
}

.cjenik-table__bazna-datum {
  color: #8195B4;
  margin-right: 4px;
}

.cjenik-table__akcija {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(79, 202, 126, .16);
  color: #4FCA7E;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
}

.cjenik-table tbody tr:hover {
  background: rgba(255, 255, 255, .03);
}

.cjenik-page__notes {
  margin-top: 28px;
  color: #B9C7DC;
  font-size: 15px;
  line-height: 1.6;
}

.cjenik-page__notes p {
  color: #B9C7DC;
  margin: 0 0 10px;
}

.cjenik-page__notes strong {
  color: #fff;
}

.cjenik-page__notes a {
  color: #4FCA7E;
  word-break: break-all;
}

.cjenik-page__notes ul {
  margin: 0;
  padding-left: 20px;
}

/* Mobitel — redovi postaju kartice */
@media only screen and (max-width: 640px) {
  .cjenik-table,
  .cjenik-table tbody,
  .cjenik-table tr,
  .cjenik-table th,
  .cjenik-table td {
    display: block;
  }

  .cjenik-table {
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .cjenik-table thead {
    display: none;
  }

  .cjenik-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #14233D;
    border: 1px solid #1D3354;
    border-radius: 12px;
  }

  .cjenik-table th,
  .cjenik-table td {
    padding: 0;
    border: 0;
  }

  .cjenik-table tbody th {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .cjenik-table td[data-label="Jed. mj."] {
    display: none;
  }

  .cjenik-table__cijena {
    grid-column: 2;
    grid-row: 1;
  }

  .cjenik-table__bazna {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left !important;
    font-size: 13px;
  }

  .cjenik-table__bazna::before {
    content: "Bazna cijena ";
    color: #8195B4;
    font-family: 'MADE Tommy', 'Chillax', sans-serif;
  }
}
