
.dg-card {
    position: relative;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

@media (min-width: 500px) {
    .dg-card {
        padding: 50px;
    }
}

.dg-card >.gb-container,
.dg-card.gb-container >.gb-container {
    padding: 0;
}
.dg-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dg-card .dg-card-icon figure {
    width: 80px;
    height: 45px;
    overflow: hidden;
    margin: 0 auto 20px auto;
}
.dg-card .dg-card-icon figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wp-block-column {
    position: relative;
}
.wp-block-column .dg-card {
    width: 100%;
    height: 100%;
}

.wp-block-columns.is-layout-flex.dg-cards {
    gap: 25px;
}

.wp-block-cover {
    padding: 50px 25px;
}

@media (min-width: 500px) {
    .wp-block-cover {
        padding: 50px;
    }
}

.dg-card-icon {
    position : relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px !important;
}

figure.dg-card-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

:root :where(.is-layout-flow) > h1,
:root :where(.is-layout-flow) > h2,
:root :where(.is-layout-flow) > h3,
:root :where(.is-layout-flow) > h4,
:root :where(.is-layout-flow) > h5,
:root :where(.is-layout-flow) > h6,
:root :where(.is-layout-flow) > p {
    margin-top: 0;
    margin-bottom: 25px;
}

.woocommerce ul.products[class*=columns-] li.product, 
.woocommerce-page ul.products[class*=columns-] li.product { 
    margin: 0 0 50px !important;
}

@media (min-width: 600px) {
    .woocommerce ul.products[class*=columns-] li.product, 
    .woocommerce-page ul.products[class*=columns-] li.product {
        padding: 25px;
    }
}


ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 600px) {
    ul.products {
        flex-direction: row;
        align-items: flex-start;
    }
}

.woocommerce ul.products[class*=columns-] li.product, 
.woocommerce-page ul.products[class*=columns-] li.product {
    width: 100% !important;
}

ul.products li.product {
    max-width: 350px;
}
.woocommerce ul.products[class*=columns-] li.product {
    clear: both;
    float: none;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 600px) {
    .woocommerce ul.products[class*=columns-] li.product, 
    .woocommerce-page ul.products[class*=columns-] li.product {
        width: calc(50% - 25px) !important;
    }
}

@media (min-width: 992px) {
    .woocommerce ul.products[class*=columns-] li.product, 
    .woocommerce-page ul.products[class*=columns-] li.product {
        width: calc(33.3333% - 25px) !important;
    }

    @media (min-width: 992px) {
        .woocommerce ul.products[class=columns-4] li.product, 
        .woocommerce-page ul.products[class*=columns-4] li.product {
            width: calc(25% - 25px) !important;
        }
    }
}

@media (min-width: 1600px) {
    .woocommerce ul.products[class*=columns-6] li.product, 
    .woocommerce-page ul.products[class*=columns-6] li.product {
        width: calc(18% - 25px) !important;
    }

    body.tax-product_cat ul.products[class*=columns-6] li.product {
        width: calc(27% - 25px) !important;
    }

}

body.woocommerce-page .site-content {
    max-width: 1400px;
}
.dg-logos-grid {
    gap: 10px;
}

.dg-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.dg-logo {
  width: 200px;
  height: 60px;
  margin: 1rem;
  overflow: hidden;
}

.dg-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.dg-logos-grid .dg-logo {
  width: 100px;
  height: 40px;
  margin: .5rem;
}

body.tax-product_cat .site-content,
body.post-type-archive-product .site-content { 
    display: flex;
    flex-direction: column;
    gap: 50px;
}
@media (min-width: 992px) {
    body.tax-product_cat .site-content,
    body.post-type-archive-product .site-content {
        display: flex;
        flex-direction: row;
        gap: 75px;
    }

    body.tax-product_cat .yith-wcan-filters-opener,
    body.post-type-archive-product .yith-wcan-filters-opener {
        display: none !important;
    }
}
body.tax-product_cat .site-content > #secondary,
body.post-type-archive-product .site-content > #secondary {
    order: 1;
    min-width: 200px;
}
body.tax-product_cat .site-content > #primary,
body.post-type-archive-product .site-content > #primary {
    order: 2;
}

.dg-hero {
    min-height: 400px;
    margin-bottom: 50px !important;
}

.dg-product-thumbnail .dg-hover-overlay a.button {
    padding: 7.5px 10px !important;
    text-align: center;
    font-size: .9rem;
}

/** 0-600px, 992px >  **/
@media (max-width: 600px), (min-width: 992px) {

    .yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.filter-has-4-column {
        display: block !important; 
        width: 100% !important;
        max-width: 100% !important;
    }

    .yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.color a {
        display: flex !important;
        align-items: center !important;
        
    }
    .yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.color a .term-color {
        width: 35px !important;
        height: 35px !important;
        flex-shrink: 0 !important;
        margin-right: 10px !important;
    }
    .yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.color a .term-label {
        text-align: left !important;
        line-height: 1.2 !important;
        font-size: .8rem !important;
    }
}

.wc-block-product h2.wp-block-post-title a {
    color: #000000;
    text-transform: none;
    font-weight: 500;
    font-size: 1rem;
}

.wc-block-product .wc-block-components-product-sale-badge {
    padding: 4px 8px;
    border-radius: 0;
    background-color: #F09F4A;
    color: #fff;
    line-height: 1;
}

.wc-block-product .woocommerce-Price-amount.amount {
    color: var(--wp--preset--color--theme-orange);
    font-size: 1.3rem;
    font-weight: 800;
}
.wc-block-product .original-price {
    margin-left: 10px;
}
.wc-block-product .original-price .woocommerce-Price-amount.amount bdi {
    color: #000;
    font-weight: 400;
}

.wc-block-product del {
  position: relative;
  text-decoration: none; /* pois oletusviiva */
}

.wc-block-product del::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;              /* keskelle */
  border-top: 2px solid #000; /* viiva */
  transform: translateY(-35%);
}

body.wp-admin #editor .dg-testimonial-slider * {
    display: none;
}
body.wp-admin #editor .dg-testimonial-slider::before {
    display: block;
    content: "Tulostaa asiakaskommentit sivulle. Klikkaa muokataksesti asetuksia sivupalkista.";
    color: #666;
    background-color: #eee;
    font-size: 16px;
    text-align: center;
    padding: 50px;
}

.wc-block-components-product-sale-badge {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 5px 10px !important;
    background-color: var(--wp--preset--color--theme-orange) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.wp-block-woocommerce-product-collection h2.wp-block-heading {
    line-height: 1.2 !important;
}

h1.wp-block-post-title {
    padding: 5px 10px;
}


.dg-hero .title {
    color: #fff;
}

.dg-hero-bottom-buttons .wp-block-buttons .wp-block-button.is-style-navi .wp-block-button__link {
    background-color: transparent !important;
    color: #fff !important;
}
.dg-hero-bottom-buttons {
    position: relative;
    z-index: 2;
    margin-top: 50px;
    margin-bottom: 50px;
}
@media (min-width: 992px) {
    .dg-hero-bottom-buttons {
        position: absolute;
        z-index: 2;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);

        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }

    .dg-hero-bottom-buttons .wp-block-buttons, 
    .dg-hero.contents-align-left .dg-hero-bottom-buttons .wp-block-buttons {
        justify-content: center !important;
    }

    .dg-hero.fullheight {
        height: calc(100vh - 195px);
    }
    
}

@media (max-width: 991px) {
    .dg-hero {
        flex-direction: column;
        height: auto !important;
        min-height: auto !important;
        hyphens: auto !important;
    }
    .dg-hero .hero-content, 
    .dg-hero-bottom-buttons .wp-block-buttons {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

.filter-title {
    font-weight: 600 !important;
}