﻿/*Make the row the table so that we can set full width*/
div.TemplateRow {
    float: left;
    clear: both;
    width: 100%;
    margin: 2px 0;
}

/*Set the cell as the row since there's only one per row anyways*/
div.ShellTemplate {
    box-shadow: 1px 1px 2px #ccc;
    padding: 10px;
    float: left;
    text-align: center;
    min-height: 100px;
    width: 100%;
    margin-bottom:10px;
    border: 1px solid #f5f5f5;
    transition: all 0.5s ease 0s;
}
div.ShellTemplate:hover{
        box-shadow: 0px 8px 13px rgba(0, 0, 0, 0.15);
}
html.touch div.ShellTemplate:hover {
    box-shadow:none;
}
    /*Set the divs inside as the cells so that they fill the control's width*/
    .ShellTemplate .ShellTemplateImage, div.ShellTemplate .ShellTemplateDetail {
        display: table-cell;
        vertical-align: top;
    }
.ShellTemplate .ShellTemplateImage {
    padding-right: 10px;
}

.ShellTemplate .TemplateImage {
    float: left;
    height: 100%;
    width: 160px;
    padding: 0 5px 5px 0;
}

    .ShellTemplate .TemplateIcons img {
        float: left;
        clear: both;
    }

.ShellTemplate .ShellTemplateDetail {
    height: 100%;
    font-size: 1.2em;
    width: 100%;
    position: relative;
    text-align: left;
}
.ShellDetailInfo {
    float:left;
    width: 68%;
    padding:0 5px
}
.TemplatePrice{
    float:none !important;
    padding: 5px 0;
}

.ShellTemplate .TemplateTitle {
    width: 80%;
}

.ShellTemplate .TemplateId {
    float: right;
    font-size: .8em;
}

.ShellTemplate .TemplateDescription {
    font-size: .8em;
    padding-top: 5px;
    text-align: left;
    float: left;
}

.ShellTemplate .AvailableStock {
    float: left;
    padding: 10px 0;
}

.ShellTemplate .TemplateManufacturer {
    font-size: .8em;
    float: left;
    clear: both;
    margin-top:5px;
}

    .ShellTemplate .TemplateManufacturer a {
        font-size: .8em;
    }

.ShellTemplate .ShellTemplateLinkAddToCart {
    float:right;
    width: 30%;
    height: 100%;
    border-left: 1px solid #ccc;
    padding:10px;
    margin-left:5px;
}


.ShellTemplate .ShellTemplateAddToCart {
    float: right;
    clear: right;
    min-height: 25px;
    width:100%;
}

.ShellTemplate .TemplateOutOfStockMessage {
    clear: both;
    float: right;
    text-align: right;
    width: 100%;
}

/*FOLDERS*/



@media (max-width: 970px) {

    .ShellDetailInfo{
            width: 57%;
    }
    .ShellTemplate .ShellTemplateLinkAddToCart{
            width: 40%;
            padding:5px;
    }
}

@media (max-width: 600px) {
    .ShellTemplate .ShellTemplateAddToCart{
        width:auto;
    }
    .ShellDetailInfo {
    width: 100%;
}
        .ShellTemplate .ShellTemplateLinkAddToCart{
            width: 100%;
            border:none;
            text-align:right;

    }
        .TemplateAddToCart{
            float:left;
        }
         .TemplateAddToCart .btn{
             min-width:150px;
         }
    .ShellTemplate .ShellTemplateImage {
        display: block;
        float: left;
        width: 100%;
    }

    .ShellTemplate .TemplateImage {
        width: 100%;
        text-align: center;
    }

    div.ShellTemplate div.ShellTemplateDetail {
        display: block;
        float: left;
        width: 100%;
        padding-bottom: 0px;
    }
    .TemplateQuantityTextBox{
        width:20%;
    }
    .ShellTemplate div.TemplateLink {
        float: right;
        clear:right;
    }

    .ShellTemplate div.TemplateId, .ShellTemplate div.TemplateTitle, .ShellTemplate div.TemplateDescription, .ShellTemplate div.TemplateManufacturer {
        float: left;
        width: 100%;
        padding: 0 0 5px;
        margin: 0;
    }

        .ShellTemplate div.TemplateId:empty, .ShellTemplate div.TemplateTitle:empty, .ShellTemplate div.TemplateDescription:empty, .ShellTemplate div.TemplateManufacturer:empty, .ShellTemplate div.TemplateLink:empty {
            padding: 0;
        }

    .ShellTemplate .ShellTemplateLinkAddToCart {
        position: relative;
        bottom: 0;
        float: right;
        clear: both;
        padding-bottom:0;
    }
}

@media (max-width: 375px) {
    .ShellTemplate .TemplateQuantity {
        clear: left;
            width: 20%;
    }
    .TemplateQuantity .TemplateQuantityTextBox {
    width: 100%;
    text-align:center;
}
    .ShellTemplate .ShellTemplateAddToCart{
        width:100%;
        text-align:center;
    }
        .TemplateAddToCart{
        max-width:300px;
        width:80%;
    }
    .TemplateAddToCart .btn{
        width:100%;
    }

}
