        /* ==========================================================
        HEADER — FIKSAN NA DESKTOPU, S LOGOM I HAMBURGER GUMBOM
        ========================================================== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.9);
            z-index: 100;
            padding: 1rem 0;
        }

        header .container nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Stil za hamburger gumb (skriva se na desktopu) */
        .hamburger {
            display: none;
            border: 0;
            background: transparent;
            font-size: 1.75rem;
            color: #646b79;
            line-height: 1;
            cursor: pointer;
        }

        /* ==========================================================
        GLAVNI SADRŽAJ — ISPOD HEADERA
        ========================================================== */
        main {
            margin-top: 5rem; /* Odmak od fiksnog headera */
        }

        /* ==========================================================
        LAYOUT — SIDEBAR (LIJEVO) + CONTENT (DESNO)
        ========================================================== */
        .layout {
            display: flex;
        }

        /* ==========================================================
        SIDEBAR — GLAVNI IZBORNIK
        ========================================================== */
        nav.sidebar {
            width: 18%;
            padding-right: 1rem;
            position: sticky;
            top: 6rem;
            align-self: flex-start;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            z-index: 150;
        }

        nav.sidebar > a {
            text-decoration: none;
            padding: 0.5rem 0;
            line-height: 1.4;
            display: block;
            cursor: pointer;
            font-size: 0.75rem; /* Veličina NAV fonta na lijevom meniju  */
            font-weight: 600;
            color: #646b79;
        }

        nav.sidebar > a:hover { color: var(--primary); }
        nav.sidebar > a.active { font-weight: bold; color: var(--primary); }

        nav.sidebar ul {
            line-height:0;
            padding-left: 0rem;
            margin: 0;
            display: none;
            flex-direction: column;
        }

        /* ==========================================================
        VERTIKALNA LINIJA UZ OTVORENE PODLINKOVE
        ========================================================== */

        /* Omotač (ul) s podlinkovima dobiva pseudo-element linije */
        nav.sidebar ul.open {
            display: flex;          /* ← prikazuje podlinkove */
            flex-direction: column;
            position: relative;     /* omogućuje apsolutno pozicioniranje linije */
        }

        /* ==========================================================
        PODLINK KAD JE ODABRAN
        ========================================================== */

        /* Opcionalno: istakni i sam aktivni link */
        nav.sidebar ul li a.active {
            font-weight: 600;
            color: #0172ad;
        }

        /* ==========================================================
        STILOVI ZA PODLINKOVE U SIDEBARU
        ========================================================== */
        nav.sidebar ul li {
            display: block;
            width: 100%;
            margin: 0.35rem 0 0.35rem 1.5rem; /* razmak između podlinkova + lijeva uvlaka */
            padding: 0;
        }

        nav.sidebar ul li a {
            font-size: 0.75rem;
            display: block;
            color: var(--text-color);
            text-decoration: none;
            white-space: normal;        /* dopušta višelinijski prikaz */
            overflow-wrap: break-word;  /* prelama duge riječi */
            line-height: 1.4;           /* ugodan razmak između linija */
        }

        nav.sidebar ul li a:hover {
            color: var(--primary);
        }

        /* Aktivni podlink zadržava boju čak i na hover */
        nav.sidebar ul li a.active:hover {
            color: #0172ad;
        }

        nav.sidebar ul.open::before {
            content: "";
            position: absolute;
            left: 0rem;
            top: 0.3rem;
            bottom: 0.3rem;
            width: 2px;
            background-color: rgba(0, 0, 0, 0.15);
            border-radius: 1px;
        }

        #breadcrumb,
        #breadcrumb * {
            all: unset;
            display: revert;
        }

        /* ==========================================================
        BREADCRUMB — MINIMALNO FORMATIRANJE
        ========================================================== */
        #breadcrumb {
            font-size: 0.8rem;
            color: #555;
            margin: 0.5rem 0 1rem 0;
        }

        #breadcrumb ol {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
        }

        #breadcrumb li {
            display: inline-flex;
            align-items: center;
        }

        /* separator između stavki */
        #breadcrumb li + li::before {
            content: " / ";
            color: #999;
            margin: 0 0.3rem;
        }

        /* linkovi */
        #breadcrumb a {
            color: inherit;
            text-decoration: none;
            cursor: pointer; /* 👈 dodano — pokazivač ruke */
        }


        /* zadnja stavka — aktivna */
        #breadcrumb li:last-child {
            font-weight: 600;
            color: #000;
        }



        /* ==========================================================
        DESNI SADRŽAJ (CONTENT)
        ========================================================== */
        section.content {
            width: 82%;
            padding-left: 1rem;
        }

        
        /* ==========================================================
        GRID ZA ČLANKE — OSNOVNI I RESPONSIVNI RASPORED
        (ispravan redoslijed: baza → tablet/mobitel → široki ekrani)
        ========================================================== */

        /* 🔹 Desktop — zadana širina: 3 članka u redu */
        .articles {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* ← 3 u redu (default) */
            gap: 1rem;
        }



        /* 🔹 Mobiteli — do 767.98px: 2 članka u redu (nikad 1) */
        @media (max-width: 767.98px) {
            .articles {
                grid-template-columns: repeat(2, 1fr); /* ← 2 u redu (mobile) */
            }
        }

        /* 🔹 Široki ekrani — više od 1535.98px: 4 članka u redu
            (MORA BITI NA KRAJU kako bi imalo prioritet) */
        @media (min-width: 1535.98px) {
            .articles {
                grid-template-columns: repeat(4, 1fr); /* ← 4 u redu (xl) */
            }
        }

        /* ==========================================================
        BACKDROP — TAMNI SLOJ IZA HAMBURGER MENIJA
        ========================================================== */
        .backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 140;
        }

        /* ==========================================================
        MOBILNI PRIKAZ (max-width: 767.98px)
        ========================================================== */
        @media (max-width: 1023.98px) {

            /* HAMBURGER GUMB — PRIKAZ NA MOBITELIMA */
            .hamburger {
                display: inline-flex;
                position: fixed;
                top: 1rem;
                right: 1rem;
                z-index: 1001; /* iznad headera i sadržaja */
                background: #fff;
                border-radius: 50%;
                padding: 0.5rem 0.6rem;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
            }

            /* Kad je meni otvoren — ikona ide iza poluprozirnog sloja */
            body.menu-open .hamburger {
                z-index: 120;  /* niže od backdrop-a (140) */
                opacity: 0.6;
            }

            /* SIDEBAR — MOBILNI DRAWER MENI */
            nav.sidebar {
                display: none;
                position: fixed;
                top: 1rem;
                left: 1rem;
                height: calc(100vh - 2rem);
                width: 280px;
                background-color: #fff;
                border: 1px solid rgba(0,0,0,0.1);
                border-radius: 1rem;
                box-shadow: 0 4px 16px rgba(0,0,0,0.15);
                padding: 5rem 1rem 2rem;
                overflow: auto;
                transform: translateX(-120%);
                transition: transform .25s ease;
                z-index: 200;
            }
            body.menu-open nav.sidebar { display: block; transform: translateX(0); }
            body.menu-open .backdrop { display: block; }

            /* SADRŽAJ — PUNA ŠIRINA NA MOBITELIMA */
            section.content { width: 100%; padding-left: 0; }

            /* HEADER se otkači na mobitelu */
            header { position: relative; top: auto; left: auto; width: 100%; z-index: auto; }
            main { margin-top: 0; }

            /* Tipografija u meniju */
            nav.sidebar > a.toggle-submenu { font-size: 0.9rem; } /* Veličina fonta na hamburger meniju - mobilni prikaz */

            nav.sidebar ul li a { font-size: 0.9rem; padding-left: 0.5rem; }

            nav.sidebar ul li {
            margin: 0.5rem 0 0.5rem 1rem; /* reguliranje razmaka između podmeni stavki - veći vertikalni razmak, manja uvlaka */
            }

            nav.sidebar ul li a {
                line-height: 1.4; /* malo gušće nego desktop, ali čitljivo */
            }
        }

        /* ==========================================================
        KARTICE PROIZVODA — WEBSHOP STIL (poravnanje gumba i cijene)
        ========================================================== */
        .articles article {
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* 🔹 Gura footer prema dnu */
            background: #fff;
            border: 1px solid rgba(0,0,0,0.1);
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            position: relative;
        }

        .articles article .card-body {
            flex-grow: 1;               /* 🔹 Tijelo se širi do maksimuma */
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding: 1rem 0rem 0rem;
        }

        .articles article .card-footer {
            margin-top: auto;           /* 🔹 Footer uvijek na dnu kartice */
            padding-bottom: 1rem;
        }

        .articles article img {
            width: 100%;
            height: auto;
            object-fit: contain;
            /* padding: 0.4rem; */
            transition: transform 0.4s ease;
        }

            .articles article h2 {
            font-size: 1.05rem;
            font-weight: 600;
            margin: 0 0 0.25rem;
            color: #222;
        }

        .articles article p {
            font-size: 0.9rem;
            line-height: 1.4;
            color: #666;
            margin-bottom: 0.75rem;
            flex-grow: 1;
        }

        /* Donji red — cijena iznad gumba */
        .articles article .card-footer {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: auto;
            gap: 0.5rem;
        }

        /* Cijena proizvoda */
        .articles article .price {
            font-size: 1.05rem;
            font-weight: 700;
            color: #1a1a1a;
            text-align: right;
            width: 100%;
        }

        /* Gumb Dodaj */
        .articles article button.add-to-cart {
            background: var(--primary, #007bff);
            color: #fff;
            border: none;
            border-radius: 0.5rem;
            padding: 0.45rem 1.4rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.25s ease, transform 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 0.4rem;
            width: 100%;
            align-self: center;
        }

        /* Ikonica košarice */
        /* .articles article button.add-to-cart::before {
            content: "🛒";
            font-size: 1rem;
        }
 */
        /* Hover efekti */
        .articles article:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
        .articles article:hover img { transform: scale(1.04); }
        .articles article button.add-to-cart:hover { background: #0056b3; transform: translateY(-2px); }

        /* ==========================================================
        PROIZVOD — STRANICA POJEDINAČNOG PROIZVODA
        ========================================================== */
        .product-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            align-items: start;
            margin-top: 2rem;
        }

        .product-grid article {
            background: #fff;
            border-radius: 10px;
            box-shadow: none;
        }

        .product-grid .product-info h1 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .product-grid .product-info p {
            font-size: 1rem;
            color: #444;
            line-height: 1.6;
        }

        .product-grid .product-info .price {
            font-size: 1.5rem;
            font-weight: 700;
            color: #000;
        }

        .product-grid .product-info button.add-to-cart {
            background: var(--primary, #007bff);
            color: #fff;
            border: none;
            border-radius: 0.5rem;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.25s ease, transform 0.2s ease;
        }

        .product-grid .product-info button.add-to-cart:hover {
            background: #0056b3;
            transform: translateY(-2px);
        }

        /* 🔹 Responsive — 1 kolona ispod 449.98px */
        @media (max-width: 549.98px) {
            .product-grid {
                grid-template-columns: 1fr;
            }
        }


        /* ==========================================================
        X GUMB ZA ZATVARANJE MENIJA
        ========================================================== */
        .close-drawer {
            position: fixed;
            top: 1.25rem;
            right: 1rem;
            background: transparent;
            border: none;
            font-size: 2rem;
            line-height: 1;
            cursor: pointer;
            color: #333;
            z-index: 1000;
        }

        /* Sakrij X gumb na desktopu */
        @media (min-width: 768px) {
            .close-drawer { display: none; }
        }

        /* ==========================================================
        GALERIJA SLIČICA — desktop (1280px i više)
        ========================================================== */
        .thumb-gallery img {
            width: 70px;
            height: 70px;
            padding: 0.2rem;
            object-fit: cover;
            background: #fff;
        }

        .thumb-gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;   /* centriranje vodoravno */
            align-items: center;       /* centriranje okomito */
            margin-top: 2rem;
        }

        /* ==========================================================
        GALERIJA SLIČICA — ekrani manji od 1280px
        ========================================================== */
        @media (max-width: 1279.98px) {
            .thumb-gallery img {
                width: 50px;
                height: 50px;
                padding: 0.2rem;
                object-fit: cover;
                background: #fff;
            }

            .thumb-gallery {
                gap: 0.5rem;
                justify-content: center;
                align-items: center;
                margin-top: 2rem;
            }
        }

