/* Reset osnovnih stilova */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

body {
    background-color: Cornsilk;
    font-family: 'Georgia', serif;
    font-size: 16px;
    color: #333;
}

body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 100vh !important;
}

header {
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

header {
    position: relative !important;
    z-index: 100 !important;
    width: 100% !important;
}

header .header-logo {
    max-width: 150px;
    height: auto;
    margin: 10px 0;
}
header img {
    margin: 0 auto;
    display: block;
    max-height: 100px;
}

header h1 {
    font-family: 'Great Vibes', cursive;
    color: white;
    text-shadow: 1px 1px 3px red;
    margin-top: 15px;
}

nav {
    background-color: #444;
    text-align: center;
    padding: 10px 0;
}

.navbar-nav {
      width: 100%;
      justify-content: space-around;
    }

.nav-link {
    font-family: 'Playfair Display'; /* Koristi Metal font */
    font-size: 1rem; /* Veličina fonta */
    font-weight: bold;
    font-style: normal;
    text-transform: uppercase; /* Velika slova */
    color: #fff; /* Bela boja za tekst */
    margin: 0 15px; /* Razmak između linkova */
    text-decoration: none; /* Ukloni podvlačenje */
}

.nav-link:hover {
    color: firebrick; /* Promena boje pri prelasku mišem */
    background-color: transparent; /* Ukloni pozadinu ako nije potrebna */
}

.navbar-brand img {
    max-height: 50px;
    margin-right: 10px;
}


footer p {
    margin: 0;
    font-size: 0.9rem;
}

main {
    padding: 20px;
}
main.container {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
}


section {
    margin: 10px 0; /* Dodaje razmak iznad i ispod */
    padding: 20px; /* Unutrašnji razmak */
    background-color: #fff; /* Svetla pozadina za sekciju */
    border-radius: 10px; /* Blago zaobljenje */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Sjenka za izdvajanje */
    border: 1px solid #ddd; /* Suptilna ivica */
}

/* Specifičan separator linijom */
section + section {
    border-top: 2px solid #ccc; /* Linija između sekcija */
    padding-top: 30px;
}

/* Alternativne pozadine za svaku drugu sekciju */
section:nth-child(even) {
    background-color: #FFCBA4; /* Boja parne sekcije */
}

section:nth-child(odd) {
    background-color: Cornsilk; /* Svetla pozadina za neparne sekcije */
}


section h2 {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 10px;
    text-align: center;
}

section h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 15px;
}

.content .text, .content .image {
    max-width: 45%;
    margin: 10px;
    padding: 10px;
    background-color: Cornsilk;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.content .text p {
    margin-bottom: 10px;
}

.content .image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.uniform-img {
    max-width: 100%; /* Maksimalna širina slike */
    width: auto; /* Zadržava prirodnu širinu slike */
    height: 200px; /* Smanjena visina */
    object-fit: contain; /* Osigurava da se cela slika prikaže unutar zadate dimenzije */
    border: 2px solid #ddd;
    border-radius: 10px;
    margin: 10px auto; /* Centriranje slika */
    display: block; /* Osigurava da slike zauzimaju ceo red */
}

.oval-img {
    width: 100%;
    max-width: 400px; /* ili željena širina */
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

footer {
    background-color: #333333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

footer a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.7;
}

.btn-primary {
    background-color: firebrick;
    border-color: firebrick;
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 5px 15px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: darkred;
    border-color: darkred;
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 5px 15px;
    transition: background-color 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: firebrick;
}

.register-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.register-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid firebrick;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.register-icon img:hover {
    transform: scale(1.1);
}

form {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff; /* Bela pozadina */
    border-radius: 10px; /* Zaobljeni uglovi */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Suptilna senka */
}
/* Stil za greške */
.alert-danger {
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
}

.d-lg-flex.align-items-center {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Poravnava sadržaj ka desnoj strani */
    margin-left: auto; /* Gura elemente ka desnoj ivici */
}

.d-lg-flex.align-items-center .btn {
    margin-left: 10px; /* Razmak između dugmadi */
}

.user-initials {
    display: inline-block;
    background-color: firebrick;
    color: white;
    font-weight: bold;
    font-size: 16px;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}
.user-info {
    margin-top: 20px; /* Udaljenost od gornje ivice */
    margin-bottom: 10px; /* Udaljenost od donje ivice */
    margin-left:20px;
    margin-right: 20px;
    text-align: center; /* Centriraj tekst ako je potrebno */
    font-size: 1rem; /* Veličina fonta */
    color: #444; /* Boja teksta */
    background-color: cornsilk !important;
    border-style: inset;
}

#cart-icon {
    position: fixed;
    top: 18px;
    right: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#cart-icon img {
    width: 40px;
    height: auto;
    display: block;
}
#cart-popup {
    position: fixed;
    top: 130px;
    right: 20px;
    width: 320px;
    max-height: 75vh;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Kada se korpa otvori */
#cart-popup.show-cart {
    opacity: 1;
    visibility: visible;
}

/* Stilovi za korpu */
#cart-popup .cart-header {
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Deo koji se skroluje - proizvodi */
#cart-popup .cart-items {
    display: block !important;
    overflow-y: auto !important;
    max-height: calc(75vh - 140px); /* Malo više prostora za proizvode */
    padding: 10px !important;
    padding-bottom: 100px !important; /* Dodatni prostor da ništa ne bude sakriveno */
}

/* Deo sa ukupnim iznosom i dugmetom */
#cart-popup .cart-summary {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ddd;
    background: white;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 100;
}


/* Dugme za potvrdu porudžbine */
#cart-popup .btn-checkout {
    width: 100% !important;
    padding: 10px !important;
    background: green !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 5px !important;
}


#cart-popup .cart-container {
    max-width: 400px !important;
    background: #fff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
}


/* Ukupna cena */
#cart-popup .cart-total {
    font-family: Georgia, serif !important;
    font-weight: bold !important;
    color: firebrick !important;
    font-size: 18px !important;
    margin-bottom: 10px !important;
}

/* Stavke u korpi */
#cart-popup .cart-item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #ddd !important;
    padding-bottom: 40px !important;
}

#cart-popup .cart-item:last-child {
    border-bottom: none !important;
}

#cart-popup .cart-item img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 5px !important;
}

#cart-popup .cart-item-details {
    flex: 1 !important;
    margin-left: 15px !important;
}

/* Stilovi za količinu proizvoda */
#cart-popup .cart-item-quantity {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

#cart-popup .cart-item-quantity button {
    width: 35px !important;
    height: 35px !important;
    font-size: 16px !important;
    padding-bottom: 5px !important;
}

/* Dugme za potvrdu porudžbine */
#cart-popup .btn-checkout {
    margin-top: 30px !important;
}

/* Tekst u korpi */
#cart-popup .item-total {
    color: black !important;
    padding: 10px;
    text-align: center !important;
    margin-bottom: 10px !important;
}

#cart-popup span {
    color: black !important;
}

/* Naslovi i tekst */
#cart-popup h3 {
    font-size: 28px !important;
    font-weight: bold !important;
    font-family: 'Great Vibes', cursive !important;
    color: black !important;
    text-align: center !important;
    margin-top: 30px !important;
}

#cart-popup h4 {
    font-size: 16px !important;
    font-weight: bold !important;
    font-family: Georgia, sans-serif !important;
    color: black !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    padding: 5px;
}

#cart-popup .cart-item-details h5 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px !important; /* Prilagodi po potrebi */
    display: inline-block;
    vertical-align: middle;
}

#cart-popup h5 {
    font-size: 16px !important;
    font-weight: bold !important;
    font-family: Georgia, sans-serif !important;
    color: black !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    padding: 5px;
}


#cart-popup p {
    font-size: 14px !important;
    color: black !important;
}

#cart-popup hr {
    border: none;
    height: 2px;
    background: firebrick;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Dodaje senku ispod linije */
    margin: 10px 0;
}


/* Responsive dizajn */
@media (max-width: 768px) {

    #cart-popup .cart-item img {
        width: 50px !important;
        height: 50px !important;
    }

    #cart-popup .cart-item-quantity {
        flex-direction: column !important;
        gap: 5px !important;
    }

    #cart-popup .cart-container {
        padding: 15px !important;
    }

    #cart-popup .cart-summary {
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        padding: 10px !important;
        text-align: center !important;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1) !important;
        z-index: 1000 !important;
    }


    body {
        font-family: 'Old Standard TT', serif;
        font-size: 18px;
    }

   .navbar-nav {
        flex-direction: column;
    }

    .nav-link {
        font-size: 0.9rem; /* Manji font za mobilne uređaje */
        margin: 10px 0; /* Vertikalni razmak */
        font-family: 'Caudex', serif;
        }

    header h1 {
        font-size: 2rem;
    }
    
    h2, h3 {
        font-family: 'Georgia', sans-serif;
    }
    
    h2  {
        font-size: 22px !important;
        font-weight: bold !important;
    }
    
    h3  {
        font-size: 20px !important;
        font-weight: bold !important;
    }

  
    .content .text, .content .image {
        max-width: 100%;
    }

    .content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    footer p {
        text-align: center; /* Centriranje teksta u footeru */
    }

}
