/*
    CSS specific to the homepage
 */

.search_categories {
    margin: 0;
    padding: 0;
    list-style: none;
    background: none;
}

.search_categories li {
    background: white;
    border-bottom: 1px solid #f2f5f8;
    overflow: hidden;
}

.search_categories li:first-of-type{
    border-top: 1px solid #d9dee3;
}

.search_categories a {
    display: block;
    padding: 15px 10px 15px 15px;
    margin-top: 2px;
    font-weight: bold;
    font-size: 15px;
    color: #000;
}
.sell .search_categories a {
    background: url(../../i/touch/arrow_right.png) no-repeat 100% 16px;
    background-size: 8px 12px;
    margin-right: 10px;
}

.search_categories a:hover {
    text-decoration: none;
}

.search_categories a span {
    display: block;
    margin-right: -5px;
    font-size: 11px;
}

.search_categories > .show_all {
    margin-bottom: 5px;
}
.search_categories > .show_all ~ .show_all {
    margin-bottom: 0px;
}

.search_categories > .pseudo_cat {
    margin-top: 5px;
}
.search_categories > .pseudo_cat ~ .pseudo_cat {
    margin-top: 0px;
}
.search_categories .dd-category a:first-child {
    padding-bottom: 0;
}
.search_categories .dd-category .dd-title {
    display: flex;
    height: 14px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}
.search_categories .dd-category .dd-title img {
    display: inline-block;
    height: 22px;
}
.search_categories .dd-category .dd-title .chip {
    display: inline-block;
    padding: 3px 5px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    background: #222831;
    color: #fff;
}
.search_categories .dd-category .second-row {
    display: flex;
    justify-content: space-between;
}
.search_categories .dd-category .second-row svg {
    margin-right: 5px;
}

#signup_login_prompt {
    background-color: #EEE;
    padding: 21px 18px 22px 18px;
    margin: -2px auto 15px auto;
    text-align: left;
}

#signup_login_prompt h1 {
    font-size: 27px;
    margin: 0 0 2px 0;
    padding: 0;
    letter-spacing: 0.3px;
    line-height: 35px;
    font-weight: 200;
    color: #777;
}
#signup_login_prompt h2 {
    font-size: 27px;
    margin: 0 0 15px 0;
    padding: 0;
    letter-spacing: 0.3px;
    line-height: 35px;
    font-weight: bold;
    color: #333;
}

#signup_login_prompt p {
    color: #525252;
    margin: 0;
    padding: 8px 0 12px 0;
}

#signup_login_prompt ul {
    list-style: none;
    margin: 15px 0 15px 0;
    padding: 0;
}

#signup_login_prompt .buttons {
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

#signup_login_prompt .rounded_button {
    position: relative;
    width: 48%;
    display: inline-block;
    padding: 20px 0px;
}

#signup_login_prompt .rounded_button:last-child {
    margin:0;
}

.homepage-strapline {
    width: 100%;
    height: 30px;
    text-align: center;
    background: #525252;
    color: #fff;
    font-size: 13px;
}

.homepage-strapline a {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    color: #fff;
}

.homepage-strapline span {
    position: relative;
    top: -9px;
}

.homepage-strapline img {
    position: relative;
    top: 0px;
    width: 32px;
}

/*
    Retina images
 */
@media screen and (min-device-pixel-ratio: 2), screen and (-webkit-min-device-pixel-ratio: 2), screen and (max--moz-device-pixel-ratio: 2) {
    .sell .search_categories a {
        background-image: url(../../i/touch/arrow_right@2x.png);
    }
}

.top-searches {
    padding-top: 16px;
    margin-bottom: 20px;
}

.top-searches a {
    font-size: 13px;
    color: #597386;
    display: inline-block;
    vertical-align: top;
    width: 49%;
    padding: 4px 0;
}

.top-searches .searches {
    padding: 20px;
    background-color: #fff;
}

/* For You personalised section */
.for-you-section {
    padding: 16px 0;
}

.for-you-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 10px;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.for-you-heading a {
    font-size: 13px;
    color: #597386;
    font-weight: normal;
    text-decoration: none;
}

.for-you-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.for-you-grid li {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.for-you-grid li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.for-you-grid li .img-holder img {
    width: 100%;
    height: auto;
    display: block;
}

.for-you-grid li .description {
    padding: 14px 12px;
}

.for-you-grid li .fyprice {
    font-weight: bold;
    font-size: 16px;
    color: #4a4a4a;
    padding: 0 0 3px 2px;
}

.for-you-grid li .fyname {
    font-size: 13px;
    color: #8c8c8c;
    height: auto;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 0 2px 1px;
    overflow: hidden;
}

.for-you-grid li .location {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.for-you-grid .card-badge {
    position: absolute;
    margin: 10px;
    width: 30px;
}

