/*VAR ------------------------------------------------------------------------*/
$font: "museo-sans", sans-serif;
$blk: #000;
$wht: #fff;
$red: #E20D18;
$grey-1: #63666A;
$grey-2: #F4F4F4;
$tm: 0.2s;
$elem-p: 0.85rem 1.6rem ;


/* Global ------------------------------------------------------------------------*/
*:focus { outline: none; }
.mobi{display: none ;}
.d-none{ display: none;}
.text-center{text-align: center}
.container{ max-width: 1200px; margin: auto;  width: 100%; }

html,body{ font-family: $font; }
body{ background: $grey-2; }

main{
    margin-top: 85px;
}


/* Headings and text*/
*,a,button, input, h1,h2,h3,h4,h5,h6,p{ font-family: $font; }
a{ text-decoration: none; color: $red; transition: 0.2s;}
a:visited{color: $grey-1;}

h1,h2,h3,h4,h5,h6{ text-transform: uppercase; font-weight: 900; }

h1{color: $wht;
    font-size: 60px;
    font-family: $font;
    font-weight: 900;
    text-transform: uppercase;
    word-wrap: break-word
}
h2{
    color: $grey-1;
    font-size: 40px;
    font-family: $font;
    font-weight: 900;
    text-transform: uppercase;
    word-wrap: break-word
}
h3{
    color: $grey-1;
    font-size: 30px;
}
h4{font-size: 20px;}
p{font-size: 18px;}


/*Buttons*/
.btn{
    padding: $elem-p;
    border-radius: 40px ;
    width: 100%;
    max-width: 260px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none;
    display: inline-block;
    box-shadow: 0 5px 20px rgba($blk, 0.2);
    font-size: 16px;
    font-family: $font;
    font-weight: 700;
    word-wrap: break-word;
  
   
     color: $blk;
     background: $wht ;
     &:hover{
        color: $wht !important;
        background: $red !important;
     }
    
    &.b-red{
     color: $wht;
     background: $red ;
     &:hover{
        color: $blk !important;
        background: $wht !important;
     }
    }
    
}
/* Banner */
.banner{
    padding: 2rem 4rem;
    min-height: 560px;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;


    .content-wrap {
        display: flex;
        align-items: start;
        max-width: 45%;
        width: 100%;
        flex-direction: column;
        p{ color: $wht;}
    }

    &.text-left{
        justify-content: flex-start;
    }
    &.text-right{
        justify-content: flex-end;
    }



}


.splide{
    @extend .after-pat-w;
    &::before{ display: none !important;}
}


.splide__pagination {
    bottom: 4.5rem;
    .splide__pagination__page.is-active {
        opacity: 1;
    }
    .splide__pagination__page {
        background: $wht;
        opacity: 0.5;
    }
}

.splide__arrow{   background: #fff;}


/* Tabs */
.tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.tab-header {
    display: flex;
    padding: 1rem;
}

.tab-item {
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    margin: 5px;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 20px;
}

.tab-item.active {
    color: $red;
    font-weight: 600;
}

.tab-content {
    padding: 2rem 0 4rem; 
    width: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}



/* Pattern */ 
.after-pat-w{
    position: relative;
}
.after-pat-w:before{
    content: "";
    display: block;
    background-image: url(../../img/pattern-w.svg);
    position: absolute;
    top: 0;
    width: 100%;
    height: 2.5rem;
    background-repeat: repeat-x;
    z-index: 9;
    width: 100%;
    opacity: 0.6;
    background-size: contain;
    left:0;

}
.after-pat-w:after{
    content: "";
    display: block;
    background-image: url(../../img/pattern-w.svg);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
    background-repeat: repeat-x;
    z-index: 9;
    width: 100%;
    opacity: 0.6;
    background-size: contain;
    left:0;

}

.after-pat-b{
    position:relative;
}
.after-pat-b:before{
    content: "";
    display: block;
    background-image: url(../../img/pattern-b.svg);
    position: absolute;
    top: 0;
    width: 100%;
    height: 2.5rem;
    background-repeat: repeat-x;
    z-index: 9;
    width: 100%;
    opacity: 0.6;
    background-size: contain;
    left:0;
    opacity:0.3;

}
.after-pat-b:after{
    content: "";
    display: block;
    background-image: url(../../img/pattern-b.svg);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
    background-repeat: repeat-x;
    z-index: 9;
    width: 100%;
    opacity: 0.6;
    background-size: contain;
    left:0;
    opacity:0.3;

}


/* Header ------------------------------------------------------------------------*/
header#site-header {
    position: fixed;
    width: 100%;
    z-index: 999;
    background-color: $wht;
    display: flex;
    align-items: center;
    justify-content: first;
    height: 85px;
    box-shadow: 0 0 30px rgba($blk, 0.2);
    top: 0;

    .mobi-nav-btn{ 
        display: none;
        i{  font-style: normal; display: none; transform: scale(0), rotate(45deg); transition: 0.2s;}
    }

    a.logo-link {
        padding: 0 2rem;
        height: 100%;
        img{ height: 100%;}
    }
    .close-btn{
        display: none;
        font-size: 50px;
        font-style: normal;
        transform: rotate(45deg);
        position: absolute;
        height: 50px;
        width: 50px;
        bottom: 130px;
        margin: auto;
        left: 0;
        right: 0;
        line-height: 50px;
        text-align: center;
        font-family: monospace;
        cursor: pointer;
    }
    .nav{
        transition: 0.2s;
        a{
            color: $blk;
            font-size: 16px;
            font-family: $font;
            font-weight: 300;
            word-wrap: break-word;
            text-decoration: none;
            padding: 0rem 1.5rem;
            transition: 0.2s;
            &:hover{ font-weight: 700;}
        }

    }
    a.shop-link{
        border-right: 1px solid $grey-1;
        padding: 0rem 3rem;
        display: flex;
        align-items: center;
    }

    .menu{  
        display: flex;
        list-style: none;
        padding: 0rem 2rem;
        margin: 0;
        
    
    }
    .icon-nav{  
        display: flex;
        list-style: none;
        position: absolute;
        right: 0;
        margin: 0;
        width: 250px;
        padding: 0 3rem;
        justify-content: space-between;
        align-items: center;
        li{
            transition: 0.2s;
            padding: 0.5rem;
            display: block;
            cursor: pointer;
            &:hover{ opacity: 0.4; transform: scale(0.9);}
        }
        span#cart-count {
            display: inline-block;
            position: relative;
            background: $red;
            padding: 3px 7px;
            color: $wht;
            font-size: 12px;
            left: -5px;
            border-radius: 10px;
            
        }
        span#cart-count[data-cart="0"]{
            display: none !important;
        } 
    
    }
   
}

.search-wrap {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba($red, 0.6);
    z-index: -1;
    transition: 0.2s;
    &.active{ top: 85px; z-index: 99;}

    form.search {
        display: flex;
        flex-direction: row;

        input[type="text"] {
            width: 79%;
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 40px;
            margin-right: 1%;
        }
        input[type="submit"] {
            @extend .btn; width: 20%;
        }
    }
}


/* Footer ------------------------------------------------------------------------*/
footer{
    .subscribe{ 
        background: $red;
        padding: 5rem 0 4rem;
        position: relative;
        
        .row{ position: relative; z-index: 12;}
        h3{ color: $wht; font-weight: 900;}
        p{color: $wht;}

        &::after{
            content: "";
            display: block;
            position: absolute;
            right: 0;
            top: -88px;
            background-image: url(../../img/subscribe-beans.png);
            height: 330px;
            width: 380px;
            z-index: 11;
        }

        .sub-form-wrap{
            input[type="text"]{
                background: rgba($wht,0.4);
                border: none;
                border-radius: 50px;
                color: white;
                font-size: 16px;
                font-family: $font;
                font-weight: 700;
                word-wrap: break-word;
                width: 70%;
                padding: $elem-p;
                margin-right: -11%;
                &::placeholder{ color: $wht}

            }
            input[type="submit"]{
                @extend .btn;
                width: 40%;
            }
            label{ padding: 0.75rem 0.5rem; color: $wht;}
        }
    }

    .main-footer, .sub-footer{ 
        background: $grey-1; 
        color: $wht;
        font-size: 12px;
        word-wrap: break-word;
        font-family: $font;
        font-weight: 300;
        a{ color: $wht; padding: 5px 0; display: inline-block;}
        a:hover{ opacity: 0.6;}
        ul{list-style: none; padding: 0;}
    }

    .main-footer{
        padding: 6rem 0 2rem;
        a.email-btn{
            padding: $elem-p;
            border: 1px solid #fff;
            border-radius: 50px;
            text-align: center;
            margin-bottom: 2rem;
            width: 100%;

        }

        ul.footer-icons {
            display: flex;
            justify-content: space-between;
            font-size: 18px;
            li a{
                display: block;
                height: 40px;
                width: 40px;
                border: 1px solid #fff;
                border-radius: 50%;
                text-align: center;
                line-height: 29px;
            }
        }

    }

    .sub-footer{
        padding-bottom: 4rem;
        .footer-logo{ padding-right: 10px;}
       .row {
            display: flex;
            align-items: center;
            .col:nth-child(1){}
            .col:nth-child(2){
                text-align: center;
            }
            .col:nth-child(3){
                text-align: right;
            }
        }
        
    }


}

/* Home ------------------------------------------------------------------------*/
.home-shop{
    padding: 4rem 2rem;
}

section.promo-banner{
    padding-bottom: 4rem;
    a{
        display: block;
        overflow: hidden;
        border-radius: 40px;
        &:hover{
            transform: scale(0.98);
        }
        img{
            width: 100%;
        }
    }

}

section.about-banner{
    @extend .after-pat-w;
    &::before{ display: none;}
    background-image: url(../../img/about-banner/about-banner.jpg);
    padding: 5rem 0 6rem;
    background-position: center;
    background-size: cover;
    h2{ color: $wht; font-weight: 900;}
    p{ color: $wht;}

}





/* Contact ------------------------------------------------------------------------*/


/* Products ------------------------------------------------------------------------*/
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    .product {
        width: 31%;
        padding: 2rem;
        border-radius: 30px;
        box-shadow: 0 0 40px rgba($blk, 0.2);
        margin: 0.75rem 1%;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: 0.2s;
        position: relative;
        background: $wht;

        span.sale_badge {
            position: absolute;
            top: 2rem;
            left: 2rem;
            background: $red;
            font-size: 14px;
            border-radius: 20px;
            padding: 0.5rem 2rem;
            color: $wht;z-index: 1;
        }
        img{transition: 0.2s; position: relative; z-index: 0;}
        &:hover{
            transform: scale(0.98);
            img{ transform: scale(1.1);}
        }
        h4{
            color: $grey-1;
            font-size: 16px;
            font-family: $font;
            font-weight: 700;
            word-wrap: break-word;
            position: relative; z-index: 1;
        }
        .desc{
            color:$grey-1;
            font-size: 12px;
            font-family: $font;
            font-weight: 300;
            word-wrap: break-word;
            position: relative; z-index: 1;
        }
        .price{
            color: $grey-1;
            font-size: 18px;
            font-family:  $font;
            font-weight: 300;
            word-wrap: break-word;
            padding: 0.5rem;
            position: relative; z-index: 1;
        }
        .btn{
            @extend .b-red;
            margin-top: 2rem;
            position: relative; z-index: 1;
        }
    }
}


/* Shop ------------------------------------------------------------------------*/
.shop{
    padding: 6rem 0;
    @extend .after-pat-b;

}
.single-product{
    padding: 5rem 0;
    @extend .after-pat-b;

}

.product-wrap{
    @extend .container;
    background: $wht;
    box-shadow: 0px 2px 20px rgba($blk, 0.08);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    
    .breadcrumbs{
        a{
            padding: 1rem;
        }
        span{ color: $red;  padding: 1rem;}
    }

    .sale_badge{  background: $red; padding:0.5rem 2rem; border-radius: 30px; color: $wht; position: absolute; right: 3rem; top:2rem}
    
    .images{
        img{width: 100%;}
        .thumbs{
            display: flex;
            width: 100%;
            max-width: 100%;
            flex-direction: row;
            flex-wrap: nowrap;
            position: relative;
            img{
                width: 23%;
                margin: 0 1%;
                border-radius: 20px;
                box-shadow: 0px 2px 20px rgba($grey-1, 0.08);
            }
        }
    }

    h2{ padding: 2rem 0;}
    .desc, .description{ 
        color: $grey-1;
        font-size: 18px;
        font-family: $font;
        font-weight: 300;
        word-wrap: break-word;
        padding-bottom: 20px;
    }
    .price{
        // R120.00
        color: $grey-1;
        font-size: 30px;
        font-family: $font;
        font-weight: 700;
        text-transform: uppercase;
        word-wrap: break-word
    }
    .cart-form{
        display: flex; 
        flex-direction: column;
        input{
            margin-top: 2%;
            width: 100%;
            max-width: 100%;

            &[type="number"]{
                @extend .btn;
                background:  rgba($grey-2, 0.3);  
                width: 100%;
                max-width: 100%;  
                &:hover{
                    background: $grey-1 !important;
                }

            }
        }
    }
    
}

.related-products{
    padding: 4rem 0;
}

/* Page ------------------------------------------------------------------------*/


/* Media Queries ------------------------------------------------------------------------*/
/* Macbook */
@media screen and (max-width: 1400px){
header#site-header .nav-left {
    width: 25%;
}
}

/* Laptop */
@media screen and (max-width: 1366px){

}

/* Tab - Landscape */
@media screen and (max-width: 1100px){


}

/* Tab - Portait */
@media screen and (max-width: 880px){
    .mobi-nav-btn{ 
        display: block !important;
        padding: 2rem;
        cursor: pointer;

    }
    .close-btn{display: block !important;}

    main{
        margin-top: 75px;
    }
    .nav{ 
        opacity: 0;
        position: fixed;
        right: -100%;
        width: 100%;
        background: #fff;
        pointer-events: noen;
        z-index: 99;
        display: flex;
        flex-direction: column;
        top: 0;
        height: 100%;
        padding-top: 3rem;
        .menu{
            flex-direction: column;
        }
        &.active{ 
            right: 0; 
            opacity: 1; 
            pointer-events: all;
        }
    }
    header#site-header{
        justify-content: space-between;
        height: 75px;
    }
    header#site-header .icon-nav {
        position: fixed;
        bottom: 0;
        width: 100%;
        padding: 1rem 3rem;
        background: white;
        display: flex;
        justify-content: space-evenly;
        box-shadow: 0 -10px 40px rgba($blk, 0.15);
        z-index: 999;
    }
    header#site-header .nav a {
        padding: 1.5rem 2rem;
        font-size: 28px;
        border: none;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    .search-wrap {
        bottom: -20%;
        top: auto;
    }
    .search-wrap.active {
        top: auto;
        z-index: 99;
        padding: 1rem;
        bottom: 92px;
    }
    .banner {
        justify-content: center !important;
        padding: 3rem 2rem 5rem !important;
        background-position: center;
        align-items: end;
        background-repeat: no-repeat;
        min-height: 0;
        .content-wrap {
            max-width: 100%;
            display: flex;
            align-items: center;
            text-align: center;
            background: rgba(0,0,0,.2);
            padding: 4rem 2.5rem;
            border-radius: 30px;
            h1 {
                font-size: 40px;
            }
        }
    }
    .splide__pagination {
        bottom: 6.8rem;
    }
    .products {
        flex-direction: column;
        .product {
            width: 100%;
            max-width: 400px;
            margin: 1rem auto;
            align-items: center;
        }
    }
    section.about-banner {
        text-align: center;
        min-height: 30vh;
        padding: 6rem 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    footer .subscribe .row {
        display: flex;
        flex-direction: column;
        padding: 2rem;
    }
    footer .subscribe::after {
        transform: scale(.8);
        transform-origin: right top;
    }
    footer .main-footer {
        padding: 3rem 2rem;
    }
    footer .sub-footer  {
        padding: 1rem 2rem 6rem;
    }

}

/* Mobile */
@media screen and (max-width: 580px){

    .tab-header {
        display: flex;
        padding: 1rem;
        overflow-x: scroll;
        padding: 1rem 2rem;
        width: 100%;
    }

    .search-wrap form.search {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .search-wrap form.search input[type=text] {
        width: 100%;
    }
    .search-wrap form.search input[type=text] {
        width: 100%;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }

    .search-wrap form.search input[type=submit] {
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
    }

    section.promo-banner a {
        border-radius: 20px;
    }
    footer .subscribe::after {
        transform: scale(.75);
        transform-origin: right top;
    }
    footer .subscribe .sub-form-wrap input[type=text], footer .subscribe .sub-form-wrap input[type=submit] {
        width: 100% !important;
        max-width: 100% !important;
    }
    footer .subscribe .sub-form-wrap label {
        display: inline-block;
        width: 84%;
    }
    footer input[type="checkbox"] {
        width: 30px;
        height: 30px;
    }
    footer .main-footer .row{
        flex-direction: column;
        text-align: center;

        .col{  padding: 1rem 0; }
    }
    footer .sub-footer .row{
        flex-direction: column-reverse;
        text-align: center;

        .col{ width: 100% !important; text-align: center !important; padding: 1rem 0;}
    } 
    footer .main-footer ul.footer-icons li a {
        height: 50px;
        width: 50px;
        line-height: 39px;
        font-size: 22px;
    }
    input[type="text"] {
        margin-bottom: 10px;
    }
    .breadcrumbs {
        font-size: 10px;
        width: 100%;
        flex: 1 0 100%;
    }
    .product-wrap .sale_badge {
        right: auto;
        top: 6rem;
        z-index: 2;
        left: 3rem;
    }
    .shop, .single-product {
        padding: 4rem 0;
    }

}

/* Mobile */
@media screen and (max-width: 380px){

}