* {
    margin: 0;
    padding: 0;
    /*font-family: Arial, Helvetica, sans-serif;*/
    /*font-family:Comic Sans MS, Comic Sans, cursive;*/
    font-family: Roboto,sans-serif;
}
a:link, a:visited {
  text-decoration: none;
}
a {
    text-decoration: none;
}
a:hover {
  color: #4ecb6b;
}

.pre-header {
    background-color: #ffffff;
    height: 100px;
    color: #fff;
    font-size: 15px;
    padding-top: 10px;
}

.pre-header .main-menu {
    list-style: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.pre-header .main-menu li {
    display: inline-block;
}
.pre-header .main-menu li a  {
    color: #191919;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.pre-header .main-menu li a:hover {
    color: #ca0030;
}
.hamburger-hidden {
    visibility:hidden;
}
/****************************************/
.body-tab {
    background-color:#fbfbfb;
}
.slajder {
    padding-bottom: 10px;
}

.proizvodi {
    border-top: 1px solid #f9f9f9;
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-uvod {
    background: linear-gradient(135deg, #1e3c2f, #2a5d44);
    padding: 40px 40px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.hero-uvod h3 {
    font-size: 32px;
    margin-bottom: 13px;
}

.hero-uvod p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #f1f1f1;
}

.hero-uvod .hero-quote {
    margin-top: 20px;
    font-size: 18px;
    color: #8de479;
}

@media (max-width: 768px) {
    .hero-uvod {
        padding: 22px 18px;
        border-radius: 16px;
        text-align: left;
        background: linear-gradient(160deg, #1e3c2f, #2f6f52);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .hero-uvod h3 {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .hero-uvod p {
        font-size: 11px;
        line-height: 1.6;
        margin-bottom: 10px;
        color: #e8f5ec;
    }

    .hero-uvod b {
        color: #b6f5c8;
        font-weight: 600;
    }

    .hero-uvod .hero-quote {
        margin-top: 16px;
        font-size: 11px;
        padding: 12px 14px;
        border-left: 3px solid #8de479;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        color: #a8f0b8;
    }
}

.artikal {
    width:100%;
    padding: 3px;
    border: 1px solid #dadada;
    margin-bottom:15px;
}
.artikal:hover {
  cursor: pointer;
}
.artikal .naziv {    
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;

    padding-top:10px;
    min-height: 80px;
    font-size: 14px;
    text-transform: uppercase;
    color: #292929;
}
.artikal .naziv a,a:link {
  color: #292929;
}
.artikal .naziv a:hover {
  color: #ca0030;
  transition: all .2s ease-out;
}
.artikal .cijena {
    font-size: 15px;
    color: #fff;
    background-color: #ca0030;
    border-top: 1px solid #f1f1f1;
}
.artikal .napomena {
    position: absolute;
}
.artikal .napomena a{
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
    background-color: #ca0030;
    text-decoration: none;
    color: #fff;
}
.artikal .napomena a:hover {
    background-color: #000;
    transition: 1s ease;
}
/****************************************/
.footer {
    background-color: #101010;
    color: #b1aaaa;
    font-size: 15px;
    padding: 20px 20px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-col {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
}

/*.footer-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}*/

.footer-col h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.footer-col p {
    color: #b1aaaa;
    line-height: 1.5;
    margin-bottom: 10px;
}

.footer-col b, 
.footer-col strong {
    color: #8de479; /* bold tekst u zeleno */
    font-weight: bold; /* osigurava da je bold */
}




.social-links {
    display: flex;
    justify-content: center; /* centrirano */
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* razmak između ikonice i teksta */
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.social-icon i {
    font-size: 18px;
}

/* Instagram boja */
.social-icon.insta {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.social-icon.insta:hover {
    background: linear-gradient(45deg, #dd2a7b, #8134af, #515bd4, #f58529);
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    color: #fff;
}


/* Facebook boja */
.social-icon.fb {
    background-color: #1877F2;
}

.social-icon.fb:hover {
    background-color: #145DBF;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    color:#fff;
}


.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #8de479;
    color: #101010;
    font-size: 16px;
}

.divider {
    color: #8de479;
    margin: 0 5px;
}

.email {
    margin-bottom: 15px;
    font-weight: normal;
    color: #b1aaaa; /* osnovna boja teksta */
    text-align: center; /* centrira tekst */
}

.email b, 
.email strong {
    color: #8de479; /* bold tekst u zeleno */
    font-weight: bold; /* osigurava da je bold */
}


.newsletter-box {
    max-width: 500px;       /* širi box */
    padding: 20px 25px;     /* manja visina boxa */
    background-color: #f0f9f4; /* svijetlo-zelena pozadina */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* manji razmak između elemenata */
}

.newsletter-form label {
    font-size: 16px;
    font-weight: bold;
    color: #2a5d44;
}

.newsletter-form input[type="email"] {
    padding: 8px 12px; /* manja visina inputa */
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-form button {
    padding: 8px 20px; /* niže dugme */
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background-color: #8de479;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.newsletter-form button:hover {
    background-color: #5ea046;
    transform: translateY(-2px);
}



.faq-link a {
    color: #b1aaaa;
    text-decoration: none;
    transition: color 0.3s;
}

.faq-link a:hover {
    color: #8de479;
}
.faq-link a i {
    color: #8de479;
}

.lostpassword-link a {
    color: #202220;
    text-decoration: none;
    transition: color 0.3s;
}
.lostpassword-link a:hover {
    color: #4ebc35;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input[type="email"], 
    .newsletter-form button {
        width: 100%;
    }
}


/***************************************************************************************************/
.popularne-kategorije {
    margin-top: 40px;
    text-align: center;
}

.popularne-kategorije h4 {
    font-size: 24px;
    margin-bottom: 25px;
}

.popularne-kategorije ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.popularne-kategorije li {
    background: #f4f4f4;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.popularne-kategorije a {
    text-decoration: none;
    color: inherit;
}
.popularne-kategorije a:hover {
    text-decoration: none;
    color: inherit;
}

.popularne-kategorije li:hover {
    background: #8de479;
    color: #fff;
}
@media (max-width: 768px) {
    .popularne-kategorije h4 {
        font-size: 18px;
    }

    .popularne-kategorije li {
        font-size: 13px;
        padding: 8px 14px;
    }
}


/* istaknuti */
.istaknuti-proizvodjaci {
    margin-top: 60px;
}

.istaknuti-proizvodjaci h4 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    grid-auto-rows: 1fr; /* Izjednačava visinu svih boxeva u istom redu */
}

.proizvodjac-card {
    display: flex;            /* Flex layout unutar kartice */
    flex-direction: column;   /* Sadržaj vertikalno */
    justify-content: space-between; /* Tekst i link ostaju raspoređeni */
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.proizvodjac-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.proizvodjac-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.proizvodjac-card .info h5 {
    margin: 5px 0;
    font-size: 18px;
    white-space: nowrap;      
    overflow: hidden;    
    text-overflow: ellipsis;  
}

.proizvodjac-card .info p {
    margin: 3px 0;
    color: #555;
    font-size: 14px;
}

.proizvodjac-card .info a {
    display: inline-block;
    margin-top: 5px;
    text-decoration: none;
    color: #8de479;
    font-weight: 500;
    transition: color 0.3s;
}

.proizvodjac-card .info a:hover {
    color: #5ea046;
}
@media (max-width: 576px) {

    .cards-container {
        display: block;      /* kartice idu jedna ispod druge */
    }

    .proizvodjac-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .proizvodjac-card img {
        width: 100%;
        max-width: 100%;
        height: 120px;       /* manja visina za mobilni */
        object-fit: cover;
    }

}

.info-left p.email {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.cta-proizvodjaci-split {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 60px auto;
    padding: 30px;
    background: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cta-proizvodjaci-split .cta-ikona {
    font-size: 50px;
    flex-shrink: 0; /* ikona ne smanjuje dimenzije */
}

.cta-proizvodjaci-split .cta-tekst {
    text-align: left; /* tekst lijevo od ikone */
    color: #2a5d44;
}

.cta-proizvodjaci-split .cta-tekst h4 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-proizvodjaci-split .cta-tekst p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cta-proizvodjaci-split .cta-tekst a {
    background-color: #2a5d9f;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.cta-proizvodjaci-split .cta-tekst a:hover {
    background-color: #479236;
}

/* Responsive za mobilni */
@media (max-width: 768px) {
    .cta-proizvodjaci-split {
        flex-direction: column;
        text-align: center;
    }
    .cta-proizvodjaci-split .cta-tekst {
        text-align: center;
    }
}



/***************************************************************************************************/
/* header */

.header {
  /*background-color: #fff;
  box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
  position: fixed;
  width: 100%;
  z-index: 3;*/
}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #fff;
}

.header li a {
  display: block;
  padding: 20px 20px;
  color:#ca0030;
  /*border-right: 1px solid #f4f4f4;*/
  text-decoration: none;
}

.header li a:hover,
.header .menu-btn:hover {
    color: #ca0030;
}

.header .logo {
    display: block;  
    float: left;
    font-size: 2em;
    padding-top: 25px;
    padding-bottom: 10px;
    text-decoration: none;
}
.header .logo img {
    margin-left: 20px;
    width:50%;
}
/* menu */

.header .menu {
    clear: both;
    max-height: 0;
    padding-top: 10px;
    transition: max-height .2s ease-out;
    color: #191919;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
    text-transform: uppercase;
}

/* menu icon */

.header .menu-icon {
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 20px 20px;
    position: relative;
    /* font-size: 64px; */
    user-select: none;
}

.header .menu-icon .navicon {
  background: #333;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
  top: 5px;
}

.header .menu-icon .navicon:after {
  top: -5px;
}

/* menu btn */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 320px;
  border-bottom:1px solid #ca0030;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}


.izmijeniArtikal {
  margin-top:30px; 
  background-color: #FF204E;
  color:rgb(255, 255, 255);
  border:1px solid #000;
  padding: 6px;
  text-align: center;
  font-size: 15px;
}
.izmijeniArtikal:link {
  color:rgb(255, 255, 255);
}
.izmijeniArtikal:hover {
  cursor: pointer;
  color:#FFF6F6;
  text-decoration: underline;
}


.obrisiArtikal {
  margin-top:5px; 
  background-color: #A0153E;
  color:rgb(255, 255, 255);
  border:1px solid #000;
  padding: 6px;
  text-align: center;
  font-size: 15px;
}
.obrisiArtikal:link {
  color:rgb(255, 255, 255);
}
.obrisiArtikal:hover {
  cursor: pointer;
  text-decoration: underline;
}



.prodatArtikal {
  margin-top:5px; 
  background-color: #5D0E41;
  color:rgb(255, 255, 255);
  border:1px solid #000;
  padding: 6px;
  text-align: center;
  font-size: 15px;
}
.prodatArtikal:link {
  color:rgb(255, 255, 255);
}
.prodatArtikal:hover {
  cursor: pointer;
  text-decoration: underline;
}



/* 48em = 768px */
@media (min-width: 48em) {
  .header li {
    float: left;
  }
  .header li a {
    padding: 20px 30px;
    color: #2b2b2b;
    font-size: 14px;
    font-weight: bold;
  }
  .header .menu {
    clear: none;
    float: right;
    max-height: none;
    line-height: 80px;
  }
  .header .menu-icon {
    display: none;
  }
}


.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* BADGE (Novo / Popularno / Akcija) */
.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #198754, #28a745);
    color: #fff;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 999px;
    z-index: 2;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* IMAGE */
.product-image {
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* BODY */
.product-body {
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* TITLE */
.product-title {
    margin-bottom: 6px;
}

.product-title a {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
}

.product-title a:hover {
    color: #198754;
}

/* PRICE */
.product-price {
    font-size: 19px;
    font-weight: 700;
    color: #198754;
    margin: 8px 0;
}

/* META INFO */
.product-meta {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-meta i {
    color: #198754;
    margin-right: 4px;
}

/* BUTTON */
.product-body .btn {
    margin-top: auto;
    border-radius: 30px;
    font-size: 14px;
    padding: 8px 12px;
}



.blog-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* desktop: 3 po redu */
    gap: 25px;
    padding: 60px 20px;

    align-items: stretch; /* 🔥 omogućava da sve kartice imaju istu visinu */
}


@media (max-width: 992px) {
    .blog-section {
        grid-template-columns: repeat(2, 1fr); /* tablet: 2 po redu */
    }
}

@media (max-width: 600px) {
    .blog-section {
        grid-template-columns: 1fr; /* mobilni: 1 po redu */
    }
}

/* BLOG CARD */
.blog-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    border-left: 6px solid #4caf50;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;

    display: flex;
    flex-direction: column;

    height: 100%; /* 🔥 OVO JE KLJUČ */
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
    border-left-color: #2f7d32;
}

/* NASLOV */
.blog-card h3 {
    font-size: 20px;
    color: #2f4f3e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* IKONICA */
.blog-card h3 .icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.blog-card:hover h3 .icon {
    transform: scale(1.4) rotate(10deg);
}

/* TEKST – GURA FOOTER NA DNO */
.blog-card p {
    font-size: 15.5px;
    line-height: 1.7;
    color: #555;

    flex-grow: 1; /* 🔥 gura footer dole */
}


/* FOOTER (DATUM + DUGME) */
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: auto; /* 🔥 UVIJEK NA DNU */
    padding-top: 12px;
    border-top: 1px solid #eee;
}


/* DATUM */
.blog-datum {
    font-size: 0.85rem;
    color: #888;
}

/* DUGME */
.blog-btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #4caf50;
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-btn:hover {
    background-color: #2f7d32;
    color: #fff !important;
    transform: translateX(5px);
}



.category-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-btn {
    background-color: #e53935;
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.delete-btn:hover {
    color:#fff;
    background-color: #b71c1c;
}
.izmeni-btn {
    background-color: #3575e5;
    border-color: #3575e5;
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.izmeni-btn:hover {
    color:#fff;
    background-color: #1c4bb7;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #2f3e46;
    color: #fff;
    position: fixed;
    top:0; left:0; bottom:0;
    padding: 20px;
}
.sidebar h3 {color: #fff; margin-bottom:20px;}
.sidebar ul {list-style:none; padding:0;}
.sidebar ul li {margin-bottom:15px;}
.sidebar ul li a {color:#fff; text-decoration:none; display:block; padding:8px 12px; border-radius:5px;}
.sidebar ul li a.active, .sidebar ul li a:hover {background-color:#4caf50; color:#fff;}

@media (max-width: 768px) {

    /* Sidebar ide na vrh */
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
    }

    /* Sidebar meni horizontalno */
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    .sidebar ul li {
        margin: 5px;
    }

    .sidebar ul li a {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Main content ide ispod sidebara */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        padding: 15px;
    }

    /* Sprečava horizontalni scroll */
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {

    table thead {
        display: none;
    }

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

    table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }

    table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        font-weight: bold;
        text-align: left;
    }

}



/* Main content */
.main-content {margin-left:240px; padding:30px;}

/* Top bar */
.top-bar {display:flex; justify-content:space-between; margin-bottom:30px; align-items:center;}

/* Statistika kartice */
/* Moderni izgled statističkih kartica */
.stats-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stats-cards .card-item {
    flex: 1;
    min-width: 150px;
    margin-bottom: 20px;
}

.stats-cards .card {
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    padding: 25px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    text-align: center;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.card-item a .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-item a:hover .card {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    cursor:pointer;
}


.stats-cards .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(76, 175, 80, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: 0;
}

.stats-cards .card:hover::before {
    top: -30%;
    left: -30%;
}

.stats-cards .card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.stats-cards h5 {
    color: #2f3e46;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.stats-cards p.display-6 {
    color: #4caf50;
    font-size: 2.2em;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stats-cards .card:hover p.display-6 {
    transform: scale(1.15);
}


/* Kategorije */
.categories-list .category-item {margin-bottom:10px;}
.delete-btn {color:#fff; background:#e63946; padding:3px 8px; border-radius:5px; text-decoration:none; margin-left:10px;}
.delete-btn:hover {opacity:0.8;}

/* Forme - globalno za sve forme */
.category-form input, .category-form button,
.artikel-form input, .artikel-form textarea, .artikel-form button {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* Inline forma za kategorije */
.category-form.form-row {
    display: flex;
    gap: 10px; /* razmak između polja */
    flex-wrap: wrap;
    align-items: center;
}

.category-form.form-row .symbol-input {
    flex: 0 0 60px; /* fiksna širina za simbol */
    text-align: center;
}

.category-form.form-row .name-input {
    flex: 1; /* zauzima preostali prostor */
}

.category-form.form-row button {
    flex: 0 0 auto;
    background-color: #4caf50;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-form.form-row button:hover {
    background-color: #2f7d32;
}

/* Cancel dugme (Otkaži) – KATEGORIJE */
.category-form button[type="button"] {
    background-color: #e34141;
    color: #fff;
    border: none;
}

.category-form button[type="button"]:hover {
    background-color: #c52121;
}

/* Originalni stil za forme koje nisu inline */
.category-form:not(.form-row) input,
.category-form:not(.form-row) button,
.artikel-form input,
.artikel-form textarea,
.artikel-form button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

/* Labela za checkbox-e */
.checkboxes label {margin-right: 15px;}

/* Animacija za edit formu */
#editForm {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

#editForm.active {
    opacity: 1;
    transform: translateY(0);
}
/*************************************/
.login-card {
    max-width: 420px;
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    margin: 60px auto;
}

.password-wrapper {
    position: relative;
}

.pass-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.pass-toggle-btn:hover {
    background: #e0e0e0;
}

.pass-toggle-btn:focus {
    outline: none;
}




.login-card h3 {
    font-weight: 600;
}

.login-card .btn-dark {
    background-color: #222;
    border: none;
    padding: 10px;
    font-size: 16px;
}

.login-card .btn-dark:hover {
    background-color: #000;
}

.register-link {
    text-decoration: none;
    font-weight: 500;
}

.register-link:hover {
    text-decoration: underline;
}


.viber-badge {
    background-color: #665CAC !important;
    color: #fff;
}

.btn-dodaj-proizvod {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745; /* zelena */
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 8px 16px; /* malo veći padding za visinu */
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.btn-dodaj-proizvod i {
    font-size: 0.9rem; /* ikonica da bude proporcionalna */
}

.btn-dodaj-proizvod:hover {
    background-color: #218838; /* tamnije zelena */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}


.producer-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;

    /* KLJUČNO */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.producer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.producer-img {
    position: relative;
}

.producer-img img {
    width: 100%;
    height: 200px; /* ista visina slike */
    object-fit: cover;
}

.producer-name-bar {
    background: linear-gradient(135deg, #28a745, #85e085);
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;
}

.name-text {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producer-info {
    padding: 15px;

    /* KLJUČNO */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.producer-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.producer-info p {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #555;
}

/* obične ikone */
.producer-info p i.fas {
    color: inherit;
}

/* Viber */
.viber-badge {
    background-color: #665cac;
    color: #fff !important;
}

/* WhatsApp */
.badge.bg-success i {
    color: #fff !important;
}


/*************************************/
/* GRADOVI – isti stil kao kategorije */

/* Lista gradova */
.cities-list .city-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dugmad već postoje (.izmeni-btn i .delete-btn)
   pa ih NE redefinišemo */

/* Forma za gradove – inline kao kategorije */
.city-form input,
.city-form button {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* Wrapper za select */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select-wrapper select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px; /* prostor za strelicu */
}

/* Strelica sa strane */
.custom-select-wrapper .custom-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000; /* boja strelice */
    transform: translateY(-50%);
}


/* Inline layout (isto kao .category-form.form-row) */
.city-form.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Input za naziv grada */
.city-form.form-row .name-input {
    flex: 1;
}

/* Dugmad u formi */
.city-form.form-row button {
    flex: 0 0 auto;
    background-color: #4caf50;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.city-form.form-row button:hover {
    background-color: #2f7d32;
}

/* Cancel dugme (Otkaži) */
.city-form button[type="button"] {
    background-color: #e34141;
}

.city-form button[type="button"]:hover {
    background-color: #c52121;
}

/* Edit forma – animacija ista kao kod kategorija */
#editCityForm {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

#editCityForm.active {
    opacity: 1;
    transform: translateY(0);
}


/* Sidebar container */
.product-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

/* Dugmad kao kartice */
.grad-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: left;
}

/* Badge za broj artikala */
.grad-btn::after {
    content: attr(data-count);
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #2e7d32;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 14px;
}

/* Hover efekat */
.grad-btn:hover {
    transform: translateY(-3px);
    background-color: #45a049;
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Aktivno dugme */
.grad-btn.active {
    background-color: #2e7d32;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.sidebar-categories .grad-btn {
    width: 100%;
    text-align: left;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 16px;
    margin-bottom:5px;
    transition: background 0.3s, transform 0.2s;
}

.sidebar-categories .grad-btn:hover {
    background-color: #45a049;
    transform: scale(1.02);
}

.sidebar-categories .grad-btn.active {
    background-color: #2e7d32;
}

.badge-circle {
    display: inline-block;

    font-size: 10px;
    font-weight: 700;
    background-color: #cbcbcb;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 100% !important;
}

/* Inicijalno sakrij ostale kategorije na manjim ekranima */
.other-categories {
    display: none;
    flex-direction: column;
}
.other-categories.show {
    display: flex;
}

/* Dugme toggle je vidljivo samo na mobilnom */
.toggle-categories-mobile {
    display: block;
    margin-top: 10px;
}

/* Na desktopu, sve kategorije vidljive, toggle skriven */
@media (min-width: 768px) {
    .other-categories {
        display: flex !important;
    }
    .toggle-categories-mobile {
        display: none !important;
    }
}
/* Mobilni prikaz (do 767px) */
@media (max-width: 767px) {
    .other-categories .grad-btn {
        display: block !important;      /* osigurava vertikalni stack */
        margin-bottom: 8px !important;  /* razmak između dugmadi */
        width: 100% !important;         /* dugmad pune širine */
    }

    /* Razmak ispod toggle dugmeta */
    .toggle-categories-mobile {
        margin-bottom: 10px !important;
    }
}


.breadcrumb-arrow {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    overflow: hidden;
}

/* svi elementi */
.breadcrumb-arrow a,
.breadcrumb-arrow span {
    position: relative;
    padding: 6px 14px 6px 18px;
    background: #f1f3f5;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* strelica desno */
.breadcrumb-arrow a::after,
.breadcrumb-arrow span::after {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 12px solid #f1f3f5;
    z-index: 2;
}

/* overlap effect */
.breadcrumb-arrow a:not(:first-child),
.breadcrumb-arrow span:not(:first-child) {
    margin-left: 12px;
}

/* hover */
.breadcrumb-arrow a:hover {
    background: #e2e6ea;
    color:#333;
}

.breadcrumb-arrow a:hover::after {
    border-left-color: #e2e6ea;
}

/* aktivni */
.breadcrumb-arrow .active {
    background: #4ecb6b;
    color: white;
}

.breadcrumb-arrow .active::after {
    border-left-color: #4ecb6b;
}

/* ikonica */
.breadcrumb-arrow i {
    margin-right: 6px;
    font-size: 12px;
}

.product-page {
    margin-top: 40px;
}
.product-image {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}
.product-details h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.product-details .price {
    font-size: 1.4rem;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 15px;
}
.product-details .meta span {
    display: block;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 5px;
}
.btn-contact {
    margin-top: 20px;
}


/****************************/
.istaknuti-proizvodi h4 {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.istaknuti-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.istaknuti-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.istaknuti-card img {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    object-fit: cover;
    height: 180px;
    width: 100%;
}

.istaknuti-card .card-title {
    font-size: 18px;
    font-weight: 500;
}

.istaknuti-card .card-text {
    font-size: 14px;
    color: #555;
}

.proizvod-info {
    font-size: 14px;
    color: #000;
}

.proizvod-info i {
    margin-right: 4px;
    color: #8de479;
}

.proizvod-info a {
    color: #252323;
    font-size:14px;
}
.proizvod-info a:hover {
    color: #328220;
}

.proizvod-info .grad, 
.proizvod-info .gazdinstvo {
    display: inline-block;
}

.istaknuti-card .card-footer {
    background: none;
    border-top: none;
    padding: 5px 10px;
}

.istaknuti-card .cijena {
    font-weight: 600;
    color: #2f322e;
    font-size: 16px;
}

.istaknuti-card .btn {
    font-size: 13px;
    padding: 5px 10px;
}

.proizvod-info {
    font-size: 14px;
    color: #181717;
    margin-bottom: 0; /* minimalan razmak */
}

.proizvod-info i {
    margin-right: 4px;
    color: #8de479;
}

/* Stil za naziv proizvoda u kartici */
.card-title a {
    text-decoration: none;    
    color: #333;       
    font-weight: 600;    
    transition: color 0.3s, text-decoration 0.3s;
}

.card-title a:hover {
    color: #8de479;         
    text-decoration: none; 
}

.blog-footer {
    margin-top: 10px;
}

.blog-datum {
    font-size: 14px;
    color: #777;
}

.blog-btn {
    font-weight: 600;
    text-decoration: none;
}


/* BLOG SINGLE / PREGLED BLOGA - MODERAN STIL */

.blog-pregled {
    /*max-width: 800px;*/
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    text-align: center; /* Centriranje teksta */
}

.blog-back {
    display: inline-block;
    margin-bottom: 30px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-back:hover {
    color: #007bff;
}

.blog-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    justify-content: center; /* Centriranje naslova */
    align-items: center;
    gap: 12px;
}

.blog-icon {
    font-size: 2rem;
}

.blog-meta {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 35px;
    display: flex;
    justify-content: center; /* Centriranje */
    align-items: center;
    gap: 20px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Share dugmad */
.blog-meta .share-buttons {
    display: flex;
    gap: 10px;
}

.blog-meta .share-buttons a {
    color: #555;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.blog-meta .share-buttons a:hover {
    color: #007bff;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: left; /* Centriranje teksta */
}

.blog-content p {
    margin-bottom: 18px;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-content a {
    color: #007bff;
    text-decoration: underline;
}

.blog-content a:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-icon {
        font-size: 1.6rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 12px;
    }
}


.blog-form {
    max-width: 700px;
    margin-top: 20px;
}
.blog-form input, 
.blog-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}
.blog-form button {
    margin-top: 10px;
}


.admin-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end; /* dugmad desno */
}

.admin-controls a {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.admin-controls a i {
    margin-right: 5px;
}


/* --- ISTAKNUTI BLOGOVI --- */
.istaknuti-blogovi {
    padding: 50px 0;
    background-color: #f9f9f9; /* lagano pozadinsko sjenčenje, možeš promeniti */
}

.istaknuti-blogovi h4 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.istaknuti-blogovi .blog-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
}

.istaknuti-blogovi .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.istaknuti-blogovi .card-body {
    padding: 20px;
}

.istaknuti-blogovi .card-title {
    font-size: 18px;
    margin-bottom: 15px;
}
.istaknuti-blogovi .card-title:hover {
    color: #0ec73c;
    transition: all .2s ease-out;
}

.istaknuti-blogovi .card-text {
    font-size: 0.9rem;
    color: #555;
}

.istaknuti-blogovi .card-footer {
    background: none;
    border-top: 1px solid #eee;
    padding: 10px 20px;
}

.istaknuti-blogovi .blog-icon {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .istaknuti-blogovi .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .istaknuti-blogovi .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



.badges .badge {
    font-size: 12px;        /* povećava tekst */
    padding: 10px 16px;       /* veći unutarnji razmak */
    border-radius: 10px;      /* malo više zaobljenja */
    display: inline-flex;     /* da ikona i tekst lijepo stoje */
    align-items: center;
    gap: 5px;                 /* razmak između ikone i teksta */
    margin-bottom:5px;
}

.badges .badge:hover {
    transform: scale(1.03);
    transition: transform 0.3s;
    color:#efeded;
}


/* ---------------- SLICNI OGLASI ---------------- */

.section-title {
    color: #212529;
    border-left: 4px solid #198754;
    padding-left: 5px;
}
.section-title i {
    color:#198754;
}

.similar-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.similar-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.similar-body {
    padding: 12px;
    text-align: center;
}

.similar-body h6 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #333;
}

.similar-body .price {
    font-weight: bold;
    color: #198754;
    font-size: 14px;
}

/* SORT DROPDOWN */
.sort-dropdown {
    max-width: 260px;
    border-radius: 8px;
    font-size: 14px;
}

#loadMore {
    border-radius: 25px;
    font-weight: 600;
}


/* Mobile responsive za polja lozinke i dugmad */
@media (max-width: 576px) {
    #passwordEditRow form {
        flex-direction: column; /* Polja jedno ispod drugog */
        gap: 10px; /* Razmak između polja i dugmadi */
    }

    #passwordEditRow form input {
        width: 100% !important; /* Polja popunjavaju cijelu širinu */
    }

    #passwordEditRow form button {
        width: 100%; /* Dugmad takođe popunjavaju širinu */
    }

    #passwordEditRow form button + button {
        margin-top: 5px; /* Mali razmak između dugmadi */
    }
}


.verified-icon {
    color: #ffffff;
    font-size: 0.85em;
    margin-right: 3px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.cover {
    width: 100%;
    height: 300px;
    background: url('../images/gazdinstvo.jpg') center/cover no-repeat;
    background-position: center 60%; 
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.cover::after {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.gazdinstvo-info {
    background: #fff;
    padding: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.proizvod-card img {
    height: 180px;
    object-fit: cover;
}


/* favoriti */
.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-top:5px;
    font-size: 14px !important;
    font-weight: 600;
    color: #ff4d4d;
    background: #fff;
    border: 2px solid #ff4d4d !important;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.05);
}

/* Srce */
.favorite-btn .heart {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23ff4d4d" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 21C12 21 2 13 2 7C2 4.23858 4.23858 2 7 2C8.65685 2 10 3.34315 10 5C10 3.34315 11.3431 2 13 2C15.7614 2 18 4.23858 18 7C18 13 12 21 12 21Z"/></svg>') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}

/* Kada je dodano u favorite */
.favorite-btn.added {
    background: #ff4d4d;
    color: #fff;
    border-color: #ff4d4d;
}

.favorite-btn:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
}

.favorite-btn.added .heart {
    background: url('data:image/svg+xml;utf8,<svg fill="%23fff" stroke="%23fff" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 21C12 21 2 13 2 7C2 4.23858 4.23858 2 7 2C8.65685 2 10 3.34315 10 5C10 3.34315 11.3431 2 13 2C15.7614 2 18 4.23858 18 7C18 13 12 21 12 21Z"/></svg>') no-repeat center;
    transform: scale(1.4);
    animation: heart-pop 0.4s forwards;
}

/* Animacija srca */
@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.6); }
    100% { transform: scale(1.4); }
}

/* Tekst dugmeta */
.favorite-btn .text {
    transition: color 0.3s ease;
}
.favorite-btn.added .text {
    color: #fff;
}



.tab-button { cursor:pointer; }
.tab-button.active { font-weight:bold; text-decoration:underline; }
/*.product-card { border:1px solid #ddd; padding:10px; margin-bottom:10px; border-radius:5px; }
.product-card img { max-width:100px; max-height:100px; object-fit:cover; }*/

/* Promjena fokusa za Bootstrap tabove */
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:active {
    outline: none; /* uklanja defaultni crni outline */
}

.remove-gazdinstvo-fav {
    border-radius: 50%;
}

.remove-gazdinstvo-fav:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.banner-img {
    height: 255px !important;       
    object-fit: cover;  /* da slika zadrži proporcije i prekrije cijeli prostor */
    object-position: 0 13%;
    border:1px solid #000;
}

.call-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 1.3rem;
}

.modal {
    position: absolute !important;
    top: 0;
}

.modal-dialog {
    margin: 20px auto;
}

body.modal-open {
    overflow: auto !important;
}


.apple-meta {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* svaki red */
.apple-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    transition: background 0.2s ease;
}

/* separator linije */
.apple-item:not(:last-child) {
    border-bottom: 1px solid #f2f2f2;
}

.apple-item:hover {
    background: #fafafa;
}

/* ikona */
.apple-item i {
    font-size: 1.1rem;
    color: #666;
    width: 20px;
    text-align: center;
}

/* tekst */
.label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 2px;
}

.value {
    font-size: 0.95rem;
    color: #111;
    font-weight: 500;
}

/* link */
.link {
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* mobile */
@media (max-width: 600px) {
    .apple-item {
        padding: 12px;
    }
}

@media (max-width: 600px) {

    .apple-meta {
        border-radius: 12px;
        margin: 10px 0;
    }

    .apple-item {
        padding: 12px 14px;
        gap: 12px;
    }
    
    .apple-item::after {
        content: "›";
        margin-left: auto;
        color: #ccc;
        font-size: 1.2rem;
    }

    /* veće i vidljivije ikone */
    .apple-item i {
        font-size: 1.2rem;
        color: #666;
        background: #f2f2f2;
        border-radius: 8px;
        padding: 8px;
        width: auto;
    }

    /* label malo vidljiviji */
    .label {
        font-size: 0.7rem;
        color: #888;
    }

    /* value veći (bitno!) */
    .value {
        font-size: 1rem;
        font-weight: 600;
    }

    /* razmak između redova */
    .apple-item:not(:last-child) {
        border-bottom: 1px solid #eee;
    }

}



/* Ograničeno samo na edit-proizvod formu */
.edit-product-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
    font-family: sans-serif;
}

/* Naslov */
.edit-product-form-container h3 {
    margin-bottom: 16px;
}

/* Labeli unutar forme */
.edit-product-form-container label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 16px;
}

/* Input, textarea i select unutar forme */
.edit-product-form-container input,
.edit-product-form-container textarea,
.edit-product-form-container select {
    width: 100%;
    padding: 8px;
    font-size: 16px;       /* važno za WebView */
    line-height: 1.4;
    box-sizing: border-box;
    font-family: inherit;
}

/* Dužina textarea */
.edit-product-form-container textarea {
    resize: vertical; /* korisnik može mijenjati visinu po potrebi */
}

/* Buttoni unutar forme */
.edit-product-form-container .form-buttons {
    margin-top: 16px;
}

.edit-product-form-container .form-buttons button,
.edit-product-form-container .form-buttons a {
    padding: 10px 16px;
    margin-right: 8px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

/* Samo dugme sačuvaj */
.edit-product-form-container .form-buttons button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}

/* Samo dugme nazad */
.edit-product-form-container .form-buttons a {
    background-color: #6c757d;
    color: white;
    border: none;
}



.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12.5px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* EDIT */
.btn-edit {
    background: #f5f5f5;
    color: #333;
    border-color: #e0e0e0;
}

.btn-edit:hover {
    background: #e9ecef;
}

/* DELETE */
.btn-delete {
    background: #fff;
    color: #dc3545;
    border-color: #f1b0b7;
}

.btn-delete:hover {
    background: #fff5f5;
}

/* ikonice */
.btn i {
    font-size: 11px;
}


/* Overlay pozadina */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.fullscreen-overlay img {
  max-width: 90%;
  max-height: 90%;
  touch-action: none;
  transition: transform 0.05s;
  cursor: grab;
}

.fullscreen-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
}




