/* --- VARIJABLE --- */
:root {
    --primary: #007bff;
    --secondary: #2ecc71;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;   /* potrebno za apsolutni dropdown */
    box-sizing: border-box;
}

.logo img { height: 55px; mix-blend-mode: multiply; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
}

.nav-links a.active { color: var(--primary); }

/* Hamburger - sakriveno na desktopu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
    /* Kritično za iOS: */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1001;
}

.header-icons { display: flex; gap: 20px; align-items: center; }
.icon-link { font-size: 20px; color: var(--dark); }
.cart-wrapper { position: relative; }
.cart-badge {
    position: absolute; top: -10px; right: -10px;
    background-color: var(--secondary); color: white;
    font-size: 11px; padding: 2px 6px; border-radius: 50%;
}

/* --- ANIMACIJA --- */
@keyframes navLinkFade {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 1024px) {

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Logo ostaje lijevo, ne centrira se apsolutno */
    .logo {
        position: static;
        transform: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;          /* visina headera */
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        z-index: 1000;
        gap: 0;
        padding: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
        opacity: 0;         /* animacija će postaviti na 1 */
    }

    .nav-links li a {
        display: block;
        padding: 18px 24px;
        text-align: center;
        white-space: nowrap;
    }
}