@import url(normalize.css);

:root {
    --color-primary: #DBA39A;
    --color-secondary: #F0DBDB;
    --color-accent: #F5EBE0;
    --color-background: #FEFCF3;
    --color-body: #7c7a7c;
    --color-border: #e7e7e7;
}

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

img {
    width: 100%;
}

/* Typhography */

::selection {
    background: var(--color-primary);
    color: #fff;
}

html {
    /* 62.5% of 16px = 10px */
    font-size: 62.5%;
}

body {
    position: relative;
    background: var(--color-background);
    font-family: 'Jost', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 2.4rem;
    line-height: 1.5;
    color: var(--color-body);
}

h1,
h2,
h3 {
    color: var(--color-primary);
}

h1 {
    font-size: 8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3rem;
}

p {
    margin: 0;
}

@media screen and(minwidth: 1024px) {
    body {
        font-size: 1.8rem;
    }
}

.btn {
    border: 0;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0;
    outline: 0;
    padding: 1rem;
    text-align: center;
    white-space: nowrap;
}

/* Buttons */
.btn--primary {
    background: var(--color-background);
    padding-right: 4rem;
    padding-left: 4rem;
    border: solid 2px var(--color-primary);
    color: var(--color-primary);
    transition: color .3s, background .3s, border .3s;
}

.btn--primary:hover {
    background: var(--color-secondary);
    border: 0;
    color: #fff;
    transition: all .3s;
}

/* Links */
a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
    font-weight: 600;
}

a:hover {
    color: var(--color-secondary);
    transition: color 0.3s;
    font-weight: 600;
}

.line-link {
    width: 11rem;
    border-bottom: 2px solid var(--color-primary);
    white-space: nowrap;
    transition: width 0.3s;
}

.line-link:hover {
    width: 6rem;
    border-bottom: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    transition: width 0.3s;
}

/* Cards */

.card {
    border: 1px solid var(--color-border);
    width: 100%;
}

.card__header,
.card__body {
    text-align: center;
    padding: 2rem 3rem;
}

.card__body h3 {
    margin: 0;
}

.card__image {
    position: relative;
}

.card__image>img {
    width: 100%;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
}

.block {
    padding: 2rem;
}

.grid {
    display: grid;
    justify-items: center;
    align-items: center;
}

@media screen and (min-width: 768px) {
    .grid--1x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .grid--1x3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1440px) {
    .grid--1x4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product */
.products {
    margin-top: 3rem;
    gap: 2rem;
}

.single__product {
    background: var(--color-background);
}

.single__product-content {
    padding: 4rem 2rem;
    text-align: center;
}

.single__product-title {
    margin: 0;
}

.single__product-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 2rem 0;
}



.single__product-image {
    position: relative;
}

.single__product-image>img {
    width: 100%;
}

.product__rating {
    color: var(--color-body);
    font-size: 1rem;
}

.product__title {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 2rem;
    margin-top: 0;
}

.product__price {
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: 600;
}

.card__featured-product {
    border: 0;
}

.card__product {
    border: 0;
    width: 100%;
}

.card__product-image {
    position: relative;
}

.card__product-image>img {
    width: 100%;
}

.featured-product__title {
    margin: 2rem 0;
}

.featured-product__title>h3 {
    margin: 0;
}

.feature-product__text {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.hidden-block {
    display: none;
}

@media screen and (min-width: 768px) {
    .block__featured-product {
        display: flex;
    }

    .block__featured-product .card__featured-product {
        width: 50vw;
        align-self: center;
    }

    .block__featured-product .products {
        width: 50vw;
    }

}

@media screen and (min-width: 1024px) {

    .block__featured-product .card__featured-product {
        width: 30vw;
        align-self: center;
    }

    .block__featured-product .products {
        width: 70vw;
    }

}

@media screen and (max-width:767px) {
    .block__featured-product .grid--1x2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .block .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

.header {
    text-align: center;
}

.line {
    border-bottom: solid 2px var(--color-primary);
}

/* Icons */
.icon {
    width: 40px;
    height: 40px;
}

.icon--primary {
    color: var(--color-primary);
}

.icon--secondary {
    color: var(--color-secondary);
}

.icon--white {
    color: #fff;
}

.icon-container {
    background: var(--color-secondary);
    width: 64px;
    height: 64px;
    border-radius: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Subscribe */

.subscribe {
    border: solid 2px var(--color-primary);
    padding: 2rem;
}

.subscribe__content {
    margin: 2rem auto;
    text-align: center;
}

.subscribe__content .icon-container {
    position: relative;
}

/* Input */

.input {
    padding: 1rem;
    border: 0;
    font-size: 1.5rem;
    outline: 0;
    width: 100%;
    background: #fff;
}

.input-group {
    display: flex;
}

.input-group .input {
    padding: 1.5rem 2rem;
    flex-grow: 1;
}

.input-button {
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: #fff;
    text-transform: capitalize;
    font-weight: 600;
    font-size: 1.5rem;
    border: 0;
    transition: background .3s;
    cursor: pointer;
}

.input-button:hover {
    background: var(--color-secondary);
    transition: background .3s;
}

@media screen and (min-width:768px) {
    .subscribe .grid {
        display: flex;
        flex-direction: column;
    }

    .subscribe__content {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .subscribe__content .icon-container {
        padding: 0 2rem;
    }

    .subscribe__content-title {
        padding: 0 2rem;
        color: var(--color-primary);
    }

    .subscribe__content-text {
        font-size: 1.5rem;
        padding: 3rem 1rem;
        border-left: solid 2px var(--color-border);
    }

}

@media screen and (min-width:1024px) {
    .subscribe .grid {
        display: grid;
    }

    .subscribe .grid--1x2 {
        grid-template-columns: 1fr auto;
    }
}

/* Banner */

.sale-banner {
    gap: 2rem;
}

.banner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.banner__content {
    position: absolute;
    padding: 2rem;
    left: 3rem;
    z-index: 1;
    margin: auto 1rem;
}

.banner__content-smalltitle {
    font-size: 2rem;
    margin: 1rem 0;
}

.banner__content-bigtitle {
    font-size: 3rem;
    margin: 1rem 0;
}

.banner__content-button {
    font-size: 2rem;
}

.banner__image {
    position: relative;
    transition: transform .5s ease;
}

.banner__image:hover {
    transform: scale(1.05);
}

.banner__image>img {
    width: 100%;
}

@media screen and (min-width:768px) {
    .banner__content {
        justify-items: center;
    }

    .banner__content-smalltitle {
        font-size: 1.5rem;
        margin: 1rem 0 0;
    }

    .banner__content-bigtitle {
        font-size: 2rem;
        margin: 0;
    }

    .banner__content-button {
        font-size: 1.5rem;
    }
}

/* Blogs */

.card__blog {
    border: 0;
    position: relative;
    margin: 2rem 0;
    overflow: hidden;
}

.blogs {
    column-gap: 2rem;
}

.blog__image {
    width: 100%;
    transition: transform .5s;
}

.blog__image:hover {
    transform: scale(1.03);
}

.blog__image>img {
    width: 100%;
}

.blog__postdate {
    position: absolute;
    width: 50px;
    height: 60px;
    background: #fff;
    top: 1rem;
    left: 1rem;
    text-align: center;
    color: var(--color-primary);
}

.blog__postdate .blog__postdate-date {
    font-size: 2rem;
    border-bottom: 1px solid #333;
}

.blog__postdate .blog__postdate-month {
    display: block;
    font-size: 1rem;
    margin: 0;
}

.blog__title {
    font-size: 2rem;
    margin: 0;
}

.blog__publisher {
    font-size: 1.8rem;
    padding-right: 1rem;
}

.blog__comments {
    font-size: 1.8rem;
    border-left: 1px solid var(--color-primary);
    padding-left: 1rem;
}

.blog__link {
    margin-top: 1rem;
    font-size: 2rem;
}

/* Footer */

footer {
    background: var(--color-primary);
    padding: 2rem;
    color: #FFF;
}

footer .grid {
    gap: 4rem;
}

footer .list-item a {
    color: #eee;
}

footer .subscribe {
    border-color: var(--color-secondary);
}

footer .input-button {
    background: var(--color-secondary);
}

footer .input-button:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.footer-logo {
    margin: 2rem auto;
}

.subscribe__footer-title h3 {
    color: #FFF;
}

.footer__section {
    justify-self: baseline;
}

.footer__content-header {
    color: #FFF;
    width: 50px;
    border-bottom: 2px solid #FFF;
}

.footer-socmed {
    margin: 0 auto;
}

.footer-text {
    text-align: center;
}

@media screen and (min-width:1440px) {
    .footer-text {
        grid-column: 2 span / 4;
    }
}

@media screen and (max-width:720px) {
    .footer__content .list--inline .list-item {
        display: block;
    }
}


.footer-socmed a {
    color: #fff;
}

.list {
    list-style: none;
    padding: 0;
}

.list--inline .list-item {
    display: inline-block;
    padding: 1rem 2rem;
}

.list-item a {
    text-decoration: none;
    color: #aaa;
    font-weight: 300;
}

.list-item a:hover {
    color: #fff;
}

/* Hero */

#hero .grid {
    gap: 2rem;
}

.hero-top {
    margin: 2rem 0;
}

.hero-bottom {
    margin: 2rem 0;
}

@media screen and (min-width:768px) {
    .hero-one {
        grid-row: 1 /span 2;
        grid-column: 1 /span 2;
    }

    #hero .grid--1x3 {
        grid-template-columns: repeat(3, 1fr);
    }

    #hero .banner__content {
        left: 0;
        padding: 0;
    }

    .hero-one .banner__content-bigtitle {
        margin: 2rem 0;
    }
}

/* Navigations */

.nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 2rem;
}

.nav__list {
    text-align: left;
    width: 100%;
    margin: 0;
}

@media screen and (max-width:990px) {

    .sidebar {
        transform: translateX(-35rem);
        transition: transform .3s ease-out;
        width: 90vw;
        max-width: 350px;
        position: fixed;
        background: #fff;
        border-right: 1px solid var(--color-border);
        top: 0;
        left: 0;
        z-index: 3;
    }

    .sidebar__header {
        background: var(--color-secondary);
        color: #fff;
        text-align: right;
        padding: 2rem;
    }

    .sidebar__content {
        padding: 2rem;
        height: 100vh;
    }

    .sidebar__content .list-item {
        border-bottom: 2px solid var(--color-border);
        padding: 1rem 0;
    }

    .sidebar__content .list-item a:hover {
        width: 10rem;
        color: var(--color-body);
    }

    .contact__number {
        display: none;
    }

    .menu {
        display: none;
    }
}

.sidebar-show {
    transform: translateX(0);
    transition: transform .3s ease-in;
}

.close-sidebar {
    cursor: pointer;
}

.toggler {
    cursor: pointer;
}

@media screen and (min-width:991px) {
    .sidebar {
        display: none;
    }

    .toggler {
        display: none;
    }

    .menu {
        align-self: flex-start;
    }
}

.menu .list-item a {
    color: var(--color-primary);
    font-weight: 400;
}

.menu .list-item a:hover {
    color: var(--color-body);
    font-weight: 400;
}

.contact {
    font-size: 3rem;
    color: var(--color-secondary);
}

.contact__number {
    padding: 0 1rem;
}

.benefits {
    gap: 2rem;
}

@media screen and (min-width:1024px) {
    .benefits .grid--1x2 {
        grid-template-columns: 1fr auto;
    }
}