/*
|--------------------------------------------------------------------------
| Equipment Finder
|--------------------------------------------------------------------------
*/

.epc-finder{

    max-width:900px;
    margin:40px auto;

}

/*
|--------------------------------------------------------------------------
| Search Filters
|--------------------------------------------------------------------------
*/

.epc-filters{

    display:grid;
    grid-template-columns:repeat(3,1fr) 230px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    overflow:hidden;
    border-radius: 6px;
}

/*
|--------------------------------------------------------------------------
| Filter Item
|--------------------------------------------------------------------------
*/

.epc-filter-item{

    display:flex;
    flex-direction:column;
    justify-content:center;

    padding:14px 20px;

    border-right:1px solid #e5e5e5;

    min-height:78px;

    background:#fff;

    transition:.25s;

}

.epc-filter-item:hover{

    background:#fafafa;

}

.epc-filter-item:focus-within{

    box-shadow:inset 0 -3px 0 #d71920;

}

/*
|--------------------------------------------------------------------------
| Label
|--------------------------------------------------------------------------
*/

.epc-filter-item label{

    font-size:13px;
    color:#666;
    margin-bottom:8px;
    font-weight:500;

}

/*
|--------------------------------------------------------------------------
| Select
|--------------------------------------------------------------------------
*/

.epc-filter-item select{

    width:100%;

    border:none;
    outline:none;

    background-color:transparent;

    font-size:18px;
    font-weight:700;

    color:#111;

    cursor:pointer;

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    padding:0;
    padding-right:28px;

    line-height:1.4;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat:no-repeat;
    background-position:right center;
    background-size:18px;

    transition:.25s;

}

.epc-filter-item select:hover,
.epc-filter-item select:focus{

    color:#d71920;

}

.epc-filter-item select:disabled{

    color:#999;
    cursor:not-allowed;

}

/*
|--------------------------------------------------------------------------
| Submit Button
|--------------------------------------------------------------------------
*/

.epc-submit{

    display:flex;

}

#epc-search-button{

    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#d71920;

    color:#fff;

    border:none;

    font-size:18px;
    font-weight:700;

    line-height:1.25;

    cursor:pointer;

    transition:.25s;

    padding:20px;

}

#epc-search-button:hover:not(:disabled){

    background:#b8161b;

}

#epc-search-button:disabled{

    background:#9b9b9b;
    cursor:not-allowed;

}

/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

#epc-loading{

    display:none;
    text-align:center;
    padding:30px;
    font-size:18px;
    font-weight:600;

}

/*
|--------------------------------------------------------------------------
| Results
|--------------------------------------------------------------------------
*/

#epc-results{

    margin-top:50px;

}

/*
|--------------------------------------------------------------------------
| Product Grid
|--------------------------------------------------------------------------
*/

.epc-product-grid{

    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:30px;

}

/*
|--------------------------------------------------------------------------
| Product Card
|--------------------------------------------------------------------------
*/

.epc-card{

    display:flex;
    flex-direction:column;

    background:#111;

    border:1px solid #e5e5e5;

    transition:.25s;

    overflow:hidden;

    padding: 20px;
}

.epc-card:hover{

    transform:translateY(-5px);

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

/*
|--------------------------------------------------------------------------
| Image
|--------------------------------------------------------------------------
*/

.epc-image{

    background:#fafafa;

}

.epc-image img{

    width:100%;
    height:250px;

    object-fit:contain;

    display:block;

}

/*
|--------------------------------------------------------------------------
| Content
|--------------------------------------------------------------------------
*/

.epc-content{

    display:flex;
    flex-direction:column;
    flex:1;

    padding:0 0 10px 0;

}

.epc-content h3 {
  margin: 15px 0 15px;
  font-size: 20px;
  line-height: 1.4;
  color: #fff;
  font-size: 18px !important;
  font-weight: 600 !important;
}

/*
|--------------------------------------------------------------------------
| Size
|--------------------------------------------------------------------------
*/

.epc-size {
  color: #c5c5c5;
  font-size: 16px;
  margin-bottom: 20px;
}

.epc-size strong {
  color: #c5c5c5;
  font-weight: 400;
}

/*
|--------------------------------------------------------------------------
| Product Button
|--------------------------------------------------------------------------
*/

.epc-button{

    margin-top:auto;

    display:block;

    text-align:center;

    background:#B90606;

    color:#fff !important;

    text-decoration:none;

    padding:14px;

    font-weight:600;

    transition:.25s;

    font-size: 20px;
}

.epc-button:hover{

    background:#333;
    color:#fff;

}

/*
|--------------------------------------------------------------------------
| Empty / Error
|--------------------------------------------------------------------------
*/

.epc-results-empty,
.epc-error{

    padding:60px;

    text-align:center;

    border:1px dashed #ddd;

    font-size:18px;

}

.epc-error{

    color:#d71920;

}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media(max-width:1024px){

    .epc-filters{

        grid-template-columns:1fr 1fr;

    }

    .epc-submit{

        grid-column:1 / -1;

    }

    .epc-product-grid{

        grid-template-columns:repeat(2,minmax(0,1fr));

    }

}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media(max-width:768px){

    .epc-filters{

        grid-template-columns:1fr;

    }

    .epc-filter-item{

        border-right:none;
        border-bottom:1px solid #eee;

    }

    .epc-submit{

        grid-column:auto;

    }

    #epc-search-button{

        min-height:65px;

    }

    .epc-product-grid{

        grid-template-columns:1fr;

    }

}