﻿

/* -------------------------------- 

Modules - reusable parts of our design

-------------------------------- */
.cd-container {
    /* this class is used to horizontally align the gallery of items */
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

    .cd-container::after {
        /* clearfix */
        content: '';
        display: table;
        clear: both;
    }

.cd-img-replace {
    /* replace text with a background-image */
    display: inline-block;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
}


#cd-hamburger-menu, #cd-cart-trigger {
    position: absolute;
    top: 0;
    height: 100%;
}

    #cd-hamburger-menu a, #cd-cart-trigger a {
        width: 60px;
        height: 100%;
    }

#cd-hamburger-menu {
    left: 0;
}

    #cd-hamburger-menu a {
        background: #26292f url("../img/cd-hamburger-menu.svg") no-repeat center center;
    }

@media only screen and (min-width: 1200px) {
    #cd-hamburger-menu {
        display: none;
    }
}

#cd-cart-trigger {
    right: 0;
}

    #cd-cart-trigger a {
        background: #26292f url("../img/cd-cart.svg") no-repeat center center;
    }

.overflow-hidden {
    overflow: hidden;
}

@media only screen and (min-width: 1200px) {
    #cd-cart-trigger {
        /* cart right margin on desktop */
        right: 0;
    }

        #cd-cart-trigger a {
            position: relative;
            width: 100px;
            border-left: none;
            background-color: #26292f;
        }
}

#wrapper-right-cart {
    height: 80%;
    height: 82.2%;
    overflow: auto;
}

#main-nav, #cd-cart {
    position: fixed;
    top: 0;
    height: 100%;
    width: 600px;
    /* header height */
    padding-top: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.right-cart-img {
    display: inline-block;
    width: 70px;
    text-align: center;
    padding: 5px;
    float: left;
}

    .right-cart-img img {
        width: 100%;
    }

#main-nav, #cd-cart {
    width: 400px;
}

.cd-cart-total {
    color: #383838;
    font-size: 17px;
    font-weight: bold;
}

.no-js #main-nav {
    position: fixed;
}

#cd-cart {
    right: -150%;
    background: #FFF;
    -webkit-transition: right 0.3s;
    -moz-transition: right 0.3s;
    transition: right 0.3s;
}

    #cd-cart.speed-in {
        right: 0;
    }

    #cd-cart > * {
        padding: 0 1em;
    }

    #cd-cart h2 {
        font-size: 14px;
        font-size: 15px;
        font-weight: bold;
        text-transform: none;
        margin: 0;
        background: #383838;
        color: #fff;
        padding: 10px 15px;
        position: relative;
    }

    #cd-cart .cd-cart-items {
        padding: 0;
        font-size: 13px;
    }

        #cd-cart .cd-cart-items li {
            position: relative;
            padding: 1em;
            border-top: 1px solid #e0e6ef;
            width: 100%;
            display: flex;
            clear: both;
        }

            #cd-cart .cd-cart-items li:last-child {
                border-bottom: 1px solid #e0e6ef;
            }

    #cd-cart .cd-qty, #cd-cart .cd-price {
        color: #a5aebc;
    }

    #cd-cart .cd-price {
        margin-top: .4em;
    }

.modal-cart-right-close {
    position: absolute;
    right: 1em;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: url(../img/cd-remove-item.svg) no-repeat center center;
    color: #00874b;
    background-color: #FFF;
    line-height: 35px;
    padding-left: 9px;
}

    .modal-cart-right-close:hover {
        position: absolute;
        right: 1em;
        top: 50%;
        bottom: auto;
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: url(../img/cd-remove-item.svg) no-repeat center center;
        color: #00874b;
        background-color: #00874b;
        line-height: 35px;
        padding-left: 9px;
    }

#cd-cart .cd-item-remove {
    position: absolute;
    right: 1em;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: url("../img/cd-remove-item.svg") no-repeat center center;
}

.no-touch #cd-cart .cd-item-remove:hover {
    background-color: #e0e6ef;
}

#cd-cart .cd-cart-total {
    padding-top: 1em;
    padding-bottom: 1em;
}

    #cd-cart .cd-cart-total span {
        float: right;
    }

    #cd-cart .cd-cart-total::after {
        /* clearfix */
        content: '';
        display: table;
        clear: both;
    }

#cd-cart .checkout-btn {
    display: block;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: #383838;
    color: #FFF;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
}

.no-touch #cd-cart .checkout-btn:hover {
    background: #ff6600;
}

#cd-cart .cd-go-to-cart {
    text-align: center;
    margin: 1em 0;
}

    #cd-cart .cd-go-to-cart a {
        text-decoration: underline;
    }



#cd-gallery-items li {
    margin-bottom: 1.5em;
}

    #cd-gallery-items li img {
        width: 100%;
        display: block;
        border-radius: 0.25em;
    }


#cd-shadow-layer {
    position: fixed;
    min-height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(67, 87, 121, 0.6);
    cursor: pointer;
    z-index: 2;
    display: none;
}

    #cd-shadow-layer.is-visible {
        display: block;
        -webkit-animation: cd-fade-in 0.3s;
        -moz-animation: cd-fade-in 0.3s;
        animation: cd-fade-in 0.3s;
    }

/* -------------------------------- 

xkeyframes 

-------------------------------- */
@-webkit-keyframes cd-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes cd-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes cd-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
