﻿
/*--------------------------------------------------------------------HEADER--------------------------------------------------------------------*/
.header {
    margin-top: 36px;
}

.logo-outside-div {
    margin-top: 0px !important;
}

.web-logo {
    top: -42px;
}

.ostali-linkovi {
    visibility: hidden;
}
/* kontejner */
.header-top {
    width: 100%;
    height: 50px;
    background-color: #d7061d;
    overflow: hidden;
    position: relative;
}

/* wrap i animacija */
.scroll-wrap p {
    display: inline-block;
    white-space: nowrap;
    color: white;
    font-size: 30px;
    font-weight: 900;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    line-height: 50px;
    letter-spacing: 3px;
    transform: scaleX(1.2);
    transform-origin: left;
    animation: scroll-text 20s linear infinite;
    position: relative;
}

/* animacija */
@keyframes scroll-text {
    0% {
        left: 0;
    }

    100% {
        left: -100%;
    }
}

.mobile-contact-icons {
    display: none;
}

/*.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}*/

/*--------------------------------------------------------------------DODAJ U KOŠARICU WIDGET--------------------------------------------------------------------*/
#custom-cart-popup {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #00a651; /* zelena boja */
    color: #fff !important;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

    #custom-cart-popup .custom-cart-popup-close {
        position: absolute;
        top: 5px;
        right: 10px;
        cursor: pointer;
        font-size: 18px;
    }

    #custom-cart-popup p {
        margin: 0;
        font-weight: bold;
    }



/*--------------------------------------------------------------------DNEVNA PONUDA--------------------------------------------------------------------*/
.naslov-proizvoda {
    padding: 10px 0 !important;
    text-align: center;
    min-height: 16px;
    max-height: 16px;
    overflow: hidden;
}

.dodatni-prilozi {
    padding: 0px 20px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 6px;
    font-size: 14px !important;
}

.value {
    font-weight: 600;
    color: #e53935;
}

.row {
    display: flex;
    align-items: center;
    gap: 10px; /* razmak između elemenata */
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 15px; /* veličina checkboxa */
    height: 15px;
}

    .custom-checkbox input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

    .custom-checkbox span {
        position: absolute;
        top: 0;
        left: 0;
        width: 15px;
        height: 15px;
        background-color: #211E1E;
        border: 2px solid #fff;
        border-radius: 4px;
        transition: 0.2s;
    }

    .custom-checkbox:hover {
        cursor: pointer;
    }

    .custom-checkbox input:checked + span {
        border-color: #D5061D;
    }

    .custom-checkbox span::after {
        content: "";
        position: absolute;
        display: none;
    }

    .custom-checkbox input:checked + span::after {
        display: block;
        left: 5px;
        top: 1px;
        width: 5px;
        height: 9px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg); /* kvačica */
    }

.dodajKosaricaBtn {
    font-size: 13px;
}

.opis-kratki-dnevna-ponuda {
    min-height: 50px;
    max-height: 50px;
    overflow: hidden;
}

.cijena-proizvoda {
    min-height: 64px;
    max-height: 64px;
}
.slika-grid {
    height: 100% !important;
}
/*--------------------------------------------------------------------KATEGORIJE--------------------------------------------------------------------*/
.dnevna-ponuda-section {
    padding-bottom: 0px !important;
}

.kategorije-full-section {
    margin-top: -110px;
}

.kategorije-section {
    padding-top: 0px !important;
}

.kategorije-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .kategorije-card:hover {
        transform: scale(1.1);
        will-change: transform;
    }

.grupa-div {
    height: 350px;
}

.slika-box {
    background-color: transparent !important;
    background-image: none !important;
}

.banner-card {
    position: relative;
}

.grupa-naziv {
    position: absolute;
    bottom: 0px;
    left: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 0px;
    background-color: #2A2828;
    border: none;
    font-size: 20px;
}

    .grupa-naziv:hover {
        color: #fff;
        background-color: #D7061D;
    }

/*--------------------------------------------------------------------GRUPE--------------------------------------------------------------------*/
.kategorija-title {
    margin-top: 20px;
}

.opis-proizvoda {
    min-height: 27px;
    max-height: 27px;
    overflow: hidden;
}
/*--------------------------------------------------------------------ARTIKAL DETALJNO--------------------------------------------------------------------*/
.dodatni-prilozi-artikal-det {
    height: 300px !important;
    z-index: 100;
    margin-top: 185px;
}

.favicons-det {
    font-size: 25px;
    gap: 15px;
}

/*--------------------------------------------------------------------KOŠARICA--------------------------------------------------------------------*/
/* --- KOŠARICA LAYOUT --- */
.cart-title {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #222;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.cart-item-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 250px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 5px;
    padding: 5px;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 250px;
    justify-content: flex-end;
    margin-top: 10px;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f2a900;
}

.cart-qty-wrapper {
    display: flex;
    align-items: center;
    background: #111;
    border-radius: 5px;
    border: 1px solid #444;
}

.cart-delete-btn {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

    .cart-delete-btn:hover {
        background: #c62828;
    }

/* --- KOSARICA FOOTER SUMMARY --- */
.cart-summary {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #333;
    text-align: right;
}

.cart-total-text {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 20px;
}

.cart-total-amount {
    font-size: 1.6rem;
    color: #f2a900;
    margin-left: 10px;
}

.btn-continue {
    background: #444 !important;
    color: #fff !important;
    margin-right: 10px;
    margin-bottom: 10px;
}

    .btn-continue:hover {
        background: #555 !important;
    }
/*--------------------------------------------------------------------NOVE NARUDZBE--------------------------------------------------------------------*/
/* Naslovi u tablici */
.narudzbe-head th {
    font-size: 18px;
    color: #f2a900 !important; /* Istaknuta žuta/zlatna kao kod košarice */
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #D7061D !important; /* Crvena linija za odvajanje glave */
    padding: 15px 10px !important;
}

/* Stil za svaki redak s podacima */
.nove-narudzbe-det td {
    font-size: 16px;
    color: #fff !important; /* Na tamnoj smo temi, tekst mora biti bijel ili svijetlo siv */
    padding: 15px 10px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #333;
}

/* Posebno istaknuti element (Broj narudžbe ili iznos) */
.nove-narudzbe-det .narudzba-iznos {
    font-weight: 700;
    color: #f2a900 !important;
    font-size: 18px;
}

.nove-narudzbe-det .narudzba-broj {
    font-weight: 700;
    color: #D7061D !important;
}

/* Hover efekt da cijeli redak blago zasvijetli (za dojam "živosti") */
/*.live-narudzbe-container tr {
    transition: background-color 0.3s ease;
}*/

/* Gumb u tablici - Detaljno */
.btn-detaljno {
    background-color: transparent !important;
    color: #fff !important;
    border: 1px solid #D7061D !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .btn-detaljno:hover {
        background-color: #D7061D !important;
        color: #fff !important;
        box-shadow: 0px 4px 10px rgba(215, 6, 29, 0.4);
    }

@media only screen and (max-width: 768px) { /*--------------------------------------------------------------------MOBITELI--------------------------------------------------------------------*/
    /*--------------------------------------------------------------------HEADER--------------------------------------------------------------------*/
    .mob-logo {
        top: -3px;
        max-width: 75px;
    }

    .ostali-linkovi {
        visibility: visible;
    }

    .scroll-wrap p {
        animation: scroll-text 5s linear infinite !important;
    }

    .kosarica-btn {
        display: none !important;
    }

    .mobile-contact-icons {
        display: flex;
        align-items: center;
        gap: 15px;
    }

        .mobile-contact-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            font-weight: 700;
            font-size: 25px;
            color: #d7061d;
        }

    .scroll-wrap p {
        font-size: 20px;
    }

    .links-drawer {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

        .links-drawer i {
            font-size: 23px;
        }
    .kategorije-full-section {
        margin-top: 0px !important;
    }
  
}
