:root {
    --white: #fff;
    --dark: #292F36;
    --green: #4ECDC4;
    --light: #F7FFF7;
    --red: #FF6B6B;
    --red-light: #ffefef;
    --yellow: #FFE66D;
    --gray-light: #dedede;

    --fs-base: 18px;

    --fw-light: 300;
    --fw-semi-bold: 600;
}

/* =Global styles
----------------------------------------------- */
* {
    margin: auto;
    padding: 0;
}

*, ::after, ::before {
    box-sizing: border-box;
}

html {
    font-size: var(--fs-base);
}

body {
    background: var(--white);
    color: var(--dark);
    font-family: 'Jost', sans-serif;
}

body * {
    outline: none !important;
}

/* sticky footer */
html, body {
    height: 100%;
}

body {
    display: table;
    table-layout: fixed;
    width: 100%;
}

#wrap {
    display: table-row;
    height: 100%;
}

footer {
    display: table-row;
    height: 1px;
}

#footer {
    margin-top: 50px;
    padding: 30px 0 50px;
    background: var(--dark);
    color: var(--light);
    text-align: center;
}

p, ul, ol {
    margin-bottom: 1.5rem;
}

a {
    color: var(--green);
    font-weight: var(--fw-semi-bold);
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
}

a:hover {
    color: var(--green) !important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-semi-bold);
    margin-bottom: .8rem;
}

/* =Helpers
----------------------------------------------- */
.container {
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px;
    width: 100%;
}

.container-fluid, .container, .col {
    padding-right: 15px;
    padding-left: 15px;
}

.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    margin: 0 !important;
    max-width: 100%;
}

.col-left {
    margin: auto !important;
    max-width: 200px;
}

.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.float-right {
    float: right;
}

.img-fluid.float-right {
    margin: -10px 0 20px 40px;
}

.text-success {
    color: var(--green);
}

.text-danger {
    color: var(--red);
}

.bg-success {
    background: var(--light);
}

.bg-danger {
    background: var(--red-light);
}

/* =Sections
----------------------------------------------- */
#header {
    padding: 50px 0;
    background: var(--red);
    text-align: center;
    color: var(--white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

#header .h1, #header h1 {
    margin-bottom: 0;
    font-size: 2.5rem;
    font-weight: var(--fw-light)
}

#header .small, #header small {
    display: block;
}

/* ranking */
.ranking {
    padding: 70px 0;
}

.ranking-item {
    position: relative;
}

.ranking-item + .ranking-item {
    margin-top: 70px;
    padding-top: 70px;
    border-top: 1px solid var(--gray-light);
}

.product-image a {
    display: inline-block;
}

.product-number {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--green);
    color: var(--white);
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 52px;
    border-radius: 3px;
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
}

.product-title {
    position: relative;
    margin-bottom: 20px;
    color: var(--green);
    font-size: 1.8rem;
    line-height: 50px;
}

.product-title a {
    display: inline-block;
    color: var(--green);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--green) !important;
}

.product-title a:hover .product-number {
    background: var(--green) !important;
}

.product-name {
    padding-left: 70px;
}

.product-price {
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: var(--fw-semi-bold);
    font-size: 1.3rem;
}

.product-price span {
    color: var(--green);
}

.product-excerpt {
    padding-top: 15px;
    padding-left: 50px;
    font-size: 1.3rem;
}

.product-description {
    margin-top: 30px;
    font-size: 1.1rem;
}

.product-summary {
    margin-right: 0;
    margin-left: 0;
    margin-top: 30px;
    width: 100%;
    font-size: 1.2rem;
    box-shadow: 5px 4px 10px rgba(0, 0, 0, 0.1);
}

.product-summary .col {
    padding: 2rem;
}

.product-summary .bg-success {
    border: 1px solid var(--green);
}

.product-summary .bg-danger {
    border: 1px solid var(--red);
}

.badge {
    display: inline-block;
    position: relative;
    top: -4px;
    margin-left: 10px;
    padding: 5px 20px;
    background: var(--yellow);
    font-weight: var(--fw-semi-bold);
    text-transform: lowercase;
    border-radius: 50px;
    font-size: 1rem;
}

.plus, .minus {
    list-style: none;
    margin-bottom: 0;
}

.plus li, .minus li {
    position: relative;
    padding-left: 25px;
}

.plus li {
    color: var(--green);
}

.minus li {
    color: var(--red);
}

.plus li::before, .minus li::before {
    position: absolute;
    top: -2px;
    left: 0;
    font-weight: var(--fw-semi-bold);
}

.plus li::before {
    content: "+";
    color: var(--green);
}

.minus li::before {
    content: "–";
    color: var(--red);
}

/* first */
.ranking-item.first .product-title, .ranking-item.first .product-title a {
    color: var(--red);
}

.ranking-item.first .product-number {
    background: var(--red);
}

.ranking-item.first .product-price span {
    color: var(--red);
}

.ranking-item.first a {
    color: var(--red);
}

@media (min-width: 576px) {
    .product-title.only-mobile {
        display: none;
    }
}

@media (min-width: 992px) {
    .product-summary .bg-success {
        border-right: 0;
        border-radius: 3px 0 0 3px;
    }

    .product-summary .bg-danger {
        border-left: 0;
        border-radius: 0 3px 3px 0;
    }
}

@media (max-width: 991px) {
    .product-summary {
        display: block;
    }

    .product-summary .bg-success {
        border-bottom: 0;
        border-radius: 3px 3px 0 0;
    }

    .product-summary .bg-danger {
        border-top: 0;
        border-radius: 0 0 3px 3px;
    }

    .product-excerpt {
        padding-left: 20px;
    }

    .ranking {
        padding-top: 40px;
    }

    #header {
        padding: 30px 0;
    }

    #header .h1, #header h1 {
        font-size: 2rem;
    }

    #footer {
        margin-top: 0;
        padding-bottom: 30px;
    }

    .ranking-item + .ranking-item {
        margin-top: 40px;
        padding-top: 40px;
        border-top: 1px solid var(--gray-light);
    }
}

@media (max-width: 767px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .row {
        display: block;
    }

    .col-left {
        max-width: none;
    }

    .product-image {
        text-align: center;
    }

    .product-image img {
        max-height: 200px;
    }

    .product-title:not(.only-mobile) {
        display: none;
    }

    .product-price {
        margin-top: 10px;
    }

    .product-excerpt {
        padding-left: 0;
    }

    .img-fluid.float-right {
        float: none;
        margin-top: 0;
        margin-right: auto;
        margin-left: auto;
        display: block;
        width: 50%;
    }

    .product-excerpt, .product-price {
        font-size: 1.1rem;
    }

    .product-summary .col {
        padding: 1.5rem;
    }

    .ranking {
        padding-bottom: 40px;
    }

    .badge {
        top: -2px;
    }
}