/* Globalno */
body {
    margin: 0;
    padding: 0;
    background: #111; /* fallback crna */
    background-image:
        url("photo/pozadina.png"),
        linear-gradient(to bottom, #111 0%, #222 40%, #111 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    color: #eee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}




/* Pozadinski gradient kao na slici */

.bg-wrapper{
    min-height: 100vh;
    display: flex;
    flex-direction: column;      /* BITNO */
    align-items: center;         /* centriraj sve */
    padding: 40px 10px;
}


/* Glavni panel (siva ploča) */

.page {
    width: 100%;
    max-width: 1100px;
    position: relative;

    /* stakleni / elitni izgled */
    background: rgba(12, 12, 12, 0.78);
  

    box-shadow:
        0 0 0 1px rgba(240,178,58,0.25) inset,
        0 18px 40px rgba(0, 0, 0, 0.85);

    backdrop-filter: blur(6px);

    /* unutrašnji razmak */
    padding: 18px 22px 22px;
    overflow: hidden;
}
.page::after{
    content:"";
    position:absolute;
    inset:-2px;
    border-radius: 14px;
    pointer-events:none;
    box-shadow: 0 0 22px rgba(240,178,58,0.18);
}



/* HEADER */

.header{
   width: 100%;
    max-width: 1100px;                /* isto kao .page */
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin: 0 0 16px 0;
    padding: 12px 18px;

    /* elitni glass + okvir */
    background: rgba(0,0,0,0.55);
   

    box-shadow:
        0 0 0 1px rgba(240,178,58,0.25) inset,
        0 12px 28px rgba(0,0,0,0.55);

    backdrop-filter: blur(8px);
}

.header{
    position: relative;
}

.header::after{
    content:"";
    position:absolute;
    inset:-2px;
    border-radius: 12px;
    pointer-events:none;
    box-shadow: 0 0 18px rgba(240,178,58,0.18);
}



.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo-icon{
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(240,178,58,0.9);


    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;              /* BITNO: da slika ne izlazi iz kruga */
}

/* SLIKA DA POPUNI CIJELI KRUG */
.logo-icon img{
    width: 100%;
    height: 100%;
    object-fit: cover;            /* POPUNJAVA CIJELI KRUG */
}

/* Tekst */
.logo-text{
    display:flex;
    flex-direction:column;
    line-height:1.05;
}

/* Glavni naziv */
.logo-main{
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #f0b23a;

    /* blagi sjaj */
    text-shadow: 0 0 6px rgba(240,178,58,0.35);
}

/* Podnaslov */
.logo-sub{
    font-size: 11px;
    color: #cfcfcf;
    opacity: 0.9;
}


.nav{
    display:flex;
    gap: 12px;
    align-items:center;
}

.nav-link{
    text-decoration:none;
    color:#e0e0e0;
    font-size:14px;
    padding: 8px 14px;
    border-radius: 999px;              /* pill */
    transition: all 0.15s ease;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.nav-link:hover{
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.10);
    color:#fff;
}

.nav-link.active{
    background: #f0b23a;
    color:#111;
    font-weight: 700;
    border-color: rgba(0,0,0,0.20);
    box-shadow: 0 8px 18px rgba(240,178,58,0.22);
}


/* HERO TEKST */

/* HERO – premium */
.hero{
    margin: 0 0 14px 0;
    padding: 18px 0 10px;
}

.hero h1{
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.12;
    color: #ffffff;

    /* suptilan glow da “udari” */
    text-shadow: 0 0 18px rgba(0,0,0,0.65);
}

.hero h1 span{
    color:  #f0b23a;
    text-shadow: 0 0 12px rgba(223, 212, 59, 0.25);
}

.hero-text{
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.78);
    max-width: 820px;
}
.hero{
    position: relative;
}

.hero::before{
    content:"";
    position:absolute;
    left:-22px;
    right:-22px;
    top:0;
    bottom:0;
    background: linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
    border-radius: 10px;
    pointer-events:none;
}
.hero > *{
    position: relative;
    z-index: 1;
}


/* LAYOUT – filteri lijevo, rezultati desno */

.content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    margin-top: 10px;
}

/* Paneli */

.panel{
    background: rgba(20,20,20,0.85);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}





.panel-title {
    font-size: 16px;
    color: #f0b23a;
    margin-bottom: 10px;
}

/* FILTER PANEL */

.field {
    margin-bottom: 12px;
    font-size: 13px;
    color: #ddd;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field span {
    font-weight: bold;
}

select,
input[type="number"],
input[type="text"] {
    background: #1f1f1f;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 4px 6px;
    color: #f5f5f5;
    font-size: 13px;
}

.radio-group label,
.checkbox-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
    cursor: pointer;
}

.radio-group input,
.checkbox-group input {
    margin-right: 4px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-inputs input {
    width: 45%;
}

.price-divider {
    font-size: 13px;
    color: #bbb;
}

/* Dugmad */

.btn {
    border: none;
    border-radius: 3px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
}

.btn-secondary {
    background: #555;
    color: #fff;
    margin-top: 5px;
}

.btn-secondary:hover {
    background: #777;
}

.btn-gold {
    background: #f0b23a;
    color: #222;
}

.btn-gold:hover {
    background: #ffd35e;
}

/* REZULTATI PANEL */

.results-panel {
    position: relative;
}

.info-line {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 6px;
}

/* Tabela */

/* TABELA – ELITNI STIL */

.results-panel{
    border-radius: 10px;
    background: rgba(18,18,18,0.88);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 16px 36px rgba(0,0,0,0.75);
}

/* linija ispod naslova */
.results-panel .panel-title{
    font-size: 16px;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 6px;
}

.results-panel .panel-title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width: 48px;
    height: 2px;
    background: linear-gradient(to right, #f0b23a, transparent);
}

/* omotač tabele */
.table-wrapper{
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
}

/* tabela */
.results-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

/* zaglavlje */
.results-table thead{
    background: linear-gradient(to bottom, #2f2f2f, #262626);
}

.results-table th{
    color: #f0b23a;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ćelije */
.results-table th,
.results-table td{
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

/* redovi */
.results-table tbody tr{
    transition: background 0.15s ease;
}

.results-table tbody tr:nth-child(odd){
    background: rgba(40,40,40,0.85);
}

.results-table tbody tr:nth-child(even){
    background: rgba(30,30,30,0.85);
}

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

/* ISTAKNI CIJENU (4. kolona) */
.results-table td:nth-child(4){
    color: #f0b23a;
    font-weight: 800;
}

/* LINK – kao dugme */
.results-table a{
    color: #ffd35e;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,211,94,0.35);
    transition: 0.15s ease;
}

.results-table a:hover{
    background: rgba(255,211,94,0.12);
    border-color: rgba(255,211,94,0.6);
}

/* Banner sa putem */

/* ===== BANNER (kao na slici) ===== */
.banner{
    margin-top: 12px;
    height: 135px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;

    /* da izgleda kao dio panela */
    background: rgba(20,20,20,0.75);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
}

/* put – centar */
.banner-road{
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.10)),
        url("photo/put.png"); /* tvoja slika puta */
    background-size: cover;
    background-position: center 75%;
    background-repeat: no-repeat;

    opacity: 0.95;
}

/* guma preko – lijevo (kao watermark/overlay) */
.banner-tire{
    position: absolute;

    /* pomjeraj ulijevo */
    left: -40px;
    bottom: -10px;

    /* VEĆA guma – srazmjerno putu */
    width: 300px;
    height: 300px;

    background-image: url("");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left bottom;

    opacity: 1;
    pointer-events: none;

    /* da izgleda nalegnuto na put */
    filter: drop-shadow(0 14px 28px rgba(0,0,0,0.9));

    z-index: 2;
}



/* malo “vignette” kao na slici */
.banner::after{
    content:"";
    position:absolute;
    inset:0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.0), rgba(0,0,0,0.45));
    pointer-events:none;
}

@media (max-width: 900px){
    .banner{ height: 120px; }
    .banner-tire{
        width: 180px;
        height: 180px;
        bottom: -25px;
    }
}





/* Featured ponude */

.featured {
    margin-top: 15px;
}

.featured h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #f0b23a;
}

.featured-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.featured-card {
    background: rgba(40,40,40,0.85);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.featured-header {
    font-size: 12px;
    color: #ffd35e;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

.featured-main {
    font-size: 13px;
    margin-bottom: 8px;
}

.featured-main strong {
    display: block;
    font-size: 18px;
    color: #f0b23a;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.badge-store {
    padding: 3px 6px;
    border-radius: 3px;
    background: #222;
    border: 1px solid #777;
}

/* Footer */

.footer {
    margin-top: 18px;
    font-size: 11px;
    text-align: center;
    color: #aaa;
}

/* =========================
   POVOLJNE PONUDE (FEATURED)
  
   ========================= */

/* =========================
   POVOLJNE PONUDE (FEATURED)
   ========================= */

.featured{
  margin-top: 18px;
}

.featured h3{
  font-size: 16px;
  letter-spacing: 0.2px;
  color: #f0b23a;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 6px;
}

.featured h3::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width: 46px;
  height: 2px;
  background: linear-gradient(to right, #f0b23a, transparent);
}

/* GRID (3 kartice u redu) */
.featured-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* KARTICA */
.featured-card{
  position: relative;
  overflow: hidden;
  border-radius: 12px;

  width: 100%;
  min-width: 0;

  background: rgba(20,20,20,0.88);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 30px rgba(0,0,0,0.75);

  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;

  /* prostor za sliku gore */
  padding-top: 95px;

  /* layout da footer može da legne dole */
  display: flex;
  flex-direction: column;
}

/* ISTA SLIKA GORE (za sve kartice) */
.featured-card::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 95px;
  background-image:
    linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.10)),
    url("photo/slika.guma.png");  /* <-- tvoja slika */
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 0.95;
  pointer-events:none;
}

/* Hover */
.featured-card:hover{
  transform: translateY(-2px);
  border-color: rgba(240,178,58,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.85);
}

/* ---------- JS STRUKTURA (header/main/footer) ---------- */

.featured-header{
  padding: 12px 12px 6px;
  font-size: 12px;
  color: rgba(255,211,94,0.95);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 800;
}

.featured-main{
  padding: 0 12px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.35;

  /* da zauzme prostor i gurne footer dole */
  flex: 1 1 auto;
}

.featured-main strong{
  display:block;
  font-size: 22px;
  color: #f0b23a;
  font-weight: 900;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

/* opis max 2 reda */
.featured-main > div{
  opacity: 0.95;
  overflow: hidden;

  line-height: 1.35em;     /* visina jednog reda */
  max-height: 2.7em;       /* 2 reda = 2 * 1.35em */
}


.featured-footer{
  padding: 10px 12px 12px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);

  /* zalijepi footer dole */
  margin-top: auto;
}

.featured-footer span{
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}

/* badge prodavnice */
.badge-store{
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  white-space: nowrap;
}

.featured-card a,
.featured-card button{
  background: #f0b23a;
  color: #111;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 8px;      /* malo manje za ujednačen look */
  padding: 6px 12px;       /* ← OVO smanjuje dugme */
  font-size: 13px;         /* da se poklopi sa ostalima */
  font-weight: 700;
  cursor: pointer;
  text-decoration:none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}


.featured-card a:hover,
.featured-card button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(240,178,58,0.25);
}

/* ---------- (Ako ti ostane stari HTML nekad) ---------- */
.featured-body{ padding: 12px; }

.featured-price{
  font-size: 22px;
  font-weight: 900;
  color: #f0b23a;
  margin-bottom: 6px;
}

.featured-desc{
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.35;
  margin-bottom: 10px;
}

.featured-meta{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.featured-btn{
  background: #f0b23a;
  color:#111;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 800;
  text-decoration:none;
  display:inline-block;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .featured-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .featured-cards{ grid-template-columns: 1fr; }
}
/* ===============================
   KAKO FUNKCIONIŠE – PREMIUM LOOK
================================= */

#kako-page .hero h1{
  letter-spacing: 0.6px;
  text-shadow: 0 12px 35px rgba(0,0,0,0.85);
}

#kako-page .hero span{
  text-shadow: 0 0 20px rgba(240,178,58,0.25);
}

/* panel oko kartica */
#kako-page .results-panel{
  border: 1px solid rgba(240,178,58,0.18);
  box-shadow:
    0 0 0 1px rgba(240,178,58,0.08) inset,
    0 26px 70px rgba(0,0,0,0.65);
}

/* naslov "Kako sistem funkcioniše" */
#kako-page .panel-title{
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

#kako-page .panel-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:80px;
  height:3px;
  border-radius:4px;
  background:#f0b23a;
  box-shadow: 0 0 18px rgba(240,178,58,0.35);
}

/* GRID */
.elite-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:20px;
  margin-top:10px;
}

/* KARTICE */
.elite-card{
  position:relative;
  border-radius:18px;
  padding:20px 18px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.35)
  );
  border:1px solid rgba(240,178,58,0.22);
  box-shadow:
    0 0 0 1px rgba(240,178,58,0.10) inset,
    0 20px 50px rgba(0,0,0,0.65);
  transition: all 0.18s ease;
  overflow:hidden;
}

/* zlatni glow ugao */
.elite-card::before{
  content:"";
  position:absolute;
  top:-60px;
  right:-60px;
  width:160px;
  height:160px;
  background: radial-gradient(circle, rgba(240,178,58,0.20), transparent 60%);
  pointer-events:none;
}

.elite-card:hover{
  transform: translateY(-4px);
  border-color: rgba(240,178,58,0.45);
  box-shadow:
    0 0 0 1px rgba(240,178,58,0.18) inset,
    0 30px 80px rgba(0,0,0,0.75);
}

/* BROJ */
.elite-badge{
  width:36px;
  height:36px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:15px;
  background: rgba(0,0,0,0.6);
  border:1px solid rgba(240,178,58,0.65);
  box-shadow: 0 0 22px rgba(240,178,58,0.18);
}

/* tekst */
.elite-card h3{
  margin:12px 0 8px;
  font-size:18px;
  font-weight:800;
  letter-spacing:0.3px;
}

.elite-card p{
  margin:0;
  font-size:15px;
  line-height:1.45;
  opacity:0.92;
}

/* responsive */
@media (max-width: 980px){
  .elite-grid{
    grid-template-columns: 1fr;
  }
}
/* ===== KAKO FUNKCIONIŠE – FULL WIDTH FIX ===== */

#kako-page .content {
  display: block;        /* gasi flex */
}

#kako-page .results-panel {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;        /* centriraj */
}
.hero-badges {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badges span {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #f0b23a;
    background: rgba(240,178,58,0.08);
    border: 1px solid rgba(240,178,58,0.35);
    backdrop-filter: blur(6px);
    letter-spacing: 0.3px;
}
/* ===== PRODAVNICE – FULL WIDTH FIX ===== */
/* ===== PRODAVNICE – ELITNI LOOK ===== */

#prodavnice-page .content{
  display:block; /* da ne vuče flex sa početne */
}

.shop-list{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top: 10px;
}

.shop-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;

  padding:18px;
  border-radius:18px;

  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
  border: 1px solid rgba(240,178,58,0.20);

  box-shadow:
    0 0 0 1px rgba(240,178,58,0.10) inset,
    0 22px 60px rgba(0,0,0,0.68);

  position:relative;
  overflow:hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.shop-card::before{
  content:"";
  position:absolute;
  top:-70px;
  right:-70px;
  width:200px;
  height:200px;
  background: radial-gradient(circle, rgba(240,178,58,0.18), transparent 60%);
  pointer-events:none;
}

.shop-card:hover{
  transform: translateY(-3px);
  border-color: rgba(240,178,58,0.40);
  box-shadow:
    0 0 0 1px rgba(240,178,58,0.15) inset,
    0 30px 85px rgba(0,0,0,0.78);
}

.shop-left{
  display:flex;
  align-items:flex-start;
  gap:16px;
  flex:1;
}

.shop-logo-img{
  width:70px;
  height:70px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(240,178,58,0.40);
  box-shadow: 0 0 24px rgba(240,178,58,0.12);
  overflow:hidden;
}

.shop-logo-img img{
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.65));
}

.shop-info h3{
  margin:0 0 8px 0;
  font-size:20px;
  font-weight:900;
  letter-spacing:0.2px;
}

.shop-info p{
  margin:0;
  opacity:0.92;
  line-height:1.45;
  max-width: 780px;
}

.shop-tags{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.shop-tags span{
  padding:6px 12px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #f0b23a;
  background: rgba(240,178,58,0.08);
  border: 1px solid rgba(240,178,58,0.32);
  backdrop-filter: blur(6px);
}

.shop-actions{
  min-width: 170px;
  display:flex;
  justify-content:flex-end;
}

/* responsive */
@media (max-width: 980px){
  .shop-card{
    flex-direction: column;
    align-items: flex-start;
  }
  .shop-actions{
    width:100%;
    justify-content:flex-start;
  }
  .shop-info p{
    max-width: 100%;
  }
}
/* --- MOBILNA OPTIMIZACIJA --- */

/* Sakrij dugme na desktopu */
.mobile-only { display: none; }

@media (max-width: 768px) {
    .mobile-only { display: block; width: 100%; margin-bottom: 15px; padding: 12px; font-size: 16px; }

    /* 1. Pretvaranje Sidebara u 'Popup' meni */
    .filters-panel {
        position: fixed;
        left: -100%; /* Sakriveno lijevo */
        top: 0;
        width: 80%;
        height: 100%;
        z-index: 1000;
        background: #1a1a1a;
        transition: 0.3s;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    .filters-panel.active { left: 0; } /* Prikazano */

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 999;
    }
    .filter-overlay.active { display: block; }

    /* 2. Pretvaranje TABELE u KARTICE (Cards) */
    .results-table thead { display: none; } /* Sakrij zaglavlje tabele */

    .results-table, .results-table tbody, .results-table tr, .results-table td {
        display: block;
        width: 100%;
    }

    .results-table tr {
        background: #262626;
        margin-bottom: 15px;
        border-radius: 8px;
        padding: 10px;
        border: 1px solid #333;
    }

    .results-table td {
        text-align: right;
        padding: 8px 5px;
        position: relative;
        border: none;
        font-size: 14px;
    }

    /* Dodajemo naziv kolone ispred podatka */
    .results-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 5px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #ffc107;
    }

    /* Zadnja kolona (dugme) da bude centrirana */
    .results-table td:last-child {
        text-align: center;
        margin-top: 10px;
    }
    .results-table td:last-child::before { content: ""; }
    
    .btn-table {
        width: 100%;
        display: block;
        padding: 10px;
    }
}

/* Centriranje panela na Kontakt stranici */
#kontakt-page .content {
    display: flex;
    justify-content: center; /* Centrira horizontalno */
    align-items: center;     /* Centrira vertikalno */
    width: 100%;
    max-width: 100%;         /* Da ne preuzme max-width sa početne */
}

#kontakt-page .results-panel {
    margin: 0 auto;          /* Dodatna sigurnost za centriranje */
    flex: 0 1 600px;         /* Ne dozvoljava mu da se raširi preko 600px */
}


/* ===================================
   GLOBAL RESPONSIVE SYSTEM
=================================== */

@media (max-width: 1024px){

  .content{
    grid-template-columns: 1fr;   /* sidebar ide gore */
  }

  .filters-panel{
    order: -1;   /* filter ide iznad rezultata */
  }

}

@media (max-width: 768px){

  body{
    font-size: 15px;
  }

  .bg-wrapper{
    padding: 20px 10px;
  }

  .header{
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .nav{
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero h1{
    font-size: 22px;
  }

  .hero-text{
    font-size: 14px;
  }

  .panel{
    padding: 14px;
  }

  /* Featured kartice */
  .featured-cards{
    grid-template-columns: 1fr;
  }

  /* Elite grid */
  .elite-grid{
    grid-template-columns: 1fr;
  }

  /* Shop kartice */
  .shop-card{
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-actions{
    width: 100%;
    justify-content: flex-start;
    margin-top: 12px;
  }

}












/* =============================
   MOBILE FIX – FULL WIDTH
============================= */

@media (max-width: 768px){

  .page{
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  .header{
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bg-wrapper{
    padding: 15px 10px;
  }

  .content{
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px){
  .nav{
    flex-wrap: wrap;
  }
}
