/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
   BODY
========================= */

body {
    background: #faf7f2;
    font-family: 'Poppins', sans-serif;
    color: #3d332b;
}


/* =========================
   NAVBAR
========================= */

nav {
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7%;
    background: #ffffff;
    border-bottom: 1px solid #eee4d8;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    color: #b89452;
    font-weight: 700;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: #b89452;
}


/* =========================
   BANNER
========================= */

.banner {
    min-height: 320px;
    background: linear-gradient(
        135deg,
        #f5eadc,
        #eee0cf
    );

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 50px 20px;
}

.banner h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 65px;
    font-weight: 700;
    color: #4b3a2a;
}

.banner p {
    margin-top: 15px;
    font-size: 17px;
    color: #65584e;
    max-width: 650px;
}


/* =========================
   PRODUCTS
========================= */

.products {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 70px 30px;

    display: grid;

    /* EXACTLY 3 PRODUCTS PER ROW */
    grid-template-columns: repeat(3, 1fr);

    gap: 35px;
}


/* =========================
   PRODUCT CARD
========================= */

.product {
    background: #ffffff;

    border-radius: 20px;

    overflow: hidden;

    text-align: center;

    padding-bottom: 30px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-7px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.11);
}


/* =========================
   PRODUCT IMAGE
========================= */

.product img {
    display: block;

    width: 100%;

    /*
       Same image area for every product.
       "contain" shows the WHOLE picture.
    */
    height: 350px;

    object-fit: contain;

    background: #f8f4ee;

    padding: 15px;
}


/* =========================
   PRODUCT TITLE
========================= */

.product h2 {
    font-family: 'Cormorant Garamond', serif;

    font-size: 29px;

    font-weight: 700;

    margin: 20px 15px 10px;

    color: #4b3a2a;
}


/* =========================
   DESCRIPTION
========================= */

.description {
    padding: 0 22px;

    font-size: 14px;

    line-height: 1.8;

    min-height: 80px;

    color: #6b625b;
}


/* =========================
   PRICE
========================= */

.product h3 {
    color: #b89452;

    font-size: 22px;

    font-weight: 600;

    margin: 18px;
}


/* =========================
   LABEL
========================= */

.product label {
    display: block;

    margin-top: 15px;

    margin-bottom: 8px;

    font-size: 14px;

    color: #777;
}


/* =========================
   SELECT
========================= */

.product select {
    display: block;

    margin: 10px auto;

    padding: 10px 18px;

    min-width: 170px;

    border-radius: 20px;

    border: 1px solid #d8b26e;

    background: #ffffff;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    color: #555;

    cursor: pointer;

    outline: none;
}

.product select:focus {
    border-color: #b89452;
}


/* =========================
   ADD TO CART BUTTON
========================= */

button {
    background: #b89452;

    border: none;

    color: #ffffff;

    padding: 13px 28px;

    border-radius: 30px;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    cursor: pointer;

    transition: 0.3s;
}

button:hover {
    background: #8f6d35;

    transform: translateY(-2px);
}


/* =========================
   FOOTER
========================= */

footer {
    background: #2d2925;

    color: #ffffff;

    text-align: center;

    padding: 40px 20px;

    margin-top: 30px;

    font-size: 14px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .products {
        grid-template-columns: repeat(2, 1fr);

        gap: 25px;

        padding: 50px 25px;
    }

    .banner h1 {
        font-size: 52px;
    }

    nav {
        padding: 0 4%;
    }

    nav ul {
        gap: 18px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    nav {
        min-height: auto;

        flex-direction: column;

        padding: 20px;
    }

    .logo {
        font-size: 34px;

        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;

        justify-content: center;

        gap: 12px;
    }

    nav a {
        font-size: 13px;
    }

    .banner {
        min-height: 260px;

        padding: 40px 15px;
    }

    .banner h1 {
        font-size: 42px;
    }

    .banner p {
        font-size: 14px;
    }

    .products {
        /*
           ONE PRODUCT PER ROW ON PHONE
        */
        grid-template-columns: 1fr;

        padding: 40px 20px;

        gap: 25px;
    }

    .product img {
        height: 320px;
    }

    .product h2 {
        font-size: 27px;
    }
}