/* -------------
Brand Listing
-------------*/
a.gray-arrow {
    position: relative;
    padding-right: 25px;
}

a.gray-arrow:after {
    background: url(https://www.ferguson.com/wwwstatic/css/ferguson/common/icon.png)
        no-repeat -103px -188px;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    right: 0;
    content: "";
}

.brand-list-title,
.brand-list-desc {
    margin: 0 10px;
    line-height: 1.5;
}

.brand-list-title {
    border-bottom: 2px solid #e4e3e3;
}

.brand-list-h1 {
    color: #857f7f;
    font-size: 48px;
    text-transform: uppercase;
}

.brand-list-desc {
    padding: 30px 0;
}

.brand-list-row {
    margin-top: 40px;
}

.brand-name {
    margin: 20px 0 25px;
    text-align: center;
}

.brand-list-row .brand-logo {
    display: block;
    height: 94px;
    text-align: center;
    margin: 0 auto;
    line-height: 94px;
}

.brand-list-row .brand-logo img {
    max-width: 100%;
    max-height: 100%;
}

.brand-list-row > .brand-list-item {
    margin-bottom: 40px;
}

.brand-index-box {
    margin: 0 10px;
    padding: 10px 0 25px 15px;
    margin-bottom: 40px;
    background-color: #f9f8f6;
}

.brand-index-box .index-title,
.brand-index-box .index-list {
    float: left;
}

.brand-index-box .index-title {
    padding-right: 20px;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 700;
}

.brand-index-box .index-list {
    list-style: none;
    margin-top: 5px;
}

.index-list li {
    float: left;
}

.index-list a {
    font-size: 14px;
    display: inline-block;
    padding: 0 8px 0 7px;
    text-decoration: underline;
}

.index-list span {
    font-size: 14px;
    display: inline-block;
    padding: 0 8px 0 7px;
}

.index-list a.selected {
    text-decoration: none;
}

.index-list li + li:before {
    content: "|";
    font-size: 14px;
    color: #bdbcbc;
}

.index-list .selected {
    color: #595454;
    font-weight: 700;
    cursor: default;
}

.brand-name-list {
    margin-top: 10px;
}

.brand-name-list > li {
    float: left;
    list-style: none;
    width: 286px;
    margin-bottom: 7px;
}

.brand-name-list > li > a {
    font-weight: 300;
    color: #8b8a89;
}

/* -------------
Brand Backgrounds
-------------*/
.brand--card__amerock {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-amerock-background");
  }
  
  .brand--card__armateck {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-armateck-background");
  }
  
  .brand--card__avallon {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-avallon-background");
  }
  
  .brand--card__durastar {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-durastar-background");
  }
  
  .brand--card__edgestar {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-edgestar-background");
  }
  
  .brand--card__fnw {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-fnw-background");
  }
  
  .brand--card__jmv {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-james-martin-vanities-background");
  }
  
  .brand--card__jonesstephens {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-jones-stephens-background");
  }
  
  .brand--card__koldfront {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-koldfront-background");
  }
  
  .brand--card__landmark {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-landmark-background");
  }
  
  .brand--card__millenniumlighting {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-meillennium-lighting-background");
  }
  
  .brand--card__miseno {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-miseno-background");
  }
  
  .brand--card__nfp {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-national-fire-products-background");
  }
  
  .brand--card__parkharbor {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-park-harbor-background");
  }
  
  .brand--card__pollardwater {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-pollardwater-background");
  }
  
  .brand--card__proflo {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-proflo-background");
  }
  
  .brand--card__proselect {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-proselect-background");
  }
  
  .brand--card__raptor {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-raptor-background");
  }
  
  .brand--card__safestep {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-safe-step-background");
  }
  
  .brand--card__signaturehardware {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-signature-hardware-background");
  }
  
  .brand--card__westcraft {
    background-image: url("https://cdn.media.amplience.net/i/fergusonprod/brand-page-westcraft-background");
  }

/* -------------
fonts
-------------*/
.brand--header h1 {
    color: #fff;
    font-family: "ProximaNova-Bold", Arial, Helvetica, sans-serif;
    font-size: 28px;
    line-height: 2rem;
    margin: 0 0 8px;
    padding: 0 0 8px 0;
    position: relative;
    text-transform: uppercase;
}

.brand--header > span {
    color: #fff;
    display: block;
    font-family: "ProximaNova-Regular", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.25rem;
    margin: 0 0 8px;
    margin: auto;
    max-width: 900px;
    text-transform: initial;
}

.brand--card__content h2 {
    color: #00446a;
    font-family: "ProximaNova-Bold", Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.25rem;
    margin-bottom: 8px;
    text-transform: initial;
}

.brand--card__content p {
    border-top: 1px solid #e4e3e3;
    color: #595454;
    font-family: "ProximaNova-Regular", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.25rem;
    padding-top: 8px;
    text-transform: initial;
}

/* -------------
main elements
------------- */
.brand--container {
    margin: auto;
    max-width: 980px;
    padding: 0 10px 100px;
}

.brands--breadcrumb {
    margin: 20px auto 0;
    max-width: 980px;
    padding: 0 10px;
}

.brands--bc__m {
    margin: 0 auto 0;
}

/* -------------
header elements
------------- */
.brand--header {
    background-color: #00446a;
    box-sizing: border-box;
    margin: 16px auto 64px;
    padding: 64px 10px;
    text-align: center;
}

.brand--header h1::after {
    border-bottom: 1px solid #fff;
    bottom: 0;
    content: "";
    left: 0;
    margin: 0 auto;
    max-width: 120px;
    position: absolute;
    right: 0;
    width: 100%;
}

/* -------------
filter elements
-------------*/
.brand--filter__headline {
    color: #00446a;
    display: block;
    font-family: "ProximaNova-SemiBold", Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.brand--filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 -8px 64px;
}

.brand--selector {
    align-items: center;
    background-color: #fff;
    border: solid 1px #e4e3e3;
    border-radius: 4px;
    box-sizing: border-box;
    color: #1c88c7;
    display: flex;
    font-family: "ProximaNova-Regular", Arial, Helvetica, sans-serif;
    font-size: 16px;
    height: 53px;
    justify-content: center;
    margin: 0 8px 16px 8px;
    min-width: 120px;
    padding: 6px 8px 4px;
    text-align: center;
    transition: background-color 0.15s ease-in-out;
    width: calc(50% - 16px);
}

/* -------------
card elements
-------------*/
.brand--grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}

.brand--card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    display: none;
    margin: 0 16px 32px 16px;
    min-height: 400px;
    overflow: hidden;
    padding-bottom: 36px;
    position: relative;
    transition: box-shadow 0.25s ease-out;
    width: 100%;
}

.brand--card__shop {
    bottom: 16px;
    color: #1c88c7;
    font-family: "ProximaNova-SemiBold", Arial, Helvetica, sans-serif;
    font-size: 16px;
    left: 16px;
    position: absolute;
}

.brand--card__company {
    align-items: center;
    background-color: #f0f3f5;
    background-position: 50% 50%;
    background-size: cover;
    display: flex;
    height: 120px;
    justify-content: center;
    padding: 16px 32px;
    position: relative;
}

.brand--card__company::before {
    background-color: #fff;
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0.8;
    position: absolute;
    right: 0;
    top: 0;
}

.brand--card__company img {
    max-height: 64px;
    max-width: 180px;
    object-fit: contain;
    width: 100%;
    z-index: 1;
}

.brand--card__est {
    align-items: center;
    background-color: #fff;
    border-radius: 50px;
    bottom: -10px;
    box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.1);
    color: #afb0b2;
    display: flex;
    font-family: "ProximaNova-SemiBold", Arial, Helvetica, sans-serif;
    font-size: 14px;
    height: 20px;
    justify-content: center;
    left: 0;
    margin: 0 auto;
    padding-top: 2px;
    position: absolute;
    right: 0;
    width: 85px;
}

.brand--card__content {
    padding: 26px 16px 16px;
}

/* -------------
Hover / Active / Override
-------------*/
.brand--card:hover {
    box-shadow: 0px 12px 20px -4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.25s ease-out;
}

.brand--selector:hover {
    background-color: #f0f3f5;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.indcard-show {
    display: block;
}

.brand--selector.ind-active {
    background-color: #f0f3f5;
}

@media (min-width: 480px) {
    /* cards and grid */
    .brand--card {
        width: calc(50% - 32px);
    }

    /* filter elements */
    .brand--selector {
        width: calc(33.3% - 16px);
    }
}

@media (min-width: 768px) {
    /* fonts */
    .brand--header > span {
        font-size: 20px;
        line-height: 1.5rem;
    }

    /* cards and grid */
    .brand--card {
        width: calc(33% - 32px);
    }

    /* filter elements */
    .brand--selector {
        width: calc(20% - 16px);
    }
}

/* -------------
grid support
-------------*/
@supports (display: grid) {
    /* cards and grid */
    .brand--grid {
        display: grid;
        flex-wrap: wrap;
        grid-gap: 32px;
        grid-template-columns: repeat(1, minmax(200px, 1fr));
        grid-template-rows: auto;
        margin: 0 auto;
    }

    .brand--card {
        margin: 0;
        width: 100%;
    }

    /*  filters */
    .brand--filters {
        display: grid;
        flex-wrap: nowrap;
        grid-gap: 16px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        margin: 0 0 64px;
    }

    .brand--selector {
        box-sizing: border-box;
        height: auto;
        margin: auto;
        min-height: 53px;
        padding: 6px 8px 4px;
        width: 100%;
    }

    @media (min-width: 480px) {
        /* cards and grid */
        .brand--grid {
            grid-template-columns: repeat(2, minmax(200px, 1fr));
        }

        /* filters */
        .brand--filters {
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: auto;
        }
    }

    @media (min-width: 768px) {
        /* cards and grid */
        .brand--grid {
            grid-template-columns: repeat(3, minmax(200px, 1fr));
        }

        /* filters */
        .brand--filters {
            grid-template-columns: repeat(5, 1fr);
            grid-template-rows: auto;
        }
    }
}
