/* Section page CSS (including filters etc) */

#section-page {
    width: var(--ContentWidth);
    margin: 30px auto 0 auto;
    box-sizing: border-box;
    font-size: 0;
    overflow: visible;
    position: relative;
}



/* Full width banner images */

#section-page .section-image {
    width: 100%;
    margin: 10px auto 20px auto;
    border: 1px solid var(--GreyBorderColour);
    box-sizing: border-box;
}

#section-page .section-image img {
    display: block;
    height: auto;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 480px;
}

#section-page .section-image picture > img {
    max-width: 1024px;
}

@media screen and (max-width: 1023px) {

    #section-page .section-image picture > img {
        max-width: 480px;
    }

}


#section-page .section-title {
    width: 100%;
}

#section-page .section-title .section-logo {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 200px;
    padding: 0;
    margin: 0 0 10px 0;
}

#section-page .section-title h1 {
    line-height: initial;
    margin: 0 0 10px 0;
}


@media screen and (max-width: 479px) {

    #section-page .section-title .section-logo {
        max-height: 45px;
        max-width: 180px;
    }

}


#section-page h1.sale {
    color: var(--RedTextColour);
}

#section-page > h2 {
    font-size: 36px;
    margin-top: 0;
}

#section-page > h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 30px;
}

#section-page > h3 a {
    color: #000000;
    text-decoration: underline;
    font-weight: 800;
}

@media (hover: hover) {
    #section-page > h3 a:hover {
        text-decoration: none;
    }
}


/* Offer banner on section page */

.section-page-banner {
    display: block;
    width: 100%;
    max-width: 1300px;
    height: auto;
    margin: 20px auto;
    border: 1px solid var(--GreyBorderColour);
}


@media screen and (max-width: 479px) {

    .section-page-banner {
        margin: 10px 0 5px 0;
    }

}


/* Section page minimised description */

#section-page-description {
    width: 100%;
    margin: 15px auto 0 auto;
    height: 18px;
    line-height: 18px;
    display: block;
    overflow: hidden;
    position: relative;
    font-size: 13px;
    color: #808080;
}

#section-page-description-all {
    width: 100%;
    margin: 25px auto;
    display: block;
    position: relative;
    font-size: 15px;
    text-align: center;
    line-height: 1.4;
}

#section-page-description > p,
#section-page-description-all > p {
    margin: 0 0 10px 0;
    padding: 0;
}

#section-page-description > p a {
    font-weight: 600;
    color: #808080;
}

#section-page-description-all > p a {
    font-weight: 600;
}

@media (hover: hover) {
    #section-page-description > p a:hover,
    #section-page-description-all > p a:hover {
        text-decoration: none;
    }
}

#section-page-description-more {
    width: 100%;
    margin: 0 auto;
    height: 18px;
    line-height: 22px;
    font-size: 13px;
    color: #808080;
    text-align: right;
}

#section-page-description-more span {
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

@media (hover: hover) {
    #section-page-description-more span:hover {
        text-decoration: none;
    }
}


/* Section page regular text (used for no products in section) */

.section-message {
    text-align: center;
    margin: 40px 0 30px 0;
}

.section-message p {
    font-size: 18px;
}


/* New and sale products section pages */

#section-page.new-page > h2 {
    font-size: 30px;
    margin: 30px 0 -10px 0;
    display: block;
    width: 100%;
    clear: both;
}

#section-page.new-page > h3 {
    font-size: 26px;
    margin: 30px 0 -10px 0;
    display: block;
    width: 100%;
    clear: both;
    text-transform: uppercase;
}

#section-page.new-page > p {
    font-size: 16px;
}


@media screen and (max-width: 1023px) {

    #section-page.new-page > h2 {
        font-size: 26px;
        margin: 20px 0 -10px 0;
    }

    #section-page.new-page > h3 {
        font-size: 22px;
    }

    #section-page.new-page > p {
        font-size: 15px;
    }

}


@media screen and (max-width: 767px) {

    #section-page.new-page > h2 {
        font-size: 20px;
        margin: 20px 0 -5px 0;
    }

    #section-page.new-page > h3 {
        font-size: 18px;
    }

    #section-page.new-page > p {
        font-size: 14px;
    }

}


@media screen and (max-width: 479px) {

    #section-page.new-page > h2 {
        font-size: 18px;
    }

    #section-page.new-page > h3 {
        font-size: 16px;
    }

}


/* Tailored products section page */

#section-page.tailored-page > h2 {
    font-size: 22px;
    margin: -15px 0 20px 0;
    display: block;
    width: 100%;
    clear: both;
}

#section-page.tailored-page > p {
    font-size: 15px;
}


@media screen and (max-width: 1023px) {

    #section-page.tailored-page > h2 {
        font-size: 26px;
    }

    #section-page.tailored-page > p {
        font-size: 15px;
    }

}


@media screen and (max-width: 767px) {

    #section-page.tailored-page > h2 {
        font-size: 20px;
    }

    #section-page.tailored-page > p {
        font-size: 14px;
    }

}

@media screen and (max-width: 479px) {

    #section-page.tailored-page > h2 {
        font-size: 18px;
    }

}



/* FILTER BUTTONS */

:root {
    --swiper-navigation-top-offset: 0;
    --swiper-navigation-sides-offset: 0;
}

#section-filter-buttons {
    width: 100%;
    box-sizing: border-box;
    font-size: 0;
    margin: 20px 0 -7px 0;
    padding: 15px 0 0 0;
    border-top: 1px solid var(--GreyBorderColour);
    user-select: none;
    overflow: auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 8px;
}

.swiper {
    width: calc(100% - 2px);
    height: 62px;
    box-sizing: border-box;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    box-sizing: border-box;
    border: 1px solid var(--GreyBorderColour);
    border-radius: var(--ButtonCornerRadius);
    transition: border-color .3s;
    cursor: pointer;
}

@media (hover: hover) {
    .swiper-slide:hover {
        border-color: #000000;
    }
}

.swiper-slide-selected {
    background-color: var(--ButtonSelectedBackgroundColour);
}

.swiper-slide img {
    display: block;
    height: auto;
    max-height: 80%;
    width: auto;
    max-width: 85%;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    color: #999999;
    transition: color .3s;
    position: relative;
    margin-top: 0 !important;
    width: 28px;
    height: 28px;
}

@media (hover: hover) {
    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        color: #000000;
    }
}


@media screen and (max-width: 1023px) {
    #section-filter-buttons {
        border-bottom: 1px solid var(--GreyBorderColour);
        padding-bottom: 14px;
    }
}


@media screen and (max-width: 767px) {

    #section-filter-buttons .MagicScroll {
        height: 52px;
    }

    .section-filter-button {
        height: 50px;
        width: 120px;
        margin: 0 12px 0 0;
    }

    .section-filter-button img {
        max-height: 32px;
        max-width: 100px;
    }

}


@media screen and (max-width: 479px) {

    #section-filter-buttons {
        padding: 12px 0 11px 0;
        column-gap: 6px;
    }

    .swiper {
        height: 52px;
    }

    .swiper-slide {
        height: 50px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 22px;
        height: 22px;
    }

}



/* FILTERS */

#section-filters {
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-size: 0;
    margin: 20px 0 0 0;
    overflow: auto;
    padding: 15px 0;
    border-top: 1px solid var(--GreyBorderColour);
    border-bottom: 1px solid var(--GreyBorderColour);
}

#section-filter-form p {
    font-size: 15px;
    line-height: 28px;
    display: inline-block;
    height: 30px;
    margin: 0;
    padding: 2px 10px 0 0;
    float: left;
    clear: none;
}

.section-filter-group {
    overflow: auto;
    float: left;
    clear: none;
    box-sizing: border-box;
    margin-right: 15px;
    cursor: pointer;
}


@media screen and (max-width: 1023px) {

    #section-filters {
        padding: 8px 0;
        display: none;
    }

    #section-filter-form p {
        display: block;
        line-height: 1.2;
        height: auto;
        margin: 8px auto -3px auto;
        text-align: center;
        padding: 0;
        float: none;
        clear: unset;
    }

    .section-filter-group {
        float: none;
        clear: unset;
        width: 90%;
        max-width: 400px;
        box-sizing: border-box;
        margin: 10px auto;
    }

}


.section-filter-title {
    font-size: 15px;
    line-height: 34px;
    height: 36px;
    box-sizing: border-box;
    display: block;
    clear: both;
    padding: 0 48px 2px 15px;
    border: 1px solid var(--GreyBorderColour);
    background-color: #ffffff;
    user-select: none;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.section-filter-title:after {
    font-family: FontAwesome;
    font-size: 12px;
    content: "\f078";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0 0 2px 1px;
    line-height: 35px;
    text-align: center;
    width: 30px;
    color: #000000;
    box-sizing: border-box;
}

.section-filter-total {
    position: absolute;
    top: 9px;
    right: 25px;
    height: 18px;
    width: 18px;
    border-radius: 9px;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    line-height: 18px;
    color: #ffffff;
    background-color: var(--RedTextColour);
}

.section-filter-dropdown {
    border: 1px solid var(--GreyBorderColour);
    z-index: 2 !important;
    position: absolute;
    width: auto;
    min-width: 200px;
    margin-left: 1px;
    box-sizing: border-box;
    background-color: #ffffff;
    opacity: 100%;
    display: none;
    border-radius: 5px;
    box-shadow: 0 3px 4px #999999;
    cursor: default;
}


@media screen and (max-width: 1023px) {

    .section-filter-dropdown {
        width: calc(90% - 2px);
        max-width: 398px;
    }

}


.section-filter-info {
    height: 36px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--GreyBorderColour);
    font-size: 14px;
    line-height: 20px;
    padding: 9px 12px 7px 12px;
    user-select: none;
}

.section-filter-info-left {
    float: left;
    clear: none;
}

.section-filter-info-right {
    float: right;
    clear: none;
}


.section-filter-options {
    max-height: 375px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.section-filter-row {
    width: 100%;
    box-sizing: border-box;
    height: 22px;
    margin-bottom: 3px;
    user-select: none;
    margin-right: 40px;
    cursor: pointer;
}

@media (hover: hover) {
    .section-filter-row:hover {
        background-color: var(--GreyBorderColour);
    }
}

.section-filter-checkbox {
    display: inline-block;
    float: left;
    clear: both;
    height: 16px;
    width: 16px;
    box-sizing: border-box;
    cursor: pointer;
}

.section-filter-label {
    display: flex;
    font-size: 13px;
    line-height: 16px;
    padding: 4px 5px 2px 5px;
    width: calc(100% - 30px);
    float: left;
    clear: none;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
}

.section-filter-label span {
    display: block;
    position: absolute;
    right: 0;
}

.section-filter-swatch {
    height: 14px;
    width: 14px;
    display: inline;
    padding-right: 4px;
}

.section-filter-buttons {
    height: 36px;
    box-sizing: border-box;
    border-top: 1px solid var(--GreyBorderColour);
    font-size: 14px;
    line-height: 20px;
    padding: 9px 12px 7px 12px;
    user-select: none;
}

.section-filter-clear {
    float: left;
    clear: none;
    cursor: pointer;
}

.section-filter-action {
    float: right;
    clear: none;
    cursor: pointer;
}

@media (hover: hover) {
    .section-filter-clear:hover,
    .section-filter-action:hover {
        text-decoration: underline;
    }
}


/* RESET BUTTON */

.section-filter-reset {
    display: block;
    float: right;
    clear: none;
}

@media screen and (max-width: 1023px) {
    .section-filter-reset {
        float: none;
        clear: unset;
        margin: 12px auto 10px auto;
        width: calc(90% - 2px);
        max-width: 398px;
    }
}


/* MOBILE TOGGLE */

#section-filter-toggle {
    display: none;
}

@media screen and (max-width: 1023px) {

    #section-filter-toggle {
        width: 100%;
        height: 36px;
        font-family: inherit;
        font-size: 14px;
        padding: 0 0 0 15px;
        background-color: #ffffff;
        color: #000000;
        border: 1px solid var(--GreyBorderColour);
        border-radius: 6px;
        display: block;
        margin-top: 1px;
        position: relative;
        text-align: left;
    }

    #section-filter-toggle:after {
        font-family: FontAwesome;
        font-size: 17px;
        content: "\f1de"; /* sliders */
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        padding: 0 2px 3px 0;
        line-height: 34px;
        text-align: center;
        width: 30px;
        box-sizing: border-box;
    }

}



/* SECTION PAGE TOTAL AND SORT */

#section-sort {
    width: 100%;
    overflow: auto;
    margin: 20px 0 0 0;
}

.section-sort-left {
    float: left;
    clear: none;
}

.section-sort-left p {
    font-size: 15px;
    margin: 0;
    line-height: 36px;
}

.section-sort-right {
    float: right;
    clear: none;
    width: 280px;
    height: 36px;
    text-align: right;
}

.section-sort-right p {
    font-size: 15px;
    margin: 0;
    line-height: 30px;
    padding: 0 10px 0 0;
    display: inline-block;
}


@media screen and (max-width: 1023px) {

    #section-sort {
        display: flex;
        justify-content: space-around;
    }

    .section-sort-left,
    .section-sort-right {
        width: 47%;
        max-width: 220px;
        text-align: center;
    }

    .section-sort-left {
        padding-right: 12px;
    }

    .section-sort-right {
        padding-left: 12px;
    }

    .section-sort-left p,
    .section-sort-right p {
        padding: 2px 0 4px 0;
        line-height: 20px;
        font-size: 14px;
    }

}


@media screen and (max-width: 479px) {

    .section-sort-left {
        padding-right: 5px;
    }

    .section-sort-right {
        padding-left: 5px;
    }

}



/* Sort by select */

#section-sort-select {
    display: inline-block;
    width: 200px;
}

@media screen and (max-width: 1023px) {

    #section-sort-select {
        width: 100%;
    }

    #section-sort-select label select,
    .section-filter-title {
        font-size: 14px;
    }

    #section-sort-select label:after {
        font-size: 14px;
        content: "\f176"; /* up arrow */
        position: absolute;
        padding: 0 0 1px 2px;
        text-align: left;
        width: 15px;
    }

    #section-sort-select label:before {
        font-family: FontAwesome;
        font-size: 14px;
        content: "\f175"; /* down arrow */
        position: absolute;
        right: 15px;
        top: 0;
        bottom: 0;
        padding: 1px 0 0 0;
        line-height: 34px;
        text-align: right;
        width: 15px;
        background-color: #ffffff;
        color: #000000;
        box-sizing: border-box;
    }

}