:root {
    --unit-100vh: fit-content;
    --main-mob-background: #123456;
    --lightskyblue: lightskyblue;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-padding);
    color-scheme: light dark;
    overflow-x: hidden;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text);
    background-color: var(--backgroundlight);
}

.menu-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--darkoverlay);
    backdrop-filter: var(--backdropblur);
    visibility: hidden;
    opacity: 0;
    transition: all 350ms ease-in-out;
}

.menu-overlay--visible {
    visibility: visible;
    opacity: 1;
    z-index: 50;
}

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
}

.uppercase {
    text-transform: uppercase;
}

.bold {
    font-weight: 600;
}

.razmak {
    padding-inline: 3px;
}

.intro {
    position: absolute;
    top: 0em;
    font-size: 1px;
    color: transparent;
}

img {
    display: block;
    width: 100%;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    background: var(--headerlight);
    backdrop-filter: var(--backdropblur);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .1);
    transition: 500ms ease-in-out;
    z-index: 200;
}

.header-dark {
    background: var(--headerred);
    box-shadow: 1px 1px 5px rgba(0, 0, 0, .35);
}

.header-alert-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 50%;
    opacity: 1;
    visibility: visible;
    background-color: var(--backgroundred);
    transition: all 250ms ease-in;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .15);
    display: none;
}

.header-alert-container-hide {
    max-height: 0px;
    visibility: hidden;
    opacity: 0;
}

.header-alert {
    width: fit-content;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #f2f2f2;
    padding: .5em 1em;
}

.header-alert-logo,
.header-alert-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 5px;
}

.header-alert-jelo {
    padding: 0 5px;
    color: goldenrod;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
    text-decoration: none;
}

.header-alert-logo img {
    width: 7em;
    height: 2em;
    margin-left: 5px;
}

.header-alert-razmak {
    font-size: 1.5em;
    font-weight: 200;
    padding: 0 15px;
}

.header-alert-close {
    position: absolute;
    top: 50%;
    right: 1em;
    transform: translateY(-50%);
    color: #f2f2f2;
    padding: 0 .35em;
    border-top: 1px solid #f2f2f2;
    cursor: pointer;
}

.menu-toggle {
    display: none;
}

.skip-nav-link {
    position: absolute;
    left: .35rem;
    background: var(--backgroundgreen);
    color: var(--textlight);
    text-decoration: none;
    padding: .5rem 1.5rem;
    border-radius: 0 0 .25rem .25rem; 
    transform: translateY(-120%);
    transition: transform 325ms ease-in;
}

.skip-nav-link:focus {
    transform: translateY(0);
}

nav {
    position: relative;
    width: 100%;
    max-width: 1570px;
    height: 6em;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-logo-link {
    width: 220px;
    margin-right: 3em;
    margin-bottom: .5em;
}

li {
    display: inline-block;
    margin: 0 .35em;
}

.nav-link {
    padding: .35em;
    color: var(--textdark);
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 5px;
}

.nav-link-active {
    position: relative;
}

.nav-link-active::before {
    position: absolute;
    content: '';
    top: 12px;
    left: -6px;
    width: 10px;
    height: 10px;
    background-color: var(--backgroundgreen);
    border-radius: 50%;
}

.header-dark .nav-link-active::before {
    background-color: var(--navlinkframe);
}

.header-dark .nav-link:hover,
.header-dark .nav-link:focus {
    border: 2px solid var(--borderdark);
}

.header-dark .nav-link {
    color: var(--textlight);
}

.nav-link:hover,
.nav-link:focus {
    border: 2px solid var(--bordergreen);
    border-radius: 5px;
}

.zastava img {
    width: 35px;
    height: 25px;
    margin-bottom: -6px;
    border: 1px solid var(--borderdark);
    border-radius: 10px 25px 10px 25px;
    filter: drop-shadow(0px 0px 3px rgba(0,0,0,.35));
    transition: 250ms ease-in-out;
}

.zastava img:hover,
.zastava img:focus {
    transform: scale(1.1);
}

.nav-right {
    position: relative;
    text-align: center;
    margin-left: auto;
}

.nav-right a {
    color: var(--textdark);
    font-size: 32px;
    border: 2px solid var(--borderdark);
    border-radius: 5px;
    padding: 0.2em 0.1em 0 0.1em;
    cursor: pointer;
    transition: 350ms ease-out;
}

.header-dark .nav-right a {
    color: var(--textdark);
    border: 2px solid var(--borderdark);
}

.nav-right a:hover,
.nav-right a:focus {
    color:royalblue;
    border: 2px solid var(--borderblue);
}

.dark-mode-toggle {
    position: absolute;
    top: 0;
    left: 5em;
    background-color: var(--backgroundlight); 
    padding: .5em;
    border: 1px solid var(--borderdark);
    border-top: none;
    border-radius: 0 0 5px 5px;
    cursor: pointer;
    transition: 250ms ease-in-out;
    z-index: 1;
}

.dark-mode-toggle img {
    width: 25px;
}

.language-link-mobile {
    display: none;
}

.share-me {
    position: absolute;
    top: .5em;
    left: 2em;
    width: 28px;
    height: 31px;
    cursor: pointer;
    z-index: 1;
    display: none; /*ako navigator share postoji, postavlja display: block*/
}

.cart span {
    position: absolute;
    top: -1em;
    right: -.5em;
    width: 20px;
    height: 20px;
    background-color: var(--backgroundblue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1px;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--borderdark);
    border-radius: 5px;
    cursor: pointer;
}

.header-dark .cart span {
    border: 1px solid var(--borderdark);
}

.kosarica {
    position: absolute;
    bottom: -1.5em;
    left: 50%;
    transform: translateX(-50%);
    font-size: .8rem;
    font-weight: 600;
    color: var(--textdark);
    text-transform: uppercase;
}

.header-dark .kosarica {
    color: var(--textdark);
}

/*------------------------------------ PRODUCT SECTION -------------------------------------------*/
.product-section,
.delivery-minimum {
    position: relative;
    width: 100%;
    max-width: 1570px;
    max-height: 1400px; /*u landing-page-pizza-size.js max-hight je povećan na 1450px jer stranica sadrži odabir veličine za pizzu*/
    background: var(--backgroundlight);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex: 1;
    border-left: 1px solid var(--lightskyblue);
}

.products-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
}

.products-container::before {
    position: absolute;
    content: attr(data-before);
    top: 20%;
    left: -2em;
    color: var(--lightskyblue);
    letter-spacing: 3px;
    writing-mode: vertical-lr;
    text-transform: uppercase;
}

.product-container-content {
    height: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.product-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3em 0 0 0;
}

.product-img-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.landing-page-product-img {
    clip-path: circle(65%);
    filter: drop-shadow(0px 0px 8px rgba(0,0,0,.35));
}

.simbolicno {
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #555;
    font-size: .75em;
    text-align: center;
    margin-top: .3em;
    z-index: 3;
}

.nedostupno {
    position: absolute;
    inset: 0;
    background-color: rgba(255 255 255 / .3);
    backdrop-filter: var(--backdropblur);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Peralta', serif;
    color: rgba(255 255 255 / .3);
    font-size: 1.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .35);    
    border-radius: 10px;
    clip-path: circle(65%);
}

.blur {
    position: absolute;
    inset: 0;
    background-color: rgba(255 255 255 / .3);
    backdrop-filter: var(--backdropblur);
    z-index: 300;
}

.product-title {
    width: 100%;
    font-size: 2rem;
    color: darkgoldenrod;
    font-weight: bold;
    text-shadow: 1px 1px rgba(0,0,0,.15);
    line-height: 32px;
    margin-bottom: 1em;
}

.product-title-english {
    position: absolute;
    top: calc(47px + var(--productTitleHeight));
    left: 0;
    color: goldenrod;
    font-weight: bold;
    text-shadow: 1px 1px rgba(0,0,0,.15);
    font-style: italic;
}

.product-sizes-title {
    margin-bottom: .5em;
    color: var(--textdark);
    font-weight: 600;
}

.product-sizes {
    width: 100%;
    display: flex;
    gap: 2em;
    margin-bottom: 3em;
    color: var(--textlight);
    font-weight: 600;
}

.product-size {
    background: goldenrod;
    width: 80px;
    text-align: center;
    border-radius: 5px;
    border: 2px solid rgb(148, 108, 8);
    cursor: pointer;
}

.product-size-small,
.product-size-medium,
.product-size-jumbo {
    position: relative;
}

.product-size-small:after,
.product-size-medium:after,
.product-size-jumbo:after {
    position: absolute;
    content: '';
    width: 75px;
    bottom: -1.75em;
    left: 50%;
    transform: translateX(-50%);
    color: goldenrod;
    font-size: .75rem;
}

.product-size-small::after {
    content: '∅ 31cm';    
}
.product-size-medium::after {
    content: '∅ 35cm';
}
.product-size-jumbo::after {
    content: '∅ 50cm';
}

.product-size-active {
    color: var(--textdark);
    border: 2px solid var(--borderdark);
}

.product-size-active::after {
    color: var(--textdark);
    text-decoration: underline;
}

.opis-jela {
    width: 100%;
    max-width: 700px;
    color: var(--textdark);
    line-height: 1.6rem;
    margin-bottom: 3em;
}

.quote {
    display: block;
    margin-bottom: 1em;
    color: #333;
    -webkit-text-fill-color: #f2f2f2;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #333;
}

.product-cijena {
    position: absolute;
    top: 1.65em;
    right: .9em;
    color: darkgoldenrod;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-order {
    position: relative;
    width: 300px;
    margin-bottom: 3em;
    display: flex;
    justify-content: space-around;
    padding: .5em 0;
    border: 1px solid var(--lightskyblue);
    border-radius: 5px;    
}

.card-order .add-to-cart {
    background: #cd3333;
    color: white;
    padding: .5em 1.25em;
    font-size: .85rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 1px black;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    z-index: 1;
}

.card-order .quantity {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-order .quantity ion-icon {
    font-size: 25px;
    color: var(--textblue);
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;
}

.broj-komada {
    color: var(--textdark);
}

.potvrda {
    position: absolute;
    bottom: 50px;
    right: 5em;
    width: 89px;
    background: rgb(180, 235, 180);
    border: 1px solid rgba(92, 131, 92);
    border-radius: 5px;
    color: #333;
    font-size: .66rem;
    text-align: center;
    text-shadow: 1px 1px 1px white;
    padding: 3px 2px;
    box-shadow: -1px -1px 2px rgba(0,128,0,.35);
    z-index: 1;
    display: none;
}

.potvrda::before{
    position: absolute;
    content: '';
    bottom: -15px;
    right: 9px;
    border: 8px solid transparent;
    border-top: 8px solid rgba(180,235,180);
    filter: drop-shadow(1px 1px 1px  rgba(0,128,0,.35));
    z-index: 20;
}

.product-content-icons {
    position: absolute;
    top: -1em;
    right: 0;
    display: flex;
    gap: 1em;
    align-items: baseline;
}

.kategorije {
    width: 150%;
    margin-bottom: 2em;
    margin-left: -25%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    color: grey;
}

.kategorije-link {    
    padding-left: 10px;
    padding-right: 10px;
    color: grey;
    font-weight: 600;
    text-decoration: none;
}

.kategorije-link:hover {
    color: #cd3333;
}

/*--------grupa-item-container--------------*/
.grupa-container {
    width: 100%;
    max-width: 425px;   
    background: var(--main-mob-background);
    margin: 0 auto;
    padding: 1em 0;
    overflow-y: scroll;
    overflow-x: hidden;
}

.grupa-container-title {
    color: yellow;
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 1em;
}

.grupa-item {
    position: relative;
    width: 96%;
    height: 102px;
    margin: 0 auto;
    margin-block: 5px;
    display: flex;
    flex-direction: row;    
    border: 1px solid #f2f2f2;
    border-radius: .4em;
}

.grupa-item-img {
    width: 96px;
    height: 96px;
    margin: 2px 5px 2px 2px;
    border-radius: .3em;
}

.grupa-item-content {
    padding: 0;
}

.grupa-item-title {
    position: relative;
    width: 200px;
    margin-top: .2em;
    font-size: .85rem;
    line-height: 1.1rem;
    color: goldenrod;
    text-transform: uppercase;
}

.grupa-item-title-english {
    font-size: .6rem;
    line-height: .75rem;
    color: #f2f2f2;
    font-style: italic;
    margin-bottom: .2rem;    
}

.grupa-item .cijena {
    position: absolute;
    top: 0;
    right: .4em;
    font-size: .9rem;
    color: goldenrod;
}

.grupa-item-pizza-size-container {
    position: absolute;
    bottom: 27px;
    left: 103px;
    display: flex;
    width: 100%;
    gap: 16px;
}

.grupa-item-pizza-size {
    position: relative;
    color: #aaa;
    font-size: .65rem;
    cursor: pointer;
}

.grupa-item-pizza-size::before {
    position: absolute;
    content: '|';
    top: -2px;
    left: -10px;
    color: rgba(255,255,255, .3);
    font-size: .8rem;
}

.grupa-item-pizza-size:first-of-type:before {
    display: none;
}

.grupa-item-pizza-size-active {
    color: white;
    text-decoration: underline;
}

.grupa-item-opis {
    padding: 4px 0;
    color: #f2f2f2;
    font-size: .75rem;
    line-height: 13px;
}

.grupa-item-link {
    position: absolute;
    background: #f2f2f2;
    width: 105px;
    padding: .2em 0;
    color: #cd3333;
    font-size: .7rem;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
}

.pogledaj-jelo {
    bottom: .35em;
    right: 10.5em;    
}

.ne {
    display: none;
}

.add-grupa-item-to-cart {
    bottom: .35em;
    right: .5em;
}

.grupa-item-potvrda {
    position: absolute;
    bottom: 33px;
    right: 1.5em;
    width: 89px;
    background: rgb(180, 235, 180);
    border: 1px solid rgba(92, 131, 92);
    border-radius: 5px;
    color: #333;
    font-size: .66rem;
    text-align: center;
    text-shadow: 1px 1px 1px white;
    padding: 3px 2px;
    box-shadow: -1px -1px 2px rgba(0,128,0,.35);
    z-index: 1;
    display: none;
}

.grupa-item-potvrda::before {
    position: absolute;
    content: '';
    bottom: -15px;
    right: 9px;
    border: 8px solid transparent;
    border-top: 8px solid rgba(180,235,180);
    filter: drop-shadow(1px 1px 1px  rgba(0,128,0,.35));
    z-index: 20;
}

.grupa-item-bottom-link {
    position: relative;
    display: block;
    width: 70%;
    margin: 3em auto;  
    z-index: 0;
}

.grupa-item-bottom-link::before {
    position: absolute;
    content: '';
    inset: 0;
    background-color: rgba(255,255,255, .5);
    filter: blur(45px);
    border-radius: 100%;
    z-index: -1;
}

.ostala-jela {
    display: block;
    width: 275px;
    margin: 2em auto;
    background: #cdcdcd;
    color: #f2f2f2;
    padding: .5em 0;
    font-size: .85rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 1px black;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: 1px solid #f2f2f2;
    border-radius: 5px;
}

.delivery-minimum {
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 4em 0;
    border-bottom: 1px solid var(--lightskyblue);
    border-radius: 0px 0px 0px 10px; 
    margin-bottom: 2em;
}

.delivery-minimum-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.delivery-minimum-content p {
    width: 90%;
    max-width: 450px;
    margin: 1em 0;
    color: var(--textdark);
    font-size: 1.25rem;
}

.delivery-minimum-img {
    width: 100%;
    max-width: 500px;
}

.delivery-minimum-img > img {
    display: block;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 50px 5px 50px 25px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,.3));
}

.minimum-dostave {
    font-weight: 600;
    margin-left: 5px;    
}

.gdje-dostavljamo {
    width: 100%;
    max-width: 800px;
    margin-top: 2em;
    display: flex;
    justify-content: center;
}

.modal-gdje-dostavljamo {
    position: relative;
    width: 280px;
    height: fit-content;
    background: var(--backgroundlight);
    margin: 1em auto;
    color: var(--textdark);
    font-size: 1.5rem;
    border: 2px solid var(--borderdark);
    padding: 5px 0;
    cursor: pointer;
    transition: 150ms ease-in-out;
}

.modal-gdje-dostavljamo::before {
    position: absolute;
    content: '';
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 100%;
    border: 2px solid var(--borderlight);
    border-inline: none;
}

.modal-gdje-dostavljamo::after {
    position: absolute;
    content: '';
    top: 50%;
    left: -2px;
    transform: translateY(-50%);
    width: 100%;
    height: 30%;
    border: 2px solid var(--borderlight);   
    border-block: none;
}

.modal-gdje-dostavljamo:hover {
    color: royalblue;
    border: 2px solid royalblue;
}

.modal-gdje-dostavljamo-bg {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0ms, opacity 500ms;
    z-index: 20001;
}

.gdje-dostavljamo-active {
    visibility: visible;
    opacity: 1;
}

.modal {
    position: relative;
    background: url(../images/domet.jpg) no-repeat;
    background-size: cover;
    width: 600px;
    height: 600px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px 3px #f2f2f2; 
}

.modal-content {
    width: 80%;
    max-width: 470px;
    margin-top: 2px;
    margin-left: 2px;
    background: rgba(0,0,0,.5);
    color: #f2f2f2;
    text-shadow: 1px 1px black;
    padding: 5px;
    border-radius: 5px 0px 5px 0px;
    border-right: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;

}

.gdje-dostavljamo-close {
    position: absolute;
    top: -2em;
    right: 10px;
    padding: .1em .4em;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    padding: .2em .4em .1em .4em;
    cursor: pointer;
}

.vrste-placanja {
    width: 90%;
    max-width: 500px;
    margin-top: 2em;
}

.placanje {
    width: 100%;
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-weight: bold;;
    text-transform: uppercase;
}

.placanje-text {
    color: var(--textdark);
    font-size: 1.2rem;
    text-align: center;
}

.placanje img {
    width: 50px;
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,.5));
    padding-bottom: 1em;
    transition: 250ms ease-in-out;
}

.placanje img:hover {
    transform: scale(1.1);
}

/*------------HERO section-------------------*/

.hero {
    position: relative;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    background-attachment: fixed; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero::before {
    position: absolute;
    content: '';
    inset: 1em;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    box-shadow: 1px 1px 3px rgba(0,0,0,.35);
    z-index: 1;
}

.landing-background {
    background-image: url("../images/backgrounds/dostavno_vozilo_medulin_background.jpg");
    background-position: 45% 100%;
    background-color: rgb(65, 105, 225, .5);
    background-blend-mode: multiply;
}

.hero-container {
    position: relative;
    width: 95%;
    max-width: 1500px;
    height: 80vh;
    max-height: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-container > h2 {
    width: 90%;
    max-width: 500px;
    color: #f2f2f2;
    font-size: 4rem;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
    letter-spacing: 1px;
    line-height: 120px;
    z-index: 1;
}

/*---------- onLoad progressbar ------------*/
.loader-container {
    position: absolute;
    inset: 0;
    background-color: var(--backgroundloader);
    backdrop-filter: var(--backdropblur);
    -webkit-backdrop-filter: blur(50px);
    z-index: 100000;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-width: 500px;
    text-align: center;
}

.loader img {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: 2em;
    transition: 300ms linear;  
    transition-property: width;
    animation: progressAnimationStrike 3s;
}
  
.progress {
    padding: 2px;
    background: rgba(0, 0, 0, .1);
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}
  
.progress-bar {	
    height: 18px;
    background-color: var(--backgroundred);  
    border-radius: 4px; 
    transition: 0.4s linear;  
    transition-property: width, background-color;    
}
  
.progress-striped .progress-bar { 	
    border: 1px solid var(--borderred);
    background-color: var(--backgroundred); 
    width: 100%; 
    background-image: linear-gradient(
          45deg, rgb(175,35,35) 25%, 
          transparent 25%, transparent 50%, 
          rgb(175,35,35) 50%, rgb(175, 35, 35) 75%,
          transparent 75%, transparent); 
    animation: progressAnimationStrike 3s;
}
  
@keyframes progressAnimationStrike {
    from { width: 0 }
    to   { width: 100% }
}

/*---------------Alert proizvodi-u-kosarici---------------*/

.proizvodi-u-kosarici--container {
    position: absolute;
    top: 6em;
    right: 0;
    width: 100%;
    max-width: 400px;
    background: rgba(50,120,0, .9);
    justify-content: center;
    color: #f2f2f2;
    padding: 20px 0;
    border-radius: 0px 0px 5px 5px;
    box-shadow: 1px 1px 2px rgba(0,0,0,.25);
    cursor: pointer;
    z-index: 40;
    display: none;
}

@-moz-document url-prefix() {
    .proizvodi-u-kosarici--container {
        margin-right: .08em;
    }
}

.proizvodi-u-kosarici--show {
    display: flex;
}

.proizvodi-u-kosarici {
    position: relative;
    width: 85%;
    letter-spacing: .25px;
    text-align: center;
}

.proizvodi-u-kosarici span {
    margin-left: 3px;
}

.proizvodi-u-kosarici-close {
    position: absolute;
    top: .5em;
    right: .75em;
    width: 15px;
    border-bottom: 1px solid #f2f2f2;
    text-align: center;
    cursor: pointer;
}

/*-------- Go Top --------------------*/
.go_top {
    position: fixed;
    bottom: 1em;
    right: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5em;
    height: 2.5em;
    background-color: var(--backgroundgreen);
    border-radius: 10px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 100;
    visibility: hidden;   
    opacity: 0;
    transition: all 350ms ease-out;    
}

.go_top-scrolled {
    visibility: visible;   
    opacity: 1;
}
    
.go_top ion-icon {
    font-size: 5rem;
    font-weight: bold;
    color: var(--textlight);            
}

/*--------------no delivery modal--------------------*/
.no-delivery-modal-opacity {
    position: absolute;
    inset: 0;
    background-color: var(--darkoverlay);
    backdrop-filter: var(--backdropblur);
    -webkit-backdrop-filter: var(--backdropblur);
    z-index: 1000;
    display: none;
}

.no-delivery-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-width: 350px;
    height: fit-content;  
    background: #fefefe;
    padding: 2em;
    border: 2px solid white;
    border-radius: 5px;
    box-shadow: inset 20px 20px 20px rgba(0, 0, 0, .1),
                20px 20px 20px rgba(0, 0, 0, .1),
                20px 20px 20px rgba(0, 0, 0, .1),
                inset -20px -20px 20px rgba(0,0,0, .1);
    filter: drop-shadow(0px 0px 3px rgba(255,255,255, .7));
    z-index: 1000;
    display: none;
}

.no-delivery-modal p {
    width: 100%;
    text-align: center;
}

.no-delivery-modal p span {
    position: relative;
    font-size: 22px;
    color: white;
    text-shadow: 0px 0px 2px #cd3333,
                 0px 0px 2px #cd3333,
                 0px 0px 2px #cd3333,
                 0px 0px 2px #cd3333;
    font-weight: bold;
    letter-spacing: 1px;
}

.no-delivery-button {
    display: block;
    width: 100px;
    margin: 1.5em auto;
    padding: .25em 0;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
    border-color: grey;
    border-radius: 5px;
    cursor: pointer;
}

.no-delivery-thum {
    display: block;
    margin: 0 auto;
    width: 75%;
    max-width: 275px;
    margin-top: 1em;
}

.no-delivery-logo {
    display: block;
    margin: 0 auto;
    width: 60%;
    max-width: 275px;
    margin-top: 1em;
}

/*--------------no lovalstorage modal ------------------------*/
.no-localstorage-modal {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--darkoverlay);
    justify-content: center;
    align-items: center;
    z-index: 30000;
    display: none;
}

.no-localstorage-modal-content {
    position: relative;
    width: 80%;
    max-width: 500px;
    height: fit-content;
    background-color: #f2f2f2;
    padding: 1em;
    border-radius: 5px;
}

.no-localstorage-modal-content a {
    display: block;
    margin: 1em auto;
    padding: .35em;
    color: var(--textred);
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--borderred);
}

.no-localstorage-modal-close {
    position: absolute;
    top: -2em;
    left: 50%;
    transform: translateX(-50%);
    padding: .35em .5em;
    background-color: var(--backgroundred);
    color: #f2f2f2;
    border-radius: 2px 2px 0px 0px;
    cursor: pointer;
    z-index: -1;
}

/*----------WEBKITS------------------*/

::-webkit-scrollbar {
    width: 17px;
}
    
::-webkit-scrollbar-track {
    border: 4px solid #21212d;
    box-shadow: inset 0 0 2.5px 2px rgba(0,0,0,.5)        
}
    
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4169e1, darkblue, #2f4fad, darkblue, #4169e1); 
    border: 1px solid darkblue;
    border-radius: 4px;
}

.grupa-container::-webkit-scrollbar {
    width: 8px;
}

.grupa-container::-webkit-scrollbar-track {
    border: 2px solid #21212d;
    box-shadow: inset 0 0 2.5px 2px rgba(0,0,0,.5)        
}

.preview-cart-container::-webkit-scrollbar {
    width: 8px;
}

.preview-cart-container::-webkit-scrollbar-track {
    border: 2px solid #21212d;
    box-shadow: inset 0 0 2.5px 2px rgba(0,0,0,.5)        
}

@supports (scrollbar-color: red blue) {
    * {
        scrollbar-color: #cd3333 #333;
    }
}

@supports (animation-timeline: view()) {
    
    .hero-container > h2,
    .grupa-container-title,
    .grupa-item {
        opacity: 1;
        animation: fade-out linear;
        animation-timeline: view();
        animation-range: exit -20%;
    }
    
    .delivery-minimum-img > img {
        scale: .8;
        opacity: 0;
        animation: fade-in linear forwards;
        animation-timeline: view();
        animation-range: entry 20%;
    }
    
    .delivery-minimum-content p {
        opacity: 0;
        animation: fade-in-text linear forwards;
        animation-timeline: view();
        animation-range: entry 10%;
    }
}

@keyframes fade-in {
    to { scale: 1; opacity: 1 }
}

@keyframes fade-in-text {
    to { opacity: 1 }
}

@keyframes fade-out {
    to { opacity: 0 }
}

@keyframes progressAnimationStrike {
    from { width: 0 }
    to   { width: 100% }
}

@media (max-width: 1650px) {
    .products-container::before {
        left: .25em;
    }
}

@media (max-width: 1600px) {
    .header-alert {
        flex-direction: column;
        font-size: .75rem;
    }

    .header-alert-logo {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        bottom: 1em;
        left: .75em;
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 2001;
    }
    
    .hamburger {
        margin-top: 30px;
    }
    
        .hamburger,
        .hamburger::before,
        .hamburger::after {
            content: '';
            display: block;
            background: var(--backgrounddark);
            height: 3px;
            width: 2.5em;
            border-radius: 3px;
            transition: all ease-in-out 350ms;
        }
    
        .header-dark .hamburger,
        .header-dark .hamburger::before,
        .header-dark .hamburger::after {
            background-color: var(--backgrounddark);
        }
    
        .hamburger::before {
            transform: translateY(-7px);
        }
    
        .hamburger::after {
            transform: translateY(4px);
        }
    
        .open .hamburger {
            transform: rotate(45deg);
        }
    
        .open .hamburger::before {
            opacity: 0;
        }
    
        .open .hamburger::after {
            transform: translateY(-3px) rotate(90deg);
    }
    
    .izbornik {
        padding: 1em 0;
        font-size: .8rem;
        color: var(--textdark);
        font-weight: 600;
        text-transform: uppercase;
        opacity: 1;
        transition: all ease-in-out;
    }
    
    .header-dark .izbornik {
        color: #f2f2f2;
    }
    
    .close {
        font-size: .8rem;
        color: var(--text);
        text-transform: uppercase;
        font-weight: 600;
        opacity: 0;
        transform: translateY(-27px);
        transition: all ease-in-out;
    }
    
    .header-dark .close {
        color: #f2f2f2;
    }
    
    .open .izbornik {
        opacity: 0;
    }
    
    .open .close {
        opacity: 1;
    }

    nav {
        display: flex;
        align-items: center;
        transition: 350ms ease-in-out;
    }

    .nav-logo-link {
        width: 250px;
        margin-right: initial;
        margin-bottom: initial;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
        
    .nav-links {
        position: absolute;
        top: 6em;
        left: -27em;
        width: 25em;
        display: flex;
        flex-direction: column;
        background-color: var(--backgrounddark);
        padding: 2em 1.5em;
        border-radius: 0px;
        transition: all ease-in-out 600ms;        
        background: #f2f2f2;
        box-shadow: 1px 1px 2px rgba(0, 0, 0, .25);
        border-radius: 0px 0px 20px 0px;
        z-index: 50;
    }

    .nav--open,
    .header-dark .nav--open {
        transform: translateX(26em);
    }

    nav li {
        padding: .5em 0;
    }

    .nav-link {
        color: #333;
    }

    .header-dark .nav-link {
        color: #333;
    }

    .nav-right {
        position: absolute;
        right: 2em;
    }

    .kasa {
        position: absolute;
        top: 1.9em;
        right: -.5em;
        font-size: 1rem;
    }

    .dark-mode-toggle {
        top: 0em;
        left: 0;
        border-radius: 0 0 5px 0px;
        border-left: none; 
    }

    .share-me {
        left: 3.75em;
    }

    .language-link-mobile {
        position: absolute;
        top: .4em;
        left: 5.5em;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: .3em;        
        background: rgba(56, 109, 208, 0.3);
        border: 2px solid rgba(56, 109, 208, 0.6);
        padding: 0 .5em;
        color: #f2f2f2;
        font-size: 20px;
        border-radius: 5px;
        z-index: 100;
    }

    .language-link-mobile img {
        width: auto;
        height: 16px;
        border-radius: 2px;
    }
}

@media(max-width: 1450px) {
    .kategorije {
        width: 100%;
        margin-left: 0;
        margin-block: 2.5em;
    }   

    .razmak {
        display: none;
    }
}

@media(max-width: 1070px) {

    .header-alert {
        font-size: .75rem;
    }

    .language-link-mobile {
        left: initial;
        right: .6em;
    }

    .product-section {
    flex-direction: column;
    border-left: none;
    background: var(--main-mob-background);
    min-height: fit-content;
    }

    .delivery-minimum {
        border-left: none;
        border-bottom: none;
        border-radius: 0px;
        margin-bottom: 0;
    }

    .landing-page-product-img {
        clip-path: initial;
        filter: drop-shadow(0px 0px 8px rgba(0,0,0,0));
        border-radius: 10px 10px 10px 0px;
    }

    .nedostupno {
        clip-path: circle(100%);
    }

    .product-cijena {
        top: -50px;
        right: initial;
        left: -2px;
        width: 100px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--main-mob-background);
        font-size: 1.25rem;
        border-radius: 0px 10px 0px 0px;
        z-index: 2;
    }

    .product-cijena::before,
    .product-cijena::after {
        position: absolute;
        content: '';
        top: -.7em;
        left: .45em;
        width: 20px;
        height: 20px;
        background-color: transparent;
        border-radius: 0 0 0 10px;
        box-shadow: inset 1px -6px 0px var(--main-mob-background);
    }

    .product-cijena::before {
        top: -14px;
        left: 1px;
    }
    .product-cijena::after{
        top: 36px;
        left: 98px;
    }

    .product-content-icons {
        top: .6em;
    }

    .product-sizes-title {
        color: var(--textlight);
    }

    .product-sizes {
        color: #ddd;
    }
    
    .product-size {
        border: 2px solid rgb(148, 108, 8);
    }
    
    .product-size-active {
        color: #f2f2f2;
        text-shadow: 0px 0px 1px white;
        border: 2px solid #f2f2f2;
    }

    .product-size-active::after {
        color: #f2f2f2;
    }

    .opis-jela {
        color: #cdcdcd;
    }

    .quote {
        color: #f2f2f2;
        -webkit-text-fill-color: #123456;
        -webkit-text-stroke-color: #f2f2f2;
    }

    .card-order {
        margin: 0 auto;
    }

    .card-order .quantity,
    .card-order .quantity ion-icon {
        color: #f2f2f2;
    }

    .grupa-container {
        width: 94%;
        max-width: 425px;
        height: 75vh;
        background: var(--main-mob-background);
        margin: 0 auto;
        margin-bottom: 3em;
        border-radius: 10px;
        box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.25);
    }

    .hero {
        background-image: url(../images/nissan_premantura.jpg);
        background-position: 50% 100%;
    }

    .dostavno_vozilo--1,
    .dostavno_vozilo--2 {
        display: none;
    }

}

@media (max-width: 900px) {
    .header-alert-logo--1 {
        display: none;
    }
}

@media (max-width: 700px) {
    .header-alert-logo--2 {
        display: none;
    }
    .header-alert-content {
        flex-direction: column;
    }

    .header-alert-razmak {
        display: none;
    }
}


@media(max-width: 646px) {

    .nav-logo-link {
        width: 175px;
    }

    .nav-right a {
        font-size: 20px;
    }
    
    .cart span {
        position: absolute;
        top: -1em;
        right: -.5em;
        width: 20px;
        height: 20px;
        background-color: var(--backgroundblue);
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 1px;
        font-size: 1rem;
        color: #f2f2f2;
        text-decoration: none;
        border: 1px solid var(--borderdark);
        border-radius: 5px;
        cursor: pointer;
    }

    .header-dark .nav-link-active::before {
        background-color: #333;
    }
    
    .header-dark .cart span {
        border: 1px solid #f2f2f2;
    }
    
    .kosarica {
        bottom: -1.65em;
        font-size: .65rem;
        font-weight: 600;
    }

    .kategorije {
        font-size: .75rem;
        line-height: 25px;
    }
    
    .hero {
        background-attachment: unset;
        background-image: url(../images/nissan_premantura.jpg);
        background-position: 70% 100%;
    }
    
    .hero-container > h2 {
        font-size: 2.75rem;
        line-height: 70px;
    }
}