/*
Theme Name:     Demo-child
Description:    Marco Good child theme.
Author:         Me
Author URI:
Template:       marco-good
Version:        1.0.0
*/

.post-thumbnail img{
    width: 100%;
}

#marco-good-color-mode{
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(50%);
    z-index: 999999999;
}

#marco-good-color-mode a{
    display: block;
    width: 80px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: #fff;
    color: var(--dark);
}
#marco-good-color-mode a.active{
    background: var(--dark);
    color: #fff;
}

#marco-good-color-mode i{
    display: none;
    font-size: 15px;
    margin-right: 5px;
    line-height: 50px;
}

@media (max-width: 768px) {
    #marco-good-color-mode{
        display: none;
    }
    #marco-good-color-mode i{
        display: block;
        margin-right: 0;
    }
    #marco-good-color-mode a{
        width: 40px;
    }
}


.marco-good-icons-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: -1em;
    margin-right: -1em;
}
.marco-good-icons-list .glyph {
    display: inline-block;
    width: 9em;
    margin: 0 1em 1em;
    text-align: center;
    vertical-align: top;
    border: 1px solid #eee;
    background-color: #f7f7f7;
}

.marco-good-icons-list .class-name {
    color: #223645;
    padding: 10px;
}

.marco-good-icons-list [class*="marco-good-icon"] {
    padding: 20px;
    display: block;
    font-size: 36px;
    line-height: 1;
    color: #223645;
    background: #fff;
}

.product-block-style-2 .product-block .product-transition{
    margin: 0!important;
}

body.shop_custom_columns_4 ul.marco-good-products.products:not(.products-list) > li.product{
    flex: 0 0 calc(100% / 4)!important;
    max-width: calc(100% / 4)!important;
}

body.shop_custom_columns_5 ul.marco-good-products.products:not(.products-list) > li.product{
    flex: 0 0 calc(100% / 5)!important;
    max-width: calc(100% / 5)!important;
}

body.shop_custom_columns_5 ul.marco-good-products.products:not(.products-list) > li.product{
    flex: 0 0 calc(100% / 6)!important;
    max-width: calc(100% / 6)!important;
    padding-left: calc(20px / 2);
    padding-right: calc(20px / 2);
}

@media (max-width: 1200px) {
    body[class*="shop_custom_columns_"] ul.marco-good-products.products:not(.products-list) > li.product {
        flex: 0 0 calc(100% / 3) !important;
        max-width: calc(100% / 3) !important;
    }
}
@media (max-width: 880px) {
    body[class*="shop_custom_columns_"] ul.marco-good-products.products:not(.products-list) > li.product {
        flex: 0 0 calc(100% / 2) !important;
        max-width: calc(100% / 2) !important;
        padding-left: calc(15px / 2);
        padding-right: calc(15px / 2);
    }
}
