.goods {
    width: 80%;
    float: right;
    text-align: center;

    border-left: 0;
}

.good {
    display: inline-block;
    padding: 15px;
    height: 320px;
    border: #dfe8ee 1px solid;
    vertical-align: top;
    position: relative;
}
.img-area {
    overflow: hidden;
    width: 270px;
    height: 180px;
}
.good-img {
    width: 100%;
}

.good-name {
    max-width: 270px;
    text-align: left;
    padding-top: 5px;
}
.good-bottom {
    position: absolute;
    bottom: 0;
    height: 80px;
    width: 100%;
    max-width: 270px;
    text-align: center;
}
.good-category-title {
    color: #8696a7;
    font-size: smaller;
    font-weight: bold;
    padding-bottom: 10px;
}
.good-price {
    display: inline-block;
    color: black;
    font-size: 20px;
    text-align: left;
    padding: 5px;
}
.near-price {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: left;
}
.open-cart, .glyphicon-shopping-cart {
    color: #00a046;
    font-size: 30px;
    float: right;
    padding-right: 10px;
}
.open-cart:hover {
    cursor: pointer;
}
.index-page {
    font-size: 20px;
}
.index-page p {
    text-indent: 40px;
}


.pending, .unavailable {
    float: right;
    font-weight: bold;
    font-size: 12px;
    border-radius: 20px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 5px;
}
.pending {
    color: orange;
    border: orange 2px solid;
}
.unavailable {
    color: red;
    border: red 2px solid;
}
.glyphicon-shopping-cart:hover {
    cursor: pointer;
}

#sort-select {
    margin: 10px;
    margin-left: 30px;
    width: auto;
    display: inline-block;
}
.sort-filter {
    text-align: right;
}
.category-title {
    float: left;
    font-size: 16px;
    margin: 16px;
}
.slider {
    display: inline-block;
    margin-left: 20px;
    margin-right: 20px;
    max-width: 80% !important;
}
#min-price, #max-price {
    display: inline-block;
    width: 40%;
}

.pagination {
    display: block;
    float: right;
}
.contacts {
    display: inline-block;
    margin: 10px;
    vertical-align: top;
    text-align: center;
    font-size: 16px;
    margin-top: 0;
    padding: 0;
}
.contacts .telephone {
    font-size: 16px;
    padding-top: 5px;
    padding-bottom: 5px;
}
#view-good-title {
    display: inline-block;
    font-size: 30px;
    padding: 10px;
    margin-left: 30px;
}
#view-category-title {
    display: inline-block;
    font-size: 14px;
    color: #8696a7;
    font-weight: bold;
    vertical-align: center;
}

#view-good {
    display: inline-block !important;
    border: #8696a7 1px solid;
    padding: 10px;
}
#good-info {
    width: calc(100% - 520px);
    margin-left: 25px;
    margin-top: 25px;
    vertical-align: top;
    display: inline-block;
}
.good-label {
    color: #8696a7;
    width: 100px;
}
#good-info tr {
    line-height: 40px;
}
.available {
    font-size: 16px;
    color: green;
}
.unavailable-good {
    color: red;
    font-weight: bold;
}
.pending-good {
    color: orange;
    font-weight: bold;
}
#view-good-price {
    font-size: 25px;
}
#buy-button {
    display: inline-block;
    width: 300px;
    text-align: center;
    font-size: 20px;
    padding: 10px;
    border: #00a046 2px solid;
    border-radius: 30px;
    margin-left: 30px;
}

#buy-button:hover {
    background-color: #00a046;
}
#view-cart {
    margin: 20px;
}
#view-description {
    text-align: justify;
}

@media only screen and (min-width: 768px) and (max-width: 1000px) {
    .goods {
        width: 70%;
    }
}
@media only screen and (max-width: 768px) {
    #good-info {
        width: 100%;
        max-width: calc(100% - 20px);
        display: block;
        margin-bottom: 20px;
    }
    #view-good-title {
        display: block;
        text-align: center;
        margin: 0;
    }
    #view-description {
        width: calc(100% - 40px);
    }
    #view-good {
        max-width: 100%;
    }
    #view-cart {
        max-width: calc(100% - 40px);
        text-align: center;
        margin-left: 0;
    }
    #buy-button {
        margin: 0;
    }
    .goods {
        margin-top: 40px;
    }

    .index-page p {
        text-align: justify;
    }
    .contacts {
        text-align: center;
        border-bottom: gray 1px solid;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }
    .site-contacts {
        text-align: center;
    }
    .category-title {
        float: none;
        text-align: center;
        margin: 0;
        margin-top: 5px;
        padding: 0;
    }
    .sort-filter {
        text-align: center;
        margin: 0;
        padding: 0;
    }
}