@media screen and (min-width: 700px) {
    #main_menu {
        display: block !important;
    }
}

@media screen and (max-width: 699px) {
    .shop-link {
        display: flex;
    }

    .show_menu {
        display: inline-block;
        font-size: 18px;
        padding: 7px 10px;
    }

    #main_menu {
        display: none;
    }

    .main_menu {
        position: absolute;
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--h-bg-grey);
        top: 65px;
        right: 40px;
        padding: 10px 0;
        margin-top: 0;
        margin-bottom: 0;
        margin-right: 0;
        box-shadow: 1px 1px 3px rgba(0,0,0,.3);
    }

    .main_menu li, .main_menu li:last-of-type {
        display: block;
        margin: 0px;
    }

    .main_menu a {
        padding: 8px 21px !important;
        display: block;
        text-align: left;
    }

    #variants .variant .variant-name {
        display: block;
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 800px) {
    #top-img .box_content .predstaveni img {
        width: 100px;
    }

    #top-img .box_content .predstaveni div {
        margin-left: 30px;
    }
}

@media screen and (max-width: 770px) {
    #category-nav button {
        display: flex;
    }

    #category-nav {
        margin-top: 18px;
    }

    .category-nav {
        margin: -32px 0 30px 0;
        padding: 12px 10px 10px 10px;
        flex-direction: column;
        background-color: var(--h-bg-grey);
        border-radius: 0 0 2px 2px;
        display: none;
    }

    .category-nav li {
        text-align: center;
        box-sizing: border-box;
        max-width: 250px;
        width: 100%;
        margin: 5px 0;
    }
}

@media screen and (max-width: 730px) {
    .product {
        width: 50%;
    }
}

@media screen and (max-width: 660px) {
    #top-img .box_content {
        background-position: top;
        background-repeat: no-repeat;
        background-size: 100% auto;
        padding: 20px 0 0 0;
        height: auto;
    }

    #top-img .box_content .predstaveni img {
        width: 80%;
        max-width: 120px;
        margin-bottom: 40px;
    }

    #top-img .box_content .predstaveni {
        align-items: flex-start;
        flex-direction: column;
        max-width: 78%;
        margin-top: 180px;
        background-color: var(--h-bg-grey);
    }

    #top-img .box_content .predstaveni div {
        margin-left: 0px;
    }

    #top-img .box_content .predstaveni div h1 {
        font-size: 22px;
    }
}

@media screen and (max-width: 630px) {
    .card {
        flex-direction: column !important;
    }

    .card .text {
        margin: 0 !important;
        padding: 30px 5%;
    }

    .card .img {
        height: 50vw;
        max-height: 200px;
    }

    .card .text, .card .img {
        box-sizing: border-box;
        width: 100%;
    }
}

@media screen and (max-width: 540px) {
    #content p{
        text-align: left;
    }

    #top-img .box_content {
        background-size: auto 200px;
    }

    #top-img .box_content .predstaveni {
        margin-top:150px
    }

    #description, #images {
        width: 100%;
    }

    #images {
        margin-top: 30px;
    }
}

@media screen and (max-width: 490px) {
    .product-buttons {
        width: calc(100% - 18px);
        left: 9px;
    }

    .product-description {
        padding: 15px 9px 55px 9px;
    }

    .shrnuti-product {
        flex-direction: column;
        align-items: flex-start;
    }

    .shrnuti-product-description {
        justify-content: flex-end;
        box-sizing: border-box;
        width: 100%;
    }

    .shrnuti-product-description div {
        margin-top: 10px;
    }
}

@media screen and (max-width: 460px) {
    #kontakty .box_content{
        max-width: 100%;
    }

    .cart-product-image {
        width: 50px;
        height: 50px;
    }

    .cart-product-description {
        width: calc(100% - 60px);
    }

    .cart-product {
        align-items: center;
    }

    #fakturace table tr {
        display: flex;
        flex-direction: column;
    }

    #fakturace table tr td:nth-of-type(2){
        padding: 0 12px 0 12px;
    }

    #fakturace table tbody:nth-of-type(2) tr:first-of-type td:last-of-type{
        border-top: none;
    }

    #fakturace table td:first-of-type{
        box-sizing: border-box;
        width: 100%;
    }
}

@media screen and (max-width: 430px) {
    .product {
        width: 100%;
    }

    .product-img {
        padding-top: 50%;
    }

    .product-buttons {
        width: calc(100% - 30px);
        left: 15px;
    }

    .product-description {
        padding: 15px 15px 55px 15px;
    }

    .shrnuti-udaje {
        width: 100%;
    }

    .shrnuti-udaje:nth-of-type(2) {
        margin-top: 30px;
    }

    .shrnuti-doprava {
        flex-direction: column;
        align-items: flex-start;
    }

    .shrnuti-doprava-description {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }

    .shrnuti-doprava-description div:first-of-type {
        width: auto;
    }
}

@media screen and (max-width: 345px) {
    .shop-link {
        display: none;
    }
}
