@import "shared/mixins-and-vars";

@button-bg1: #0c3f75;
@button-bg2: #3a4b5c;
@button-txt: #fff;

#product-grid,
#view-grid {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.product-tile,
.view-tile {
    position: relative;
    width: 33.3333%;
    box-sizing: border-box;
    display: inline-block;
    padding: 20px;
    img {
        max-width: 100%;
        border: 1px solid #ccc;
        padding: 20px;
    }
    @media @mobile {
        width: 100%;
    }
}

.product-name {
    font-size: (16 / @px);
}

.product-price {
    font-size: (20 / @px);
    font-weight: bold;
    margin-bottom: 15px;
}

.product-details-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.view-details-link {
    position: absolute;
    font-size: (16 / @px);
    line-height: (44 / @px);
    left: 0;
    bottom: 0;
    font-weight: bold;
    width: 100%;
    background: @button-bg1;
    color: @button-txt;
    min-height: 44px;
    border: none;
    outline-offset: 4px;
    text-align: center;
    text-decoration: none;
    @media @tablet {
        font-size: (12 / @px);
        line-height: (34 / @px);
        min-height: 34px;
    }
}

#product-count,
#category-count {
    text-align: center;
}

#load-more-btn,
#display-more-btn {
    font-size: (15 / @px);
    font-weight: bold;
    min-width: 200px;
    min-height: 44px;
    display: block;
    cursor: pointer;
    background: @button-bg2;
    color: @button-txt;
    border: none;
    margin: 10px auto;
    outline-offset: 4px;
}

#product-reset-btn,
#display-reset-btn {
    font-size: (15 / @px);
    font-weight: bold;
    min-width: 200px;
    min-height: 44px;
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    margin: 10px auto;
    outline-offset: 4px;
    text-decoration: underline;

    .enable__is-dark-mode & {
        color: @dark-mode-white;
    }
}

.add-to-cart-btn {
    font-size: (15 / @px);
    font-weight: bold;
    min-height: 44px;
    background: @button-bg1;
    color: @button-txt;
    border: none;
    padding: 0 15px;
    outline-offset: 4px;
}

.hide-btn {
    display: none !important;
}

.tile-relative {
    position: relative;
}
