/*
 *  CART-CANVAS.CSS
 *  Styles for the offcanvas shopping cart.
*/

/* 1. Offcanvas General Styles */
.offcanvas-header {
    background-color: var(--color-cream);
}

.offcanvas-title {
    color: var(--color-forest);
}

.offcanvas-body {
    background-color: #f8f9fa;
}

/* 2. Cart Item Styles */
.canvas-cart-items {
    padding: 0;
    list-style: none;
    margin: 0;
}

.canvas-cart-item {
    display: flex;
    gap: 1rem;
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.canvas-item-img img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.canvas-item-details {
    flex-grow: 1;
}

.canvas-item-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-dark-green);
}

.canvas-item-meta {
    font-size: 0.85rem;
    color: var(--color-charcoal-75);
}

.canvas-item-remove button {
    background: none;
    border: none;
    color: #aaa;
    transition: color 0.3s;
}

.canvas-item-remove button:hover {
    color: #dc3545;
}

/* 3. Offcanvas Footer */
.offcanvas-footer {
    background-color: white;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* 4. Empty Cart Message */
.empty-cart-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--color-charcoal-75);
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}