﻿
/* Cart Item Container */
.custom-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 10px;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start; /* FIX: Align top instead of center */
}

/* Image */
.cart-item-img img {
    width: 60px;
    height: 60px;
    object-fit: fill;
    border-radius: 6px;
}

/* Item Details */
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top row (name + buttons) */
.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Name */
.cart-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

/* Quantity text */
.cart-item-qty {
    color: #777;
    font-size: 0.9rem;
}

/* Action buttons */
.cart-item-actions {
    display: flex;
    gap: 8px;
}

/* Edit Button */
.btn-edit-item {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Delete Button */
.btn-delete-item {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-edit-item:hover {
    background-color: #2980b9;
}

.btn-delete-item:hover {
    background-color: #c0392b;
}

/* Responsive */
@media (max-width: 480px) {
    .custom-cart-item {
        flex-wrap: wrap;
    }

    .cart-item-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .cart-item-actions {
        align-self: flex-end;
    }

    .cart-item-img img {
        width: 50px;
        height: 50px;
    }
}


.header-cart-content {
    display: block !important; /* override flex */
    align-items: flex-start !important;
    justify-content: flex-start !important;
}
