﻿img {
    max-width: 100%;
    height: auto;
}

ul.product_list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.product_grid a {
    text-decoration: none;
}

.product_item {
    display: inline-block;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    position: relative;
    overflow: hidden;
    width:100%;
}

.product_sale {
    position: absolute;
    z-index: 99;
    right: -28px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}

.product_image {
    position: relative;
    overflow: hidden;
}

    .product_image img {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        -webkit-transition: all .5s ease-in-out;
        -moz-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
    }

        .product_image img:hover {
            -o-transform: scale(1.2, 1.2);
            -moz-transform: scale(1.2, 1.2);
            -webkit-transform: scale(1.2, 1.2);
            -ms-transform: scale(1.2, 1.2);
            transform: scale(1.2, 1.2);
        }

.product_title {
    float: left;
    width: 100%;
    text-transform: uppercase;
}

    .product_title h5 {
        margin: auto;
        font-size: 1.1em;
        font-weight: 500;
        line-height: 1;
        padding-bottom: 5px;
    }

.product_price a {
    color: #000;
}

.price_old {
    color: #ea2e49;
    text-decoration: line-through;
}

.product_price span {
    font-size: 1.1em;
    line-height: 1;
}

.product_desc p {
    margin: 0;
    line-height: 1.3;
    padding: 10px 0;
}



.product_buttons {
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    font-smoothing: antialiased;
    position: absolute;
    bottom: 15px;
    right: 15px;
    float: right;
    margin-left: 55%;
    min-width:75px;
}


    .product_buttons .add_to_cart:hover {
        color: #4DC8D3;
        background: rgba(255, 255, 255, 0.5);
    }

/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
    .product_sale p {
        margin: 0;
        color: #fff;
        background: #ff0000;
        padding: 3px 25px;
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.4);
    }

    .product_values {
        float: left;
        width: calc(100% - 100px);
        padding: 0 10px;
    }

    .product_rating {
        margin-right: 10px;
    }

    .product_image {
        height: 150px;
        float: left;
        width: 100px;
    }

        .product_image .product_buttons {
            display: none;
        }

    .product_desc {
        overflow: hidden;
        float: left;
        line-height: 1;
    }

    .product_values .product_buttons .input-group select {
        position: relative;
        text-align: right;
        float: right;
        margin-top: 7px;
        bottom: 5px;
        right: 10px;
    }

    .product_values .product_buttons .input-group input-group-addon a {
        color: #252525;
        background: rgba(255, 255, 255, 1);
        font-size: 1em;
        width: 40px;
        height: 40px;
        border: 1px solid #000;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
    .product_image {
        height: 250px;
        width: 175px;
    }

    .product_values {
        width: calc(100% - 175px);
    }
}

@media only screen and (min-width: 678px) {
    .product_item {
        width: 49.5%;
    }

    .product_image {
        height: 150px;
        width: 100px;
    }

    .product_values {
        width: calc(100% - 100px);
    }
}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
    .product_image {
        height: 250px;
        width: 175px;
    }

    .product_values {
        width: calc(100% - 175px);
    }

    .product_desc {
        max-height: 200px;
    }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
    .product_item {
        width: 33%;
    }

    .product_desc {
        max-height: 131px;
    }
}



/*==========  Non-Mobile First Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    .product_desc {
        max-height: 67px;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
    .product_title h5 {
        font-weight: bold;
    }
}

/* Custom, iPhone Retina */
/*@media only screen and (max-width : 320px) {
    .product_sale {
        display: none;
    }

    .product_image img {
        position: relative;
    }

    .product_price span {
        float: left;
        width: 100%;
    }

    .product_desc {
        display: none;
    }

    .product_buttons {
        display: none;
    }
}*/

