.banner {
    width: 100%;
    height: auto;
    background-color: #1c1c1c;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
    display: flex;
    overflow: hidden;
}

.sh-subcategory:after {
    content: "zobrazit nabídku\25B2"!important;
}

#sh_subcategory:after {
    content: "skrýt nabídku\25BC";
}

#sh_subcategory {
    display: none;
    float: right;
    margin-right: 20px;
    color: #be1623;
}

.banner h2 {
    margin: 0;
    width: 100%;
    font-size: 40px;
    color: white;
    text-align: left;
    animation: show-category-text 2s;
    margin-top: 20px;
}

.banner p {
    margin: 0;
    width: 100%;
    color: white;
    text-align: left;
    font-size: 18px;
    animation: show-category-text 2s;
    margin-top: 20px;
}

@media screen and (min-width: 1100px) {
    @keyframes show-category-text {
        from { opacity: 0; margin-top: 0px; }
        to { opacity: 1; margin-top: 20px; }
    }
}

.subcategory {
    width: 100%;
    position: relative;
}

.subcategory a {
    display: block;
    text-align: left;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.subcategory a[href="vzorky"] {
    display: none;
}

.subcategory a:hover span, .subcategory .active span {
    color: white;
    font-weight: bold;
}

.subcategory a:hover, .subcategory .active {
    background-color: #be1623;
}

.subcategory a:hover .menu-arrow, .subcategory .active .menu-arrow {
    display: block;
}

.subcategory a img {
    width: 64px;
    vertical-align: top;
    cursor: pointer;
    border-radius: 3px;
}

.subcategory a span {
    color: black;
    vertical-align: middle;
    font-size: 14px;
    cursor: pointer;
}

.category-content {
    display: flex;
}

.products {
    flex-basis: 76%;
    padding-left: 2%;
    padding-right: 2%;
    margin-top: 50px;
    text-align: left;
    display: inline-block;
    vertical-align: top;
}

.products .product-card {
    margin-bottom: 50px;
    transform: scale(1);
}

.filters {
    background-color: #ededed;
    flex-basis: 20%;
    display: inline-block;
    vertical-align: top;
}

.filters p {
    margin-left: 10px;
    font-weight: bold;
}

.paging {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    position: relative;
}

.paging button {
    width: 38px;
    height: 38px;
    vertical-align: top;
}

#paging_load_more {
    width: auto;
    float: left;
}

#paging_load_more font {
    transform: rotate(-90deg);
    display: inline-block;
}

.paging .active {
    background-color: #7d0d17;
}

#parent_category {
    padding-bottom: 10px;
    padding-top: 10px;
    text-align: center;
    font-weight: bold;
    width: 50%;
    position: absolute;
    top: -50px;
    right: 0;
}

#parent_category:hover {
    background-color: #1c1c1c;
}

.menu-arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #be1623;
    transform: rotate(90deg);
    position: absolute;
    right: -30px;
    top: 50%;
    margin-top: -10px;
    display: none;
}

.banner div {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 1;
    overflow: hidden;
    padding: 50px 50px 50px 68px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: rgba(0,0,0,0.6);
    min-height: 300px;
}

@media screen and (max-width: 1100px) {
    .banner {
        padding-top: 10px;
        height: 350px;
    }

    .banner div {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.8);
        z-index: 10;
    }

    .banner h2 {
        font-size: 28px;
        width: 90%;
        margin-left: 5%;
        color: white;
    }

    .banner p {
        font-size: 18px;
        width: 90%;
        margin-left: 5%;
        color: white;
    }

    .category-content {
        display: block;
    }

    .filters {
        background-color: white;
        width: 100%;
        display: block;
        padding-top: 20px;
    }

    .filters::after {
        content: "";
        display: block;

        background-color: lightgray;
        width: 100%;
        height: 1px;
        margin: 0px auto;
    }

    .filters .subcategory {
        display: grid;
        grid-template-columns: 50% 45%;
        row-gap: 15px;

        width: 87%;
        padding-bottom: 25px;
        background-color: white;

        margin: 0;
        margin-left: 5%;
    }

    .filters .subcategory table span {
        display: block;
        margin-left: 10px;
        margin-right: 20px;
    }

    #sh_subcategory {
        display: inline-block;
    }

    .products {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;;

        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-top: 25px;
    }

    .filters p {
        margin-left: 2%;
        margin-top: -10px;
        font-size: 18px;
        margin-right: 20px;
    }

    .filters a {
        background-color: white;
        display: inline-block;
        width: 90%;
    }

    .filters a span {
        font-size: 14px;
    }

    #paging_load_more {
        margin-left: 2%;
    }

    #parent_category {
        text-align: left;
        background-color: transparent;
    }

    #parent_category:hover {
        background-color: transparent;   
    }

    #parent_category:hover > span {
        text-decoration: underline;
        color: black;
    }
}

@media screen and (max-device-width: 660px) {
    .banner {
        background-size: cover;
        text-align: left;
        height: auto;
        padding-bottom: 0;
    }

    .banner div {
        position: relative;
        margin-top: 0;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        margin-top: -10px;
        padding-bottom: 10px;
        display: block;
        min-height: auto;
    }

    .banner h2 {
        padding-top: 20px;
        margin-top: 0;
    }

    .subcategory a {
        width: 100%;
    }

    .subcategory a:not(:last-child)::after {
        content: "";
        display: block;
        width: 100%;
        background-color: lightgray;
        height: 1px;
        margin: 0px auto;
        margin-top: 10px;
    }

    #paging_load_more {
        display: block!important;
        width: 96%;
    }

    #sh_subcategory {
        display: inline-block;
    }

    .menu-arrow {
        display: none!important;
    }

    #parent_category {
        position: relative;
        width: 100%;
        margin-top: 20px;
    }

    .products .product-card {
        height: auto;
        margin-bottom: 20px;
    }

    .product-card:not(:nth-last-child(2))::after {
        content: "";
        display: block;
        background-color: lightgray;
        height: 1px;
        width: 70%;
        margin: 0px auto;
    }

    .filters .subcategory {
        grid-template-columns: 100%;
        width: 85%;

        margin: 0px auto;
        margin-top: 25px;
        row-gap: 10px;
    }

    .filters .subcategory #parent_category {
        padding: 0;
        margin: 0;
        height: 90%;
        top: 0;
        width: auto;
        display: flex !important;
        align-items: center;
        padding-left: 0px;
        width: 90%;
    }
    
    .filters .subcategory #parent_category > span {
        text-decoration: underline;
    }

    .filters p {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0px 10px;
    }

    #sh_subcategory {
        margin-right: 0;
    }

    .banner p {
        display: none;
    }

    .banner h2 {
        margin-bottom: 5px;
        text-align: center;
    }
}

@media screen and (max-width: 350px) {
    .filters p {
        font-size: 14px;
    }
}