.product-card-grid {
    display: flex;
    flex-flow: row wrap;
    overflow: hidden;
    margin: -20px;
    padding: 10px;
}

.product-card-wrapper {
    display: block;
}

.product-card-grid .product-card {
    margin-bottom: 20px;
}

.default-cards .product-card {
    margin-right: 10px;
    margin-left: 10px;
}

/* Product card container
-------------------------------------------------------------------------------------------------------
*/
.product-cards-section-description {
    font-size: 14px;
    color: #969696;
    line-height: 22px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.product-cards-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
}

/* Product card
-------------------------------------------------------------------------------------------------------
*/
.product-card {
    width: 208px;
    height: 310px;
    position: relative;
    background-color: #fff;
    display: inline-block;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.11);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.11);
    padding: 10px;
    cursor: pointer;
}

.default-cards .product-card:hover {
    -webkit-box-shadow: 0 10px 14px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 14px 0 rgba(0, 0, 0, 0.2);
    -webkit-transition: -webkit-box-shadow 0.2s;
    transition: -webkit-box-shadow 0.2s;
    transition: box-shadow 0.2s;
    transition: box-shadow 0.2s,
    -webkit-box-shadow 0.2s
}

@media (min-width: 1020px) {
    .default-cards .product-card:hover {
        transition: all 0.3s ease;
        display: block;
        height: 330px;
        margin-top: -10px;
        margin-bottom: 0;
        /*this let the card-back stretch by removing the top and bottom margins*/
        -webkit-box-shadow: 0 5px 7px 0 rgba(0, 0, 0, 0.2);
        box-shadow: 0 5px 7px 0 rgba(0, 0, 0, 0.2);
        -webkit-transition: -webkit-box-shadow 0.2s;
    }
}

@media (min-width: 1020px) and (max-width: 1279px) {
    .default-cards .product-card:hover {
        height: 275px;
    }
}

@media (max-width: 1279px) {
    .product-card {
        width: 158px;
        height: 254px;
        margin-bottom: 7px;
        margin-right: 15px;
    }
}

@media (max-width: 759px) {
    .product-card {
        width: 130px;
        height: 215px;
        padding: 5px;
    }

    .default-cards .product-card:hover {
        -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.11);
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.11)
    }
}

/* Product card image
-------------------------------------------------------------------------------------------------------
*/
.product-card-image {
    display: inline-block;
    font-family: "object-fit:cover";
    object-fit: cover;
    height: 138px;
}

.product-card-images {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    height: 138px;
}

.product-card-child-image {
    font-family: "object-fit:cover";
    object-fit: cover;
    width: calc(50% - 5px);
    height: calc(50% - 5px);
    margin-bottom: 10px;
}

@media (min-width: 1020px) {
    .default-cards .product-card:hover .product-card-back {
        display: block;
        height: 100px;
        position: relative;
    }

    .default-cards .product-card:hover .new-label, .default-cards .product-card:hover .updated-label, .default-cards .product-card:hover .product-card-bottom, .default-cards .product-card:hover + .product-card-category {
        display: none;
    }
}

@media (min-width: 1020px) and (max-width: 1279px) {
    .default-cards .product-card:hover .product-card-image,
    .default-cards .product-card:hover .product-card-images {
        display: none;
    }
}

@media (max-width: 759px) {
    .product-card-image,
    .product-card-images {
        height: 120px;
    }
}

@media (min-width: 1280px) {
    .product-card-image,
    .product-card-images {
        height: 190px;
    }

    .default-cards .product-card:hover .product-card-image,
    .default-cards .product-card:hover .product-card-images {
        width: 50px;
        height: 50px;
        float: left;
        margin-right: 5px;
    }

    .default-cards .product-card:hover .product-card-child-image {
        width: calc(50% - 2px);
        height: calc(50% - 2px);
        margin-bottom: 4px;
    }

    .default-cards .product-card:hover .product-card-back {
        height: 115px;
    }
}

/* Product card title
-------------------------------------------------------------------------------------------------------
*/
.product-card-title {
    height: 68px;
    font-size: 14px;
    line-height: 17px;
    font-weight: normal;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

@media (min-width: 1020px) {
    .default-cards .product-card:hover .product-card-title {
        font-weight: bold;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 42px;
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (min-width: 1280px) {
    .product-card-title {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .default-cards .product-card:hover .product-card-title {
        height: 52px;
    }
}

@media (max-width: 1279px) {
    .product-card-title {
        margin-top: 5px;
        height: 56px;
        font-size: 12px;
        line-height: 14px;
    }
}

/* Product card children count
-------------------------------------------------------------------------------------------------------
*/
.product-card-children-count {
    display: none;
}

/* Product card description
-------------------------------------------------------------------------------------------------------
*/
.product-card-description {
    height: 112px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    color: #646464;
    display: none;
}

.default-cards .product-card:hover .product-card-description {
    height: 118px;
}

@media (min-width: 1020px) {
    .default-cards .product-card:hover .product-card-description {
        border-top: 1px solid #F2F3F5;
        margin-top: 5px;
        padding-top: 5px;
        display: block;
    }
}

@media (min-width: 1020px) and (max-width: 1279px) {
    .default-cards .product-card:hover .product-card-description {
        height: 104px;
    }
}

@media (max-width: 1279px) {
    .product-card-description {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

@media (max-width: 759px) {
    .product-card-description {
        display: none;
    }
}

/* Product card bottom
-------------------------------------------------------------------------------------------------------
*/
.product-card-bottom {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 10px;
    width: calc(100% - 20px);
    min-height: 20px;
}

.product-card-badge-container {
    height: 20px;
    margin-right: 10px;
    display: flex;
}

.product-card-badge {
    width: 12px;
    height: 14px;
    margin-right: 4px;
    -ms-flex-item-align: center;
    align-self: center;
}

.product-card-badge-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #646464;
    align-self: center;
}

.product-card-children {
    height: 15px;
    font-size: 12px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.36;
    color: #ff001f;
}

.product-card-children:after {
    width: 13px;
    height: 15px;
    font-family: 'icomoon' !important;
    content: "\e409";
    font-size: 13px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.36;
    letter-spacing: normal;
    color: #ff001f;
    vertical-align: middle;
}

.product-card-brand-logo {
    position: absolute;
    right: 0;
    width: 55px;
    height: 20px;
    background-position: right center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Product card category
-------------------------------------------------------------------------------------------------------
*/
.product-card-category {
    display: none;
}

.slide-cards .product-card-category {
    display: block;
    font-size: 13px;
    line-height: 20px;
    color: #646464;
    opacity: 0.6;
    height: 40px;
    overflow: hidden;
}

.product-card-category a {
    color: #646464;
    opacity: 0.6;
    cursor: pointer;
}

.product-card-category a:hover {
    color: #00b6ff;
    opacity: 1;
    font-weight: bold;
}

@media (min-width: 1280px) {
    .product-card-category {
        width: 208px;
        margin-top: 5px;
    }
}

/* Product card back
-------------------------------------------------------------------------------------------------------
*/
.product-card-back {
    display: none;
    /*here is the magic*/
}

.product-card-back .button {
    margin-top: 15px;
    position: absolute;
    bottom: 0;
}

.product-card-back .button::after {
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: white;
    font-size: 18px;
    text-align: center;
    padding-left: 5px;
    line-height: 20px;
    content: "\e5c8";
}

@media (max-width: 1279px) {
    .product-card-badge-container {
        margin-right: 5px;
        margin-top: 0;
    }

    .product-card-badge {
        height: 11px;
        width: 10px;
    }

    .product-card-badge-label {
        font-size: 10px;
    }

    .product-card-category {
        width: 158px;
        font-size: 12px;
        line-height: 16px;
    }

    .product-card-back .button {
        margin-top: 5px;
    }
}

@media (max-width: 759px) {
    .slide-cards .product-card-badge-container {
        display: none;
    }

    .default-cards .product-card:hover {
        -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.11);
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.11)
    }

    .default-cards .product-card-bottom {
        margin-top: -10px;
    }

    .product-card-category {
        width: 130px;
        font-size: 10px;
        line-height: 14px;
    }
}

/* Slide cards
-------------------------------------------------------------------------------------------------------
*/
.slide-cards {
    padding-top: 20px;
    height: 320px;
}

@media (min-width: 1280px) {
    .slide-cards {
        height: 380px;
    }
}

@media (max-width: 1019px) {
    .slide-cards {
        overflow: scroll;
        height: 340px;
    }
}

@media (max-width: 759px) {
    .slide-cards {
        height: 290px;
    }
}

.slide-cards > div {
    height: 270px;
}

@media (min-width: 760px) {
    .slide-cards > div {
        margin: -10px;
        padding: 10px;
        height: 320px;
    }
}

.slide-cards .product-card {
    margin-left: 0;
}

@media (min-width: 1020px) {
    .slide-cards .product-card {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Wide cards
-------------------------------------------------------------------------------------------------------
*/
.top-category-container .wide-cards, .sub-category-container .wide-cards, .product-page-container .wide-cards {
    margin: -10px;
}

.wide-cards .product-card-wrapper {
    width: 100%;
}

.wide-cards .product-card {
    display: flex;
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
    padding: 10px;
}

.wide-cards .product-card:hover {
    -webkit-box-shadow: 0 10px 14px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 14px 0 rgba(0, 0, 0, 0.2);
    -webkit-transition: -webkit-box-shadow 0.2s;
    transition: -webkit-box-shadow 0.2s;
    transition: box-shadow 0.2s;
    transition: box-shadow 0.2s, -webkit-box-shadow 0.2s;
}

@media (max-width: 759px) {
    .wide-cards .product-card:hover {
        -webkit-box-shadow: 0 5px 7px 0 rgba(0, 0, 0, 0.2);
        box-shadow: 0 5px 7px 0 rgba(0, 0, 0, 0.2);
        -webkit-transition: -webkit-box-shadow 0.2s;
        transition: -webkit-box-shadow 0.2s;
        transition: box-shadow 0.2s;
        transition: box-shadow 0.2s, -webkit-box-shadow 0.2s;
    }
}

.wide-cards .product-card-image, .wide-cards .product-card-images {
    width: 60px;
    height: 60px;
}

.wide-cards .product-card-content {
    position: relative;
}

.wide-cards .product-card-bottom {
    bottom: 0;
    width: 100%;
}

@media (min-width: 760px) {
    .wide-cards .product-card {
        height: 114px;
    }

    .wide-cards .product-card-image, .wide-cards .product-card-images {
        width: 94px;
        height: 94px;
    }
}

@media (min-width: 1280px) {
    .wide-cards .product-card {
        height: 130px;
    }

    .wide-cards .product-card-image, .wide-cards .product-card-images {
        width: 110px;
        height: 110px;
    }
}

/* Title-only cards
-------------------------------------------------------------------------------------------------------
*/
.title-only-cards .product-card-wrapper {
    width: 100%;
}

.title-only-cards .product-card {
    width: 100%;
    height: 35px;
    margin-bottom: 1px;
}

.title-only-cards .product-card-image,
.title-only-cards .product-card-images,
.title-only-cards .product-card-description,
.title-only-cards .product-card-bottom {
    display: none;
}

.title-only-cards .product-card-content {
    display: grid;
    grid-template-areas: 'icon-area title-area child-count-area';
    grid-template-columns: max-content minmax(auto, max-content) max-content;
    white-space: nowrap;
}

.title-only-cards .product-card-open {
    grid-area: icon-area;
    height: unset;
}

.title-only-cards .product-card-title {
    grid-area: title-area;
    overflow: clip;
    text-overflow: ellipsis;
}

.title-only-cards .product-card-images {
    display: none;
}

.product-card-open {
    display: none;
    float: left;
    height: 35px;
    line-height: 17px;
    margin: -10px 0 0 -10px;
    padding: 12px 10px 10px 10px;
    width: 9px;
    box-sizing: content-box;
    position: relative;
}

.product-card-open a:focus {
    outline: none;
}

.product-card-children-count {
    display: none;
    color: #ff001f;
    float: left;
    font-size: 15px;
    height: 17px;
    line-height: 17px;
}

.product-card-children-count:before {
    background: rgba(150, 150, 150, 0.5);
    content: '';
    float: left;
    height: 13px;
    margin: 2px 10px 0 11px;
    width: 1px;
}

.product-children-container {
    display: none;
    margin-left: 34px;
}

.title-only-cards .product-card-open,
.title-only-cards .product-children-container {
    display: block;
}

.title-only-cards .product-card-children-count {
    display: block;
    grid-area: child-count-area;
}

.title-only-cards .product-card-children-count:before {
    display: inline-grid;
}

.product-card-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 6px 9px;
    border-color: transparent transparent transparent #646464;
}

.link-overlay-upper {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 5;
    right: 0;
    top: 0;
    text-indent: -186422em;
}
