.home-page {
    padding-top: 100px; 
}
.cart-page-title {
    text-align: center;
    padding-bottom: 20px; 
    color: #333;
}
#cart-container {
    width: 100%;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.cart-items-list{
    min-height: 400px;
}
.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.item-select-checkbox {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    margin-right: 20px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
}

.cart-item-price {
    font-size: 16px;
    color: #DF3346;
    font-weight: bold;
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.btn-quantity {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.btn-quantity:hover {
    background-color: #e9e9e9;
}

.quantity-value {
    padding: 0 15px;
    font-weight: bold;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}


.btn-delete {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-delete:hover {
    background-color: #cc0000;
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #fff;
}
.total-price {
    font-size: 20px;
    font-weight: bold;
}
.total-price-value {
    color: #DF3346;
}
.btn-checkout {
    background-color: #DF3346;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-checkout:hover {
    background-color: #c70017;
}

@media (max-width: 768px) {
    .cart-page-title {
        padding-top: 20px;
        font-size: 1.2em;
    }

    #cart-container {
        padding: 10px;
    }

    .cart-item {
        flex-wrap: wrap;
        row-gap: 15px; 
        position: relative;
        padding-bottom: 50px;
    }

    .cart-item-img {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }

    .cart-item-info {
        flex-grow: 1;
    }
    
    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .cart-item-quantity {
        position: absolute;
        bottom: 10px;
        left: 10px;
        margin: 0;
    }

    .btn-delete {
        position: absolute;
        bottom: 10px;
        right: 10px;
    }

    .cart-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }

    .total-price {
        text-align: center;
    }

    .btn-checkout {
        width: 100%;
    }
}


@media (max-width: 480px) {
    .cart-item-info {
        flex-basis: 100%;
    }
    .home-page {
        padding-top: 80px; 
    }

    .cart-page-title {
        font-size: 1.2em;
        padding-top: 0;
        padding-bottom: 15px;
    }
    .cart-item-quantity {
        left: 0;
    }

    .btn-delete {
        right: 0;
    }
    #cart-container {
        padding: 10px;
    }
}