/* Keep Luma product card internals intact; override only broken column widths. */
@media only screen and (min-width: 768px) {
    .page-products .products.wrapper.grid .products.list.items.product-items {
        display: block !important;
    }

    .page-products .products.wrapper.grid .products.list.items.product-items:after {
        clear: both;
        content: '';
        display: table;
    }

    .page-products .products.wrapper.grid .product-item {
        clear: none !important;
        display: block !important;
        float: left !important;
        margin-left: 0 !important;
        max-width: none !important;
        width: 32% !important;
    }

    .page-products .products.wrapper.grid .product-item:nth-child(3n + 1) {
        clear: left !important;
    }
}

@media only screen and (max-width: 767px) {
    .page-products .products.wrapper.grid .product-item {
        clear: none !important;
        display: block !important;
        float: left !important;
        margin-left: 0 !important;
        max-width: none !important;
        width: 48% !important;
    }

    .page-products .products.wrapper.grid .product-item:nth-child(2n + 1) {
        clear: left !important;
    }
}

@media only screen and (max-width: 479px) {
    .page-products .products.wrapper.grid .product-item {
        clear: none !important;
        float: none !important;
        width: 100% !important;
    }
}

.page-products .products.wrapper.grid .product-item-photo {
    display: block !important;
    float: none !important;
    left: auto !important;
    margin: 0 auto 10px !important;
    padding: 0 !important;
    position: static !important;
    text-align: center !important;
    top: auto !important;
    width: auto !important;
}

.page-products .products.wrapper.grid .product-image-container {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-products .products.wrapper.grid .product-image-photo {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


@media all and (min-width: 640px) {
    .products-grid .product-item-info:not(:hover):not(.active) .product-item-inner {
        border: 0 !important;
        clip: rect(0, 0, 0, 0) !important;
        height: 1px !important;
        margin: -1px !important;
        overflow: hidden !important;
        padding: 0 !important;
        position: absolute !important;
        width: 1px !important;
    }

    .products-grid .product-item-info:hover .product-item-inner,
    .products-grid .product-item-info.active .product-item-inner {
        background: #fff !important;
        border: 1px solid #bbb !important;
        border-top: none !important;
        box-shadow: 3px 4px 4px 0 rgba(0,0,0,.3) !important;
        left: 0 !important;
        margin: 9px 0 0 -1px !important;
        padding: 0 9px 9px !important;
        position: absolute !important;
        right: -1px !important;
        z-index: 2 !important;
    }
}
