/* Globalni stilovi */
body {
    background: url('/assets/background.png') no-repeat center center fixed;
    background-size: cover;
    color: #000;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* Header gradient */
header {
    background: linear-gradient(90deg, #003158, #61c9f8);
}

/* Navigacija */
.nav-link {
    color: #fff !important;
    border-radius: 20px;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 8px 16px;
}
.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Dugmad sa gradientom */
.btn-gradient {
    border-radius: 50px;
    background: linear-gradient(90deg, #003158, #61c9f8);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    background: #7dc0de;
    color: #003158;
}

/* Kartice */
.card {
    background: #fff;
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card img {
    border-radius: 12px;
}

/* Footer */
footer {
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.2);
    color: #000;
}

/* Blok cena */
.pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Regularna cena */
.price-regular {
    color: #888;
    text-decoration: line-through;
    font-weight: 400;
}

/* Popust */
.price-discount {
    color: #e63946;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Cena za resellere */
.price-reseller {
    color: #2a9d8f;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Bedž Akcija */
.badge-sale {
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background: linear-gradient(90deg, #e63946, #800020); /* crvena → bordo */
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Glavna slika proizvoda */
.product-image {
    width: 630px;
    height: 630px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Slike sličnih proizvoda */
.similar-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Opis proizvoda */
.product-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 100%;
}

/* Kada je opis predugačak */
.product-description.collapsed {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}
.product-description.collapsed::after {
    content: "..................";
    display: block;
    text-align: center;
    color: #666;
    font-weight: bold;
    margin-top: -1.5rem;
    padding-bottom: 0.5rem;
    background: transparent;
}
.show-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #003158;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Responsive pravila za mobilne */
@media (max-width: 768px) {
    .product-image {
        width: 100%;
        height: auto;
    }
    .similar-image {
        width: 100%;
        height: auto;
    }
    .product-description {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0 10px;
    }
    .pricing {
        font-size: 1rem;
    }
    .nav-link {
        padding: 6px 12px;
        font-size: 0.95rem;
    }
    .card {
        margin-bottom: 1rem;
    }
}
.cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(90deg, #003158, #61c9f8);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.cart-float:hover {
    transform: scale(1.1);
}
.cart-count {
    position: absolute;
    top: 1px;
    right: 1px;
    background: #e63946;
    color: #fff;
    border-radius: 20%;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 7px;
}
.btn-delete {
    border-radius: 50px;
    background: linear-gradient(90deg, #8B0000, #B22222); /* tamno crvena -> bordo */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-delete:hover {
    background: linear-gradient(90deg, #660000, #800000); /* još tamniji tonovi na hover */
    color: #fff;
}


