/* =========================================================
   PRINTMANIA HEADER
========================================================= */

header{
    position:relative;
    z-index:1000;

    display:flex;
    align-items:center;

    width:100%;
    min-height:76px;

    padding:10px 28px;

    box-sizing:border-box;

    background:rgba(15,17,23,.94);

    border-bottom:1px solid #252b36;

    box-shadow:
        0 10px 30px rgba(0,0,0,.20);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}


/* =========================================================
   SVETLEĆA LINIJA
========================================================= */

header::after{
    content:"";

    position:absolute;

    left:0;
    bottom:-1px;

    width:100%;
    height:1px;

    background:linear-gradient(
        90deg,
        transparent,
        #00bfff,
        #ff00aa,
        #00bfff,
        transparent
    );

    background-size:200% 100%;

    opacity:.65;

    animation:headerLine 5s linear infinite;
}

@keyframes headerLine{

    0%{
        background-position:0% 50%;
    }

    100%{
        background-position:200% 50%;
    }

}


/* =========================================================
   LOGO
========================================================= */

.logo-link{
    position:relative;
    z-index:2;

    display:flex;
    align-items:center;

    flex-shrink:0;

    text-decoration:none;

    transform:translateY(16px);

    transition:
        transform .3s ease,
        filter .3s ease;
}


.logo-link img{
    display:block;

    width:auto;

    max-width:260px;
    max-height:82px;

    object-fit:contain;

    transform:translateY(-5px);

    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        filter .35s ease;
}


.logo-link:hover{
    transform:translateY(13px);
}


.logo-link:hover img{
    transform:
        translateY(-7px)
        scale(1.04);

    filter:
        drop-shadow(
            0 0 18px
            rgba(0,191,255,.25)
        );
}


/* =========================================================
   NAVIGACIJA
========================================================= */

header nav{
    position:relative;
    z-index:10;

    display:flex;
    align-items:center;

    gap:5px;

    margin-left:auto;
    margin-right:20px;
}


header nav > a,
.dropdown > a{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    min-height:42px;

    padding:0 14px;

    border-radius:11px;

    color:#cbd4e4;

    text-decoration:none;

    font-size:16px;
    font-weight:800;

    white-space:nowrap;

    transition:
        color .25s ease,
        background .25s ease,
        transform .25s ease;
}


header nav > a::after,
.dropdown > a::after{
    content:"";

    position:absolute;

    left:50%;
    bottom:4px;

    width:0;
    height:2px;

    border-radius:5px;

    background:linear-gradient(
        90deg,
        #00bfff,
        #ff00aa
    );

    transform:translateX(-50%);

    transition:width .3s ease;
}


header nav > a:hover,
.dropdown > a:hover{
    color:white;

    background:rgba(0,191,255,.07);

    transform:translateY(-2px);
}


header nav > a:hover::after,
.dropdown > a:hover::after{
    width:55%;
}


/* =========================================================
   DROPDOWN
========================================================= */

.dropdown{
    position:relative;
}


/* hover most */

.dropdown::after{
    content:"";

    position:absolute;

    left:0;
    right:0;
    top:100%;

    height:14px;
}


.dropdown-menu{
    position:absolute;

    top:calc(100% + 12px);
    left:50%;

    min-width:220px;

    padding:8px;

    background:linear-gradient(
        145deg,
        rgba(25,30,40,.98),
        rgba(14,18,25,.98)
    );

    border:1px solid #292f3b;

    border-radius:16px;

    box-shadow:
        0 20px 45px rgba(0,0,0,.40),
        0 0 25px rgba(0,191,255,.06);

    opacity:0;
    visibility:hidden;

    transform:
        translate(-50%,-8px)
        scale(.97);

    transform-origin:top center;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .3s cubic-bezier(.22,1,.36,1);
}


.dropdown:hover .dropdown-menu{
    opacity:1;
    visibility:visible;

    transform:
        translate(-50%,0)
        scale(1);
}


/* =========================================================
   SUBMENU
========================================================= */

.submenu{
    position:relative;
}


.submenu::after{
    content:"";

    position:absolute;

    top:0;
    right:-10px;

    width:14px;
    height:100%;
}


.submenu > a{
    display:flex;
    align-items:center;
    justify-content:space-between;

    min-height:42px;

    padding:0 12px;

    border-radius:10px;

    color:#cbd4e4;

    text-decoration:none;

    font-size:14px;
    font-weight:800;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}


.submenu > a:hover{
    color:white;

    background:linear-gradient(
        90deg,
        rgba(0,191,255,.10),
        rgba(255,0,170,.08)
    );

    transform:translateX(3px);
}


/* =========================================================
   POD-DROPDOWN
========================================================= */

.submenu-menu{
    position:absolute;

    top:-8px;
    left:calc(100% + 8px);

    min-width:200px;

    padding:8px;

    background:linear-gradient(
        145deg,
        rgba(25,30,40,.98),
        rgba(14,18,25,.98)
    );

    border:1px solid #292f3b;

    border-radius:15px;

    box-shadow:
        0 20px 45px rgba(0,0,0,.40);

    opacity:0;
    visibility:hidden;

    transform:
        translateX(-8px)
        scale(.97);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}


.submenu:hover .submenu-menu{
    opacity:1;
    visibility:visible;

    transform:
        translateX(0)
        scale(1);
}


.submenu-menu a{
    display:block;

    padding:11px 12px;

    border-radius:9px;

    color:#bfc8d8;

    text-decoration:none;

    font-size:13px;
    font-weight:700;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.submenu-menu a:hover{
    color:white;

    background:rgba(0,191,255,.09);

    transform:translateX(3px);
}


/* =========================================================
   KORPA
========================================================= */

.cart-icon{
    position:relative;
    z-index:20;

    display:flex;
    align-items:center;
    justify-content:center;

    width:45px;
    height:45px;

    flex-shrink:0;

    border-radius:13px;

    color:#dce5f5;

    background:rgba(23,27,36,.85);

    border:1px solid #292f3b;

    text-decoration:none;

    box-shadow:
        0 8px 20px rgba(0,0,0,.20);

    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}


.cart-icon svg{
    width:23px;
    height:23px;

    transition:transform .3s ease;
}


.cart-icon:hover{
    color:white;

    background:linear-gradient(
        135deg,
        #00bfff,
        #008fd1
    );

    border-color:#00bfff;

    transform:translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0,191,255,.22),
        0 0 20px rgba(0,191,255,.10);
}


.cart-icon:hover svg{
    transform:
        scale(1.08)
        rotate(-3deg);
}


/* =========================================================
   CART BADGE
========================================================= */

.cart-badge{
    position:absolute;

    top:-7px;
    right:-7px;

    display:flex;
    align-items:center;
    justify-content:center;

    min-width:21px;
    height:21px;

    padding:0 5px;

    border-radius:20px;

    background:linear-gradient(
        135deg,
        #ff00aa,
        #d9008d
    );

    border:2px solid #0f1117;

    color:white;

    font-size:11px;
    font-weight:900;

    line-height:1;

    box-shadow:
        0 0 12px rgba(255,0,170,.35);

    animation:
        cartBadgeIn .35s cubic-bezier(.22,1,.36,1) both;
}


@keyframes cartBadgeIn{

    from{
        opacity:0;
        transform:scale(.4);
    }

    to{
        opacity:1;
        transform:scale(1);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1000px){

    header{
        padding:9px 18px;
    }

    header nav{
        gap:2px;
        margin-right:12px;
    }

    header nav > a,
    .dropdown > a{
        padding:0 9px;
        font-size:14px;
    }

    .logo-link img{
        max-width:220px;
        max-height:68px;
    }

}


/* =========================================================
   TELEFON
========================================================= */

@media(max-width:800px){

    header{
        display:flex;

        flex-wrap:nowrap;

        justify-content:flex-start;
        align-items:center;

        width:100%;
        min-width:100%;

        min-height:68px;

        padding:8px 10px;

        gap:0;

        overflow:visible;
    }


    .logo-link{
        width:auto;

        flex:0 1 auto;

        max-width:135px;

        justify-content:flex-start;

        transform:translateY(8px);

        margin:0;

        overflow:visible;
    }


    .logo-link:hover{
        transform:translateY(8px);
    }


    .logo-link img{
        width:auto;

        max-width:135px;
        max-height:48px;

        transform:translateY(-3px);
    }


    .logo-link:hover img{
        transform:
            translateY(-3px)
            scale(1.02);
    }


    header nav{
        display:flex;

        align-items:center;
        justify-content:flex-end;

        flex:1 1 auto;

        min-width:0;

        margin:0 4px 0 auto;

        gap:0;

        overflow:visible;
    }


    header nav > a,
    .dropdown > a{
        min-height:38px;

        padding:0 5px;

        border-radius:8px;

        font-size:11px;
        font-weight:800;

        white-space:nowrap;
    }


    header nav > a::after,
    .dropdown > a::after{
        bottom:2px;
    }


    .cart-icon{
        position:relative;

        top:auto;
        right:auto;

        flex:0 0 38px;

        width:38px;
        height:38px;

        margin-left:3px;

        border-radius:10px;
    }


    .cart-icon svg{
        width:20px;
        height:20px;
    }


    .cart-badge{
        top:-6px;
        right:-6px;

        min-width:19px;
        height:19px;

        font-size:10px;
    }


    .dropdown-menu{
        top:calc(100% + 8px);

        left:50%;

        min-width:190px;
    }

}


/* =========================================================
   MANJI TELEFONI
========================================================= */

@media(max-width:550px){

    header{
        padding:8px 8px;
    }


    .logo-link{
        max-width:112px;
    }


    .logo-link img{
        max-width:112px;
        max-height:43px;
    }


    header nav{
        margin-left:auto;
        margin-right:2px;

        gap:0;
    }


    header nav > a,
    .dropdown > a{
        min-height:36px;

        padding:0 3px;

        font-size:10px;
    }


    .cart-icon{
        flex-basis:36px;

        width:36px;
        height:36px;

        margin-left:2px;
    }


    .cart-icon svg{
        width:19px;
        height:19px;
    }

}


/* =========================================================
   VRLO MALI TELEFONI
========================================================= */

@media(max-width:400px){

    header{
        padding-left:6px;
        padding-right:6px;
    }


    .logo-link{
        max-width:95px;
    }


    .logo-link img{
        max-width:95px;
        max-height:38px;
    }


    header nav > a,
    .dropdown > a{
        padding:0 2px;

        font-size:9px;
    }


    .cart-icon{
        flex-basis:34px;

        width:34px;
        height:34px;
    }


    .cart-icon svg{
        width:18px;
        height:18px;
    }

}


/* =========================================================
   SPREČAVANJE HORIZONTALNOG SKROLA
========================================================= */

html,
body{
    max-width:100%;
    overflow-x:hidden;
}


/* =========================================================
   REDUCED MOTION - HEADER
========================================================= */

@media(prefers-reduced-motion:reduce){

    header::after,
    .cart-badge{
        animation:none !important;
    }

}


/* =========================================================
   PRINTMANIA HEADER - MOBILE FINAL FIX
========================================================= */

@media screen and (max-width:768px){

    body{
        padding-top:150px !important;
    }


    header{
        position:fixed !important;

        top:0 !important;
        left:0 !important;

        width:100% !important;
        height:150px !important;

        display:flex !important;
        flex-direction:column !important;

        align-items:center !important;
        justify-content:center !important;

        padding:10px 0 !important;
        margin:0 !important;

        overflow:visible !important;
    }


    /* LOGO */

    .logo-link{
        width:100% !important;
        height:65px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        margin:0 !important;
        padding:0 !important;

        position:relative !important;

        transform:none !important;

        order:1 !important;
    }


    .logo-link img{
        width:auto !important;
        height:auto !important;

        max-width:170px !important;
        max-height:60px !important;

        object-fit:contain !important;

        transform:none !important;
    }


    /* NAVIGACIJA */

    header nav{
        position:relative !important;

        left:auto !important;
        top:auto !important;

        transform:none !important;

        width:100% !important;
        height:55px !important;

        display:flex !important;

        align-items:center !important;
        justify-content:center !important;

        gap:0 !important;

        margin:0 !important;
        padding:0 !important;

        flex-wrap:nowrap !important;

        order:2 !important;

        overflow:visible !important;
    }


    header nav > a,
    header nav > .dropdown > a{
        min-height:40px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        padding:0 7px !important;
        margin:0 !important;

        font-size:13px !important;
        line-height:1 !important;

        white-space:nowrap !important;
    }


    /* DROPDOWN */

    .dropdown{
        position:relative !important;
        display:block !important;
    }


    .dropdown-menu{
        top:45px !important;

        left:50% !important;

        transform:translateX(-50%) !important;

        min-width:190px !important;

        z-index:999999999 !important;
    }


    .dropdown:hover .dropdown-menu{
        transform:translateX(-50%) !important;
    }


    /* KORPA */

    .cart-icon{
        position:absolute !important;

        right:12px !important;
        top:20px !important;

        width:45px !important;
        height:45px !important;

        transform:none !important;

        z-index:999999999 !important;
    }


    .cart-icon:hover{
        transform:scale(1.05) !important;
    }


    .cart-icon svg{
        width:38px !important;
        height:38px !important;
    }


    .cart-badge{
        top:-4px !important;
        right:-4px !important;

        min-width:20px !important;
        height:20px !important;

        font-size:11px !important;
    }

}


/* =========================================================
   MANJI TELEFONI - FINAL
========================================================= */

@media screen and (max-width:430px){

    header{
        height:145px !important;
    }


    body{
        padding-top:145px !important;
    }


    .logo-link{
        height:60px !important;
    }


    .logo-link img{
        max-width:150px !important;
        max-height:52px !important;
    }


    header nav{
        height:52px !important;
        gap:0 !important;
    }


    header nav > a,
    header nav > .dropdown > a{
        padding:0 5px !important;
        font-size:12px !important;
    }


    .cart-icon{
        right:8px !important;
        top:17px !important;

        width:42px !important;
        height:42px !important;
    }


    .cart-icon svg{
        width:35px !important;
        height:35px !important;
    }

}


/* =========================================================
   VEOMA MALI TELEFONI - FINAL
========================================================= */

@media screen and (max-width:380px){

    header{
        height:140px !important;
    }


    body{
        padding-top:140px !important;
    }


    .logo-link{
        height:57px !important;
    }


    .logo-link img{
        max-width:140px !important;
        max-height:48px !important;
    }


    header nav > a,
    header nav > .dropdown > a{
        padding:0 4px !important;
        font-size:11px !important;
    }


    .cart-icon{
        right:6px !important;
        top:15px !important;
    }

}


/* =========================================================
   PRINTMANIA - BESPLATNA DOSTAVA
========================================================= */

.free-shipping-bar{
    position:relative;

    width:100%;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:0;
    padding:0;

    box-sizing:border-box;

    overflow:hidden;

    background:linear-gradient(
        90deg,
        #151719 0%,
        #24282b 50%,
        #151719 100%
    );

    border-bottom:1px solid rgba(0,191,255,.45);

    box-shadow:
        inset 0 -1px 0 rgba(0,191,255,.08),
        0 2px 10px rgba(0,0,0,.30);

    z-index:1001;

    /* VAŽNO - TRaka SE NE POMERA */
    transform:none !important;
    animation:none !important;
}


/* =========================================================
   SADRŽAJ KOJI SE POMERA
========================================================= */

.free-shipping-message{
    display:flex;
    align-items:center;
    justify-content:center;

    gap:8px;

    color:#fff;

    font-size:14px;
    font-weight:600;

    line-height:1;

    white-space:nowrap;

    will-change:transform;

    animation:
        freeShippingTextMove
        5s
        ease-in-out
        infinite
        alternate;
}


/* =========================================================
   CENA
========================================================= */

.free-shipping-message strong{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:5px 10px;

    border-radius:7px;

    color:#fff;

    font-size:15px;
    font-weight:900;

    background:rgba(0,191,255,.13);

    border:1px solid rgba(0,191,255,.40);

    text-shadow:
        0 0 8px rgba(0,191,255,.55);

    animation:
        freeShippingPulse
        1.8s
        ease-in-out
        infinite
        alternate;
}


/* =========================================================
   KAMION
========================================================= */

.shipping-truck{
    display:inline-block;

    font-size:15px;
}


/* =========================================================
   SAMO TEKST IDE LEVO <-> DESNO
========================================================= */

@keyframes freeShippingTextMove{

    0%{
        transform:translateX(-120px);
    }

    100%{
        transform:translateX(120px);
    }

}


/* =========================================================
   PULS CENE
========================================================= */

@keyframes freeShippingPulse{

    0%{
        box-shadow:
            0 0 3px rgba(0,191,255,.15);
    }

    100%{
        box-shadow:
            0 0 15px rgba(0,191,255,.55);
    }

}


/* =========================================================
   DESKTOP
========================================================= */

@media(min-width:769px){

    .free-shipping-bar{
        position:relative !important;

        top:auto !important;
        left:auto !important;
        right:auto !important;

        width:100% !important;
        height:40px !important;

        transform:none !important;
        animation:none !important;
    }


    .free-shipping-bar + header{
        position:relative !important;
        top:auto !important;
    }


    body:has(.free-shipping-bar){
        padding-top:0 !important;
    }

}


/* =========================================================
   MOBILNI
========================================================= */

@media(max-width:768px){

    .free-shipping-bar{
        position:fixed !important;

        top:0 !important;
        left:0 !important;
        right:0 !important;

        width:100% !important;
        height:30px !important;

        z-index:1000000 !important;

        transform:none !important;
        animation:none !important;
    }


    .free-shipping-message{
        gap:5px;

        font-size:11px;

        animation:
            freeShippingTextMoveMobile
            4s
            ease-in-out
            infinite
            alternate;
    }


    .free-shipping-message strong{
        padding:3px 5px;

        font-size:12px;
    }


    .shipping-truck{
        font-size:12px;
    }


    .free-shipping-bar + header{
        top:30px !important;
    }


    body:has(.free-shipping-bar){
        padding-top:180px !important;
    }


    body:not(:has(.free-shipping-bar)){
        padding-top:150px !important;
    }


    body:not(:has(.free-shipping-bar)) header{
        top:0 !important;
    }


    @keyframes freeShippingTextMoveMobile{

        0%{
            transform:translateX(-15px);
        }

        100%{
            transform:translateX(15px);
        }

    }

}


/* =========================================================
   DO 430px
========================================================= */

@media(max-width:430px){

    body:has(.free-shipping-bar){
        padding-top:175px !important;
    }


    body:not(:has(.free-shipping-bar)){
        padding-top:145px !important;
    }

}


/* =========================================================
   DO 380px
========================================================= */

@media(max-width:380px){

    body:has(.free-shipping-bar){
        padding-top:170px !important;
    }


    body:not(:has(.free-shipping-bar)){
        padding-top:140px !important;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media(prefers-reduced-motion:reduce){

    .free-shipping-message,
    .free-shipping-message strong{
        animation:none !important;
    }

}