/* header.css - defibaed.hr | Smart Beez | www.smartbeez.hr */

#header_cont.loading { transition: none !important; opacity: 0 }
#header_cont.loading * { transition: none !important }

#header {
    opacity: 1;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background-color: white;
    border-bottom: 1px solid #80808063;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    box-sizing: border-box;
    transition: box-shadow 400ms;
}

#header_main {
    background-color: white;
    flex-shrink: 0;
}

#header_main > div {
    height: auto;
    position: static;
    opacity: 1;
}

#header_logo {
    display: block;
    position: static;
    z-index: 999;
}

#header_logo > img {
    height: 55px;
    display: block;
}

#header_glass {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: 1000;
}

#header_menu {
    position: static;
    height: auto;
    float: none;
    display: flex;
    align-items: center;
    z-index: 2;
    flex: 1;
    justify-content: flex-end;
}

#header_menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

#header_menu > ul > li {
    display: inline-block;
    position: relative;
    margin-right: 30px;
    text-transform: uppercase;
    font-size: 15px;
    color: black;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 300ms;
    white-space: nowrap;
}

#header_menu > ul > li:last-child {
    margin-right: 0;
}

#header_menu > ul > li:hover {
    border-bottom: 2px solid #dd1d37;
    transition: border-color 300ms;
}

#header_menu > ul > li > a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    color: black;
    text-decoration: none;
    white-space: nowrap;
    display: block;
    padding: 5px 0;
}

/* Dropdown */
#header_menu .header_menu2 {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 15px 20px;
    display: none;
    box-sizing: border-box;
    min-width: 280px;
    background-color: #e21a36;
    z-index: 9999;
    margin-top: 7px;
}

#header_menu > ul > li:hover .header_menu2 {
    display: block;
}

#header_menu .header_menu2 li {
    display: block;
    margin-bottom: 0;
    margin-right: 0;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    border-top: none;
    padding: 0;
    white-space: nowrap;
}

#header_menu .header_menu2 li:last-child {
    border-bottom: none;
}

#header_menu .header_menu2 li a {
    color: white;
    padding: 10px 0;
    text-transform: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 300ms;
    display: block;
}

#header_menu .header_menu2 li a:hover {
    color: #000;
    transition: color 300ms;
}

/* Hamburger - mobilni */
#hamburger {
    display: none;
    cursor: pointer;
    padding: 5px;
}

#hamburger img {
    height: 30px;
    display: block;
}

/* Mobilni izbornik */
#header_menu_mobile {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: white;
    padding: 20px;
    z-index: 9999;
    box-sizing: border-box;
    border-bottom: 3px solid #e21a36;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

#header_menu_mobile ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#header_menu_mobile > ul > li {
    margin-bottom: 0;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #bebebe;
}

#header_menu_mobile > ul > li > a {
    color: black;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.header_menu2 { display: none; }

#header_menu_mobile .header_menu2 {
    padding-left: 15px;
    margin-top: 10px;
    background: none;
    position: static;
    min-width: auto;
}

#header_menu_mobile .header_menu2 li {
    position: relative;
    padding: 8px 0;
    margin-top: 0;
    border-bottom: none !important;
    font-size: 14px;
}

#header_menu_mobile .header_menu2 li::before {
    position: absolute;
    content: "";
    left: -10px;
    top: 14px;
    width: 5px;
    height: 5px;
    background: red;
    border-radius: 50%;
}

#header_menu_mobile .header_menu2 li a {
    color: #333 !important;
    font-weight: 400;
    text-transform: none;
    font-size: 14px;
    display: block;
}

.expand_second {
    position: relative;
    cursor: pointer;
}

/* Spacer */
#header_spacer {
    height: 80px;
    transition: height 400ms;
}

/* Sidebar menu */
#header_side_menu {
    display: none;
    width: 400px;
}

/* Basket */
#header_basket { padding: 10px; max-width: 300px; }
#header_basket_caption { border-bottom: 1px solid #ebebeb; padding-bottom: 5px; margin-bottom: 10px; }
#header_basket_items { list-style: none outside none; padding: 0; margin: 0; }
#header_basket_items > li { padding: 10px 0; margin-bottom: 10px; border-bottom: 1px solid #ebebeb; }
.header_basket_item_image { width: 60px; float: left; }
.header_basket_item.with_image .header_basket_item_content { margin-left: 80px; }

/* Responsive */
@media (max-width: 1280px) {
    #header_menu > ul > li { margin-right: 20px; }
    #header_menu > ul > li > a { font-size: 13px; }
}

@media (max-width: 1024px) {
    #header { padding: 12px 20px; }
    #header_menu { display: none; }
    #hamburger { display: block; }
    #header_spacer { height: 66px; }
}

@media (max-width: 600px) {
    #header_spacer { height: 60px !important; }
    #header_logo > img { height: 40px; }
    #header_menu_mobile { top: 65px; }
}

@media (max-width: 370px) {
    #header { padding: 10px 15px; }
    #header_logo > img { height: 35px; }
}
