/* ================================================
   СТРАНИЦА — ОСНОВА
================================================ */
.cenovnik-page {
    min-height: 100vh;
    background: var(--bela);
    display: flex;
    flex-direction: column;
}

/* ================================================
   ГОРЕН ДЕЛ — ЛОГО + НАСЛОВ + ФИЛТЕР
================================================ */
.cenovnik-top {
    background: var(--bela);
    padding: 2rem 2rem 0;
    text-align: center;
}

.cenovnik-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 1rem;
}

.cenovnik-logo img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--zlato);
    background: var(--bela);
    padding: 4px;
}

.cenovnik-logo-text .t1 {
    display: block;
    color: var(--crna);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1;
}

.cenovnik-logo-text .t2 {
    display: block;
    color: var(--zlato);
    font-size: 11px;
    letter-spacing: 6px;
}

.cenovnik-naslov {
    font-size: 24px;
    font-weight: 700;
    color: var(--crna);
    letter-spacing: 2px;
    margin: 0.5rem 0 1.5rem;
    text-transform: uppercase;
}

/* ================================================
   ФИЛТЕР БАР — ОБЈЕКТ, ПРЕБАРУВАЊЕ, 20/50, КОПЧЕ
================================================ */
.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
    padding: 1.25rem 2rem;
    background: var(--siva);
    border-top: 1px solid #eee;
    border-bottom: 2px solid var(--zlato);
}

.filter-grupa {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
}

.filter-grupa-small {
    flex: 0 0 160px;
    min-width: 160px;
}

.filter-grupa-btn {
    flex: 0 0 auto;
}

.filter-grupa select,
.filter-grupa input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: var(--tekst);
    background: var(--bela);
    outline: none;
    font-family: inherit;
    transition: border 0.2s;
    height: 44px;
}

.filter-grupa select:focus,
.filter-grupa input:focus {
    border-color: var(--zlato);
}

.filter-grupa-btn .btn-gold {
    height: 44px;
    padding: 0 28px;
    white-space: nowrap;
    font-family: inherit;
}

/* ================================================
   ТЕЛО — ТАБЕЛА И СОДРЖИНА
================================================ */
.cenovnik-body {
    padding: 1.5rem 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ================================================
   ЛЕНТА — АЖУРИРАЊЕ И ИНФОРМАЦИИ
================================================ */
.azuriranje {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--tekst-svetlo);
    padding: 10px 16px;
    background: var(--siva);
    border-left: 3px solid var(--zlato);
    margin-bottom: 1rem;
}

.azuriranje i {
    color: var(--zlato);
    margin-right: 5px;
}

.azuriranje strong {
    color: var(--tekst);
}

/* ================================================
   ТАБЕЛА
================================================ */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.cenovnik-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 900px;
}

.cenovnik-table thead tr:first-child {
    background: var(--crna);
    color: var(--bela);
}

.cenovnik-table .th-promo {
    background: #2a6e2a;
    text-align: center;
}

.cenovnik-table thead .thead-sub {
    background: #1a1a1a;
    color: #ccc;
}

.cenovnik-table thead th {
    padding: 11px 12px;
    text-align: left;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #333;
}

.cenovnik-table .thead-sub th {
    border-top: none;
    font-size: 11px;
    padding: 8px 12px;
}

.cenovnik-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}

.cenovnik-table tbody tr:hover {
    background: #fafafa;
}

.cenovnik-table tbody tr.nedostapen {
    background: #fff5f5;
}

.cenovnik-table tbody td {
    padding: 10px 12px;
    color: var(--tekst);
    vertical-align: middle;
    border: 1px solid #eee;
}

.cenovnik-table tbody tr.nedostapen td {
    color: #c0392b;
}

/* ================================================
   ЌЕЛИИ — ПОСЕБНИ СТИЛОВИ
================================================ */
.naziv-cell {
    font-weight: 600;
    min-width: 180px;
}

.cena-cell {
    white-space: nowrap;
}

.opis-cell {
    font-size: 12px;
    color: var(--tekst-svetlo);
}

.promo-cell {
    background: #f0fff0;
    text-align: center;
}

.stara-cena {
    text-decoration: line-through;
    color: var(--tekst-muted);
    font-size: 11px;
}

.promo-cena {
    color: #c0392b;
    font-weight: 700;
}

/* ================================================
   ЗНАЧКИ — ДОСТАПНОСТ
================================================ */
.badge-dostapen {
    background: #eaf3de;
    color: #3B6D11;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    white-space: nowrap;
}

.badge-nedostapen {
    background: #fcebeb;
    color: #A32D2D;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    white-space: nowrap;
}

/* ================================================
   ПАГИНАЦИЈА
================================================ */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    font-size: 13px;
    color: var(--tekst);
    background: var(--bela);
    text-decoration: none;
    transition: all 0.2s;
    min-width: 38px;
    text-align: center;
}

.page-btn:hover {
    border-color: var(--zlato);
    color: var(--zlato);
}

.page-btn.active {
    background: var(--zlato);
    border-color: var(--zlato);
    color: var(--crna);
    font-weight: 700;
}

/* ================================================
   ПОРАКИ — НЕМА РЕЗУЛТАТИ / ИЗБЕРИ ОБЈЕКТ
================================================ */
.nema-rezultati {
    text-align: center;
    padding: 3rem;
    color: var(--tekst-svetlo);
    font-size: 15px;
    background: var(--siva);
    border-left: 3px solid var(--zlato);
}

.izberi-objekt {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--tekst-muted);
}

.izberi-objekt i {
    font-size: 42px;
    color: var(--zlato);
    margin-bottom: 1rem;
    display: block;
}

.izberi-objekt p {
    font-size: 15px;
    letter-spacing: 1px;
}

/* ================================================
   RESPONSIVE — МОБИЛНИ УРЕДИ
================================================ */
@media (max-width: 768px) {
    .filter-bar {
        flex-wrap: wrap;
    }

    .filter-grupa,
    .filter-grupa-small,
    .filter-grupa-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .filter-grupa-btn .btn-gold {
        width: 100%;
    }

    .cenovnik-body {
        padding: 1rem;
    }

    .azuriranje {
        flex-direction: column;
        gap: 0.5rem;
    }
}