/*
 * Slim Grid
 * http://impleCode.com
 *
 * Copyright 2014 impleCode
 * Free to use under the GPLv3 license.
 * http://www.gnu.org/licenses/gpl-3.0.html
 *
 * Contributing author: Norbert Dreszer
 */

/*List*/
.archive-listing.slim-grid {
    display: table-cell;
    height: 100%;
    position: relative;
    vertical-align: top;
}

.new_row {
    display: table;
    height: 100%;
}

div#slim_grid_table_container, #product_listing div#slim_grid_table_container {

    border-collapse: separate;
    border: 0;
    outline: 0;
    width: auto;
}

div#slim_grid_table_container .table-cell, #product_listing div#slim_grid_table_container .table-cell, #implecode_settings div.slim-grid.example{
    background: #fff;
    padding: 15px;
    text-align: center;
    border: 1px solid #cccccc;
    border-radius: 10px;
}

div#slim_grid_table_container .table-cell table, #product_listing div#slim_grid_table_container .table-cell table{
    position: absolute;
    bottom: 0;
    border: 0;
    background: none;
    margin: 0;
    width: 100%;
    max-width: 85%;
    padding-bottom: 15px;
}

div#slim_grid_table_container .table-cell table form.add-to-shopping-cart, #product_listing div#slim_grid_table_container .table-cell table form.add-to-shopping-cart {
    margin: 0;
}

div#slim_grid_table_container .table-cell table tr, #product_listing div#slim_grid_table_container .table-cell table tr {
    background: none;
}

div#slim_grid_table_container .table-cell table td, #product_listing div#slim_grid_table_container .table-cell table td{
    border: 0;
    background: none;
    margin: 0;
    padding: 0;
    width: auto;
}

div#slim_grid_table_container .table-cell table td input[name="current_quantity"], #product_listing div#slim_grid_table_container .table-cell table td input[name="current_quantity"] {
    display: block;
    margin: 0 auto;
    width: 60px;
    max-height: 30px;
}

.archive-listing.slim-grid .slim-grid-inside{
    height: 100%;
}

.archive-listing.slim-grid .add-to-shopping-cart button.button {
    margin-top: 2px;
}

div .table-cell.archive-listing.slim-grid img {
    border: none;
}

.hidden-field {
    height: 21px;
}

.hidden-field-quantity {
    height: 71px;
}

div#slim_grid_table_container .table {
    text-align: center;
    position: absolute;
    bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}

.archive-listing.slim-grid.last {
    margin-right: 0;
    clear: right;
}

.archive-listing.slim-grid .product-image a:before {
    content: url("img/zoom-ico.png");
    display: block;
    position: absolute;
}


.archive-listing.slim-grid .product-short-descr{
    overflow: hidden;
    font-style: italic;
    margin: 10px 0px;
    font-size: 13px;
    line-height: 15px;
}
.archive-listing.slim-grid .under-image {
    background: #eeeeee;
    margin: 10px 1px 1px 1px;
    padding: 18px 10px;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}

.archive-listing.slim-grid .product-name, .archive-listing.slim-grid .product-name a {
    color: #3366ff;
    font-weight: bold;
}

.archive-listing.slim-grid .price-value {
    font-weight: bold;
}

.archive-listing.slim-grid .after-label, .archive-listing.slim-grid .discounted_price, .archive-listing.slim-grid .disc_qty {
    color: #3366ff;
}

.archive-listing.slim-grid .price_dash {
    display: none;
}

.archive-listing.slim-grid .disc_qty, .archive-listing.slim-grid .disc_price, .archive-listing.slim-grid .after-label, .archive-listing.slim-grid .before-label {
    display: block;
    font-weight: normal;
}

.slim_grid_table_container.table {
    position: relative;
    bottom: initial;
    left: 1px;
    right: initial;
}

.slim_grid_table_container .product-image img {
    display: inline;
}

.archive-listing.slim-grid.no-zoom .product-image:before {
    content: '';
}

@media (max-width:700px) {
    .responsive div#slim_grid_table_container, div#slim_grid_table_container .table-cell {
        display: inline-block;
        margin: 10px;
    }
    .responsive div#slim_grid_table_container .table-row {
        display: inline;
    }
    .responsive .archive-listing.slim-grid.last, .archive-listing.first {
        clear: none;
    }
    .responsive .product-subcategories.slim-classic-grid {
        text-align: center;
    }
}