html, body {
	font-size: 14px;
	font-family: 'Open Sans', sans-serif;
	padding: 0;
	background-color: white;     
	margin: 0;
    height: 100%;
    color: #4f4f4f;
}      

mark {
	background-color: transparent;
	color: inherit;
	text-decoration: inherit;	
}

img {
	border: 0;    
}
h1,h2,h3,h4,h5 { 
    margin: 0;
    color: black;
}
h1, h2, h1 > a, h2 > a {
    font-weight: normal;
    font-size: 25px;
    line-height: 25px;
    color: black;
    margin-bottom: 10px;
    text-decoration: none;
}
h3, h3 > a { 
    font-size: 16px;
    font-weight: normal;
    line-height: 18px;
    color: black;
    margin-bottom: 10px;
    text-decoration: none;
}
h4, h4 > a { 
    font-weight: normal;
    font-size: 14px;
    line-height: 16px;
    color: black;
    margin-bottom: 10px;
    text-decoration: none;
}
p { margin-top: 0 }
#subscribe_form #check {width:20px; height:20px;}
a { color: #D41F00 }
.red { color: #D41F00 !important }

#header {
    position: relative;    
}
#header_left {
    width: 24%;
    float: left;   
    padding-left: 1%;
    box-sizing: border-box;
}
#header_main {
    position: absolute;
    top: 50%;
    left: 25%;
    right: 1%;
    transform: translateY(-50%);
}
#header_ticker {
    background:#ffc90a;
    color:black;
    padding-top:10px;
    padding-bottom:10px;
    text-align:center;
}
#header_ticker br {display:none}
#header_ticker a:not(#top_offer_close) {
    background:black;
    color:white;
    border-radius: 20px;
    padding:5px 10px;
    box-sizing:border-box;
    margin-left:15px;
    display:inline;
    text-decoration:none;
}
#header_ticker div { 
    margin-bottom:10px;  
    display:inline; 
}
#top_offer_close {
    float: right;
    position: relative;
    top: -4px;
    right: 20px;
    cursor: pointer;
    font-weight:700;
    background:white;
    border-radius:50%;
    padding:4px 8px;
    box-sizing:border-box;
    color:black;
}
@media(max-width: 500px) {
    #header_ticker {position:relative;}
    #header_ticker div {
        width:70%;
        margin:0 auto;
        margin-bottom:10px;
    }
    #header_ticker a:not(#top_offer_close) {
        display:block;
        width:50%;
        margin:0 auto;
    }   
    #top_offer_close {
        position:absolute;
        top:20px;
    } 
}
#header_ticker a:hover {
    color:black;
}
#header_logo {
    padding-top: 20px;
    padding-bottom: 10px;
    display: block;
    text-align: center;    
    box-sizing: border-box;
    border-bottom: 1px dashed silver; 
}
#header_logo > img {
    max-width: 100%;    
}
#header_top { 
    background-color: #352f2f;
    font-size: 12px;
}
#header_top > ul {
    list-style: none outside none;
    margin: 0;
    padding: 0;    
    text-align: right;
    line-height: 30px;
}
#header_top ul * { display: inline-block; vertical-align: middle }
#header_top img { max-height: 20px }
#header_top li {
    display: inline-block;
    text-align: left;
    padding: 0 5px;
}
#header_top li > * {
    display: inline-block;
    vertical-align: middle;    
}
#header_top a {
    color: white;
    text-decoration: none;    
}
#header_top a:hover {
    color: #ffc90a;
}
#header_main_menu {
    width: 100%;
    border-spacing: 0;
}
#header_main_menu td {
    vertical-align: middle;
    padding: 0;
    width: 19.2%;
    height: 60px;
    position: relative;
}       
#header_main_menu td.spacing { width: 1% }   
#header_main_menu td.item { 
    text-align: center;
    background-color: #ececec;
    transition: background-color 200ms;
}   
#header_main_menu td:last-child { display: none } 
#header_main_menu a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    cursor: pointer;
    z-index: 1;
}                      
#header_main_menu span {
    display: inline-block;
    padding: 0 10px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: black;
    text-transform: uppercase;
}
#header_main_menu td.active,
#header_main_menu td.item:hover {
    background-color: #ffc90a;
}

#header_menu_button {
    position: absolute;
    top: 0;
    right: 10px;
    height: 100%;
    display: none;
    width: 50px; 
    cursor: pointer;
    background-image: url(../img/hamburger.png);
    background-repeat: no-repeat;
    background-position: center;
}

#header_dropdown {
    border-bottom: 1px dashed silver;   
    display: none;
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px; 
}

#sidebar { 
    width: 24%;
    float: left;
    padding-left: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}
#sidebar_menu {
    margin-bottom: 20px;
    border-bottom: 1px dashed silver;    
    text-align: center;
}


#sidebar_info {
    padding: 10px 0;    
    overflow: hidden;
    margin-bottom: 20px;
}
#sidebar_info > * {
    color: black;
    text-decoration: none;    
    position: relative;
    line-height: 20px;
    padding-left: 25px;
}
#sidebar_info > * > img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
#sidebar_info > *:nth-child(1) { float: left }
#sidebar_info > *:nth-child(2) { float: right }

#sidebar_banner {
    height: 80px;   
    position: relative;
    margin-bottom: 10px;
}
#sidebar_banner img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    padding: 5px 0;
}
#sidebar_banner:before {
    content: "";
    display: block;
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #bebebe;
    z-index: 2;
}
#sidebar_banner:after {
    content: "";
    position: absolute;
    display: block;
    background-color: #ececec;
    z-index: 1;
    left: 0;
    bottom: 0;
    right: 0;
    height: 50%;
}
#sidebar h2 { 
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 5px solid #ececec;
}
#sidebar .list { margin-bottom: 20px }

#sidebar_shops li h3 { text-transform: uppercase }
#sidebar_shops li img { display: inline-block; vertical-align: middle; margin-right: 4px }

#main { 
    margin-left: 25%;   
    padding-right: 1%; 
    padding-bottom: 20px;
}

#home_slideshow {
    background-image: url(../img/home-back.jpg);
    background-size: cover;
    background-attachment: fixed;
    height: 700px;    
    padding-top: 80px;
    position: relative;
    margin-bottom: 40px;
}
#home_slideshow .caption { margin-left: 70px; margin-right: 70px }
#home_slideshow .product_item { border: 0 }
#home_text {
    text-align: center;
    position: absolute;
    bottom: 80px;
    left: 70px;
    right: 70px;
    background-color: white;
    padding: 40px;    
}
#home_text > sub { display: block }
#home_info { display: none }

#home_posts {
    overflow: hidden;
    padding: 0;
    margin: 0;
    list-style: none outside none;    
}
#home_posts li {
    position: relative;
    float: left;
    width: 24%;
    margin-right: 1.33333%;
    background-position: center center;
    background-size: cover;
}
#home_posts li:last-child { margin-right: 0 }
#home_posts li a {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*
    background-image: url(../img/tag-fb.png);
    background-position: center 30%;
    background-repeat: no-repeat;
    */
}

#home_posts li:before {
    content: "";
    display: block;
    padding-top: 100%;
}
#home_posts li:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.2;
    transition: opacity 200ms;
}
#home_posts li:hover:after {
    opacity: 0;    
}
#home_posts li div {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    height: 80px;
    background-color: #ffc90a;
    top: 65%;   
    overflow: hidden;
}
#home_posts li div > span {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    color: black;
    height: 60px;
    overflow: hidden;
    transform: translateY(-50%);
}

#news {
    overflow: hidden;    
}
#news_left { 
    float: left;
    width: 49%;
}
#news_content.margin {
    float: right;
    width: 49%;    
}

#catalog_filter {
    margin-top: 20px;
    padding: 0 10px;
    margin-bottom: 40px;    
}
#catalog_filter ul {
    list-style: none outside none;
    font-size: 14px;
    padding: 1px 0;
    margin: 0;
}
#catalog_filter li {
    margin: 2px 0;
    position: relative;  
}
#catalog_filter li.expandable:after {
    content: "";
    display: block;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 5px;
    width: 20px;
    height: 14px;
    background-image: url(../img/arrow-sd.png);
    background-repeat: no-repeat;
    background-position: right center;    
}
#catalog_filter li.expandable.expanded:after {
    background-image: url(../img/arrow-su.png);
}
#catalog_filter ul a {
    padding: 2px 10px;
    display: block;
    font-size: 14px;    
    color: black;
    cursor: pointer;
    padding-right: 30px; 
    transition: background-color 200ms; 
}
#catalog_filter li.sub a {
    font-size: 13px;   
    padding-left: 20px; 
}
#catalog_filter li.sub ul a {
    font-size: 13px;   
    padding-left: 40px; 
}

#catalog_filter ul a:hover,
#catalog_filter li.selected > a {
    background-color: #ffc90a; 
    color: black;   
}
#catalog_filter li.main > ul { display: none }
#catalog_filter li.main.expanded > ul { display: block }
#catalog_filter li.sub > ul { display: none }
#catalog_filter li.sub.expanded > ul { display: block }

#catalog_exposed {
    padding: 50px 0;
    padding-bottom: 30px;
    background-image: url(../img/home-back.jpg);
    background-size: cover;  
    background-attachment: fixed;
}
#catalog_exposed h2 {
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 20px;
}
#catalog_exposed h2 > span {
    background-image: url(../img/home-back.jpg);
    background-size: cover;  
    background-attachment: fixed;
    color: white;
}
#catalog_exposed h2:after { border-color: white }
#catalog_exposed h2:before { border-color: white }

#product { 
    overflow: hidden;
    padding-bottom: 20px;    
}
#product_left {
    float: left;
    width: 220px;
}
#product_left > img { width: 100% }
#product_right {
    margin-left: 240px;    
}
#product_bottom {
    margin-left: 240px;    
}
#product_right h3 label {
    color: #8f8f8f;
}
#product_desc { 
    margin-bottom: 20px;    
}
#product_price {
    margin-bottom: 20px;
}
#product_price > span {
    color: silver;
    text-decoration: line-through;
}
#product_stock {
    display: inline-block;
    line-height: 25px;
    color: #8f8f8f;
    background-position: 0 center;
    background-repeat: no-repeat;
    cursor: pointer;    
    margin-bottom: 20px;
}
#product_stock.in_stock { background-image: url(../img/na_zalogi.png); padding-left: 30px }
#product_stock.preorder { background-image: url(../img/pre-order.png); padding-left: 40px; padding-top:20px; padding-bottom:20px; background-size: 35px 35px; }
#product_add_to_cart { margin-bottom: 20px }

#breadcrumbs {
    margin-bottom: 20px;
    background-color: #ECECEC;
    padding: 20px;
}
#breadcrumbs > ul { 
    list-style: none outside none;
    margin: 0;
    padding: 0;
}
#breadcrumbs li { 
    font-size: 14px;
    display: inline-block;    
    color: black;
    padding-right: 15px;
    margin-right: 5px;
    background-image: url(../img/arrow-sr.png);
    background-repeat: no-repeat;
    background-position: right center;
}
#breadcrumbs a {
    color: black;
    text-decoration: none;
}
#breadcrumbs a:hover { text-decoration: underline }
#breadcrumbs li:last-child {
    background-image: none;
}
#breadcrumbs li:last-child > a {
    color: gray;    
}


#page_title {
    margin-bottom: 20px;
    background-color: #ECECEC;
    background-image: url(../img/home-back.jpg);
    background-size: cover;
    background-attachment: fixed;
}
#page_title h1, 
#page_title h2 {
    padding: 20px;
    color: white;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);    
}
#page_title > ul { 
    list-style: none outside none;
    margin: 0;
    padding: 15px 20px;
    background-color: rgba(255,255,255,0.5);
}
#page_title li { 
    font-size: 14px;
    display: inline-block;    
    color: black;
    padding-right: 15px;
    margin-right: 5px;
    background-image: url(../img/arrow-sr.png);
    background-repeat: no-repeat;
    background-position: right center;
}
#page_title a {
    color: black;
    text-decoration: none;
}
#page_title a:hover { color: white; text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5) }
#page_title li:last-child {
    background-image: none;
}


#user_content > form {
    max-width: 700px;
    margin: auto;    
}
#user_content > form > table { width: 100% }
.form_menu { overflow: hidden; padding-top: 20px }
.form_menu .button:last-child { float: right }

#footer { background-color: #ececec }
#footer table { width: 100%; border-spacing: 0 }
#footer td { padding: 0; position: relative }
#footer td > div { margin: 20px; overflow: hidden }
#footer td:nth-child(1) { width: 25% }
#footer td:nth-child(2) { width: 25% }
#footer td:nth-child(3) { 
    width: 50%;
    background-image: url(../img/footer-back.jpg);
    background-size: cover;
    overflow: hidden;
    color: white;
}
#footer td:nth-child(3):after {
    content: "";
    display: block;
    position: absolute;
    background-color: rgba(0,0,0,0.5);
    top: 20px;
    bottom: 20px;
    right: 20px;
    left: 20px;
}
.footer_column {
    float: left;
    width: 50%;   
    box-sizing: border-box;
    padding: 20px;
    position: relative;
    z-index: 1; 
}
#footer td:nth-child(3) * { color: white; font-size: 18px }
#footer td:nth-child(3)  * img {max-width: 100%;}

#footer_categories a {
    color: black;
    display: block;
    padding: 2px 20px;
    text-decoration: none;
    border-bottom: 1px dashed silver;
    margin-bottom: 5px;
    font-size: 18px;
}

#footer_bottom {
    background-color: black;
    padding: 20px;
    font-size: 14px;
    overflow: hidden;
    color: white;
}
#footer_bottom_left { float: left }
#footer_bottom_right { float: right; margin-right: 50px }
#footer_bottom a {
    text-decoration: none;
    color: white;
    transition: color 200ms;
}
#footer_bottom a:hover {
    color: #ffc90a;    
}

@media(max-width: 1000px) {
    #home_posts li { width: 50%; margin-bottom: 10px }    
}

@media(min-width: 800px) {
    #sidebar_menu { display: block }
}

@media(max-width: 800px) {
    #main { margin-left: 0; padding-left: 10px; padding-right: 10px }
    #header_dropdown { display: block }
    #header_dropdown > ul { display: none }
    #header_logo { border-bottom: 0 }
    #header_main { display: none }
    #header_left { padding-left: 10px }
    #header_menu_button { display: block }
    
    #footer table, #footer tbody, #footer tr, #footer td { display: block }
    #footer td { width: auto !important }
    #footer { padding-top: 1px }
    #sidebar { float: none; width: auto; padding: 0 }
    #sidebar_menu { display: none }
    #breadcrumbs { display: none } 
    #catalog_filter { margin-bottom: 20px }
    #catalog_filter h3 {
        background-color: #ffc90a;
        padding: 0;
        position: relative;
        text-align: center;
    }
    #catalog_filter h3 > a {  
        display: block;
        text-transform: uppercase;
        font-weight: normal;
        font-size: 18px;
        margin: 0;
        padding: 0;
        padding: 10px;    
        line-height: 20px;
    }
    #catalog_filter h3:after {
        content: "";
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background-image: url("../img/arrow-sd.png");
        background-position: center;
        background-repeat: no-repeat;        
    }
    #catalog_filter h3.expanded:after { 
        background-image: url("../img/arrow-su.png");
    }
    #catalog_filter > div { display: none }
    #home_sidebar { display: none }
    #home_info { display: block }
    #home_news { display: none }
    #home_shops { display: none }
    #home_text { left: 10px; right: 10px; bottom: 10px }
    #home { margin-left: -10px; margin-right: -10px }
    #news_left, #news_content.margin {
        float: none;
        width: auto;    
        margin: 0;
    }
}

@media(max-width: 500px) {
    h1, h2 { font-size: 20px }
    h3 { font-size: 14px }
    #breadcrumbs span { font-size: 12px }
    #product_left { width: 49% }
    #product_right { width: 49%; float: right; margin: 0 }
    #product_bottom:before {
        content: "";
        display: block;
        clear: both;    
    }
    #product_bottom { margin: 0; padding: 10px 0 }
    #home_posts li { width: auto; float: none }
    #home_slideshow { padding-top: 30px }
}
