/* ==========================================================================
   Theme Variables
   ========================================================================== */
:root {
    --rimini-gold: #a88f59;
    --rimini-black: #000000;
    --rimini-white: #ffffff;
    --rimini-gray-border: #dee2e6;
    --rimini-gray-divider: #e9ecef;
    --rimini-text-dark: #212529;
}

/* ==========================================================================
   Offcanvas Component
   ========================================================================== */
.offcanvas-header {
    background-color: var(--rimini-black);
    color: var(--rimini-white);
    border-bottom: 1px solid var(--rimini-gold);
}

.offcanvas-title {
    font-weight: 700;
    color: var(--rimini-gold);
}

.offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-body {
    /* Keep body light for readability of items */
    background-color: #ffffff;
    color: #212529;
    padding: 1rem;
}

/* This is the main fix for the image */
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover; /* Ensures the image covers the area without stretching */
    border-radius: 8px; /* Optional: for rounded corners */
    border: 1px solid #dee2e6;
    flex-shrink: 0; /* Prevents the image from shrinking */
}

.cart-item-details {
    flex-grow: 1; /* Allows the details to take up the remaining space */
    min-width: 0; /* Important for flex items to allow text to wrap */
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.cart-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.offcanvas-footer {
    background-color: #000000;
    border-top: 1px solid #a88f59;
}

.offcanvas-footer .d-flex strong {
    color: #ffffff;
}

#cart-total {
    color: #a88f59;
}

.offcanvas-footer .btn {
    background-color: #a88f59;
    color: white;
    width: 100%;
    font-weight: bold;
    border: none;
}