/* =========================
   GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Montserrat", sans-serif;

    background: #fffdf9;

    color: #1c1c1c;
}


a {
    color: inherit;
}


button {
    font-family: inherit;
}



/* =========================
   HEADER
========================= */

.site-header {
    min-height: 82px;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    padding:
        0 5%;

    background: white;

    border-bottom:
        1px solid #e8e4dd;

    position: sticky;

    top: 0;

    z-index: 100;
}


.logo {
    justify-self: start;

    text-decoration: none;

    font-size: 22px;

    font-weight: 500;

    letter-spacing: 5px;
}


.main-nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 38px;
}


.main-nav a {
    text-decoration: none;

    font-size: 11px;

    letter-spacing: 1px;
}


.main-nav a:hover {
    opacity: 0.5;
}


.cart-link {
    justify-self: end;

    position: relative;

    text-decoration: none;

    font-size: 11px;

    letter-spacing: 1px;
}


#cart-count {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 20px;

    height: 20px;

    margin-left: 5px;

    border-radius: 50%;

    background: #1c1c1c;

    color: white;

    font-size: 10px;
}



/* =========================
   HOME INTRO
========================= */

.home-intro {
    padding:
        110px 20px
        70px;

    text-align: center;
}


.eyebrow {
    margin-bottom: 20px;

    font-size: 10px;

    letter-spacing: 5px;

    text-transform: uppercase;
}


.home-intro h1 {
    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            48px,
            6vw,
            85px
        );

    font-weight: 500;

    line-height: 1;
}


.intro-text {
    margin-top: 25px;

    color: #777;

    font-size: 14px;
}



/* =========================
   HOME CATEGORIES
========================= */

.home-categories {
    width: min(
        1450px,
        92%
    );

    margin:
        0 auto 120px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 55px 35px;
}


.category-card {
    text-decoration: none;

    display: block;
}


.category-image {
    overflow: hidden;

    background: #eee8df;
}


.category-image img {
    width: 100%;

    height: 620px;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.category-card:hover
.category-image img {
    transform:
        scale(1.025);
}


.category-info {
    padding:
        20px 2px;
}


.category-info h2 {
    margin-bottom: 8px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 36px;

    font-weight: 500;
}


.category-info span {
    font-size: 11px;

    letter-spacing: 1px;
}



/* =========================
   ABOUT HOME
========================= */

.about-section {
    padding:
        120px 20px;

    text-align: center;

    background: #eee6da;
}


.about-section h2 {
    margin:
        20px 0 25px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 50px;

    font-weight: 500;
}


.about-section > p:last-child {
    max-width: 650px;

    margin: auto;

    color: #555;

    line-height: 1.9;

    font-size: 14px;
}



/* =========================
   COLLECTION HEADER
========================= */

.collection-header {
    padding:
        100px 20px
        75px;

    text-align: center;
}


.collection-header h1 {
    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            45px,
            6vw,
            72px
        );

    font-weight: 500;
}


.collection-header > p:last-child {
    max-width: 650px;

    margin:
        22px auto 0;

    color: #777;

    font-size: 14px;

    line-height: 1.8;
}



/* =========================
   COLLECTION GRID
========================= */

.collection-container {
    width: min(
        1450px,
        92%
    );

    margin:
        0 auto;

    padding-bottom:
        120px;
}


.art-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        70px 35px;
}


.art-card {
    min-width: 0;
}


.image-container {
    position: relative;

    overflow: hidden;

    background: #f1ece4;
}


.image-container img {
    width: 100%;

    height: 520px;

    display: block;

    object-fit: contain;

    background: #f1ece4;

    transition:
        transform 0.4s ease;
}


.art-card:hover
.image-container img {
    transform:
        scale(1.015);
}



/* =========================
   FAVORITE
========================= */

.heart {
    position: absolute;

    top: 15px;

    right: 15px;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    cursor: pointer;

    font-size: 20px;
}


.heart.active {
    color: #a32929;
}



/* =========================
   ART INFO
========================= */

.art-details {
    padding-top: 18px;
}


.art-details h3 {
    margin-bottom: 7px;

    font-size: 16px;

    font-weight: 600;
}


.art-details p {
    min-height: 28px;

    margin-bottom: 18px;

    color: #777;

    font-size: 11px;
}


.art-bottom {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 20px;
}


.art-bottom strong {
    font-size: 16px;
}


.add-cart {
    border: none;

    background: transparent;

    cursor: pointer;

    text-decoration: underline;

    font-size: 11px;
}



/* =========================
   FOOTER
========================= */

footer {
    padding:
        65px 20px;

    text-align: center;

    background: #1d1d1d;

    color: white;

    font-size: 11px;

    line-height: 2;
}


.footer-logo {
    margin-bottom: 14px;

    font-size: 23px;

    letter-spacing: 5px;
}



/* =========================
   CART PAGE
========================= */

.cart-page {
    width: min(
        1100px,
        90%
    );

    min-height: 65vh;

    margin:
        80px auto;
}


.cart-page h1 {
    margin-bottom: 45px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 52px;

    font-weight: 500;
}


.cart-item {
    display: grid;

    grid-template-columns:
        120px
        1fr
        auto
        auto;

    gap: 25px;

    align-items: center;

    padding:
        25px 0;

    border-bottom:
        1px solid #ddd;
}


.cart-item-image {
    width: 110px;

    height: 130px;

    object-fit: contain;

    background: #f1ece4;
}


.cart-item-info h3 {
    margin-bottom: 8px;

    font-size: 16px;
}


.cart-item-info p {
    color: #777;

    font-size: 11px;
}


.cart-item-price {
    font-weight: 600;
}


.remove-button {
    border: none;

    background: transparent;

    cursor: pointer;

    text-decoration: underline;
}


.cart-summary {
    width: min(
        420px,
        100%
    );

    margin:
        50px 0
        0 auto;

    padding: 30px;

    background: #f1ece4;
}


.cart-summary-row {
    display: flex;

    justify-content:
        space-between;

    margin-bottom: 25px;

    font-size: 19px;

    font-weight: 600;
}


.checkout-button {
    width: 100%;

    padding: 16px;

    border: none;

    background: #1d1d1d;

    color: white;

    cursor: pointer;
}


.empty-cart {
    padding:
        60px 0;

    color: #777;
}



/* =========================
   TABLET
========================= */

@media
(max-width: 1000px) {

    .site-header {
        grid-template-columns:
            1fr auto;
    }


    .main-nav {
        display: none;
    }


    .home-categories {
        grid-template-columns:
            1fr 1fr;
    }


    .category-image img {
        height: 480px;
    }


    .art-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }

}



/* =========================
   MOBILE
========================= */

@media
(max-width: 650px) {

    .site-header {
        min-height: 70px;

        padding:
            0 20px;
    }


    .logo {
        font-size: 17px;

        letter-spacing: 3px;
    }


    .home-intro {
        padding-top: 80px;
    }


    .home-categories {
        grid-template-columns:
            1fr;

        gap: 45px;
    }


    .category-image img {
        height: 480px;
    }


    .category-info h2 {
        font-size: 31px;
    }


    .collection-container {
        width: calc(
            100% - 40px
        );
    }


    .art-grid {
        grid-template-columns:
            1fr;
    }


    .image-container img {
        height: auto;

        max-height: 650px;
    }


    .cart-item {
        grid-template-columns:
            90px 1fr;
    }


    .cart-item-price,
    .remove-button {
        grid-column: 2;
    }

}