* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", sans-serif;
}

/* ---------------------------------------------------
   CART PAGE
--------------------------------------------------- */

.cart-page {
    min-height:100vh;
    background:#050505;
    padding:80px 60px;
    color:white;
}

.cart-title {
    text-align:center;
    color:rgb(202,142,70);
    font-size:48px;
    font-weight:400;
    margin-bottom:60px;
}

/* ---------------------------------------------------
   ITEMS
--------------------------------------------------- */

.cart-items {
    display:flex;
    flex-direction:column;
    gap:25px;
    max-width:1200px;
    margin:0 auto;
}

.cart-item {
    display:grid;
    grid-template-columns:150px 1fr 180px 50px;
    align-items:center;
    gap:30px;
    padding:25px;
    background:#090909;
    border:1px solid rgba(202,142,70,.25);
    transition:.3s;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.005));
    box-shadow: 0 15px 35px rgba(0,0,0,.35);
}

.cart-item:hover {
    border-color:rgba(202,142,70,.7);
    transform:translateY(-3px);
    box-shadow: 0 0 0 1px rgba(202,142,70,.25), 0 18px 40px rgba(0,0,0,.45);
}

/* ---------------------------------------------------
   IMAGE
--------------------------------------------------- */

.cart-product-image {
    width:150px;
    height:150px;
    border-radius:14px;
    overflow:hidden;
    border:1px solid rgba(202,142,70,.2);
}

.cart-product-image img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.cart-product-image img{
    transition:.45s;
}

.cart-item:hover img{
    transform:scale(1.06);
}

/* ---------------------------------------------------
   INFO
--------------------------------------------------- */

.cart-product-info{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.cart-product-info h2 {
    color:rgb(202,142,70);
    font-size:24px;
    font-weight:400;
    margin-bottom:20px;
}

.cart-product-price {
    color:#aaa;
    font-size:16px;
}

.cart-product-price strong {
    color:white;
    margin-left:8px;
}

/* ---------------------------------------------------
   QUANTITY
--------------------------------------------------- */

.cart-quantity {
    display:flex;
    align-items:center;
    gap:15px;
    margin-top:25px;
    width:fit-content;
    padding:8px 15px;
    border:1px solid rgba(202,142,70,.2);
    border-radius:50px;
    background:#080808;
}

.cart-quantity button {
    width:35px;
    height:35px;
    border-radius:50%;
    background:#000;
    color:rgb(202,142,70);
    border:1px solid rgb(202,142,70);
    font-size:22px;
    cursor:pointer;
    transition:.3s;
}

.cart-quantity button:hover {
    background:rgb(202,142,70);
    color:#000;
}

.product-quantity {
    min-width:30px;
    text-align:center;
    font-size:20px;
}

/* ---------------------------------------------------
   TOTAL
--------------------------------------------------- */

.cart-product-total {
    text-align:right;
}

.cart-product-total span {
    display:block;
    color:#aaa;
    margin-bottom:10px;
}

.cart-total-price {
    color:white;
    font-size:22px;
}

/* ---------------------------------------------------
   REMOVE
--------------------------------------------------- */

.cart-remove {
    color:#888;
    transition:.25s;
    width:40px;
    height:40px;
    border-radius:50%;
    background:#000;
    border:1px solid rgba(255,255,255,.2);
    cursor:pointer;
    font-size:18px;
}

.cart-remove:hover {
    border-color:#ff5555;
    transform:scale(1.1);
    color:#ff6666;
    background:#140909;
}

/* ---------------------------------------------------
   SUMMARY
--------------------------------------------------- */

.cart-summary {
    max-width:1200px;
    margin:50px auto 0;
    padding:35px;
    background:#090909;
    border:1px solid rgba(202,142,70,.3);
    text-align:right;
    border-radius:20px;
    background: linear-gradient(180deg, #0b0b0b, #060606);
}

.cart-summary h2 {
    color:rgb(202,142,70);
    font-size:28px;
    font-weight:400;
    margin-bottom:20px;
}

.product-total {
    display:block;
    margin-top:10px;
    color:#CA8E46;
    font-size:42px;
    font-weight:600;
    letter-spacing:1px;
}

/* ---------------------------------------------------
   BUTTONS
--------------------------------------------------- */

.cart-actions {
    display:flex;
    justify-content:flex-end;
    gap:20px;
    margin-top:35px;
}

.cart-actions a {
    display:flex;
    align-items:center;
    justify-content:center;
    height:50px;
    padding:0 35px;
    border:1px solid rgb(202,142,70);
    color:rgb(202,142,70);
    text-decoration:none;
    transition:.3s;
    border-radius:12px;
    font-weight:500;
}

.cart-actions a:hover {
    background:rgb(202,142,70);
    color:#000;
    box-shadow: 0 0 18px rgba(202,142,70,.25);
}

/* ---------------------------------------------------
   EMPTY CART
--------------------------------------------------- */

.empty-cart {
    text-align:center;
    margin-top:100px;
}

.empty-cart h2 {
    color:rgb(202,142,70);
    font-weight:400;
    font-size:32px;
}

.empty-cart a {
    display:inline-flex;
    margin-top:30px;
    padding:15px 40px;
    border:1px solid rgb(202,142,70);
    color:rgb(202,142,70);
    text-decoration:none;
}

/* ---------------------------------------------------
   LIVE ANIMATIONS
--------------------------------------------------- */

.product-quantity.value-updated,
.cart-total-price.value-updated{
    transform:scale(1.08);
    color:#f0c98b;
    text-shadow:0 0 12px rgba(202,142,70,.45);
}

.product-total.value-updated{
    transform:scale(1.03);
    color:#f0c98b;
    text-shadow:0 0 8px rgba(202,142,70,.35);
}

.product-total{
    transition: color .25s ease, transform .25s ease, text-shadow .25s ease;
}

/* ---------------------------------------------------
   MEDIA
--------------------------------------------------- */

@media (max-width:900px){
    .cart-page {
        padding:60px 30px;
    }

    .cart-item {
        grid-template-columns:120px 1fr;
        gap:25px;
    }

    .cart-product-image {
        width:120px;
        height:120px;
    }

    .cart-product-total {
        grid-column:2;
        text-align:left;
    }

    .cart-remove {
        position:absolute;
        right:20px;
        top:20px;
    }

    .cart-item {
        position:relative;
    }
}

@media (max-width:600px){
    .cart-page {
        padding:40px 20px;
    }

    .cart-title {
        font-size:34px;
        margin-bottom:40px;
    }

    .cart-item {
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
        padding:30px 20px;
    }

    .cart-product-image {
        width:180px;
        height:180px;
    }

    .cart-product-info h2 {
        font-size:22px;
    }

    .cart-quantity {
        justify-content:center;
    }

    .cart-product-total {
        text-align:center;
    }

    .cart-total-price {
        font-size:24px;
    }

    .cart-remove {
        position:absolute;
        top:15px;
        right:15px;
    }

    .cart-summary {
        padding:25px;
        text-align:center;
    }

    .cart-summary h2 {
        font-size:24px;
    }

    .product-total {
        font-size:26px;
    }

    .cart-actions {
        flex-direction:column;
        gap:15px;
    }

    .cart-actions a {
        width:100%;
        padding:0;
    }
}

@media (max-width:400px){
    .cart-product-image {
        width:140px;
        height:140px;
    }

    .cart-product-info h2 {
        font-size:20px;
    }
}