/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
    font-family: 'Rubik';
    src: url('fonts/rubik-latin.woff2') format('woff2');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #000;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: 12px;
    background-color: #040a0c;
    overflow-x: hidden;
}

a {
    text-decoration: underline;
    font-size: 1.1em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header-bg {
    background-color: #005a31;
    position: relative;
    padding-bottom: 50px;
    min-height: 260px;
}

.header-inner {
    position: relative;
    padding: 30px 50px 0;
}

.header-img {
    position: absolute;
    max-height: 80%;
    width: auto;
    right: 40px;
    top: 110px;
}

.logo-white {
    display: block;
    position: absolute;
    right: 0;
    height: 60px;
    width: auto;
}

header h1 {
    font-family: 'Rubik', serif;
    color: #fff;
    margin: 50px 0 0;
    font-size: 4.5em;
    font-weight: 700;
    line-height: 1.3;
}

header h2 {
    color: #fff;
    font-family: 'Rubik', serif;
    margin: 40px 0 10px;
    font-size: 2.8em;
}

header h2::after {
    content: "";
    display: block;
    width: 200px;
    height: 8px;
    background-color: #bed5a2;
    margin-top: 8px;
}

.fair-bar {
    background-color: #005a31;
    color: #fff;
    text-align: center;
    padding: 15px 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    font-weight: normal;
    max-width: 1240px;
    margin: 0 auto;
}


/* ==========================================================================
   Product section
   ========================================================================== */

.products-wrapper {
    background-color: #d5e3ce;
    padding-top: 40px;
}

.products {
    position: relative;
    z-index: 1;
    background-color: white;
    padding: 30px 110px;
    max-width: 1240px;
    margin: 0 auto;
}

/* ==========================================================================
   Product card
   ========================================================================== */

.product-card {
    display: grid;
    grid-template-columns: 2fr 7fr 3fr;
    gap: 15px;
    margin-bottom: 40px;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.product-content {
    z-index: 1;
    padding: 15px;
}

.product-content h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
    padding-top: 10px;
}

.red {
    color: #dd1616;
}

.product-content p {
    font-size: 1.2em;
    line-height: 1.3em;
}

.product-content p strong {
    max-width: 80%;
    display: inline-block;
}

.product-content a {
    color: #dd1616;
}

/* ==========================================================================
   Price box
   ========================================================================== */

.price-box {
    max-width: 200px;
}

.badges {
    width: 100%;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.badges img {
    height: 30px;
    width: auto;
}

.info {
    background-color: #e4e4e4;
    padding: 15px 10px 10px;
    text-align: center;
    color: #484341;
    border-radius: 10px;
}

.info strong {
    font-size: 1.3em;
    font-family: 'Rubik', serif;
    line-height: 0.8em;
}

.info .price {
    font-size: 4em;
    line-height: 1em;
    font-weight: bold;
    color: #dd1616;
}

.cta {
    background-color: #dd1616;
    padding: 5px 10px;
    margin-top: 10px;
}

.cta a {
    text-decoration: none;
    font-size: 140%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta a img {
    width: 8px;
    height: 16px;
    flex-shrink: 0;
}

.cta a:hover {
    opacity: 0.9;
}

.cta + .availability {
    color: #484341;
    padding-top: 5px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    body {
        font-size: 16px;
    }
    header h1 {
        font-size: 3em;
    }
    header h2 {
        font-size: 1.8em;
    }
    .info strong {
        font-size: 1.0em;
    }
    .info .price {
        font-size: 3em;
    }
    .header-img {
        max-height: 60%;
        right: 10px;
    }
    .fair-bar {
        font-size: 0.9em;
    }
    .products {
        padding: 30px 10px;
    }
    .product-content h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 767px) {
    header h1 {
        font-size: 3em;
    }
    .header-img {
        display: none;
    }
    .product-card {
        grid-template-columns: 1fr;
    }
    .price-box {
        max-width: 100%;
    }
}
