* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: #341c1c;
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "footer";
    grid-template-rows: 75px 1fr auto;
    min-height: 100vh;
}

::selection {
    color: #fefffe;
    background-color: #058c42;
}

a {
    text-decoration: none;
}

/* COMPONENT: NAVBAR */

.navbar {
    grid-area: header;
    display: grid;
    grid-template-areas:
        "nav-left nav-center nav-right";
    grid-template-columns: repeat(3, 1fr);
    background-color: #058c42;
    color: #fefffe;
    align-items: center;
    z-index: 2;
    position: sticky;
    top: 0;
    left: 0;
}

.navbar a {
    color: #fefffe;
}

.navbar ul {
    list-style: none;
}

.nav-left {
    grid-area: nav-left;
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.nav-center {
    grid-area: nav-center;
    margin-left: 1rem;
    margin-right: 1rem;
}

.nav-center ul {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav-center a:hover {
    font-weight: bold;
}

.active {
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-right {
    grid-area: nav-right;
    margin-right: 2rem;
}

.nav-right ul {
    display: flex;
    justify-content: right;
    gap: 15px;
}

.alt-nav:hover {
    font-weight: bold;
}

.logo {
    max-height: 2rem;
    padding-right: 1rem;
}

.icon {
    flex-direction: row;
    max-height: clamp(0.5rem, 1.5rem, 2rem);
    color: #694c48;
    padding-left: 5px;
}

.cart:hover {
    content: url('images/icon-cart.png');
}

.profile:hover {
    content: url('images/icon-profile.png');

}

.cart-active {
    content: url('images/icon-cart.png');
}

.profile-active {
    content: url('images/icon-profile.png');

}

.logout:hover {
    content: url('images/icon-login.png')
}

/* MAIN */

.main {
    grid-area: main;
    justify-content: center;
    margin: 2rem;
}

/* HERO */

.hero {
    grid-area: hero;
    height: 500px;
    background-image: linear-gradient(to bottom,
            rgba(86, 65, 65, 0),
            rgba(86, 65, 65, 0.5),
            rgba(86, 65, 65, 1)), url("images/hero-img.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    margin-bottom: 2rem;
}

.hero-content {
    position: relative;
    float: left;
    z-index: 1;
    width: 90%;
    top: 50%;
    left: 5%;
    color: #fefffe;
    text-shadow: 2px 3px 5px rgba(86, 65, 65, 0.5);
}

.hero-button {
    position: relative;
    background-color: #45b249;
    padding: 12px 25px;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    margin-top: 1rem;
    cursor: pointer;
    border-radius: 12px;
    text-shadow: none;
    box-shadow: 2px 3px 5px rgba(86, 65, 65, 0.5);
}

.hero-button a {
    padding: 5px;
    color: #fefffe;
    font-weight: bold;
}

.hero-button:hover {
    background-color: #058c42;
}

/* PAGE: PRODUCT */

.section-header {
    margin-top: 1rem;
}

#featured-sort {
    margin-top: 1rem;
}

.btn-pretty {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 1rem;
}

.product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(15, 15, 15, .06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.img-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    padding: 0 1rem;
}

.product-info {
    padding: 14px;
    border-top: 1px solid rgba(0, 0, 0, .05);
}

/* PAGE: ABOUT */

.about {
    display: grid;
    grid-template-areas:
        " about-img"
        "about-text";
    grid-template-rows: 30rem 1fr;
    gap: 1rem;
}

.about-text {
    grid-area: about-text;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.about-img {
    grid-area: about-img;
    object-fit: cover;
    max-height: 100%;
    width: 100%;
}

.why {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.why-us {
    display: grid;
    grid-template-areas:
        "spe-left"
        "spe-center"
        "spe-right";
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 1rem;
    place-items: center;
    text-align: center;
    align-items: start;
}

.specialties {
    display: grid;
    grid-template-rows: auto;
    width: 15rem;
    height: auto;
    gap: 10px;
}

.specialties img {
    margin: auto;
    height: 7rem;
    width: auto;
}

.spe-left {
    grid-area: spe-left;
}

.spe-center {
    grid-area: spe-center;
}

.spe-right {
    grid-area: spe-right;
}

.abt-hr {
    margin: 2rem 0;
}

.team-container {
    display: grid;
    grid-template-areas:
        "member"
        "member"
        "member"
        "member";
    grid-template-rows: repeat(1fr);
    text-align: center;
}

.member img {
    height: 10rem;
    width: 10rem;
    object-fit: fill;
    margin-bottom: 1rem;
}

.references {
    text-align: center;
}

/* PAGE: CART */

hr {
    border-top: 1px solid #c9c9c9;
}

.h-cart {
    text-align: left;
    margin: 1rem;
    color: #341c1c;
}

.act {
    background-color: #edffea;
    box-sizing: border-box;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.075);
}

.cart-title {
    display: grid;
    grid-template-areas:
        "cart-prod cart-text";
    grid-template-columns: 20rem 1fr;
    gap: 1rem;
    border-radius: 15px 15px 0 0;
    padding: 1rem 2rem;
    background-color: #ffffff;
    color: #694c48;
}

.cart-title .cart-prod {
    grid-area: cart-prod;
}

.cart-title .cart-text {
    grid-area: cart-text;
    display: grid;
    grid-template-areas: "c-text c-quanti c-price c-button";
    grid-template-columns: 2fr 1fr 1fr 5rem;
    text-align: justify;
}

.cart-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.075);
    gap: 0.5rem;
}

.cart-img {
    width: 100%;
    height: auto;
    max-height: 12rem;
    object-fit: contain;
    border: 2px dotted #28a745;
    background-color: #fff;
    margin-bottom: 0.5rem;
}

.cart-deets {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-deets .c-text h3 {
    margin: 0.25rem 0;
}

.cart-deets .c-text p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

.cart-deets .c-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.cart-deets .c-controls span {
    font-weight: bold;
}

.cart-deets button {
    background-color: #058c42;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    margin: 1rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.cart-button {
    color: #fefffe;
    background-color: #058c42;
    padding: 12px 25px;
    font-size: 16px;
    margin-top: 1rem;
    border-radius: 12px;
    width: 100%;
    text-align: center;
}

/* PAGE: CHECKOUT */

.checkout {
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.checkout-title {
    margin-bottom: 2rem;
}

.checkout-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.checkout-name label {
    display: flex;
    flex-direction: column
}

.checkout-name input {
    padding: 10px;
    margin-top: 5px;
    width: 100%;
    font-family: 'Poppins';
}

.shipping {
    display: flex;
    flex-direction: column;
    grid-column: span 2
}

.ship-add {
    padding: 10px;
    margin-top: 5px;
    font-family: 'Poppins';
}

.payment-method {
    margin-top: 30px
}

.pay {
    display: flex;
    gap: 10px;
    margin-bottom: 30px
}

.pay-choices {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.order {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
}

/* PAGE: CONFIRMATION */

.confirm {
    text-align: center;
    background: white;
    padding: 50px;
}

.conf-img {
    width: "100";
    margin-bottom: "20px";
}

.conf-links {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.transac {
    color: #2c7a4b;
}

.conf-button {
    background: #333;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 10px;
    width: fit-content;
}

/* PAGE: PROFILE */

.prof-container {
    background: #fff;
    width: 30rem;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.prof-container h1 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.prof-container h2 {
    margin-bottom: 20px;
}

.card {
    text-align: left;
    margin-top: 10px;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.prof-links {
    text-align: right;
}

.prof-container a {
    text-align: left;
    display: inline-block;
    margin-top: 15px;
    color: #28a745;
    font-weight: bold;
    text-decoration: none;
}

.prof-container a:hover {
    text-decoration: underline;
}

/* PAGE: LOGIN / SIGN-UP */

.info-container {
    display: grid;
    justify-content: center;
    grid-template-areas: info;
    min-height: 4rem;
}

.sign-container,
.log-container {
    grid-area: info;
    padding: 30px 25px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
}

.sign-container p:first-child,
.log-container p:first-child {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c7a4b;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

input:focus {
    border-color: #2c7a4b;
    box-shadow: 0 0 6px rgba(44, 122, 75, 0.25);
}

select,
button {
    padding: 10px;
    border: 2px solid #28a745;
    background-color: white;
    border-radius: 8px;
    color: #341c1c;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: bold;
}

button:hover {
    background-color: #2c7a4b;
    color: white;
    transform: translateY(-1px);
}

button:active {
    transform: scale(0.98);
}

.sign-container p:last-child,
.log-container p:last-child {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.sign-container a,
.log-container a {
    color: #2c7a4b;
    font-weight: bold;
    text-decoration: none;
}

.sign-container a:hover,
.log-container a:hover {
    text-decoration: underline;
}

input::placeholder {
    color: #999;
}

/* PAGE: PROFILE*/


/* COMPONENT: FOOTER */

.footer {
    grid-area: footer;
    display: grid;
    grid-template-areas:
        "footer-left footer-center footer-right";
    grid-template-columns: 1fr 1fr auto;
    background-color: #341c1c;
    color: #fefffe;
    align-items: flex-end;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 2rem;
}

.footer li {
    list-style-type: none;
}

.footer-left {
    grid-area: footer-left;
    display: grid;
    grid-template-areas:
        "upper"
        "lower";
    grid-template-rows: 1fr;
    margin-left: 2rem;
}

.footer-left ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-center {
    display: grid;
    grid-template-areas:
        "upper"
        "lower";
    grid-template-rows: 1fr;
    grid-area: footer-center;
    margin-left: 2rem;
    margin-right: 2rem;
}

.footer-upper {
    grid-area: upper;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-right {
    grid-area: footer-right;
    margin-right: 2rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: right;
}

.icons-socials {
    grid-area: lower;
    margin-top: 2rem;
}

.f-logo {
    height: 4rem;
}

.disclaimer {
    color: #694c48;
}

.fupper {
    grid-area: upper;
}

.flower {
    grid-area: lower;
    margin-top: 0.5rem;
}

/*/////////////////////////////////////////////
MEDIA QUERIES
/////////////////////////////////////////////*/

/* TABLET & UP */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us {
        grid-template-areas:
            "spe-left spe-center spe-right";
        grid-template-columns: repeat(3, 1fr);
    }

    .checkout {
        max-width: 45rem;
    }

    .team-container {
        display: grid;
        grid-template-areas:
            "member member member member";
        grid-template-columns: repeat(1fr);
        text-align: center;
    }


    .cart-item {
        display: grid;
        grid-template-areas: "cart-img cart-deets";
        grid-template-columns: 20rem 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .cart-deets {
        display: grid;
        grid-template-areas: "c-text c-quanti c-price c-button";
        grid-template-columns: 2fr 1fr 1fr 5rem;
    }

    .cart-deets .c-controls {
        display: contents;
        /* revert to grid layout */
    }

    .cart-deets button {
        padding: initial;
    }

    .cart-summary {
        align-items: flex-end;
    }

    .cart-button {
        width: fit-content;
    }
}

/* DESKTOP & UP */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-us {
        grid-template-areas:
            "spe-left spe-center spe-right";
        grid-template-columns: repeat(3, 1fr);
    }

    .checkout {
        max-width: 45rem;
    }

    .team-container {
        display: grid;
        grid-template-areas:
            "member member member member";
        grid-template-columns: repeat(1fr);
        text-align: center;
    }
}

@media (max-width: 600px) {
    .navbar {
        grid-area: header;
        display: grid;
        grid-template-areas:
            "nav-left nav-right"
            " nav-center ";
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar a {
        font-size: 1rem;
    }

    .navbar img {
        height: 2rem;
        width: auto;
    }

    .cart-title {
        grid-template-areas:
            "cart-prod";
        grid-template-columns: 1fr;
        padding: 0.5rem 1rem;
        text-align: left;
    }

    .cart-title .cart-text {
        display: none;
    }
}