/* cart-column-layout.css */

.cart-column-layout {
    padding: 2px;
}

.cart-items-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    flex-direction: column; /* Stack elements vertically on small screens */
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
}

.title {
    padding: 0.8rem 1rem;
    font-size: 1.7rem;
    font-weight: 600;
}

.cart-total {
    /* Shape and Position */
    max-width: 900px;         /* Keeps the header contained */
    margin: 10px auto;        /* Adds 10px of space above/below and centers it */
    border-radius: 8px;       /* --- Adds the rounded corners --- */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* --- Adds the subtle shadow --- */
    background-color:#F2AC20;
    padding: 0.1rem 1rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;    
}

.item-image {
    width: 220px;
    margin-bottom: 10px;
    text-align: center; /* Center image */
}

.item-image img {
    width: 220px;
    height: auto;
    border-radius: 4px;
}

.item-details {
    margin-bottom: 10px;
}

.item-name {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 5px;
    color: #343a40; /* Darker text for name */
}

.item-price, .item-total {
    font-size: 1rem;
    color: #6c757d; /* Muted color for price/total */
    margin-bottom: 5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.quantity-btn {
    background-color: #e9ecef; /* Light grey buttons */
    color: #495057; /* Dark grey text */
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.quantity-btn:hover {
    background-color: #dee2e6; /* Slightly darker on hover */
}

.quantity-decrease {
    margin-right: 5px;
}

.quantity-increase {
    margin-left: 5px;
}


.quantity-display {
    margin: 0 5px;
    font-weight: bold;
    font-size: 1rem;
    min-width: 1em; /* Ensure space for single digit quantity */
    text-align: center;
}

.item-actions {
    text-align: right; /* Align remove button to the right */
}

.cart-summary {
    text-align: right;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.cart-summary span {
    font-weight: normal;
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #fff; /* Default text color for buttons */
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545; /* Bootstrap danger red */
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-shopping {
    color: #fff;
    background-color: #00539C; /* Bootstrap secondary grey */
    border-color: #E85353;
}

.btn-shopping:hover {
    background-color: #E85353;
    border-color: #3664F4;
}

.btn-checkout {
    color: #666;
    background-color: #F2AC20; /* Bootstrap secondary grey */
    border-color: #F2AC20;
}

.btn-checkout:hover {
    background-color: #3FC495;
    border-color: #F2AC20;
}

.btn-products {
    color: #fff;
    background-color: #6c757d; /* Bootstrap secondary grey */
    border-color: #6c757d;
}

.btn-products:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

cart-total {
    font-weight: bold;
}

/*  Larger screens - adjust layout to side-by-side  */
@media (min-width: 576px) { /* Small breakpoint, adjust as needed */
    .cart-item {
        flex-direction: row; /* Elements side-by-side on larger screens */
        align-items: center; /* Vertically align items in row */
    }

    .item-image {
        width: 220px; /* Fixed width for image on larger screens */
        margin-right: 10px;
        margin-bottom: 0; /* Reset bottom margin */
    }

    .item-details {
        flex-grow: 1; /* Allow details to take remaining space */
        margin-bottom: 0; /* Reset bottom margin */
    }

    .item-actions {
        margin-left: 15px; /* Push actions to the right */
        text-align: left; /* Reset text-align for actions in row layout */
    }
}