/* Total container*/
.sorting-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Sorting form */
.sorting-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-label {
    margin-right: 10px;
}

/* Sorting buttons */
.sorting-buttons .sort-button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sorting-buttons .sort-button.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.sorting-buttons .sort-button:hover {
    background-color: #e9ecef;
}

/* Cart icon */
.cart-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    position: relative;
}

.cart-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f00;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Styles for the cart button */
#cart-count {
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

#cart-count.show {
    transform: scale(1.2);
    opacity: 1;
}

/* Styles for a pop-up message */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}