/* FONTS & RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    font-family: "Inter", "Segoe UI", sans-serif;

    background: url("../../admin/images/image_1.jpg");
    background-size: cover;
    background-position: center 20%; /* moves image down */
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* MAIN CONTAINER */
.container {
    padding: 50px;
    width: 100%;
}

.contain {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* LEFT SIDE */
.cart-items {
    flex: 2;
}

/* ITEM */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    grid-template-areas:
        "image info price"
        "image actions actions";
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    transition: transform 0.2s;
}
.cart-item:hover {
    transform: translateY(-3px);
}

.cart-item img {
    grid-area: image;
    width: 120px;
    border-radius: 15px;
    object-fit: cover;
}

.info {
    grid-area: info;
}

.info h3 {
    font-weight: 600;
    margin-bottom: 8px;
}
.info p {
    font-size: 14px;
    color: #666;
}

.actions {
    grid-area: actions;
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn {
    background: #f0e6d2; /* light blanchedalmond tone */
    color: #333;
}
.edit-btn:hover {
    background: #ecd9b8;
}

.delete-btn {
    background: sienna;
    color: #fff;
}
.delete-btn:hover {
    background: #8b3d2f;
}

.price {
    grid-area: price;
    font-weight: 700;
    font-size: 16px;
    justify-self: end;
}

/* RIGHT SIDE */
.summary {
    flex: 1;
    background: sienna;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.summary h2 {
    font-weight: 700;
    margin-bottom: 15px;
}

.summary h3 {
    font-size: 28px;
    margin-bottom: 25px;
}

.summary button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout {
    background: blanchedalmond;
    color: sienna;
    font-weight: bold;
    text-decoration: none;
}
.checkout:hover {
    background: #fff2d8;
}

.continue {
    background: #f0e6d2;
    color: sienna;
    text-decoration: none;
}
.continue:hover {
    background: #ecd9b8;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin-bottom: 10px;
}

.modal-content label {
    font-weight: 500;
    font-size: 14px;
}

.modal-content select, .modal-content input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#saveChanges {
    background: sienna;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
}
#saveChanges:hover {
    background: #8b3d2f;
}

.footer{
text-align:center;
padding:15px;
font-size:14px;
color: white;
}

@media (max-width: 900px) {
    .container {
        padding: 24px;
    }

    .contain {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .summary {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 14px;
    }

    .contain {
        padding: 14px;
        border-radius: 14px;
    }

    .cart-item {
        grid-template-columns: 84px 1fr;
        grid-template-areas:
            "image info"
            "actions actions"
            "price price";
        gap: 12px;
        padding: 14px 0;
    }

    .cart-item img {
        width: 84px;
    }

    .actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .price {
        justify-self: start;
        margin-top: 4px;
    }

    .summary {
        padding: 18px 14px;
    }

    .summary h2 {
        margin-bottom: 8px;
    }

    .summary h3 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .summary button {
        padding: 10px;
    }

    .footer {
        font-size: 12px;
        padding: 12px 8px;
    }
}
