@import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700');

:root {
    --columns: 3;
}

body {
    color: #5A626F;
    background-color: #E7FFF4;
    font-family: 'Open Sans Condensed', sans-serif;
}

.rack-container ul {
    margin: 100px 0;
    display: grid;
    grid-template-columns: repeat(var(--columns),1fr);
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 600 1040' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' clip-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2'%3E%3Cpath d='M0 0l300 173.205v346.41L0 346.41V0z' fill='url(%23_Linear1)'/%3E%3Cpath d='M300 519.615L600 692.82v346.411L300 866.025v-346.41z' fill='url(%23_Linear2)'/%3E%3Cpath d='M600 0L300 173.205v346.41L600 346.41V0z' fill='url(%23_Linear3)'/%3E%3Cpath d='M300 519.615L0 692.82v346.411l300-173.206v-346.41z' fill='url(%23_Linear4)'/%3E%3Cdefs%3E%3ClinearGradient id='_Linear1' x1='0' y1='0' x2='1' y2='0' gradientUnits='userSpaceOnUse' gradientTransform='rotate(-30 646.41 173.205) scale(346.41)'%3E%3Cstop offset='0' stop-color='%23b7ccc3'/%3E%3Cstop offset='1' stop-color='%23cde2d9'/%3E%3C/linearGradient%3E%3ClinearGradient id='_Linear2' x1='0' y1='0' x2='1' y2='0' gradientUnits='userSpaceOnUse' gradientTransform='rotate(-30 1766.025 -126.796) scale(346.41)'%3E%3Cstop offset='0' stop-color='%23b7ccc3'/%3E%3Cstop offset='1' stop-color='%23cde2d9'/%3E%3C/linearGradient%3E%3ClinearGradient id='_Linear3' x1='0' y1='0' x2='1' y2='0' gradientUnits='userSpaceOnUse' gradientTransform='rotate(-150 346.41 92.82) scale(346.41)'%3E%3Cstop offset='0' stop-color='%23e8dad1'/%3E%3Cstop offset='1' stop-color='%23fff0e7'/%3E%3C/linearGradient%3E%3ClinearGradient id='_Linear4' x1='0' y1='0' x2='1' y2='0' gradientUnits='userSpaceOnUse' gradientTransform='rotate(-150 266.025 392.82) scale(346.41)'%3E%3Cstop offset='0' stop-color='%23e8dad1'/%3E%3Cstop offset='1' stop-color='%23fff0e7'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
    background-size: calc(200%/(var(--columns)));
}

.rack-container li {
    grid-column-end: span 2;
    position: relative;
    padding-bottom: 86.66%;
}

    .rack-container li:nth-child(2n-1) {
        grid-column-start: 2;
    }

    .rack-container li:before {
        content: "";
        position: absolute;
        right: 0;
        width: 50%;
        height: 100%;
        /*background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/881020/adidas.png);*/
        background-position: 90% 27%;
        opacity: 0.6;
        transform: skewy(30deg);
        background-size: 40%;
        background-repeat: no-repeat;
    }

/*.adidas:before {
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/881020/adidas.png);
}

.tiger:before {
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/881020/tiger.png);
}*/

.rack-container div {
    position: absolute;
    width: 50%;
    font-size: calc(15vw/var(--columns));
    transform: skewy(-30deg);
    margin-top: 14%;
    padding: 3%;
}

.rack-container p {
    font-size: 2em;
}

.rack-container img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 62%;
    bottom: -10%;
    -webkit-filter: drop-shadow(0 50px 20px rgba(0, 0, 0, 0.20));
    filter: drop-shadow(0 50px 20px rgba(0, 0, 0, 0.20));
    transition-property: bottom, filter, -webkit-filter;
    transition-duration: .3s;
}

    .rack-container img:hover {
        bottom: 0;
        -webkit-filter: drop-shadow(0 80px 40px rgba(0, 0, 0, 0.20));
        filter: drop-shadow(0 80px 30px rgba(0, 0, 0, 0.20));
    }

@media (min-width:600px) {
    :root {
        --columns: 5;
    }

    .rack-container li:nth-child(2n-1) {
        grid-column-start: auto;
    }

    .rack-container li:nth-child(4n-3) {
        grid-column-start: 2;
    }
}

@media (min-width:900px) {
    :root {
        --columns: 7;
    }

    .rack-container li:nth-child(4n-3) {
        grid-column-start: auto;
    }

    .rack-container li:nth-child(6n-5) {
        grid-column-start: 2;
    }
}

@media (min-width:1200px) {
    :root {
        --columns: 9;
    }

    .rack-container li:nth-child(6n-5) {
        grid-column-start: auto;
    }

    .rack-container li:nth-child(8n-7) {
        grid-column-start: 2;
    }
}

@media (min-width:1500px) {
    :root {
        --columns: 11;
    }

    .rack-container li:nth-child(8n-7) {
        grid-column-start: auto;
    }

    .rack-container li:nth-child(10n-9) {
        grid-column-start: 2;
    }
}

@media (min-width:1800px) {
    :root {
        --columns: 13;
    }

    .rack-container li:nth-child(10n-9) {
        grid-column-start: auto;
    }

    .rack-container li:nth-child(12n-11) {
        grid-column-start: 2;
    }
}

@media (min-width:2100px) {
    :root {
        --columns: 15;
    }

    .rack-container li:nth-child(12n-11) {
        grid-column-start: auto;
    }

    .rack-container li:nth-child(14n-13) {
        grid-column-start: 2;
    }
}



/*popup product card below onwards*/

.product-card * {
    box-sizing: border-box;
}

.product-card :is(h1, h2, h3, h4, h5, h6, p) {
    margin: 0;
    padding: 0;
}

.product-card {
    font-family: "Arima Madurai", cursive;
}

.product-card a {
    text-decoration: none;
    color: black;
}

.product-card .container {
    width: 1400px;
    max-width: 100%;
    height: 850px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow:auto;
}

    .product-card .container:after {
        content: "";
        display: block;
        clear: both;
    }

.col-50 {
    width: 50%;
    float: left;
    padding: 20px;
    position: relative;
    height: 100%;
}

    .col-50:first-child {
        background-color: white;
    }

    .col-50:last-child {
        background: #f5f4f0;
    }

.heading {
    display: flex;
    justify-content: space-between;
}

.logo {
    line-height: 1;
    text-transform: uppercase;
}

    .logo .slogan {
        color: #ceb384;
        letter-spacing: 3px;
        font-size: 12px;
    }

.close-btn {
    font-size: 30px;
    margin-top: -10px;
    cursor: pointer;
}

.card-item {
    width: 100%;
    margin-top: 20px;
    background-image: url(http://findicons.com/files/icons/649/gucci/512/gucci_bag.png);
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

    .card-item:before {
        content: "";
        display: block;
        padding-top: 70%;
    }

.thumb-wrap {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.thumb-unit {
    width: 25%;
    opacity: 0.4;
    cursor: pointer;
    transition: all ease-in-out 300ms;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    float: left;
}

    .thumb-unit:hover {
        opacity: 1;
        transform: translateY(-10px);
    }

    .thumb-unit:before {
        content: "";
        display: block;
        padding-top: 100%;
    }

    .thumb-unit:nth-child(1) {
        background-image: url(https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRHBfCpcEnWhegutg57oclDwO33GKsrpp5PYhKz9sec_E9ahBjz4Q);
    }

    .thumb-unit:nth-child(2) {
        background-image: url(https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTmgD9Mt6bSyd1xV0lG07_NRb_dEyn8Wy2sSfYG25oNQV4Dx0vexw);
    }

    .thumb-unit:nth-child(3) {
        background-image: url(https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTgRlWui3Ro8DjLtyrEMgB6a-Vcb__FJ_T0MUYkf2MEPp-jrm4n);
    }

    .thumb-unit:nth-child(4) {
        background-image: url(https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcS7HTGkkDxaUpzawhXAGBJOZilL7jEDxT4gxh2mkCSESU8fSRkiwA);
    }

.navigation {
    display: flex;
    width: 100%;
    color: white;
    justify-content: space-between;
}

    .navigation a {
        font-size: 15px;
        font-weight: 900;
        display: inline-block;
        margin-left: 30px;
        text-transform: uppercase;
    }

        .navigation a.active {
            color: #ceb384;
        }

    .navigation .menu {
        font-size: 20px;
        color: black;
        cursor: pointer;
    }

.product-info {
    margin-top: 100px;
}

    .product-info .name {
        font-size: 40px;
        font-weight: 700;
        letter-spacing: 1px;
    }

.product-details {
    margin-top: 50px;
    font-size: 20px;
}

    .product-details span {
        display: block;
        margin: 0;
    }

        .product-details span:nth-child(1) {
            color: #ceb384;
            font-size: 16px;
        }

        .product-details span:nth-child(2) {
            font-size: 20px;
            font-weight: 900;
        }

.condition {
    margin: 30px 0px;
}

.more-details {
    margin-top: 30px;
}

    .more-details .sub-title {
        display: inline-block;
        margin-left: 40px;
        cursor: pointer;
        text-transform: uppercase;
        padding-bottom: 10px;
    }

        .more-details .sub-title.active {
            border-bottom: 2px solid #ceb384;
        }

    .more-details .sub-info-wrap {
        margin-top: 20px;
    }

.cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

    .cta .selling-wrap .text {
        color: #ceb384;
        font-weight: 900;
        font-size: 14px;
    }

    .cta .selling-wrap .figure {
        font-size: 30px;
        font-weight: 900;
    }

        .cta .selling-wrap .figure span {
            font-weight: 300;
        }

    .cta .icon-wrap {
        display: flex;
        font-size: 20px;
    }

        .cta .icon-wrap a {
            margin-right: 20px;
        }

        .cta .icon-wrap .button {
            display: inline-block;
            background: #ceb384;
            color: white;
            font-size: 14px;
            text-transform: uppercase;
            text-align: center;
            padding: 10px 20px;
            border-radius: 10px;
            margin-top: -10px;
            cursor: pointer;
            transition: all ease-in-out 300ms;
        }

            .cta .icon-wrap .button:hover {
                background: rgba(206, 179, 132, 0.6);
            }

@media (max-width: 1200px) {
    .container {
        top: 0%;
        left: 0;
        transform: translate(0%, 0%);
    }

    .col-50 {
        width: 100%;
    }

        .col-50:first-child {
            height: 1100px;
        }
}

@media (max-width: 900px) {
    .col-50:first-child {
        height: 800px;
    }
}

@media (max-width: 640px) {
    .col-50:first-child {
        height: 650px;
    }
}

@media (max-width: 500px) {
    .col-50:first-child {
        height: 500px;
    }
}

.hidden {
    display: none;
}