* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #111;
}


a {
    color: inherit;
    text-decoration: none;
}


/* NAVBAR */

.navbar {
    height: 72px;

    border-bottom: 1px solid #e5e5e5;

    display: flex;
    align-items: center;

    padding: 0 40px;

    justify-content: space-between;
}


.logo {
    font-size: 24px;
    font-weight: 700;

    letter-spacing: 7px;
}


.nav-links {
    display: flex;

    gap: 35px;

    font-size: 11px;

    letter-spacing: 1px;
}


.cart-link {
    font-size: 11px;

    letter-spacing: 1px;
}


/* PAGE */

.cart-page {
    max-width: 1200px;

    margin: auto;

    padding: 80px 40px 120px;
}


.cart-header {
    display: flex;

    justify-content: space-between;

    align-items: end;

    padding-bottom: 50px;

    border-bottom: 1px solid #ddd;
}


.cart-header h1 {
    font-size: 52px;

    letter-spacing: 2px;
}


.cart-header p {
    color: #777;

    font-size: 12px;
}


/* CART ITEM */

.cart-item {
    display: grid;

    grid-template-columns: 140px 1fr auto;

    gap: 30px;

    align-items: center;

    padding: 30px 0;

    border-bottom: 1px solid #ddd;
}


.cart-image {
    width: 140px;

    height: 170px;

    object-fit: cover;

    background: #f5f5f5;
}


.cart-info h2 {
    font-size: 18px;

    margin-bottom: 10px;
}


.cart-info p {
    font-size: 12px;

    color: #777;

    margin-bottom: 6px;
}


.cart-price {
    font-size: 15px;

    font-weight: bold;
}


/* QUANTITY */

.quantity {
    display: flex;

    align-items: center;

    border: 1px solid #ddd;

    width: fit-content;
}


.quantity button {
    border: 0;

    background: #fff;

    width: 35px;

    height: 35px;

    cursor: pointer;

    font-size: 16px;
}


.quantity span {
    width: 35px;

    text-align: center;

    font-size: 13px;
}


/* REMOVE */

.remove {
    margin-top: 15px;

    background: none;

    border: 0;

    text-decoration: underline;

    font-size: 10px;

    cursor: pointer;
}


/* TOTAL */

.cart-summary {
    display: flex;

    justify-content: flex-end;

    margin-top: 40px;
}


.summary-box {
    width: 350px;

    border-top: 2px solid #111;

    padding-top: 20px;
}


.summary-row {
    display: flex;

    justify-content: space-between;

    margin-bottom: 15px;

    font-size: 13px;
}


.summary-total {
    font-size: 20px;

    font-weight: bold;

    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #ddd;
}


.checkout {
    width: 100%;

    background: #111;

    color: white;

    border: 0;

    padding: 18px;

    margin-top: 25px;

    cursor: pointer;

    letter-spacing: 2px;

    font-size: 11px;
}


/* EMPTY */

.empty-cart {
    text-align: center;

    padding: 100px 20px;
}


.empty-cart h2 {
    font-size: 30px;

    margin-bottom: 20px;
}


.empty-cart a {
    display: inline-block;

    background: #111;

    color: #fff;

    padding: 15px 30px;

    font-size: 11px;

    letter-spacing: 1px;
}


/* FOOTER */

footer {
    background: #111;

    color: #fff;
}


.footer-inner {
    max-width: 1200px;

    margin: auto;

    padding: 60px 40px;

    display: flex;

    justify-content: space-between;
}


.footer-logo {
    font-size: 22px;

    font-weight: bold;

    letter-spacing: 6px;
}


.footer-links {
    display: flex;

    gap: 70px;
}


.footer-column h4 {
    font-size: 11px;

    margin-bottom: 15px;

    letter-spacing: 1px;
}


.footer-column a {
    display: block;

    color: #999;

    font-size: 11px;

    margin-bottom: 10px;
}


.copyright {
    max-width: 1200px;

    margin: auto;

    padding: 20px 40px;

    border-top: 1px solid #333;

    color: #666;

    font-size: 10px;
}


/* MOBILE */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .navbar {
        padding: 0 20px;
    }

    .cart-page {
        padding: 50px 20px 80px;
    }

    .cart-header {
        display: block;
    }

    .cart-header p {
        margin-top: 15px;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
    }

    .cart-image {
        width: 100px;
        height: 130px;
    }

    .cart-summary {
        justify-content: stretch;
    }

    .summary-box {
        width: 100%;
    }

}
